Log in

View Full Version : Avisynth does not read over 1GB?


Bugi
10th March 2004, 03:07
I have got a really strange problem, and I assume this is Avisynths fault.

I am trying to encode a 1,4GB avi file to MPEG2 using an Avisynth script:
avisource("E:\Movies\Flames.avi")
LanczosResize(720,390)
AddBorders(0,93,0,93)
ConvertToYUY2()
ResampleAudio(44100)

The path to the file is correct.

Once I load this script in either TMPGenc or CCE, it returns me the error "ACM failed to suggest a compatible PCM format (C:\...\Flames.avs, line 1)"

When I change the path to another Xvid movie (but with 700MB size):
avisource("E:\Movies\Finding.avi")
It loads fine in both encoders.

When I load the 1,4GB file directly into CCE or TMPGenc, they read it without problems.

I have tried with the latest dev-3 and dev-4 codecs, and the latest ffdshow, it didn't help.

So it seems to me Avisynth cannot handle files with a size of 1,4GB... but I couldn't find anything about this in the forums here, nor on the Avisynth site.

(btw I'm using Avisynth 2.5.4)

stickboy
10th March 2004, 03:10
AviSynth has no problems opening AVI files well over 1 GB.
Once I load this script in either TMPGenc or CCE, it returns me the error "ACM failed to suggest a compatible PCM format (C:\...\Flames.avs, line 1)"This error message is audio-related... what format is the audio in?

Mug Funky
10th March 2004, 08:13
ah. i'd wondered why VfW was spitting out some of my bigger files...

i know there's a 1GB limit on wav files, but there wouldn't be anything near 1GB of sound in a 1.4GB movie.

a good test would be to load with:

avisource("E:\Movies\Flames.avi",audio=false)

and see what happens there.

Bugi
10th March 2004, 11:27
Originally posted by stickboy
AviSynth has no problems opening AVI files well over 1 GB.
This error message is audio-related... what format is the audio in?

the audio is in AC3, 192kbit, it has the size of 388MB. AC3filter is installed.
However I'll try the suggestion in the previous post.

Bugi
10th March 2004, 11:50
It solves the problem if I put in the audio=false
Forgive my ignorance, I thought AviSynth did only supply the videopart. And besides, the programs did open the files themselves directly without nagging about any PCM. Maybe there is a bug in AviSynth afterall?

mf
10th March 2004, 12:15
No. AVISynth attempts to decode the audio stream using ACM (Audio Compression Manager). There is only one ACM AC3 codec available afaik and that's made by FccHandler - you claim to have AC3Filter installed but it's DirectShow. If you wished to decode the audio using Directshow you'd have to do this:
AVISource("Flames.avi").AudioDub(DirectShowSource("Flames.avi")
But given that Dshow is a pain in the * for AVISynth I'd only think it'd complicate matters.