[FFmpeg-trac] #3222(avformat:new): RTSP (client): Fallback to TCP causes 454 Session Not Found

FFmpeg trac at avcodec.org
Thu Dec 12 22:58:32 CET 2013


#3222: RTSP (client): Fallback to TCP causes 454 Session Not Found
-------------------------------------+-------------------------------------
             Reporter:  GstBlub      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  2.1.1        |               Resolution:
             Keywords:  rtsp         |               Blocked By:
  fallback tcp session               |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by GstBlub):

 Yes, I just compiled ffmpeg from git head and it's failing the same way:

 {{{
 LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./ffmpeg -i
 rtsp://strm01.novotempo.org.br/radionovotempo-vivo -rtsp_transport tcp
 -acodec copy -vcodec copy test.file
 ffmpeg version N-59032-g3dbf9af Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 12 2013 14:49:25 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --prefix=/home/gstblub/ffmpeg_build
 --bindir=/home/gstblub/ffmpeg_build/bin --enable-shared --enable-network
 --disable-protocols --enable-protocol=file --enable-protocol=tcp --enable-
 protocol=udp --disable-demuxers --enable-demuxer=asf --enable-demuxer=rtsp
 --enable-demuxer=ape --disable-decoders --enable-decoder=aac --enable-
 decoder=aac_latm --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-
 decoder=wmapro --enable-decoder=wmalossless --enable-decoder=mp2 --enable-
 decoder=mp3 --disable-encoders --disable-muxers --enable-muxer=adts
 --enable-muxer=asf --enable-muxer=asf_stream --disable-parsers --enable-
 parser=aac --disable-bsfs --disable-devices --disable-filters
   libavutil      52. 58.100 / 52. 58.100
   libavcodec     55. 45.101 / 55. 45.101
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 92.100 /  3. 92.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 [rtsp @ 0xdeba00] UDP timeout, retrying with TCP
 [rtsp @ 0xdeba00] method SETUP failed: 454 Session Not Found
 [rtsp @ 0xdeba00] Could not find codec parameters for stream 0 (Audio: mp3
 (U[0][0][0] / 0x0055), 44100 Hz, 2 channels, s16p, 256 kb/s): unspecified
 frame size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 rtsp://strm01.novotempo.org.br/radionovotempo-vivo: could not find codec
 parameters
 }}}

 Forcing it into TCP doesn't trigger the 454 Session Not Found error:
 {{{
 LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./ffmpeg -rtsp_transport tcp -i
 rtsp://strm01.novotempo.org.br/radionovotempo-vivo -rtsp_transport tcp
 -acodec copy -vcodec copy test.file
 ffmpeg version N-59032-g3dbf9af Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 12 2013 14:49:25 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --prefix=/home/gstblub/ffmpeg_build
 --bindir=/home/bstblub/ffmpeg_build/bin --enable-shared --enable-network
 --disable-protocols --enable-protocol=file --enable-protocol=tcp --enable-
 protocol=udp --disable-demuxers --enable-demuxer=asf --enable-demuxer=rtsp
 --enable-demuxer=ape --disable-decoders --enable-decoder=aac --enable-
 decoder=aac_latm --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-
 decoder=wmapro --enable-decoder=wmalossless --enable-decoder=mp2 --enable-
 decoder=mp3 --disable-encoders --disable-muxers --enable-muxer=adts
 --enable-muxer=asf --enable-muxer=asf_stream --disable-parsers --enable-
 parser=aac --disable-bsfs --disable-devices --disable-filters
   libavutil      52. 58.100 / 52. 58.100
   libavcodec     55. 45.101 / 55. 45.101
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 92.100 /  3. 92.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 [mp3 @ 0x2092c20] Header missing
     Last message repeated 51 times
 [rtsp @ 0x208cae0] decoding for stream 0 failed
 [rtsp @ 0x208cae0] Could not find codec parameters for stream 0 (Audio:
 mp3 (U[0][0][0] / 0x0055), 44100 Hz, 2 channels, s16p, 256 kb/s):
 unspecified frame size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 rtsp://strm01.novotempo.org.br/radionovotempo-vivo: could not find codec
 parameters
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3222#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list