Hardcoding subtitles to video from MPEG.ts stream with several sub tracks

About encoding, codec settings, muxers and filter usage
sergserg1979
New Cone
New Cone
Posts: 4
Joined: 14 Jan 2022 15:42

Hardcoding subtitles to video from MPEG.ts stream with several sub tracks

Postby sergserg1979 » 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.

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests