LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MEncoder does not hardcore subtitles (https://www.linuxquestions.org/questions/linux-software-2/mencoder-does-not-hardcore-subtitles-611317/)

nazarioz 01-05-2008 08:48 AM

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.

osor 01-05-2008 10:40 PM

I don’t know if plain mencoder can do this (though I am probably wrong). Personally, I would use spumux (part of dvdauthor) since you eventually need to burn a dvd anyway.


All times are GMT -5. The time now is 03:17 PM.