Hi All, i have a question about encoding a file with mencoder, more specifically i have a problem with adding a certain subtitle file to my newly encoded file.
I want to convert an Avi i have to a MPG file, included i have .sub/.idx subtitle file.
When i try to encode it says sub: it can not determine file format. and offcourse my encoded mpg does not have subtitles...
When i try this action with a .srt file it does work. So i'm wondering if Mencoder supports using .sub/.idx files to put in the encoded file...
The command i try now to "test" is :mencoder test2.avi -o test.mpg -ovc lavc -lavcopts vcodec=mpeg2video -oac copy -sub test.sub
(i also tried test.idx with the same result)
Does anyone have a suggestion ? Thx in Advance
+ Reply to Thread
Results 1 to 4 of 4
-
-
The best suggestion is simple.
Don't!
Personally I think hardcoding subs in an mpeg2 video file is as close as you can get to a cardinal sin using video software.
What would be better is to convert your subs to something you can use with an authoring program.
https://forum.videohelp.com/viewtopic.php?t=267416
Find useful info at above link.
As for using mencoder to hardcode subs, afaik you can't do what you want to do.
Again the simple thing would be to convert to srt subs so you can use them with mencoder.
I'm pretty sure you can't just use mencoder, but there's a workaround where you use mplayer to dump to a stream of losseles yuv frames with subs overlaid and then encode that stream with mencoder.
gl -
-sub would be for a text based sub. Don't think mencoder actually supports vobsub's either that or they end up semi transparent. I really couldn't recommend mencoder for hardsubbing. Didn't work with libass last I checked either. So just because mplayer behaves one way doesn't mean that mencoder will do the same.
Also with no output format specified I think you will get an avi. -
well, the thing is i use Transcode360 which uses mencoder for it's transcoding so i don't a real option. But anyway, i'm now manually converting my avi's to mpeg with fixed subs for some video's.
Thx for the tips
Similar Threads
-
[mencoder] No audio in last few seconds after encoding?
By MacDada in forum Video ConversionReplies: 0Last Post: 27th May 2011, 11:03 -
mencoder x264 vs libavcodec for h.264 encoding
By chconnor in forum Video ConversionReplies: 0Last Post: 2nd Mar 2011, 15:31 -
Mencoder: how to do 2 pass encoding
By keneo in forum Video ConversionReplies: 3Last Post: 2nd Dec 2010, 14:29 -
FFMPEG MENCODER murder and encoding
By Tom2me in forum ffmpegX general discussionReplies: 1Last Post: 29th Jul 2010, 11:44 -
Huge AVI file after mencoder encoding
By nickman00 in forum DVD RippingReplies: 3Last Post: 2nd Jun 2009, 18:57