RTMP/RTP input timeout (valid stream)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

RTMP/RTP input timeout (valid stream)

Yannick Barbeaux
I am struggling to read a multicast audio RTP stream controlled by
RTSP. As soon as I launch the ffplay or ffmpeg command, the RTP
traffic starts on port 5004/UDP (as advertised in the SDP file), so it
should read the stream correctly but I finally get a time-out instead
(and empty out file). The very same RTSP URL can be read without any
issue with VLC.

ffmpeg -y -rtsp_transport udp_multicast -i

"rtsp:// (on hasseb-AoE-F8-82)"
-vn -f s24le -ar 48000 -c:a pcm_s24be out.raw
ffmpeg version 4.2.2 Copyright (c) 2000-2019the FFmpeg developers
  built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg
--disable-debug --enable-nonfree --enable-gpl --enable-version3
--enable-libopencore-amrnb --enable-libopencore-amrwb
--disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse
--enable-libfreetype --enable-gnutl
s --enable-libdav1d --enable-libx264 --enable-libx265
--enable-libfdk-aac --enable-libvorbis --enable-libmp3lame
--enable-libopus --enable-libvpx --enable-libspeex --enable-libass
--enable-avisynth --enable-libsoxr --enable-libxvid
--enable-libvidstab --enable-libtheora --en
able-libwavpack --enable-libopenjpeg --enable-libgsm --enable-nvenc
--enable-libzimg --enable-libaom
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, rtsp, from 'rtsp://
(on hasseb-AoE-F8-82)':
    title           : AES67-stream (on hasseb-AoE-F8-82) streamed by
  Duration: N/A, bitrate: 2304 kb/s
    Stream #0:0: Audio: pcm_s24be, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s24be (native) -> pcm_s24be (native))
Press [q] to stop, [?] for help
rtsp:// (on hasseb-AoE-F8-82):
Connection timed out
Output #0, s24le, to 'out.raw':
    title           : AES67-stream (on hasseb-AoE-F8-82) streamed by
    encoder         : Lavf58.29.100
    Stream #0:0: Audio: pcm_s24be, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
      encoder         : Lavc58.54.100 pcm_s24be
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)

The SDP file is :

o=- 254522267104 0 IN IP4
s=AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb"
t=0 0
a=clock-domain:PTPv2 0
m=audio 5004 RTP/AVP 98
c=IN IP4
a=rtpmap:98 L24/48000/2
a=source-filter: incl IN IP4

Comparing those files, we see that ffmpeg gets the right audio
settings (pcm_s24be, 48000 Hz, stereo, s32 (24 bit)) so why cannot it
read the data ? I have tried to increase the timeout but that did not

Any help would be appreciated. Thank you.

ffmpeg-user mailing list
[hidden email]

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".