Gentoo Forums
Gentoo Forums
Quick Search: in
hardcode subtitle to avi,mpeg,etc..
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
RCMN
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 203
Location: fr-paris us-minneapolis

PostPosted: Sun Jan 29, 2006 10:47 pm    Post subject: hardcode subtitle to avi,mpeg,etc.. Reply with quote

i found only one thread that mention how to hardcode subtitle to an AVI .it says using spumux from dvdauthor.But it doesn't seems to work properly.I remember once i used mplayer or mencoder to add subs.But i can't find anything now.
If someone as a good solution for that please let me know.I want hardcode the subs so i can view them with my standalone dvd/dvix player.
Back to top
View user's profile Send private message
RCMN
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 203
Location: fr-paris us-minneapolis

PostPosted: Mon Jan 30, 2006 6:06 pm    Post subject: Reply with quote

someone ?any idea ?
Back to top
View user's profile Send private message
DooBeDooBeDo
Apprentice
Apprentice


Joined: 21 Aug 2002
Posts: 194
Location: UK

PostPosted: Mon Jan 30, 2006 9:38 pm    Post subject: Reply with quote

avidemux
Back to top
View user's profile Send private message
RCMN
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 203
Location: fr-paris us-minneapolis

PostPosted: Mon Jan 30, 2006 10:13 pm    Post subject: Reply with quote

I'm using avidemux2 for almost everything i can do with it, witch rencode the avix that i can't read with my player .The only thing i found with avidemux2 it the VOB->subvob and the ocr ->vob srt.
but i have .sub already and i just want hardcode it in the avi .So just rencode and avi to an other avi .And hardcode the .sub in that "new" avi.
'm not certain of the steps i should use...
Back to top
View user's profile Send private message
robbar
Apprentice
Apprentice


Joined: 21 Aug 2004
Posts: 156
Location: Saarbruecken, Germany

PostPosted: Tue Jan 31, 2006 3:58 am    Post subject: Reply with quote

I tried doing something similar some time ago (vobsub -> srt -> hardcode avi). Unfortunately, I couldn't get the first part of the conversion done so I can't give you any real hints but back then I searched the forums by the terms "mencoder subtitles" and there were some threads about your problems. Perhaps you give that a try. Hopefully, you'll found the stuff that helps you.
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Tue Jan 31, 2006 4:55 am    Post subject: Reply with quote

you can do

avi+vobsub ->mpeg/vob
directly
Back to top
View user's profile Send private message
Master of the Darkside
n00b
n00b


Joined: 02 Sep 2004
Posts: 58
Location: Iasi, Romania

PostPosted: Tue Jan 31, 2006 6:08 am    Post subject: Reply with quote

you can do it with mencoder
example:
Code:

mencoder -ovc frameno -o frameno.avi -oac copy movie.avi

that will give you the vbitrate parameter which you will use for recoding the movie (hardcoding a subtitle requires recoding the avi).
after that,
Code:

mencoder -o output.avi -sub movie.sub -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=816:mbd=2:trell -vf expand=640:480 movie.avi

you should replace vbitrate=816 with the value given by the first command. the expand option resizes your video to a 4:3 so the hardcoded subs will fall onto the black band below (ofcourse you have to adapt it to the size of your avi).
the other options are quality related so feel free to tweak those yourself. in the above example they-re pretty much set for maximum quality.
have fun!
_________________
No weight nor mass nor beauty of execution can outweigh a grain or fragment of thought
Back to top
View user's profile Send private message
RCMN
Apprentice
Apprentice


Joined: 08 Jun 2003
Posts: 203
Location: fr-paris us-minneapolis

PostPosted: Tue Jan 31, 2006 9:02 am    Post subject: Reply with quote

thank you ,this is very helpfull !!!
Back to top
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 241
Location: Au fond, à droite.

PostPosted: Wed Nov 08, 2006 4:45 am    Post subject: Reply with quote

What about using the ogg media format?

ogmmerge -o output.ogm input.avi input-lang1.srt input-lang2.srt

It take 20 seconds to merge a 1h movie.

And subtitles are in a stream, not in the picture, which allows you to change their appearance upon reading. Very handy.
_________________
Foo.
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 3536
Location: in the Dutch Mountains ;-)

PostPosted: Wed Nov 08, 2006 8:03 am    Post subject: Reply with quote

KaZeR wrote:
What about using the ogg media format?
And subtitles are in a stream, not in the picture, which allows you to change their appearance upon reading. Very handy.

Indeed, but almost certainly not supported by his standalone DVD/DivX player...
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 241
Location: Au fond, à droite.

PostPosted: Sun Nov 19, 2006 5:25 am    Post subject: Reply with quote

I should have read the first post more carefully, you're right :)
_________________
Foo.
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 - 5 Hours
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