Neat Video community Forum Index
www.neatvideo.com
Neat Video community
support - help - questions and answers - sharing experience and opinions - feedback - suggestions - backup contact
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AviSynth+ Neat Video v4 (Access Violation)

 
Post new topic   Reply to topic    Neat Video community Forum Index -> Bugs, issues
View previous topic :: View next topic  
Author Message
Nologic



Joined: 07 Jun 2015
Posts: 15

PostPosted: Sun Jun 07, 2015 10:58 pm    Post subject: AviSynth+ Neat Video v4 (Access Violation) Reply with quote

I'm getting the following error in MPC-HC (x64):
Code:
System exception - Access Violation
(<PathToAVS>, line 15)


Base Script:
Code:
LoadVirtualDubPlugin( "C:\Program Files\VirtualDub\plugins64\NeatVideo4.vdf" , "NeatVideo4" , 3 )

# This line causes all filters that don't have an MT mode explicitly use mode 2 by default.
# Mode 2 is a relatively safe choice until you don't know most of your calls to be either mode 1 or 3.
# Compared with mode 1, mode 2 trades memory for MT-safety, but only a select few filters will work with mode 1.
SetFilterMTMode( "DEFAULT_MT_MODE" , 2 )

# FFVideoSource(), like most source filters, needs MT mode 3
SetFilterMTMode( "FFVideoSource" , 3 )

# Now comes your script as usual
FFVideoSource( "<PathToVideo>" )

ConvertToRGB32()
NeatVideo4( "<PathToProfiles>\Profiles\<ProfileName>.dnp" , "<PathToPresets>\Presets\<PresetName>.nfp" )

# Enable MT!
Prefetch( 0 )


AviSynth+ (x64)
Update

\Windows\System32\
AviSynth.dll
DevIL.dll

\AviSynth+\plugins64+\
ImageSeq.dll
Shibatch.dll
TimeStretch.dll
VDubFilter.dll
Back to top
View user's profile Send private message
jpsdr



Joined: 11 Aug 2008
Posts: 193

PostPosted: Mon Jun 08, 2015 8:21 am    Post subject: Reply with quote

Try first without multi-threading, MT is not yet stable in avs+.
Back to top
View user's profile Send private message
Nologic



Joined: 07 Jun 2015
Posts: 15

PostPosted: Mon Jun 08, 2015 7:55 pm    Post subject: Reply with quote

*Edit*

Okay re did everything in x86...and remembered to reg Neat...and it is working in stock AviSynth 2.6.0 x86...have not tried MT yet or x64.

However AviSynth+ x64 it fails, with both single or multi threaded.
Back to top
View user's profile Send private message
jpsdr



Joined: 11 Aug 2008
Posts: 193

PostPosted: Tue Jun 09, 2015 11:25 am    Post subject: Reply with quote

Without MT, so with a script with only the following, it crashes :
Code:

LoadVirtualDubPlugin( "C:\Program Files\VirtualDub\plugins64\NeatVideo4.vdf" , "NeatVideo4" , 3 )

# Now comes your script as usual
FFVideoSource( "<PathToVideo>" )

ConvertToRGB32()
NeatVideo4( "<PathToProfiles>\Profiles\<ProfileName>.dnp" , "<PathToPresets>\Presets\<PresetName>.nfp" )
Back to top
View user's profile Send private message
Nologic



Joined: 07 Jun 2015
Posts: 15

PostPosted: Tue Jun 09, 2015 8:14 pm    Post subject: Reply with quote

Yup with AviSynth+...the non plus version it works fine.
Back to top
View user's profile Send private message
jpsdr



Joined: 11 Aug 2008
Posts: 193

PostPosted: Wed Jun 10, 2015 8:01 am    Post subject: Reply with quote

There is only 2 x64 version of Avisynth.
An old version called... i don't remember how, and Avs+, more recent and more stable. I personnaly used the last stable release, r1576 if i remember properly. Does the crash occurs also with this version ?
As far as i know, there is no "not+" x64 version.
Or, are you saying that also it crashes with the 32 bits version of Avs+ ?
Back to top
View user's profile Send private message
NVTeam



Joined: 01 Sep 2005
Posts: 2238

PostPosted: Wed Jun 10, 2015 3:04 pm    Post subject: Reply with quote

It seems that the x64 version of Avisynth has a different size of the CScriptValue structure that is used to pass arguments to a filter (as compared with the 64-bit VirtualDub). This makes NeatVideo crash when processing the preset name (the second argument of NeatVideo4). The size difference may be a bug in Avisynth x64.

Vlad
_________________
Neat Video team
noise reduction for video and photos
Back to top
View user's profile Send private message Visit poster's website
Nologic



Joined: 07 Jun 2015
Posts: 15

PostPosted: Sun Jun 14, 2015 12:12 am    Post subject: Reply with quote

@ jpsdr -

The crash only happened with x64 AviSynth+ r1825...I didn't try the earlier version of r1576...nor did I try it with the x86 build.

But I did use it just fine with x86 AviSynth 2.6.0 RC3 along with the x86 MT builds by SEt.

Granted for MT I had to change the threading to get Neat Video to work...but it works.

Example:
Code:
SetMemoryMax( 512 )

SetMTMode( 5 , 8 )
FFVideoSource( "<PathToVideo>" , fpsnum=25 , fpsden=1 , threads=1 )

SetMTMode( 2 )
QTGMC( Preset="Slow", SourceMatch=2 , EdiThreads=4 )
Crop( 12 , 2 , -12 , -2 )
Spline36Resize( 720 , 540 )
ConvertToRGB32()

SetMTMode( 5 )
LoadVirtualDubPlugin( "C:\Program Files (x86)\VirtualDub\plugins32\NeatVideo4.vdf" , "NeatVideo4" , 3 )
NeatVideo4( "<PathToProfiles>\Profiles\<ProfileName>.dnp" , "<PathToPresets>\Presets\<PresetName>.nfp" )

SetMTMode( 2 )
ConvertToYV12()

Distributor()


These are the settings I used to clean up a 4:3 DVD rip and get it to run stable on a i7 Ivy Bridge.

@ NVTeam -

I'll mention it to them and find out if they intend to keep compatibility with VDub x64..which I would imagine.
Back to top
View user's profile Send private message
jpsdr



Joined: 11 Aug 2008
Posts: 193

PostPosted: Fri Apr 22, 2016 10:20 am    Post subject: Reply with quote

A new guy on Doom9 have made significant improvements/fixes on Avs+. I talked to him about this issue, and he fixed it (at least, i tested and it worked for me). I hope he'll make a post soon on Doom9.
Back to top
View user's profile Send private message
NVTeam



Joined: 01 Sep 2005
Posts: 2238

PostPosted: Fri Apr 22, 2016 10:28 am    Post subject: Reply with quote

That is good news, thank you.

Vlad
_________________
Neat Video team
noise reduction for video and photos
Back to top
View user's profile Send private message Visit poster's website
jpsdr



Joined: 11 Aug 2008
Posts: 193

PostPosted: Fri Apr 22, 2016 2:51 pm    Post subject: Reply with quote

You can get the fix here : http://forum.doom9.org/showpost.php?p=1765421&postcount=1448

Edit :
To install the fix :
- Copy the x86 VDubFilter.dll into plugins+ folder.
- Copy the x64 VDubFilter.dll into plugins64+ folder.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Neat Video community Forum Index -> Bugs, issues All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group