Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th July 2007, 00:44   #1  |  Link
signal
to noise
 
Join Date: Dec 2005
Posts: 96
Exception Error with subtract and histogram

I originally posted a question in the usage forum for trying to find the best way to show the noise captured in a clip for demonstration purposes.

I created a dvd with colorbars (generated by avisynth colorbars) and then captured a Huffyuv clip with vdub.

But a problem has come up and thought this was probably the better place to discuss it.

When trying to use subtract or historgram I end up with the following error (using AVISynth 2.57)
CAVIStreamSynth: System exception - Access Violation at 0x0, reading from 0x0

The avisynth scripts used are:
Code:
clip = avisource("d:\cb4sub.avi")
subtract(clip.trim(1,0),clip)
and
Code:
avisource("d:\cb4sub.avi").histogram(mode="luma")
When using subtract, the error pretty much occurs right away.
With histogram, I did get one successful playback however subsequent playbacks the error either shows up right away or after a few seconds.

It was pointed out that possibly excessive seeking maybe crashing the Huffyuv codec.

[update] In trying a couple of other codecs (including lagarith) things seem better but still eventually get the exception error. It appears that the functions are still struggling with this clip no matter what codec I use.

Sample Clip: cb4sub.avi (47MB Huffyuv)

Is there some other processing that needs to occur before feeding subtract or histogram or is there indeed something not quite right here?

Last edited by signal; 30th July 2007 at 02:23.
signal is offline   Reply With Quote
Old 30th July 2007, 07:27   #2  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
I downloaded the file and can't recreate any problem (using avisynth 2.5.7 31/12/06). But what I did notice is the file can't be decoded correctly by ordinary huffyuv, only ffdshow which would seem to indicate it was captured using ffdshow with adaptive huffman tables turned on. Have you tried updating ffdshow?
squid_80 is offline   Reply With Quote
Old 30th July 2007, 07:47   #3  |  Link
signal
to noise
 
Join Date: Dec 2005
Posts: 96
Very weird, this is a fresh XP install and I don't have ffdshow installed.

It was captured with VDub 1.7.2, Huffy 2.1.1, and an Osprey 210 with their latest drivers. Options in VDub were at default.
Colorspace selected in the Osprey is YUY2.

Playback of the AVI in MPC works fine and don't see ffdshow showing up in graphedit.

It also happens with lagarith so wondering if Vdub or the colorspace selected is coming into play here. I'll try Vdub 1.6.19 and an alternate colorspace.

BTW - AVIsynth 2.56 pretty much croaks on this right away but from what your saying that's no surprise.
signal is offline   Reply With Quote
Old 30th July 2007, 09:21   #4  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Whoops, my mistake - slightly different versions of huffyuv detect interlaced encoded files differently and my version was misidentifying it. Disregard what I said about ffdshow, but I still can't get it to crash at all.
squid_80 is offline   Reply With Quote
Old 30th July 2007, 10:08   #5  |  Link
signal
to noise
 
Join Date: Dec 2005
Posts: 96
I just tried it on a different system and same thing was happening.

With Vdub I did a direct stream copy with no audio and saved as "Old AVI Format" and it seems to work.

Tried the new file on the original system and seems to be ok.

Tried the original clip on a third system without audio hardware (yet) and it worked.

This was for both subtract and histogram.

I can reproduce the problem with the original clip on the first two systems so for some weird reason either the audio or avi format seemed to influence the problem on these two systems.

Thanks for checking on this though.
signal is offline   Reply With Quote
Old 30th July 2007, 12:13   #6  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
No problems here with it:

VirtualDub 1.7.0
HUFYUV 2.1.1
Avisynth 2.5.7
Athlon 64 FX-55
Guest is offline   Reply With Quote
Old 30th July 2007, 15:05   #7  |  Link
signal
to noise
 
Join Date: Dec 2005
Posts: 96
Yea, I'm not sure why it wouldn't work on two systems but did on a third but the "fix" I did in my last post seems to work fine.

Update: Got a tip to use audio=false on avisource and that works as well.

So something screwball with the audio on my systems was the reason.
Using Realtek HD with the R170 drivers on both.

Regardless, sorry to trouble you all and thanks for the help.

Last edited by signal; 30th July 2007 at 15:19.
signal is offline   Reply With Quote
Old 31st July 2007, 00:09   #8  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
I noticed the audio was 96000Hz but it didn't occur to me that it might be the problem.
squid_80 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.