Quantcast Subtitles: Merge Two Sets of .SRT Files? - digitalFAQ.com Forums [Archives]
  #1  
04-13-2005, 10:15 PM
WOWIEGURL WOWIEGURL is offline
Free Member
 
Join Date: Sep 2003
Posts: 384
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to WOWIEGURL
Hi ,

I have 2 sets of .srt files and I'm trying to merge them .... eg b.srt will automatically start playing after a.srt.

I've used this in my script
a=textsub(a.srt)
b=textsub(b.srt)

=a++b

this doesn't work. Only a.srt will show up. Should I use copy /b a.srt + b.srt ab.srt instead?

Thanks
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-13-2005, 10:39 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by WOWIEGURL
Should I use copy /b a.srt + b.srt ab.srt instead?
Did you try it

-kwag
Reply With Quote
  #3  
04-14-2005, 03:50 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
@Wowie
Open a srt file, read it and understand it.
Open the second one, do the same.

Now do you understand WHY merging is not so easy ?

Use tools like "subtitle workshop" or "time adjust" to merge the files.
Reply With Quote
  #4  
04-15-2005, 01:47 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: So Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Hi WOWIEGURL,

You can not merge subtitles with avisynth, but you can merge movies.
If you have two movie files and two subtitles files you can try this:
a=mpeg2source("movie_a").textsub("a.str")
b=mpeg2source("movie_b").textsub("b.str")
a++b


If you have only one movie file but two subtitles files, you can try this way:
a=mpeg2source("movie_a").trim(0, xxx).textsub("a.str")
b=mpeg2source("movie_b").trim(xxx, 0).textsub("b.str")
a++b


Where xxx is the point in frames where the first subtitle ends and the second starts.

The first situation is very simple to use.
The second one is a bit tricky to find the exact point to trim, and is probably easier to use subtitle workshop as Dialhot suggested.
Reply With Quote
  #5  
04-15-2005, 09:27 PM
WOWIEGURL WOWIEGURL is offline
Free Member
 
Join Date: Sep 2003
Posts: 384
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to WOWIEGURL
Quote:
Originally Posted by muaddib
Hi WOWIEGURL,

You can not merge subtitles with avisynth, but you can merge movies.
If you have two movie files and two subtitles files you can try this:
a=mpeg2source("movie_a").textsub("a.str")
b=mpeg2source("movie_b").textsub("b.str")
a++b


If you have only one movie file but two subtitles files, you can try this way:
a=mpeg2source("movie_a").trim(0, xxx).textsub("a.str")
b=mpeg2source("movie_b").trim(xxx, 0).textsub("b.str")
a++b






Where xxx is the point in frames where the first subtitle ends and the second starts.

The first situation is very simple to use.
The second one is a bit tricky to find the exact point to trim, and is probably easier to use subtitle workshop as Dialhot suggested.
Thanks thats the answer I was looking for.
I posted my thanks in the quote.
Reply With Quote
  #6  
04-16-2005, 08:37 AM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (Espaa)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by WOWIEGURL
Quote:
Originally Posted by muaddib
Hi WOWIEGURL,

You can not merge subtitles with avisynth, but you can merge movies.
If you have two movie files and two subtitles files you can try this:
a=mpeg2source("movie_a").textsub("a.str")
b=mpeg2source("movie_b").textsub("b.str")
a++b


If you have only one movie file but two subtitles files, you can try this way:
a=mpeg2source("movie_a").trim(0, xxx).textsub("a.str")
b=mpeg2source("movie_b").trim(xxx, 0).textsub("b.str")
a++b



Thanks... this is the information I wanted.

THank very much.

Where xxx is the point in frames where the first subtitle ends and the second starts.

The first situation is very simple to use.
The second one is a bit tricky to find the exact point to trim, and is probably easier to use subtitle workshop as Dialhot suggested.
... and then ...
Reply With Quote
  #7  
06-25-2005, 03:20 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,when I try to load the following script:

Quote:
#LoadPlugin("C:\Programfiles\MovieStacker\Filters\ VSFilter.dll")
a=AviSource("D:\Video 1\CD1.avi")
b=AviSource("D:\Video 1\CD2.avi")
a++b
Ill get this AviSynth error:



It seems to me that it is a audio issue,but I havent been able to
find a way to fix it.Anyone have any ideas?
Thanks
Reply With Quote
  #8  
06-25-2005, 05:10 AM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Try this:
Quote:
#LoadPlugin("C:\Programfiles\MovieStacker\Filters\ VSFilter.dll")
a=AviSource("D:\Video 1\CD1.avi", false)
b=AviSource("D:\Video 1\CD2.avi", false)
a++b
-Anerboda
Reply With Quote
  #9  
06-25-2005, 05:21 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Yep,that works anerboda,but leads to another "problem",
I still have two mp3 audio files to be encoded,do you know of
a program to join the files before encoding ?
Reply With Quote
  #10  
06-25-2005, 05:58 AM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not quite sure of what you want to do, but if I get you right you want to join two mp3 files and encode them to ? (ac3 or mp2).
The only few times I had to do that I join the two .avi's in vdub and saved the audio as wav, and then encoded the wav with headache or besweet...
Hope this get you a little further

-Anerboda
Reply With Quote
  #11  
06-25-2005, 07:17 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Anerboda
The only few times I had to do that I join the two .avi's in vdub and saved the audio as wav, and then encoded the wav with headache or besweet...
That's the way I use also.
Reply With Quote
  #12  
06-25-2005, 10:40 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks,works great!
Reply With Quote
  #13  
07-08-2005, 02:13 PM
Aielman Aielman is offline
Free Member
 
Join Date: Nov 2003
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Wowiegirl,

if you are still looking to merge .srt files, download SubtitleTool, and its a snap. I gave up on Subtitle Workshop trying to do exactly the same thing this weekend, because STW crashes on my computer as soon as I load a file.
Reply With Quote
  #14  
07-08-2005, 05:39 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Don't feed the troll...
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtitles: Subs from .rawsub files... Jellygoose Subtitles 10 10-19-2004 03:48 AM
How to use.sub and .idx files to make subtitles? WOWIEGURL Subtitles 7 06-11-2004 11:16 AM
BeSweet: How to Merge two wav files? Zyphon Audio Conversion 3 10-22-2003 04:43 PM
KDVD with two sets of subtitles? syk2c11 Video Encoding and Conversion 1 07-16-2002 12:44 PM
KVCD steps - Can i merge the avi files to one big one? neosmatrix Video Encoding and Conversion 1 05-07-2002 11:30 AM

Thread Tools



 
All times are GMT -5. The time now is 03:47 PM  —  vBulletin Jelsoft Enterprises Ltd