Log in

View Full Version : Avisource ==> joining files has a Limit ??


Electric_Soul
19th October 2007, 19:48
Hello

The script is very simple

avisource("c1.avi").trim(0,109886)++avisource("c2.avi").trim(0,165197)++avisource("c3.avi").trim(0,110872)
++avisource("c4.avi").trim(166,78217)++avisource("c5.avi").trim(373,111189)++
avisource("c6.avi").trim(0,165123)++avisource("c7.avi").trim(0,111193)++avisource("c8.avi").trim(0,111194)
++avisource("c9.avi").trim(0,109388)++
avisource("c10.avi").trim(0,110519)++avisource("c11.avi").trim(0,111180)++avisource("c12.avi").trim(0,111312)

After adding file number 12(c12.avi) the audio is not availabe anymore.



http://electricsoul.org/pic/doom9/fileinfo.png

I even appended one single file 13 times(joing one single file 13 times instead of 12) in a row but the problem remains.

Now, is the maxiumum of appended files 10(adding up to 11) ??? That's a pretty low number.
I can append all the files I want using VirtualDub

I use VirtualDub 1.7.6 to view/play the AVS files. I doubled checked with MPC player.
The files are all DV files, from my cam. I captured them using virtualdub.


Thanks for any help :)

greets

Dark Shikari
19th October 2007, 21:21
Try DirectShowSource--I ran into the same problem with AviSource, where after a certain number of files it seems to crap out. DirectShowSource does not seem to have such a limit.

foxyshadis
19th October 2007, 21:29
It's not the # of files in this case, it's the length of the audio, exceeds the 4.3 billion sample limit. I don't remember exactly how to fix it, whether switching to float audio will work or not.

Fizick
19th October 2007, 22:19
avisynth version?

IanB
20th October 2007, 01:09
Generally you cannot return more than 2^31-1 (2147483647) audio samples thru the AVIFIle interface. Some cleaver apps cheakily crib this out to 2^32-2 (4294967294) [-1 is special].

In your case here you are missing out by a bee's dick. If you ResampleAudio(44100) you will just sneak in under the wire.

Alternatively you could just segment your project. A single 13+ hour video is pretty unwieldly.

Fizick
20th October 2007, 06:54
so Avisynth internally has all audio samples (it use int 64 bit), but it can not return all them to Virtualdub

sh0dan
21st October 2007, 11:49
@Fizick: Yes - you can use the SoundOut plugin to export your sound and mux later into a container that supports > 2^31 samples.