FFmpeg - Extracting video and audio from transport stream file (.ts)

江枫思渺然 提交于 2019-12-03 11:41:22
rajneesh

ffmpeg can select program stream as well as elementary stream within program. using map option and stream specifier. look at - https://superuser.com/questions/343716/ffmpeg-how-to-demux-live-multi-program-transport-stream

learner

I could get SPTS from MPTS in ffmpeg by extracting required streams and remuxing it. My mpts has 6 streams for three programs (one audio, one video):

ffmpeg -i mpt.ts -map 0:0 -map 0:1 -acodec copy -vcodec copy -f mpts program1.ts
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!