merge avi with subtitle file ?
just wondering is there a way to merge avis with subtitle(srt) files ?
using mencoder or soemthing else, so that u know the subs become a part of the avi the reason i need this is that my parents dvd player plays divx, but doesent support separate subtitle files (and they dont speak englishs so subs are essential) |
I think it is possible. In fact, I'm sure of it, but, I don't know a good software to do it... in fact, I don't even know one ^^;;
|
in windows it is possible, so why shouldn't it be in linux ;)? only I don't know any software for it either, sorry. Post here if you should find any, because I'm curious. :D
|
Quote:
|
you can do it with VirtualDubMod
here is a tutorial in dutch maybe you can translate it with the free translator of worldlingo.com http://ondertitel.com/forum/index.php?showtopic=1789 you can also do it with # SRT to SSA Convertor ver 1.0 # VirtualDub 1.5.10 # VirtualDub Subtitler Filter here is tutorial (also in dutch) maybe translate it with worldlingo to http://ondertitel.com/forum/index.php?showtopic=935 worldlingo free translator link --> http://www.worldlingo.com/en/product...ranslator.html I hope this was usefull and you can also just try to search on google for an english tutorial, you know the programs names now, so it can't be so difficult ;) but I repeat--> this is the windows way! ^^ btw. Post it if you got any luck on linux please? tnx |
http://forums.gentoo.org/viewtopic.php?t=117709
I found this on google, there is a part of merging a subtitle in your dvd video maybe it's usefull ;) |
thanks for the suggestions, no luck so far, dont wanna install xp-vmware, its such a mess. i have found one solution for linux, that claims to be able to do it, but its not working. its called File2DiVX3Pass 2.1, its supposed to convert to and from different avi formats, and has an option to add a subtitle from a file. trouble is i cant get it to work. maybe i misunderstood how it works, or maybe my sub files are in a wrong format, thers not much documentation available. http://www.geekshop.be/rien/file2div...?page=download
if anyone can get that to work, or has a differnt solution pleas post |
I will try, and let you know
|
but can you add with this program the sub without changing the file-type?
|
i think u can jsut set the audio and video to 'copy'
|
it is encoding right now, I'll let you know how it went
|
no it did not work.. no subtitles were merged..
|
i emailed the author. heres what he says:
"I just tried one myself, and indeed ... it did not work :( After a bit of searching and output debugging I came across this problem: mencoder did not find a TTF file in its path (mine was /home/roet/.mplayer/subfont.ttf but in your case you should use the correct path). You can solve this by downloading or copying a TTF font file (located somewhere on your machine using locate or copy it from a windows machine) to the specified location (/home/<username>/.mplayer/subfont.ttf). " havent had the chance to try this yet, but probably will tonight :D |
been in touch with the author again, its just not working, he says he might fix the program when/if he has time. however he gave me a little script, and it works!
it looks as follows: mencoder -vop pp=de,scale=608:336 -oac copy -ovc lavc -lavcopts vhq:vqmin=2:vqmax=2:vme=1:keyint=25:vbitrate=2140:vpass=1 -sub "SUBTITLE_FILE.srt" -o "OUTPUT_MOVIE_WITH_SUBTITLES.avi" "SOURCE_MOVIE.avi" u need to change the resolution,bitrate etc to match your movie file :)) EDIT: updated instructions: ---------------------------- from x to divx, subtitle merge: mencoder -vop pp=de,scale=608:336 -oac copy -ovc lavc -lavcopts keyint=25:vcodec=mpeg4:vbitrate=945:vpass=1 -sub "subtitle.srt" -o "output.avi" "input.avi" from x to xvid, subtitle merge: instead of "-ovc lavc " you'd use "-ovc xvid" and the -lavcopts would become obsolete then more parameters for xvid: http://gentoo-wiki.com/HOWTO_Mencode...ion_Guide#XviD |
where do I put this script?
|
and can't I just copy it? so I won't need to know all those things like bitrate and stuff?
|
u paste it in terminal after u have edited it in a text editor to match your movie, or alternatively save the text file and make it executable
the bitrate u find by typing mplayer /path/to/original.avi in a terminal, then in hte terminal u will see the bitrate and scale and stuff, which u copy into the script. its a bit messy but it works, and the process is quite fast too, takes me about 20 mins for one movie (on a 2600+ cpu) |
but u say from x to divx or x to xvid.. can't I just take from x to x? :P (with x I mean the type it is now)
|
possibly, i havent found out though..if u find a solution let me know. oh u can take it from xvid to xvid for example but ud still have to enter it into the script, but i dont know a way of automating it so that it goes from x to x without having to enter it in the script if u know what i mean
id also liek to know if theresr a way to keep the original bitrate, resolution etc automaticly without having to check what resolution the original file is for example and then enter that into the script but im quite happy being able to add subs anyway :D |
Code:
[oldsko0l@localhost Domino]$ mplayer Domino\[2005\]DvDrip\[Eng\]-aXXo.avi |
yeah sure, for divx (i havent got around to trying xvid yet):
if your movie is called Domino\[2005\]DvDrip\[Eng\]-aXXo.avi is that the movie name? lets rename it Domino.avi for simplicitys sake. u need Domino.avi and Domino.srt in the same dir, go to that dir, open a terminal there and paste: --- mencoder -vop pp=de,scale=548:222 -oac copy -ovc lavc -lavcopts keyint=25:vcodec=mpeg4:vbitrate=679:vpass=1 -sub "Domino.srt" -o "Domino_with_subs.avi" "Domino.avi" --- voila u may need to copy a font, like tahoma, or vera sans to your .mplayer dir and rename it subfont.ttf sorry i got a bit confused regarding the name of the movie file there |
tnx man, I really apreciate your effort :)
just some little more questions now -pp=de what does this mean and where do I find it in my example? (or don't I have to change this?) -keyint=25 what does this mean and where do I find it in my example? (or don't I have to change this?) -vcodec=mpeg4 this probably comes from this--> Code:
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4) -vpass=1 what does this mean and where do I find it in my example? (or don't I have to change this?) I don't want to look lazy but I just want to be shure of these things, u know.. ;) and how do I check wether the movie is divx or xvid or something else? or will I be able to see it always here Code:
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4) tnx again, norah cobain |
i dont know what the pp=de and the other things mean, i just know it works with these things included in the script. dont know what would happen if u remove them. u dont have to change any of these afaik, i thnik u only have to change the filenames, resolution and bitrate to match your movie. the codec things ur asking about, i dont know, its just what ive been told, i dont even know if its correct. ive been told FFmpeg = divx. if its a xvid its probably something else...not sure
u can check what codec a movie is by opening it in vlc and go to view > stream and media info |
oke I'll try the script now thank you, I'll let you know how it went
|
oke tnx it works great! ;) about 25 minutes on a amd 2200+
btw. did you try to burn it yet? because when I merge subs and avi file on my windows pc and I try to play the cd on my dvd-player (tv) the sync does not fits anymore.. I'll try it the linux-way :D |
no didnt burn but it works fine and in sync on my on-harddisk-copy so the file is bound to be identical on a dvd or cd?
|
why should you want to merg the avi with the sub if you don't want to burn it? (confused)
Quote:
btw. the sync on my harddisk is also fine with my windows pc method, only when I burned it the sync wasnt anymore :D but I'll figure that out I guess |
i want to burn it, and send it to my parents, i just havent gotten around to it yet, gonna sub a lot more files first
with bound i mean that if your burn as data disc (and not video disk) - which is what im planning to do the file on the dvd will have to be identical to the file on the harddisk and therefore not out of sync. it sounds rather impossible that the subs would be out of sync on dvd/cd if they werent out of sync on harddisk, the subs are a part of the movie and not separate in any way. if the subs are out of sync then the rest of the picture on your screen will have to be out of sync too, you cant desync half the picture can you? and u cant desync the whole picture either cos, hum, then theres nothing left for it to not be in sync with, apart from the audio. did u mean that the audio is out of sync? sorry if this sounds confusing, i couldnt find a better way of saying it, english isnt my first language either |
no I think the problem was something with the burning..
because when I burned the movie without subs the sound was later that the screen so when they were talking the sound came 2 seconds later.. so it wasen't a problem of the movie self I guess ;) |
All times are GMT -5. The time now is 11:12 AM. |