View Full Version : CCE 2.50 crashes loading avs script
cinephile
25th April 2003, 20:29
I'm trying to re-encode and resize a DivX avi to MPEG2 (for DVD-R) anamorphic, using the following script:
AviSource("C:\divX\Spirited Away - Part 1 [no subs].avi")
BicubicResize(672,448,0,0.6,0,0,640,352)
AddBorders(24,16,24,16)
ResampleAudio(44100)
When I load the avs file into CCE it crashes out. The video codec used in the avi is (4CC:div3, DivX 3 Low-Motion).
I've done other divX-->DVD-R conversions no problem using CCE and Maestro etc. and using the same codec/other codecs.
Also, I'm familiar with CCE and the robshot method (for DVD authoring of DVD sources).
Any help would be appreciated, this is driving me mad.
Thanks.
DDogg
25th April 2003, 21:30
So, how can we help you if we do not know the version of avisynth you are using? :)
cinephile
25th April 2003, 21:51
Sorry, it is Avisynth 2.08
DDogg
26th April 2003, 02:19
http://www.avisynth.org/index.php?page=AddAudio
http://forum.doom9.org/showthread.php?s=&threadid=48928&highlight=avisynth+2.08+cce
From Avisynth.org
Since ResampleAudio does no longer add empty sound to a clip when used, this workaround can no longer be used for avoiding crashes in CCE 2.50. Therefore a function has been made to add audio to a clip.
Save the following text in a file called "addaudio.avsi" and place it in the AviSynth plugin directory:
This is what I have been using and it a slight modification to what is found on Avisynth.org. It was suggested by wmansir and does not suffer a couple of the problems like the original such as not being able to be played in WMP.
--------------------------------------------------------------------------------
function AddAudio(clip v1) {
v2 = Blankclip()
v1 = AudioDub(v1,v2)
return v1
}
--------------------------------------------------------------------------------
To use the script, use:
AddAudio() (instead of ResampleAudio)
I should add that people might be confused as they may see DVD2SVCD still using the Resample Audio statement with Avisynth 2.08 and 2.51. Looks can be deceiving. Due to the need to keep compatibility in DVD2SVCD, a similar function to the above is imported and referenced under the old name. As I understand it, the "order of precedence" allows a function of the same name to take precedence over a command of the same name. So, in truth, DVD2SVCD uses a form of the above workaround even though it is not evident at first glance.
cinephile
26th April 2003, 11:48
DDogg, thanks for the reply.
Tried it but still didn't fix.
I have never had CCE crash on me except when I have loaded a dodgy script.
However, I have noticed that for this DivX, I do not have the audio codec installed - would that screw CCE up when I drag in the avs? Other DivX files I have done didn't use this codec and they loaded OK in CCE.
The codec is WAVE_FORMAT_AC3, according to Gspot. I can hear the sound in a player even though it says I don't have the right audio codec.
I installed AC3Filter but that didn't help (unless I specifically have to configure it?). Trying Nimo Codec pack 5 now.
Am I on the right track?
TIA.
cinephile
26th April 2003, 12:02
I installed the AC3 DirectShow Filters from the Nimo codec pack and Gspot now says the AC3AUDI codec is installed :-)
However, CCE still generates a fatal error when I drag in the avs file.
The script is generated by FitCD so I don't think it has any errors since I have used this method for other successful divX re-encodes.
What am I doing wrong?
cinephile
26th April 2003, 12:17
OK, another update. I've noticed that DVL divX files are the ones crashing in CCE. Other avs files on non-DVL divX files drag and load OK.
Is there anything special with these DVL files?
DDogg
26th April 2003, 15:20
You should try the AVI2SVCD portion of DVD2SVCD first unless you are just trying to teach yourself the manual steps.
I never trust the audio in a divx done by somebody else and don't even try to load a divx in cce until I have loaded in VDub, saved audio as wav, and then do a script like:
V=Avisource("divx.avi",false)#"false" kills audio
A=wavsource("wavfromvdub.wav")
Audiodub(V,A)
OR do this
Avisource("divx.avi",false)#"false" kills audio
AddAudio()
This can not be used in CCE 2.50 except to load the AVS without crashing. You then must uncheck audio in CCE 2.50 and save the ECL as CCE 2.50 will not do audio without crashing. You have to encode the audio to MP2 using other software and then mux them later.
If using 2.66.01.07 or 2.67.09 the above will work and will encode the audio as a mpa. Most would not do it this way. Besweet will do a much better job of boosting and normalizing the audio and it uses tooLame to make the mp2.
Also, 2.66.01.07 or 2.67.09 will allow encoding audio via an external wav file. Click on the "setting" button, double click on the filename you see then and when the sub-window pops up choose "Use external audio and load the external wav file. Exit all the windows and keep "audio" checked. Again, this will not work in CCE 2.50
If the above will not load you have some type of codec problem, but I have assumed all along that this divx would play in sync in WMP. This is correct? If not, I will come through the wires of the internet and strangle you! :)
cinephile
26th April 2003, 20:37
Thanks DDogg, that sorted it - avs now loads into CCE.
Used your script:
Avisource("divx.avi",false)#"false" kills audio
AddAudio()
This killed the audio which was causing the problem, so I can now re-encode as normal, then convert the wav from VDub to av3 for muxing in Maestro.
Thanks for all your help - you have been patient and thorough (so you won't need to come through the wires of the internet and strangle me ;) ).
DDogg
26th April 2003, 21:17
Happy to help
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.