[FFmpeg-trac] #6547(ffmpeg:new): FFmpeg auth fail with long rtsp urls

FFmpeg trac at avcodec.org
Fri Jul 21 16:09:58 EEST 2017


#6547: FFmpeg  auth fail with long  rtsp urls
-------------------------------------+-------------------------------------
             Reporter:  rull_orion   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  rtsp auth    |  master
  ffmpeg                             |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 Trying to get long url rtsp stream with Authorization cause Authorization
 problem (method SETUP failed: 401 Unauthorized)

 How to reproduce:

 This works (Length of uri is 116)
 {{{
 % ffmpeg -i
 "rtsp://user:password@192.168.0.8:554/Streaming/tracks/401?starttime=20170720T221248Z&endtime=20170720T221330Z&names=00000000033222"
 -vcodec copy -an video.mp4
 }}}


 This don't works
 {{{
 % ffmpeg -i
 "rtsp://user:password@192.168.0.8:554/Streaming/tracks/401?starttime=20170720T221248Z&endtime=20170720T221330Z&names=000000000332221"
 -vcodec copy -an video.mp4
 }}}
 Length of uri is 117


 RTSP DESCRIBE succeed, but SETUP command add /trackID=video that cause url
 size to be 131 in second case.

 It looks like  authenticated urls has limit for 130 chars.
 Setting or not setting port in url doesn't affect as in RTSP requests
 ffmpeg always add port, but IP address affects. So having 192.168.0.245
 instead of 192.168.0.8 reduce working path by 2 chars.
 For not protected urls there are no such problem.


 Tested on:
 {{{

 ffmpeg version 3.2.2
 built with Apple LLVM version 8.0.0

 ffmpeg version N-85275-gac24a82
 built with gcc 4.9.2 (Debian 4.9.2-10)

 (master)
 ffmpeg version N-86825-g99c5ac2
 built with gcc 4.9.2 (Debian 4.9.2-10)

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6547>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list