digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Subtitles (http://www.digitalfaq.com/archives/subtitles/)
-   -   Subtitles: MERGE two SETS OF .SRT FILES? (http://www.digitalfaq.com/archives/subtitles/13438-subtitles-merge-two.html)

WOWIEGURL 04-13-2005 10:15 PM

Subtitles: MERGE two SETS OF .SRT FILES?
 
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

kwag 04-13-2005 10:39 PM

Re: MERGE 2 SETS OF .SRT FILES
 
Quote:

Originally Posted by WOWIEGURL
Should I use copy /b a.srt + b.srt ab.srt instead?

Did you try it :?:

-kwag

Dialhot 04-14-2005 03:50 AM

@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.

muaddib 04-15-2005 01:47 PM

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.

WOWIEGURL 04-15-2005 09:27 PM

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.
:wink: I posted my thanks in the quote. :oops:

digitall.doc 04-16-2005 08:37 AM

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 ... :?: :lol: :lol:

the viking 06-25-2005 03:20 AM

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:

http://www.digitalfaq.com/archives/i.../2005/06/2.jpg

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

Anerboda 06-25-2005 05:10 AM

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

the viking 06-25-2005 05:21 AM

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 ?

Anerboda 06-25-2005 05:58 AM

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 :D

-Anerboda

Dialhot 06-25-2005 07:17 AM

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.

the viking 06-25-2005 10:40 AM

Thanks,works great!

Aielman 07-08-2005 02:13 PM

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.

Dialhot 07-08-2005 05:39 PM

Don't feed the troll... :roll:


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.