[FFmpeg-trac] #3222(avformat:new): RTSP (client): Fallback to TCP causes 454 Session Not Found
FFmpeg
trac at avcodec.org
Thu Dec 12 18:47:52 CET 2013
#3222: RTSP (client): Fallback to TCP causes 454 Session Not Found
-------------------------------------+-------------------------------------
Reporter: GstBlub | Type: defect
Status: new | Priority: normal
Component: avformat | Version: 2.1.1
Keywords: rtsp | Blocked By:
fallback tcp session | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
The fallback mechanism to TCP when UDP times out seems to not work
properly. I can't get this stream to work with ffmpeg, but it works fine
with vlc and windows media player: rtsp://strm01.novotempo.org.br
/radionovotempo-vivo
I always get this error: method SETUP failed: 454 Session Not Found
If I force ffmpeg to use TCP (using -rtsp_transport tcp), it works.
How to reproduce:
{{{
% ffmpeg -i rtsp://strm01.novotempo.org.br/radionovotempo-vivo
-rtsp_transport tcp -acodec copy -vcodec copy test.file
ffmpeg 2.1 (arm)
...
[rtsp @ 0x59480] UDP timeout, retrying with TCP
[rtsp @ 0x59480] method SETUP failed: 454 Session Not Found
[rtsp @ 0x59480] 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 to TCP however makes it work (disregard the decoding errors):
{{{
% ffmpeg -rtsp_transport tcp -i rtsp://strm01.novotempo.org.br
/radionovotempo-vivo -acodec copy -vcodec copy test.file
...
[mp3 @ 0x5da80] Header missing
Last message repeated 51 times
[rtsp @ 0x59460] decoding for stream 0 failed
[rtsp @ 0x59460] 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>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list