[FFmpeg-user] add captions with a srt to mpeg 2 mxf

Shupert, Jim jim.shupert at hearst.com
Sat Oct 16 15:59:54 EEST 2021


Friends,

I wish to add 708 captions to a mxf.
I have a mpg or mxf with mpeg 2 video @ 30 mbps and pcm audio.
I am wondering if a mxf can have captions and if so what is supported? Scc? Anything?
I could use a file.ts instead of mxf if that helps


ffmpeg.exe -i input.mxf -f srt -i input.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt output.mxf
or
ffmpeg.exe -i input.mpg -f srt -i input.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt -f mxf output.mxf
or
ffmpeg.exe -i input.ts -f srt -i input.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt output.ts

Thanks much
Kind regards
Jim shupert


More information about the ffmpeg-user mailing list