MEncoder does not hardcore subtitles
Hi,
I currently have an avi movie file and a separate subtitles .srt file. I can play the .avi with embedded subtitles just fine with mplayer, either by renaming the .srt file to have the same name as the avi (which makes mplayer embed the subtitles automatically), or by passing the -sub option to mplayer
mplayer movie.avi -sub subtitles.srt
That works fine. Now, I would like to burn the movie with the subtitles into a dvd and be able to play them in any dvd-player. I've been trying to use mencoder to produce an ntsc-dvd file with subtitles. Nonetheless, the -sub option is not working. I use
mencoder movie.avi -of mpeg -mpegopts format=dvd -srate 48000 -ofps 30000/1001 -ovc lavc -oac lavc -sub subtitles.srt -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:keyint=18:vrc_maxrate=9800:vbitrate=5000:aspect=16/9:acodec=ac3:abitrate=192 -o movie_with_subs.mpg
but even a simpler
mencoder movie.avi -oac copy -ovc lavc -sub subtitles.srt movie_with_subs.avi
does not work.
The resulting mpg file I get does not have subtitles. I need help with getting my mencoder produce a movie file with hardcoded subtitles. I do not understand why the subtitles are showing in mplayer, but do not work when I use mencoder.
Any help will be greatly appreciated.
Last edited by nazarioz; 01-05-2008 at 08:50 AM.
|