Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't figure out .sub and .idx with mencoder
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
vlanhopper
n00b
n00b


Joined: 04 Feb 2008
Posts: 7

PostPosted: Mon Feb 04, 2008 11:10 pm    Post subject: Can't figure out .sub and .idx with mencoder Reply with quote

I know how to handle .srt but I can't get .sub and .idx to work. It encodes with no errors but I can't see the subs in encode?



mencoder -o output.avi -forceidx -ovc xvid -xvidencopts chroma_opt:vhq=4:bvhq=1:fixed_quant=4 -oac copy -sub yella.2007.dvdrip.xvid.fragment.sub -subpos 10 input.avi

I know it is something simple there I am missing, I googled for two hours straight.


Wait I forgot you have to encode to .mpg to hardcode subs don't you? Someone help me out.
Back to top
View user's profile Send private message
absoluteflatness
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2007
Posts: 138
Location: Blacksburg or Falls Church, VA

PostPosted: Tue Feb 05, 2008 8:12 am    Post subject: Reply with quote

From the online MPlayer documentation at http://www.mplayerhq.hu/DOCS/HTML/en/ :

Quote:
VOBsub subtitles. VOBsub subtitles consist of a big (some megabytes) .SUB file, and optional .IDX and/or .IFO files. If you have files like sample.sub, sample.ifo (optional), sample.idx - you have to pass MPlayer the -vobsub sample [-vobsubid id] options (full path optional). The -vobsubid option is like -sid for DVDs, you can choose between subtitle tracks (languages) with it. In case that -vobsubid is omitted, MPlayer will try to use the languages given by the -slang option and fall back to the langidx in the .IDX file to set the subtitle language. If it fails, there will be no subtitles.


So, "-vobsub yella.2007.dvdrip.xvid.fragment"
Back to top
View user's profile Send private message
vlanhopper
n00b
n00b


Joined: 04 Feb 2008
Posts: 7

PostPosted: Tue Feb 05, 2008 11:57 am    Post subject: Vobsub:-vobsub is not an MEncoder option Reply with quote

Mplayer won't pick up the subs, or else I would have already done that and >file redirection for mplayer stdout. I know they are not corrupt.
Back to top
View user's profile Send private message
StarDragon
Guru
Guru


Joined: 19 Jun 2005
Posts: 390
Location: tEXas

PostPosted: Tue Feb 05, 2008 5:51 pm    Post subject: Reply with quote

vlanhopper,

I've also messed around with that and could never get it to work. The -sub function will allow viewing the subtitles from a file, but you have to run mplayer.
Back to top
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Tue Feb 05, 2008 6:07 pm    Post subject: Reply with quote

In my experience, the best thing to do is use a Matroska container. Emerge media-video/mkvtoolnix with the wxwindows USE flag to get mmg, which is a very helpful GUI for making Matroskas. All you have to do is add your subtitle file to the list of files to be merged, and it will "just work." However, if you do this, don't forget to add "-vf harddup" to your mencoder line, or you'll lose sync in your video.
_________________
Don't believe the "n00b" under my name.
Back to top
View user's profile Send private message
absoluteflatness
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2007
Posts: 138
Location: Blacksburg or Falls Church, VA

PostPosted: Tue Feb 05, 2008 8:51 pm    Post subject: Reply with quote

I assumed the poster was going for a portable player or something similar. I can't really think of any other good reason to want to hardcode subs. Portable player would almost essentially rule out .mkv. Of course, I could be completely off on my assumption.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum