LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-05-2008, 08:48 AM   #1
nazarioz
LQ Newbie
 
Registered: Sep 2004
Posts: 25

Rep: Reputation: 15
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.
 
Old 01-05-2008, 10:40 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mencoder] subtitles size Hyakutake Linux - Software 1 05-01-2007 05:05 PM
mencoder and subtitles help ZeroKun Linux - Software 0 07-19-2005 10:36 AM
Any Tips For Grabbing Subtitles in Acidrip / Mencoder? ixus_123 Linux - Software 3 12-29-2004 08:20 PM
mencoder, dvd subtitles J_Szucs Linux - Software 0 04-07-2004 05:24 AM
Subtitles in Mencoder gwroy20 Linux - Software 2 05-15-2003 04:55 PM


All times are GMT -5. The time now is 08:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration