[FFmpeg-user] Mpg

Juan O Batista orestesb at comcast.net
Mon Sep 12 22:54:20 EEST 2016

Yes Sven but I want .mpeg output file and I need turn off, turn on the subtitle. 

Who is subs2.srt, I have only subtitle file is subs2 

----- Original Message -----

From: "Sven C. Dack" <sven.c.dack at sky.com> 
To: "FFmpeg user questions" <ffmpeg-user at ffmpeg.org> 
Sent: Monday, September 12, 2016 2:23:56 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 12/09/16 18:05, Juan O Batista wrote: 
> I have .mpeg with close caption I need output .mpeg file but I need too do drawtext in output file, but preserving close caption 

$ ffmpeg -i video.mpeg -i subs1.srt -vf subtitles=subs2.srt -c:a copy -y out.mkv 

This takes "video.mpeg" as video input and "subs1.srt" as subtitles input. 

It then takes "subs2.srt" as input for the subtitles filter, which draws the 
subtitles directly into the video. 

The audio is copied the way it is with "-c:a copy". 

Your video will contain the subtitles from subs2.srt directly drawn into the 
video (these cannot be turned off when watching the video!). The video also 
contains "subs1.srt" as additional subtitle stream, which can be turned on and off. 


ffmpeg-user mailing list 
ffmpeg-user at ffmpeg.org 

To unsubscribe, visit link above, or email 
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". 

More information about the ffmpeg-user mailing list