Hardcoding subtitles to video from MPEG.ts stream with several sub tracks
Posted: 14 Jan 2022 16:01
Hello,
I have an MPEG-2.ts stream with several subtitle substreams (dvb_subtitleand dvb_teletext). I need to transcode the video to h.264 and hardcode one of those subtitles to video (dvb_subtitles). I tried the command:
vlc -I dummy 1.ts --sout='#transcode{vcodec=h264,vb=5000,acodec=mp3,ab=128,channels=2,scodec=dvbs,soverlay}:std{access=file,mux=ts,dst=/tmp/5.ts}'
but it hardcoded none of those subtitles.
Can someone please advise what should be the command to choose subtitle track and burn it in to video?
Thank you.
I have an MPEG-2.ts stream with several subtitle substreams (dvb_subtitleand dvb_teletext). I need to transcode the video to h.264 and hardcode one of those subtitles to video (dvb_subtitles). I tried the command:
vlc -I dummy 1.ts --sout='#transcode{vcodec=h264,vb=5000,acodec=mp3,ab=128,channels=2,scodec=dvbs,soverlay}:std{access=file,mux=ts,dst=/tmp/5.ts}'
but it hardcoded none of those subtitles.
Can someone please advise what should be the command to choose subtitle track and burn it in to video?
Thank you.