[FFmpeg-user] ffmpeg to stream uncompress RTP video - SMPTE ST 2110
Tony Zhou
tony at spottygiraffe.net
Wed Oct 25 01:56:33 EEST 2023
Does anyone succeed playing a MP4 file into uncompressed RTP stream -
SMPTE ST 2110?
I have following code to encode SMPTE ST 2110 into a H264 RTMP stream
but have a need to play a MP4 file into SMPTE ST 2110. Have do a lot of
tries but no success.
ffmpeg -v panic -hwaccel cuda -hwaccel_output_format cuda -strict
experimental -buffer_size 2013265920 -protocol_whitelist file,udp,rtp -i
/ip-video-sdp/st2110_1.sdp -filter_complex [0:v]format=yuv420p[hls] -map
[hls] -c:v h264_nvenc -surfaces 64 -profile high -r 25 -g 25 -b:v 20M -f
flv rtmp://127.0.0.1/rtmp/encoder1?timeout=-1
cat /ip-video-sdp/st2110_1.sdp
v=0
o=- 1443716955 1443716955 IN IP4 10.50.139.237
s=emsfp-A0-F0-2A_0-0-0
t=0 0
m=video 5001 RTP/AVP 96
c=IN IP4 239.50.231.5/64
a=source-filter: incl IN IP4 239.50.231.5 10.50.139.237
a=rtpmap:96 raw/90000
a=fmtp:96 sampling=YCbCr-4:2:2; width=1920; height=1080;
exactframerate=50; depth=10; TCS=SDR; colorimetry=BT709; PM=2110GPM;
SSN=ST2110-20:2017; TP=2110TPN;
a=mediaclk:direct=0
a=ts-refclk:ptp=IEEE1588-2008:08-00-11-FF-FE-22-F4-A2:0
ffprobe shows the stream payload:
Input #0, sdp, from '/ip-video-sdp/st2110_1.sdp':
Metadata:
title : emsfp-A0-F0-2A_0-0-0
Duration: N/A, start: 0.000000, bitrate: 2073600 kb/s
Stream #0:0: Video: bitpacked (UYVY / 0x59565955),
yuv422p10le(bt709, progressive), 1920x1080, 2073600 kb/s, 50 fps, 90k
tbr, 90k tbn
Any idea will be appreciated.
More information about the ffmpeg-user
mailing list