[FFmpeg-user] ffmpeg: encoding sub-titles

Pekon Gupta pekon.gupta at gmail.com
Thu Sep 1 22:43:05 CEST 2011


hi,

Thanks for reply..But the "-newsubtitle" switch of FFMPEG doesn't seem to
work..
So, i used mencoder to first embed the sub-titles in video.. then used
ffmpeg to transcode the video to different format..

1) mencoder  INFILE.avi  -oac copy -ovc lavc -sub  -font
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -subfont-autoscale 2  -o
OUTFILE_WITH_SUBTITLES.avi

2) ffmpeg -i INFILE_WITH_SUBTITLES  -s qvga  -acodec libmp3lame -vcodec
libxvid -bf 0   OUTFILE_WITH_SUBTITLES_XVID.avi

However, i wished if ffmpeg could do this in single go.. anyways my work
done for time being.. thanks again

with regards, pekon


More information about the ffmpeg-user mailing list