Log in

View Full Version : concatenating multiple sources


dimzon
22nd March 2004, 11:09
Hi.
My friend ask me to help him to convert his marriage DV into MPEG4 content to fit 4 hours of DV video onto 1 4.7GB DVD-R

source DV video was splited by 45 files... I had never work with DV content before.
I wrote such script:


DirectShowSource("c:\dv\001.avi",fps=25)+\
DirectShowSource("c:\dv\002.avi",fps=25)+\
DirectShowSource("c:\dv\003.avi",fps=25)+\
<skiped :) >
DirectShowSource("c:\dv\045.avi",fps=25)
UnDot()
Deen()


And i got "not enought memory" message. I saw that AviSync eat more then 1GB RAM during concatenation so I can't concatennate more than 10 pieces at once. So I can't do solid 2-pass encoding :(

Does anybody know how I can concatenate all of those 45 pieces to make "normal" 2-pass encoding?

sh0dan
22nd March 2004, 11:23
Try using AviSource instead. (No DV-type 1 audio, though).

Futhermore it'll probably be significantly easier, if you use SegmentedAviSource / SegmentedDirectShowSource.

esby
22nd March 2004, 16:01
Shodan might have answered perfectly correctly...

Some thinking about it...

you could try nesting the directshowsource()

directSource.avs

DirectShowSource("c:\dv\001.avi",fps=25)+\
DirectShowSource("c:\dv\002.avi",fps=25)+\
DirectShowSource("c:\dv\003.avi",fps=25)+\
<skiped >
DirectShowSource("c:\dv\045.avi",fps=25)


process.avs:

avisource("direcSource.avs")
UnDot()
Deen()


and load process.avs in the application;

if memory is eaten by the length of the filter chain
due to the splice and the presence of other filters behind it,
would the problem be fixed this way?

esby

Manao
22nd March 2004, 16:39
The issue here is the 40 parallel instanciations of a direct show graph.

With your script, esby, the AVISource("directshow.avs") will launch a second instance of Avisynth, but it won't resolve memory issues.

Si
22nd March 2004, 22:20
Maybe you could join the various segments back together using VirtualDub in Directcopy mode and load this one (or several if using Win98) file into Avisynth.

regards
Simon

WarpEnterprises
22nd March 2004, 23:34
Believe sh0dan.
1) if you have type2-DV use SegmentedAviSource
2) if you have type1-DV convert it first to type2 (easier than separating audio) - there is a free conversion prog which I can't remember atm.

dimzon
23rd March 2004, 11:16
Originally posted by WarpEnterprises
2) if you have type1-DV convert it first to type2 (easier than separating audio) - there is a free conversion prog which I can't remember atm.
Anybody know such prog?

Manao
23rd March 2004, 11:29
Look simply here : http://forum.doom9.org/showthread.php?s=&threadid=33519

stickboy
23rd March 2004, 12:23
Canopus also provides a free DV converter (http://www.canopus.us/US/products/DV_file_converter/pm_dv_file_converter.asp).