[FFmpeg-user] Newbie ish question with mpegts streaming
Wayne Merricks
waynemerricks at thevoiceasia.com
Wed Oct 19 20:42:50 EEST 2016
Hi,
I'm trying to match a stream from a proprietary box with ffmpeg so that
hopefully the program that is receiving the stream will actually work
with it (rather than doing nothing like it is now).
I have matched most of the options but there are a few that I can't find
good explanations for on Google/man pages.
If I have an mpegts h264 main profile stream that outputs this info:
Stream #0:0[0xdf] - Can I set the 0xdf part? My ffmpeg command is
outputting 0x100 (0:0 is the video stream)
Stream #0:1[0xe0] - Can I set the 0xe0 part? I'm getting 0x101 here.
Finally after stream 0:1 I get Audio: mp2 ([4][0][0][0] / 0x004), but
ffmpeg is outputting mp2 ([3][0][0][0] / 0x0003).
Apologies for the list spam but I'm not even sure what to Google/look
for in the man pages let alone how to set or what these options actually
mean.
If it helps here is my entire ffmpeg command so far:
ffmpeg -re -i rtmp://my_rtmp_source -vcodec libx264 -profile:v main -vf
scale=1920x1080,setsar=1/1,setdar=16/9 -pix_fmt yuv420p -color_primaries
bt709 -color_trc bt709 -colorspace bt709 -acodec mp2 -b:a 96k -ar 48000
-metadata service_name="TVA" -metadata service_provider="TVA"
-metadata:s:a:0 language=GBR -f mpegts udp://127.0.0.1:2345
As you can guess I'm forced into an RTMP -> UDP mpegts conversion.
Sadly, I can't change that.
Thanks for reading,
Wayne
More information about the ffmpeg-user
mailing list