[FFmpeg-user] Mpg

Juan O Batista orestesb at comcast.net
Sat Sep 10 22:16:31 EEST 2016


Thank you Sven. What MPEG MPEG transport stream format is better. 

Thank you 

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

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

On 10/09/16 18:59, Juan O Batista wrote: 
> Thank you. My purpose is obtain a .mpeg file with close caption because some channel use mpeg extension. 
> 
> I used mpeg2video but in the video result i can see the close caption 
> 
> ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2 -b:a 192k -ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2 -codec:a mp2 -b:a 192k output.mpeg 
> 
> thank you 

What you need to do is to put the video, audio and subtitles into a fitting 
container format. You can find an overview of different container formats here: 

https://en.wikipedia.org/wiki/Comparison_of_video_container_formats 

As you can see does .mpeg not support subtitles. To see which formats ffmpeg 
supports enter "ffmpeg -formats". To pick a specific one do you use the -f 
option. Otherwise will ffmpeg guess the format from the file extension, which 
may not what you want. An example: 

ffmpeg ... -f mpegts -y output.mpeg 

This will use the MPEG transport stream format and name the file "output.mpeg". 

Sven 

_______________________________________________ 
ffmpeg-user mailing list 
ffmpeg-user at ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

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



More information about the ffmpeg-user mailing list