Reputation: 51
I'm trying to convert a MPEG2 Transport Stream to a MP4 stream. The video and audio are fine, but I can't seem to figure out how to tell ffmpeg to extract the eia_608 stream from the video and place it in a stream for the mp4 or mov. I've tried a straight copy as shown below.
ffmpeg -f mpegts -i tsfile3.ts -codec:v copy -fflags genpts -bsf:a aac_adtstoasc -codec:a copy -codec:s copy -f mov tsfile3a.mp4
Has anyone done this? If so, could you help with the syntax? Thanks.
Upvotes: 2
Views: 3470
Reputation: 51
Finally figured this out. Just be aware it appears to only work with mpegvideo and not h264. The syntax is as follows:
ffmpeg -i Closedcaption_rollup.ts -f lavfi -i "movie=Closedcaption_rollup.ts[out+subcc]" -map 0:0 -map 0:1 -map 1:1 -c:s mov_text test_out.mp4
This is using the ffmpeg fate test clip. The caveats are:
Upvotes: 2