LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-20-2006, 01:43 PM   #1
norah_cobain
LQ Newbie
 
Registered: Apr 2006
Posts: 16

Rep: Reputation: 0
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)
 
Old 05-20-2006, 02:43 PM   #2
vegetassj2
Member
 
Registered: Jan 2005
Posts: 201

Rep: Reputation: 30
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 ^^;;
 
Old 05-20-2006, 02:51 PM   #3
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
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.
 
Old 05-20-2006, 02:55 PM   #4
vegetassj2
Member
 
Registered: Jan 2005
Posts: 201

Rep: Reputation: 30
Quote:
Originally Posted by oldsko0l
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.
what's the progs name in Windows than maybe we can run it in wine or cxoffice or cedega?
 
Old 05-20-2006, 03:15 PM   #5
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
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
 
Old 05-20-2006, 03:23 PM   #6
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
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
 
Old 05-21-2006, 12:32 PM   #7
norah_cobain
LQ Newbie
 
Registered: Apr 2006
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 05-21-2006, 02:55 PM   #8
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
I will try, and let you know
 
Old 05-21-2006, 02:56 PM   #9
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
but can you add with this program the sub without changing the file-type?
 
Old 05-21-2006, 03:13 PM   #10
norah_cobain
LQ Newbie
 
Registered: Apr 2006
Posts: 16

Original Poster
Rep: Reputation: 0
i think u can jsut set the audio and video to 'copy'
 
Old 05-22-2006, 05:40 AM   #11
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
it is encoding right now, I'll let you know how it went
 
Old 05-22-2006, 06:05 AM   #12
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
no it did not work.. no subtitles were merged..
 
Old 05-22-2006, 06:20 AM   #13
norah_cobain
LQ Newbie
 
Registered: Apr 2006
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 05-22-2006, 09:14 AM   #14
norah_cobain
LQ Newbie
 
Registered: Apr 2006
Posts: 16

Original Poster
Rep: Reputation: 0
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

Last edited by norah_cobain; 05-22-2006 at 11:51 AM.
 
Old 05-24-2006, 02:28 PM   #15
oldsko0l
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Ubuntu Dapper, Gentoo 2006.1
Posts: 140

Rep: Reputation: 15
where do I put this script?
 
  


Reply



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
Merge lines in a file using sed arobic Programming 8 01-20-2012 02:11 PM
How to merge 2 avi together? kornerr Linux - General 11 12-15-2010 09:21 AM
From OGG to AVI with subtitle ziobudda Linux - Software 3 05-17-2006 05:40 AM
Problem loading avi with subtitle in Xine mmarkvillanueva Linux - Software 0 11-10-2005 04:19 AM
[AVI, mencoder, merge files] MrGreg Linux - Software 5 01-02-2003 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration