View Full Version : Avisynth 2.5 problems with cce
Phlex
14th January 2003, 00:35
I'm using avisynth 2.5 file version 2.5.0.0. When I load my avs script file into VDM 1.4.13.1, VDM is able to load my script and I can view it. However, when I try loading my avs in to cce v2.50, cce crashes every single time. I rechecked my avs file. I removed all my YV12 filters just to simplify the matter. My d2v file was created with dvd2avi v1.76
My avs script:
LoadPlugin("D:\Beta\YV12Filters\Mpeg2Dec394\Mpeg2Dec3.dll")
Mpeg2Source("D:\Beta\Movies\Test\Test.d2v",cpu=4,iPP=True)
YV12toYUY2(interlaced=true)
ResampleAudio(44100)
I than tried using Nic's Mpeg2Dec
LoadPlugin("D:\Beta\YV12Filters\MPEGDecoderYV12\MPEGDecoder.dll")
MPEGSource("D:\Beta\Movies\Test\Test.d2v")
ConvertToYUY2()
ResampleAudio(44100)
I had tested avisynth v2.5 about 2 months ago, I can't remember which file version of avisynth I was using at the time. With the earlier build of avisynth 2.5, I had no problems with CCE and using Marc FD's Mpeg2Dec3 v.93 for YV12. If I go back to avisynth 2.07 dll CCE loads the above script. With 2.07 I use mpeg2dec2.dll and remove the converttoyuy2(). Unfortunately I deleted my older verion of avisynth 2.5 and so I can't really say for certain that it's a problem with the latest avisynth 2.5.
This is really weird, I've already searched the board for anyone having problems with cce and the lastest build of avisyth and nada. It's very difficult to go back to v2.07 after having tested v2.5 becauses of the speed difference.
Phlex
denfert
14th January 2003, 08:03
same here
CCE 2.50 doesn't work with avisynth 2.5 and MPEGDecoder YV12, but works fine with CCE 2.66 or 2.64
only avisynth 2.07 and MPEGDecoder works
cjv
14th January 2003, 09:32
I can confirm this.
Avisynth 2.5a causes BSOD, complete system freezes, and/or random cuts and lines to appear in my encodes when using CCE. The same script with avisynth 2.07 (using mpeg2dec from Gknot) always works perfectly.
-----
LoadPlugin("C:\Video\2.5\mpeg2dec3_094.dll")
or
LoadPlugin("C:\Video\2.5\mpeg2dec.dll") // recent compile from neuron2
mpeg2source("C:\Video\movie.d2v")
ConvertToYUY2()
or
YV12toYUY2()
-----
a screenshot of the artifacts:
http://members.shaw.ca/cjv99/cce-lines.JPG
Weird thing, problems only occur on Athlon Tbird 1400.
A P4 1.4 using same versions/script/vobs not affected.:confused:
cjv
Phlex
14th January 2003, 20:19
cjv and denfert, could you guys tell me what file version of avisynth 2.5a you are using? Right click on avisynth.dll and click on the properties. Are you guys also able to load and view your avs file with VirtualDubMod? I know when I was using an earlier version of 2.5a avisynth.dll it worked fine with CCE. The one I'm using now is dated 1-10-03 and it's file version 2.5.0.0.
I realize that many do not have any problems with the lastest avisynth 2.5a and CCE otherwise Sh0dan would of have never released it. Anyone have an earlier file version of avisynth 2.5a that was released about 2 months ago? I know Sh0dan is ready to release 2.5a to beta and hopefully I'll try again with the new 2.5b avisyth.
Many thanks to Sh0dan and to all the plugin developers!
SansGrip
14th January 2003, 20:46
I've had a couple of reports that FluxSmooth crashes, but only with CCE (one person said only with n-pass encoding). This may or may not be related.
Edit: I assume they're using 2.07.
cjv
14th January 2003, 21:12
I assume that most who use CCE still use Avisynth 2.07. They are probably using DVD2SVCD, or doing a straight MPEG2->MPEG2 encode to fit one DVD-R.
I have only recently started MPEG2/CCE encoding. I mostly do XviD/MPEG-4, but I'm getting a DVD burner very soon. Thus, I have only tried the past 2 Avisynth 2.5a versions with CCE, including the latest 1-10-2003 you mention. I can use VDMod, and any other programs, thus there is no bug in Avisynth 2.5a. In my case, it appears it's just the unlucky combination of Avisynth 2.5a, the YV12 mpeg2 decoders, Athlon TBird, VIA chipset, and CCE.
In time, one of the developers will change one of structures, variables, registers, etc. in any of the above programs...or will use a different compiler optimization that will generate slightly different machine code. Then, I bet the conflict will suprisingly fix itself.
cjv
Phlex
14th January 2003, 21:37
I don't use DVD2SVCD anymore, great program but I like having more control of the entire process when I do it manually. I've switched over to 2.5a because of the speed increase. Although I haven't encoded anything recently, I am waiting for 2.5 beta to start encoding again. Any ways I am also using an AMD Palamino 1900+ with a via 266a chipset. I have never had any problems before with 1.x/2.x or 2.5a. I wish I had kept my older 2.5a dll. I'm sure in time it will get fixed as you stated cjv.
@SansGrip: I've used FluxSmooth and NoMoSmooth in the past without any problems with CCE using v2.07 and an earlier 2.5a, great plugins btw, thanks! In fact I'm testing the lastest FluxSmooth with 2.07 and no problems with a 5 pass with CCE. In trying to isolate my problem I didn't load any plugins except for the various mpeg2 decoders and thats when CCE crashes. I've tried Marc FD, Nic, and a modified mpeg2dec YV12 that was uploaded by neuron2 with no success.
sh0dan
14th January 2003, 23:13
Originally posted by cjv
Avisynth 2.5a causes BSOD, complete system freezes, and/or random cuts and lines to appear in my encodes when using CCE. The same script with avisynth 2.07 (using mpeg2dec from Gknot) always works perfectly.
[...]
Weird thing, problems only occur on Athlon Tbird 1400.
A P4 1.4 using same versions/script/vobs not affected.:confused:
cjv
(this might be a long shot)
Have you tried underclocking your system? As many things have been optimized it will produce a heavier CPU/memory usage, and will therefore stress your system more. Tbird 1400 is one of the hottest CPU's around, so maybe it's overheating. You could try lowering your system bus to 100Mhz, and try to see if that helps.
I've also had XP lockups, until I found that slightly lowering my system bus speed 100% cured these problems.
There is no way that AviSynth could cause BSOD (in NT/2000/XP anyway).
cjv
15th January 2003, 00:15
@sh0dan:
Good idea. I have underclocked 100-200mhz by dropping the multiplier, but never thought to drop the fsb. This will slow down everything, including RAM access, so it may be worth a shot.
cjv
vidiot
15th January 2003, 10:12
Originally posted by sh0dan
(this might be a long shot)
I've also had XP lockups, until I found that slightly lowering my system bus speed 100% cured these problems.
...that doesn´t make sense, because you´ve paid for the power...:confused:
I use a XP 1900+ in an LOW NOISE Tower and the highest temperatire I got reported from MB (it´s not precise - I know) is 51°C CPU and 39° - 40° C inside the tower.
2 x HD IBM 7200U/min
420 Watt Power Supply
All vents driven by temperature-sensors.
No lockups even with long jobs during summertime.
If your problems are gone by lowering your bus-speed, you should investigate in this problem furthermore - it´s maybe worth the time, I guess.
Harald
sh0dan
15th January 2003, 10:43
@vidiot: I've got approximately the same specs as you - 2200+ XP TBred A, Zalman passive cooling, running at 48C idle and 57C under full CPU usage.
My system used to lock up, when the temperature of the CPU hit approx. 54C, so I thought it was a CPU failure. Now, after I lowered the system bus to 122Mhz, the temperature can go higher without causing any problems. I have been able to run at much more agressive memory-timings with the lower system bus, so the actual fps drop is something like 19fps->18fps. Not much of a sacrifice for a stable system.
It is however annoying that something isn't capable of running the speed I bought it for - wether it being the CPU, the Asus nForce2 MB or the PC3200 RAM. However, silence and stability is more important to me, than a few Mhz.
vidiot
15th January 2003, 10:56
"However, silence and stability is more important to me, than a few Mhz"
@Shodan: The same goes with me! silence is the bigger luxury!
You say your CPU runs @47°C when idle?
Try VCOOL (http://vcool.occludo.net/)
- mine is running @29°C when idle...
Harald
BTW: Thank you for your work on Avisynth! I have much fun with it.
Wilbert
15th January 2003, 11:28
"limited support for AMD 761"
Means it doesn't work for AMD 761?
baker
15th January 2003, 20:10
http://forum.doom9.org/showthread.php?s=&threadid=43078
slight discovery made.
Baker
trbarry
16th January 2003, 17:15
Historically, many strange bugs that seem to be interactions between different filters in Avisynth and its callers have been because someone uses mmx instructinos and leaves out an emms assembler instruction. This can cause a filter or even Avisynth to return to the caller with the floating point registers in an undefined state.
I wonder if there is a point in Avisynth that gets control on return from each filter? If so it would probably be justified to put this one single very light weight instruction there and not have to wonder about it.
- Tom
SansGrip
16th January 2003, 20:45
Originally posted by trbarry
it would probably be justified to put this one single very light weight instruction there and not have to wonder about it. As someone who has, historically, forgotten simple things like an "emms", I second that :D.
sh0dan
16th January 2003, 21:33
As the final bitblit in 2.5 is done in mmx, with the proper emms instruction that should actually not be problem anymore.
trbarry
16th January 2003, 21:39
I was more thinking about one filter that uses float requesting a record from another one that uses mmx and returns without emms. But maybe that's covered also, no idea.
But that's probably the type of things that from time to time cause probablems only when filters seem to be in a certain order.
Vdub these days will even catch it and complain if you return to it with a bad emms state.
- Tom
dvd2svcd
30th January 2003, 15:18
I dunno, but I just installed avisynth 2.5 beta and I'm trying to load this script into CCE 2.5:
LoadPlugin("C:\Programmer\AviSynth 2.5\plugins\MPEGDecoder.dll")
mpeg2source("C:\Movie\DVD2AVI.D2V")
BicubicResize(480,480,0.0,0.55)
ResampleAudio(44100)
ConvertToYUY2()But CCE 2.5 just quits on me when I load it. I've also tried mpegsource (nic's) and dividee's mpeg2source. Since this thread is a ½ month old I was wondering if this is happening to others still? If you want my computer specs it's down below.
Recap: No matter what I try with avisynth 2.5 and cce 2.5, cce just quits, no error messages, nothing.
onesoul
30th January 2003, 15:34
Look at what DDogg said at this thread (http://forum.doom9.org/showthread.php?s=&threadid=44362&pagenumber=2).
dvd2svcd
30th January 2003, 15:38
I have already tried that. It doesn't work. If you read his post again you'd also see that he has edited and said that the ConvertToYUY2 works. In fact it was his script I was trying to use. See here:
Originally posted by DDogg
Later Edit: While the above reg will allow CCE 2.5 to open AVS 2.5, the ConvertToYUV2 at the end of your script is a Much better choice as CCE is considerably faster when using it. The numbers are 2.068 RT using ConvertToYUV2 Vs. 1.76 RT using Divx 5.03 to handle YV12 (on my old 1.4 TBird))
Using this script:
LoadPlugin("MPEGDecoder.dll")#Comes with 2.5 (plugins)
MPEGSource("D:\misery\DVD2AV~1.D2V") #Note NOT MPEG2Source
BicubicResize(480,480,0.0,0.55)
ResampleAudio(44100)
ConvertToYUY2()#REM this out if you want to use Divx to handle YV12
@Neuron2: Why did you edit my post?
onesoul
30th January 2003, 15:47
For what I understood from DDogg you would still have to add that line to the registry to be able to open an avs script, I am sorry if I misunderstood.
Another way was refered by Trilight of opening an already created ECL or something like that at the same thread.
Regards
sh0dan
30th January 2003, 16:07
Note for CCE 2.50 users:
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 I made a function to add audio to a clip.
It is placed in the Share Funtions section, here! (http://www.avisynth.org/index.php?page=AddAudio)
(Some FAQ's should probably be updated - dunno if that means you wilbert ;-)
onesoul
30th January 2003, 16:24
Sorry, I'm an idiot, I see now that I misunderstood what DDogg said. And probably sh0dan came up with the solution.
Guest
30th January 2003, 16:42
Originally posted by dvd2svcd
@Neuron2: Why did you edit my post? I hate it when posts have long lines that force people to scroll horizontally. As moderator, I exercise my discretion to improve usability/readability of the forum. :)
Specifically also, you were missing a carriage return in your code that caused two lines to run together. All I did was add the carriage return.
I hope it is acceptable. PM me if you feel the policy is bad. Thank you.
Wilbert
30th January 2003, 16:50
Note for CCE 2.50 users:
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 I made a function to add audio to a clip.
It is placed in the Share Funtions section, here!
Hmm, didn't know that.
(Some FAQ's should probably be updated - dunno if that means you wilbert ;-)
We will do that ...
sh0dan
30th January 2003, 17:50
@Wilbert: It was a bug - when there is no audio in a clip, the sample rate is set to 0. When resampling audio was selected, this was changed to 44100, and the file magically appeared to have audio. This was causing crashes in some cases.
So ResampleAudio now respects when a clip has no audio.
baker
30th January 2003, 18:44
If I can't get an avs file to go into CCE I simply make my own CCE ECL file and load it in, its easy really,
Baker
dvd2svcd
30th January 2003, 22:49
neuron2: Perfectly acceptable :D I was only curious. Thanks for fixing it.
onesoul
30th January 2003, 23:09
@dvd2svcd
Does the add audio resolve the problem? I am asking because although I use 2.66, I would like to know if the audio thing was the problem. (I haven't tested yet avisynth 2.5 with cce 2.66).
DDogg
30th January 2003, 23:43
Replicatable:
When the instructions above in your post are followed:
http://www.avisynth.org/index.php?page=AddAudio
an out of memory error occurs in all players when attempting to play Version.avs
When addaudio.avsi is removed from the plugin dir, all returns to normal.
I WAS pulling what is left of my hair out.
Verified on 2 machines Athlon and P3 using either 2.07 and 2.5
sh0dan
31st January 2003, 00:04
A "}" was missing at the end. The function is corrected now.
Thanks for the report!
DDogg
31st January 2003, 00:16
Thanks for the quick service and "Hats off" to all of you folks working on this project.
/edit balance deleted as it was not correct
dvd2svcd
31st January 2003, 09:22
I just wanted to let you know that by adding the below two lines at the end of your script also fixes the CCE problems and is playable in windows mediaplayer.
ConvertAudioTo16bit()
AssumeSampleRate(44100)
sh0dan
31st January 2003, 10:47
Assumesamplerate also shouldn't do this. Don't use this solution - it's a bug, not a feature. It can cause unexplained crashes on some sources.
dvd2svcd
31st January 2003, 11:27
Sorry, I had no idea.
BTW, is there a CVS for Avisynth 2.5 so I can follow the progress of the development like with Avisynth 2.0x
Wilbert
31st January 2003, 11:32
AviSynth 2.0 subbranch = AviSynth v2.0x.
AviSynth 2.1 subbranch = AviSynth v2.5x.
struct_mod subbranch = (will be) AviSynth v3.x
Main branch = (is still) AviSynth v2.0x
Eyes`Only
26th March 2003, 07:46
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 I made a function to add audio to a clip.
I'm working on adding avs2.5 support to DoItFast4U! but I don't want to have to rely on users to create this file and/or have it in their 'plugin' directory. Can i just use LoadPlugin("<path>\addaudio.avsi") in an .avs file? I'd rather have the plugin in my install directory and relieve the user of one more potential error.
sh0dan
26th March 2003, 08:26
You can either place the function before the script, or use import("addaudio.avs").
Eyes`Only
26th March 2003, 08:28
Thanks for the quick response. I think I'll use the import("addaudio.avs") method. Sounds great!
sh0dan
26th March 2003, 08:29
No - you can import files with all extensions.
Eyes`Only
26th March 2003, 08:47
I just gave it a try and it played fine in WMP but crashed CCE 2.5.
My avs file I imported into CCE2.5=
import("C:\Program Files\DoItFast4U\avs\addaudio.avs")
LoadPlugin("C:\Program Files\DoItFast4U\avs\MPEG2Dec3.avs2.5.dll")
Mpeg2Source("VTS__01_P06.16~9_1.d2v")
ConvertToYUY2()
My addaudio.avs=
function AddAudio(clip v1) {
v2 = Blankclip(v1,audio_rate = 44100, sixteen_bit=true)
v1 = AudioDub(v1,v2)
return v1
}
Any idea what I'm doing wrong?
Eyes`Only
26th March 2003, 08:50
n/m I forgot the addaudio() line :D
Hmmm.. so we lose the ability to preview in wmp now? PowerDVD and WinDVD won't play it either... :(
Is this going to be a permanent workaround, or are we going to see a solution that allows us to still preview soon?
Eyes`Only
26th March 2003, 09:23
incidentally,
I thought 2.5 was faster than 2.07? I'm getting 0.35 less than I normally get in CCE...
Does the ConvertToYUY() add enough overhead to make this venture non-worthwhile?
sh0dan
26th March 2003, 09:32
Post your script. It is most likely due to unoptimized filters. Not all filters (most notably decomb) has not been optimized for YV12.
And no - the conversion was also made in earlier versions (if you're using an MPEG2/MPEG4 Source) - in 2.5.1 even this conversion has even been made faster. In any case you should _at least_ be able to reach the same speed as 2.0.
You write "I just gave it a try and it played fine in WMP " ... and ... "Hmmm.. so we lose the ability to preview in wmp now?" - That doesn't really make sense to me!? :confused:
Eyes`Only
26th March 2003, 09:35
My exact script is:
import("C:\Program Files\DoItFast4U\avs\addaudio.avs")
LoadPlugin("C:\Program Files\DoItFast4U\avs\MPEG2Dec3.avs2.5.dll")
Mpeg2Source("VTS__34_P01.4~3_1.d2v")
ConvertToYUY2()
addaudio()
All I do is DVDr, so very little scripting is required. And my video is clean, being from DVD. I know how much of a loss I suffer thru decomb.dll, but in this instance, I'm not using it. (Oh, and I suffer <.0.70 decrease with decomb.dll!)
sh0dan
26th March 2003, 10:26
Depending on the material you might use "ConvertToYUY2(interlaced=true)", to get proper chroma upsampling. (requires 2.5.1)
There is no reason why this should be slower on your machine. What's your system - and what are the exact numbers? (Framerate with 2.0 (without convert) and with 2.5).
Eyes`Only
26th March 2003, 18:23
OK I guess I'm only seeing a .15 decrease between 2.07 and 2.51, but still, that's a decrease.
2.07 = 1.55 in CCE
2.51 = 1.40 in CCE
You write "I just gave it a try and it played fine in WMP " ... and ... "Hmmm.. so we lose the ability to preview in wmp now?" - That doesn't really make sense to me!? The first was stated before I had the addaudio() line in there, the second afterward. With the addaudio() line, I get a blank screen in WMP, though it technically 'plays'.
arlsair
26th March 2003, 19:56
Have you something special acivated in the "mpeg2dec3.def" like post processing what you haven`t for avisynth 2.0x ?
Eyes`Only
26th March 2003, 20:11
my mpeg2dec3.def file:
d2v="your default project file here.d2v"
cpu=0
idct=2
iPP=false
moderate_h=20
moderate_v=40
showQ=false
fastMC=false
cpu2=""
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.