[FFmpeg-user] UDP to RDP multicast configuraton

Rob Robinett rob at mysticvideo.net
Thu Feb 22 00:44:31 EET 2018


Hi,

I am trying to use ffmpeg to accept a live UDP SPTS stream from a remote
site and retransmit it on my LAN in RTP multicast format.  The source
contains one video and two audio in TS format and I want to simply
repackage that stream into RTP.  I can use VLC's streaming wizard to
perform this conversion, but VLC is not supported in my target system while
ffmpeg is running both here on my Mac and there. only my production linux
server.

In the attached session I can get ffmpeg to output my RTP multicast on
239.1.2.3:5004, but I have to filter out the audios and my VLC client
complains that there is a missing SDP​ description in the stream.    It
seems to me that I am only a few cmd line arguments away from having this
working and I would appreciate any help offered.

Thanks,

Rob

=================================

rob at Robs-MBP:/Users/rob> ffmpeg -re -i 'udp://localhost:8433' -c copy -an
-f rtp rtp://239.1.2.3:5004
ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.4 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
--enable-opencl --enable-videotoolbox --disable-lzma --enable-libopenjpeg
--disable-decoder=jpeg2000
--extra-cflags=-I/usr/local/Cellar/openjpeg/2.2.0/include/openjpeg-2.2
--enable-nonfree --enable-vda
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hevc @ 0x7fab1f810a00] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x7fab1f810a00] Error parsing NAL unit #3.
Input #0, mpegts, from 'udp://localhost:8433':
  Duration: N/A, start: 51935.185522, bitrate: N/A
  Program 1
    Stream #0:0[0x1e1]: Video: hevc (Main) ([36][0][0][0] / 0x0024),
yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps,
29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0:1[0x1e2](und): Audio: eac3 (ec-3 / 0x332D6365), 48000 Hz,
5.1(side), fltp, 192 kb/s
    Stream #0:2[0x1e3](und): Audio: aac (HE-AACv2) ([15][0][0][0] /
0x000F), 48000 Hz, stereo, fltp, 61 kb/s
    Stream #0:3[0x1f4]: Data: scte_35
Output #0, rtp, to 'rtp://239.1.2.3:5004':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: hevc (Main) ([36][0][0][0] / 0x0024), yuv420p(tv),
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 29.97
tbc
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 239.1.2.3
t=0 0
a=tool:libavformat 57.71.100
m=video 5004 RTP/AVP 96
a=rtpmap:96 H265/90000
a=fmtp:96 sprop-vps=QAEMAf//IWAAAAMA8AAAAwAAAwB4EUDAAAD6QAAdTBQ=;
sprop-sps=QgEBIWAAAAMA8AAAAwAAAwB4oAPAgBDllEWSRSWsBBQAAA+kAAHUwYBXucQABGMIAARjDkA=;
sprop-pps=RAHArLwOyQ==

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
key    function= 30 q=-1.0 size=    7719kB time=00:00:27.32
bitrate=2313.9kbits/s speed=   1x
?      show this help
+      increase verbosity
-      decrease verbosity
c      Send command to first matching filter supporting it
C      Send/Queue command to all matching filters
D      cycle through available debug modes
h      dump packets/hex press to cycle through the 3 states
q      quit
s      Show QP histogram
frame= 1638 fps= 30 q=-1.0 size=   15565kB time=00:00:54.62
bitrate=2334.4kbits/s speed=   1x


More information about the ffmpeg-user mailing list