Log in

View Full Version : DG NV Tools usage in StaxRip


stax76
3rd December 2009, 17:42
There is a increasing amount of request regarding DG NV Tools usage in StaxRip
so I try to improve the integration. By default the source filter for AviSynth is empty
in StaxRip and since it's empty StaxRip generates a source filter that can open
the source file. If there is a source filter and StaxRip believes the source filter
is not compatible it will overwrite it. If there is a bug in StaxRip then it might be
possible to workaround it to make StaxRip believe the source filter it expects
exists by using a comment. Better would however to tell me about problems
so I can upload a hotfix.

For dga and dgv files StaxRip expects the source filter to be either
avcsource() or dgsource() and if it's not it generates avcsource() or dgsource()
depending on the plugin it finds and if it don't find a plugin it aborts.

For dgm files StaxRip expects dgmultisource() and if it's not it generates
dgmultisource() or aborts in case DGMultiDecodeNV.dll is not in the plugin dir.

What should always work is simply open a avs file instead of a dga, dgv, dgm file,
in this case StaxRip don't make any assumptions, verifications or modifications
trying to be smart, it should just work and not complain. The latest version improves
support for AVS file opening in that it allows to define the source PAR or DAR easily
with a menu in the main dialog since it's hardy possible to auto detect this for all scripts.
AVS file opening was the main motivation for adding this new menu, since for most
other files auto detection is reliable. The other motivation was supporting work-flows
MeGUI users are used to or want to use.

The handling for the next version will use the code below,
maybe somebody can tell me if there is a error in the code.


Case "dga", "dgv"
If Not srcscript.Contains("avcsource(") AndAlso _
Not srcscript.Contains("dgsource(") Then

If File.Exists(Paths.AviSynthPluginsDir + "DGDecodeNV.dll") Then
p.AvsDoc.SetFilter("Source", "DGSource", "DGSource(""%source_file%"")")
ElseIf File.Exists(Paths.AviSynthPluginsDir + "DGAVCDecode.dll") Then
p.AvsDoc.SetFilter("Source", "AVCSource", "AVCSource(""%source_file%"")")
Else
MsgWarn("No compatible AviSynth plugin in plugin directory found.")
Throw New AbortException
End If

AviSynthListView.Load()
End If
Case "dgm"
If Not srcscript.Contains("dgmultisource(") Then
If File.Exists(Paths.AviSynthPluginsDir + "DGMultiDecodeNV.dll") Then
p.AvsDoc.SetFilter("Source", "DGMultiSource", "DGMultiSource(""%source_file%"")")
Else
MsgWarn("DGMultiDecodeNV.dll must be in plugin directory to open dgm files.")
Throw New AbortException
End If

AviSynthListView.Load()
End If


SharpDevelop's has a handy online code converter (http://codeconverter.sharpdevelop.net/SnippetConverter.aspx) so I can post C# code:

case "dga":
case "dgv":
if (!srcscript.Contains("avcsource(") && !srcscript.Contains("dgsource(")) {
if (File.Exists(Paths.AviSynthPluginsDir + "DGDecodeNV.dll")) {
p.AvsDoc.SetFilter("Source", "DGSource", "DGSource(\"%source_file%\")");
} else if (File.Exists(Paths.AviSynthPluginsDir + "DGAVCDecode.dll")) {
p.AvsDoc.SetFilter("Source", "AVCSource", "AVCSource(\"%source_file%\")");
} else {
MsgWarn("No compatible AviSynth plugin in plugin directory found.");
throw new AbortException();
}

AviSynthListView.Load();
}
break;
case "dgm":
if (!srcscript.Contains("dgmultisource(")) {
if (File.Exists(Paths.AviSynthPluginsDir + "DGMultiDecodeNV.dll")) {
p.AvsDoc.SetFilter("Source", "DGMultiSource", "DGMultiSource(\"%source_file%\")");
} else {
MsgWarn("DGMultiDecodeNV.dll must be in plugin directory to open dgm files.");
throw new AbortException();
}

AviSynthListView.Load();
}
break;


Integration for the index application is a bit more tricky since StaxRip don't know where it is located,
if this was found in the registry then integration would be possible. The integration for included index
applications looks as follows:


Dim dgi As New CmdlPreparer
dgi.Name = "Demux audio and index MPEG-2 using DGIndex"
dgi.InputExtensions = "mpg mpeg vob mpv m2v m2t ts pva dat".Split(" "c)
dgi.VideoOutputExtensions = New String() {"d2v"}
dgi.InputFormatsBlacklist = New String() {"AVC"}
dgi.CommandLines.Value = """%application:DGIndex%"" -i %source_files% -ia 2 -fo 0 -yr 1 -tn 1 -om 2 -drc 2 -dsd 0 -dsa 0 -o ""%working_dir%\%source_name%"" -minimize -exit"

Dim dga As New CmdlPreparer
dga.Name = "Demux and index AVC using DGAVCIndex"
dga.InputExtensions = "m2ts m2t avc 264 h264".Split(" "c)
dga.InputFormatsBlacklist = "MPEG-TS MPEG-PS VC-1".Split(" "c)
dga.VideoOutputExtensions = New String() {"dga"}
dga.InputFormats = New String() {"AVC"}
dga.CommandLines.Value = """%application:DGAVCIndex%"" -i ""%source_file%"" -o ""%working_dir%\%source_name%.dga"" -a -h -e"

Guest
3rd December 2009, 19:45
Why not use DGMultiSource() for all types?

stax76
3rd December 2009, 20:17
I don't have much knowledge about the relation between DGSource and DGMultiSource.

Guest
3rd December 2009, 23:07
DGSource() needs the CUVID server and DGMultiSource() does not.

If you use DGMultiSource() for DGM there's no reason not to use it for DGA and DGV. It saves you having to manage the CUVID server.

stax76
4th December 2009, 10:55
How does this look then (besides from being basic code ;-) ?:


Case "dga"
Using f = File.OpenText(p.SourceFile)
If f.ReadLine().StartsWith("DGAVCIndexFile") Then
p.AvsDoc.SetFilter("Source", "AVCSource", "AVCSource(""%source_file%"")")
Else
p.AvsDoc.SetFilter("Source", "DGMultiSource", "DGMultiSource(""%source_file%"")")
End If
End Using
Case "dgv", "dgm"
p.AvsDoc.SetFilter("Source", "DGMultiSource", "DGMultiSource(""%source_file%"")")

Guest
4th December 2009, 14:22
Looks OK but does that assume the source filter invocation is the first line in the script?

stax76
4th December 2009, 19:31
In the next version it assumes the user didn't choose a source filter manually but uses the default source filter 'Automatic', the code for this filter is a empty string so this code executes only when the source filter is a empty string. It assumes plugin auto loading. It's possible to choose a source filter manually before opening a source file, the latest version has a larger selection of predefined source filters including NV Tools filters. StaxRip is customizable so it's possible to add custom filters and these can use manual plugin loading, maybe this was what you were interested. Next version the StaxRip setup allows to disable copying the included plugins to the plugin dir, StaxRip will notice when a plugin does not exist in the auto loading plugin dir and insert LoadPlugin() calls for every included plugin for every generated script. Your NV tools aren't included so if somebody wants to use manual loading for your plugin he has to to customize StaxRip for it. People who insist on manual loading usually prefer flat script code anyway, StaxRip allows to open avs scripts as source file.

stax76
14th December 2009, 07:36
@neuron2

Maybe you can test the latest StaxRip build as I have a report DGMultiSource only working when used without resize arguments. You would double click on the source filter, enter the code below and then open the index file.

DGMultiSource("%source_file%",resize_w=720, resize_h=400)

latest build

http://forum.doom9.org/showthread.php?p=1352603#post1352603

This build would automatically use DGMultiSource for a NV index file but without resize parameters. The source filter collection to manually set a specific source filter contains DGMultiSource but as well without resize arguments.

Like MeGUI StaxRip opens scripts multiple times in sequence, for instance opening a source file will open 3 scripts:

VTS_01_1.avs
VTS_01_1_Source.avs
VTS_01_1_AutoCrop.avs

One to extract information from the source containing just the source filter.
One to extract information from the complete output script.
One to autocrop.

That's by far not everything, using the resize slider does for instance open the output script three times in a row, since the resize slider triggers calculation functions for things like aspect ratio, these functions use parameters extracted from the scripts like frame size and frame count. StaxRip caches these parameters but using the resize slider changes the script and whenever it changes it gets loaded to update the parameters. I hope this isn't a issue otherwise I would have to investigate if I could eliminate loading a few scripts but it would likely be difficult since I'm generally concerned about the application being responsive avoiding slow things like file IO if possible. StaxRip makes only very basic VFW calls btw so if a script causes the application to crash it's usually a plugin doing things like memory corruption.

Guest
14th December 2009, 13:39
StaxRip crashes for me even without the resize parameters.

I didn't install Avisynth 2.5.8 though.

MuLTiTaSK
21st December 2009, 22:51
i'am having problems getting DG NV Tools working with StaxRip but i'am determined trust me

btw both of you guys should team up and create an OS together i'll buy it ;) i'am big fan of both of you guys best devs in the video community if you ask me OK lets get this working

i'am using the same sample i send you stax76

i use DG NV Tools make project create .avs using DGMultiSource import into StaxRip encode to x264 beauty no problems

make StaxRip use DG NV Tools i keep getting errors
when trying to import .dgi file that i made my .avs with i get this error

http://i47.tinypic.com/2u8xn9e.png

i have DGMultiSource setup as source filter in StaxRip, added dgi as source type in StaxRip settings, created DG NV Tools demuxing profile in project options

http://i46.tinypic.com/es2b7l.png

when i try to load the .m2ts i created .dgi project with in StaxRip so it can use DG NV Tools i get this error
http://i50.tinypic.com/29bmslk.png

StaxRip gives me this after the error
DGMultiSource: Invalid index file!
(J:\files\00068_Source.avs, line 1)

this is StaxRip DGAVCIndex demux profile working with no problems
http://i46.tinypic.com/21enk86.png

applications used:
DG NV tools 2.0.0 beta 7 (http://neuron2.net/dgdecnv/dgdecnv200b7.zip)
StaxRip 1.1.2.4 preview 5 (http://www.stax76.bplaced.net/files/applications/StaxRip/StaxRip_1.1.2.4_preview_5.7z)

stax76
21st December 2009, 23:35
I'm working on it. :)

MuLTiTaSK
21st December 2009, 23:44
thats all i had to hear :D merry christmas frankie boy :thanks:

MuLTiTaSK
21st December 2009, 23:46
@stax76

export demux profiles would be awesome for sharing with others

MuLTiTaSK
21st December 2009, 23:49
@DG

merry christmas and a happy new year buddy dont code to much try to relax and enjoy the holidays

MuLTiTaSK
21st December 2009, 23:53
@stax76

besides me donating to you cause your awesome would you like me to send you a extra nvidia card i have laying around?

stax76
26th December 2009, 12:59
Thanks for the offer but I need my ATI card because of it's analog TV out, Nvidia never worked for me in this regard. Posting the command line and formats as text would be helpful so I can copy/paste as I'm adding this to the default setup.

MuLTiTaSK
26th December 2009, 16:55
Thanks for the offer but I need my ATI card because of it's analog TV out, Nvidia never worked for me in this regard. Posting the command line and formats as text would be helpful so I can copy/paste as I'm adding this to the default setup.

ATI drivers always gave me problems NV cuda lets me use DG NV Tools :)

Demux audio and index AVC (H.264), VC1, and MPEG-2 using DGIndexNV

264, h264, avc, m2v, mpv, vc1, mkv, vob, mpg, mpeg, m2t, m2ts, mts, tp, ts, trp

"%application:DGIndexNV%" -i %source_files% -f 0 -y 1 -o "%working_dir%\%source_name%" -a -h -e

MuLTiTaSK
26th December 2009, 17:05
@stax76

DGDecNV 2.0.0 beta 8
--------------------

This beta adds multiple file open support, program stream support for
MPEG2, pulldown support for all video types, GPU cropping/resizing, and several important bug fixes.
Notably, when used with the Nvidia driver below, some issues with the
PureVideo deinterlacer are resolved. DTS audio support is added for program streams.
Support is added for pure interlaced VC1 (field interlace).

Most importantly, this beta combines support for all three video types (AVC, MPEG2, and VC1)
into one index executable: DGIndexNV.exe. Note that I have not yet revised the
documentation to account for this merger, so the three previous user manuals are
still included.

You must install version 191.07 or later of the Nvidia driver. Also,
do not use any special version of nvcuvid.dll as previously shipped
with the NV tools. Use the one that is installed by Nvidia.

Warnings:
---------

1. Activation of a screensaver or standby mode may interfere with
proper operation of the NV tools. They should be disabled during
use of the NV tools.

2. The NV tools currently support only a single instance, so for example
you cannot have two calls to DGSource() in your Avisynth script. But see below.

3. Some Nvidia mobile drivers have not been updated to 191.07 driver version,
so D3D operation may be needed. This can be enabled in the indexers by setting UseD3D=1
in the INI file. For the CUVIDServer create a file called CUVIDServer.ini in the
same directory as CUVIDServer.exe and put this line in it:

UseD3D=1

But always use non-D3D operation if your adapter supports it. Try it first with
UseD3D=0 and if things are OK, keep it that way.

4. Some users of Win 7 have reported that the Save Project operation runs unusually slowly.
If you run into this, either minimize DGIndexNV during the Save Project operation, or kill
the Info window.

Multiple Instance Support:
--------------------------

This beta includes a new experimental DLL called DGMultiDecodeNV.dll. It works like DGDecodeNV.dll
but supports multiple instances. Do not run the CUVIDServer when using this DLL.
Note that the compatibility issues are still being assessed. I know that:

* It works fine with x264.exe CLI in single or multipass modes.

* It works fine with HCEnc 0.23 but fails with 0.24.

* It fails with earlier MEGUI builds and I would guess that it also fails with more
recent ones.

I will be curious to hear reports of its compatibility with StaxRip, RipBot, Handbrake, etc.

To use it, load DGMultiDecodeNV.dll and invoke DGMultiSource() instead of DGSource().

(C) Copyright 2009-2010, Donald A. Graft, All Rights Reserved

MuLTiTaSK
26th December 2009, 17:15
DGMultiSource()
DGMultiSource(str "dga", int deinterlace, bool use_top_field, int resize_w, int resize_h)

dgi: "[PATH\]project.dgi"
DGIndexNV Project File.
Required parameter!
Note 1: PATH\ can be omitted if "project.dgi" is in the same directory as your AviSynth (*.avs) script.

deinterlace: 0/1/2 (default: 0)
Nvidia PureVideo Deinterlacer
0: no deinterlacing
1: single rate deinterlacing
2: double rate deinterlacing (bobbing)

Note that double rate deinterlacing requires Windows XP SP3!

Also note that setting deinterlace to 1 or 2 forces the field operation to be "Ignore Pulldown", regardless of the project setting.

use_top_field: true/false (default: true)
Use the top field for single rate deinterlacing.
When this parameter is true, the top field is used for single rate deinterlacing; when false the bottom field is used. When deinterlace=0 or deinterlace=2, this parameter is ignored.

use_pf: true/false (default: false)
Use the progressive_frame indication from NVCUVID. If deinterlace=1 or deinterlace=2, and use_pf=true, then only frames marked as interlaced by NVCUVID will be deinterlaced. If deinterlace=1 or deinterlace=2, and use_pf=false, then all frames will be deinterlaced.

resize_w, resize_h: integer (default: 0)
Use the GPU to resize the video. The resizing is applied after deinterlacing. If either resize_w or resize_h is 0, no resizing is performed. If you need to crop before resizing, use the cropping filter in DGIndexNV.

MuLTiTaSK
26th December 2009, 17:26
DGAVCIndexNVManual Command-Line Interface (http://neuron2.net/dgavcdecnv/DGAVCIndexNVManual.html#AppendixB)

no DGIndexNVManual yet but same switces apply :)

stax76
26th December 2009, 19:46
Be warned that I rewrote a lot code, things might be broke, preparers are now demuxers and have been moved from the project options to the settings. There is a restore feature to restore single demuxers from previous versions. It's easier to use and code then a import/export feature. I changed the data structure for the demuxers completely while working on a new dialog to edit demuxers so the restoring from previous versions will not work for preparers created before this change. To use the index app from NV tools you have to edit the NV tools demuxer, the command (file path to the index app) is empty and therefore this demuxer is skipped until a path is entered.

http://www.stax76.bplaced.net/files/applications/StaxRip/StaxRip_1.1.2.4_preview_6.7z

MuLTiTaSK
26th December 2009, 20:23
Be warned that I rewrote a lot code, things might be broke, preparers are now demuxers and have been moved from the project options to the settings. There is a restore feature to restore single demuxers from previous versions. It's easier to use and code then a import/export feature. I changed the data structure for the demuxers completely while working on a new dialog to edit demuxers so the restoring from previous versions will not work for preparers created before this change. To use the index app from NV tools you have to edit the NV tools demuxer, the command (file path to the index app) is empty and therefore this demuxer is skipped until a path is entered.

http://www.stax76.bplaced.net/files/applications/StaxRip/StaxRip_1.1.2.4_preview_6.7z

WOW :eek:

it looks awesome great job stax76

StaxRip crashes importing .dgi as source with automatic as source filter

Problem signature:
Problem Event Name: APPCRASH
Application Name: StaxRip.exe
Application Version: 1.1.2.4
Application Timestamp: 4b36517d
Fault Module Name: nvcuda.dll
Fault Module Version: 8.17.11.9562
Fault Module Timestamp: 4b076cd3
Exception Code: c0000005
Exception Offset: 0001a2a8
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt



DGIndexNV crashes after indexing .m2ts file i loaded in StaxRip
it happens after indexing the file then StaxRip continues with DGIndex

i can index and create the dgi project file with DGIndexNV so it must be something between StaxRip and DGIndexNV timing

Problem signature:
Problem Event Name: APPCRASH
Application Name: DGIndexNV.exe
Application Version: 2.0.0.0
Application Timestamp: 4b343640
Fault Module Name: DGIndexNV.exe
Fault Module Version: 2.0.0.0
Fault Module Timestamp: 4b343640
Exception Code: c0000005
Exception Offset: 0000a789
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt


also StaxRip doesnt save settings \ advanced \ window postions

MuLTiTaSK
26th December 2009, 20:38
StaxRip also crashes loading .dgi file with DGMultiSource source

Problem signature:
Problem Event Name: BEX
Application Name: StaxRip.exe
Application Version: 1.1.2.4
Application Timestamp: 4b36517d
Fault Module Name: nvcuda.dll_unloaded
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4b076cd3
Exception Offset: 07c1648b
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

stax76
26th December 2009, 20:39
It pauses the thread when loading a script 2 x 200 ms. I can't further investigate it since I can't use a Nvidia card. With DGMultiSource not working maybe at least DGSource and cuidserver work?

MuLTiTaSK
26th December 2009, 22:16
@stax76

crashes on loading using automatic as source filter with cuidserver

i can only load a .dgi file using dgsource but thats all crashes, hangs when trying to doing anything else like cropping manually or auto crop

crashes the same loading .m2ts with cuidserver running no difference right after DGIndexNV seem to finish indexing the file

MuLTiTaSK
26th December 2009, 23:11
@stax76

i can run DGIndexNV from the commandline without problems on the same file using

I:\StaxRip_1.1.2.4_preview_6\Applications\DGIndexNV\DGIndexNV.exe -i J:\DGIndexNV\DGIndexNV.m2ts -f 0 -y 1 -od J:\DGIndexNV\DGIndexNV.dgi -h -a -e

MuLTiTaSK
27th December 2009, 02:45
Uploaded HD YouTube Screencast

stax76
27th December 2009, 03:29
Must be NV tools specific too, you could try to enter any character as stdout formatting string, stdout redirection is pointless as the indexer don't output something, redirection uses a different function to execute the process however (CreateProcess instead of ShellExecute) and this might not cause the problem. I don't have seen something similar before so I have no idea about possible reasons. All this don't help with Nvidia's cuda library crashing sadly, even if I had a Nvidia card I might not be able to workaround these problems sadly, thanks however for doing your best in supporting me with the issue.

MuLTiTaSK
27th December 2009, 03:59
@stax76

we cant give up so easy theres got be something that can be done to get them to work together in harmony

lets wait to see what neuron2 has to say about this you 2 together should get this working i still beleive ;)

MuLTiTaSK
27th December 2009, 04:05
@stax76

i'll keep bug testing and whatever finds i make i'll post in StaxRip thread

hopefully this problem gets fixed asap

MuLTiTaSK
27th December 2009, 08:06
HD YouTube Screencast (http://www.youtube.com/watch?v=rQ01ajE0eKc)

stax76
27th December 2009, 12:39
I'll upload a built that will write debug info to the log file before loading and after closing the script.

stax76
27th December 2009, 14:28
this build writes debug info to the log file, maybe it helps :)

http://www.stax76.bplaced.net/files/applications/StaxRip/StaxRip_1.1.2.4_preview_7.7z

MuLTiTaSK
27th December 2009, 15:48
no debug info in .log when i load .m2ts file into StaxRip cause DGIndexNV crashes whenever StaxRip calls it to index a file as you see in the screencast

loading .dgi file DGMultiSource set as source filter


------------------------------------------------------------
Opening source files
------------------------------------------------------------

J:\DGIndexNV\DGIndexNV.dgi

General
Complete name : J:\DGIndexNV\DGIndexNV.dgi
File size : 27.5 KiB


------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

9:24:23 AM 704

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

9:24:24 AM 395

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

9:24:24 AM 601

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

9:24:25 AM 42

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

MuLTiTaSK
27th December 2009, 15:49
loading .avs script Automatic set as source filter


------------------------------------------------------------
Opening source files
------------------------------------------------------------

J:\DGIndexNV\DGIndexNV.avs

General
Complete name : J:\DGIndexNV\DGIndexNV.avs
File size : 116 Bytes


------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

9:26:39 AM 681

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi", deinterlace=0, use_top_field=true, use_pf=false, resize_w=0, resize_h=0)
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

9:26:40 AM 124

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

9:26:40 AM 332

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi", deinterlace=0, use_top_field=true, use_pf=false, resize_w=0, resize_h=0)
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

9:26:40 AM 768

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

MuLTiTaSK
27th December 2009, 15:51
CUVIDServer.exe running in background loading .dgi file DGSource set as source filter loads fine try to crop StaxRip hangs i have to kill process

logfile
------------------------------------------------------------
Opening source files
------------------------------------------------------------

J:\DGIndexNV\DGIndexNV.dgi

General
Complete name : J:\DGIndexNV\DGIndexNV.dgi
File size : 27.5 KiB

AutoCrop .avs script StaxRip used to crop
LoadPlugin("I:\StaxRip_1.1.2.4_preview_7\Applications\AviSynth plugins\AutoCrop.dll")

DGSource("J:\DGIndexNV\DGIndexNV.dgi")
ConvertToYV12().AutoCrop(mode=2,samples=20)

MuLTiTaSK
27th December 2009, 16:02
CUVIDServer.exe running in background loading .avs file Automatic set as source filter loads fine try to crop StaxRip hangs i have to kill process

logfile
------------------------------------------------------------
Opening source files
------------------------------------------------------------

J:\DGIndexNV\DGIndexNV.avs

General
Complete name : J:\DGIndexNV\DGIndexNV.avs
File size : 111 Bytes

AutoCrop .avs script StaxRip used to crop
DGSource("J:\DGIndexNV\DGIndexNV.dgi", deinterlace=0, use_top_field=true, use_pf=false, resize_w=0, resize_h=0)
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)
ConvertToYV12().AutoCrop(mode=2,samples=20)

stax76
27th December 2009, 17:32
@MuLTiTaSK

Did you try to enter a something as stdout formatting in the demux config regarding the crash of the indexing application? Does the autocrop script only crash StaxRip or does it also crash a native application like VirtualDub?

@neuron2

StaxRip pausing the thread for 200 ms before opening VFW and the same after closing it, it does this only for DGMultiSource however, might it help to do this for DGSource as well?

MuLTiTaSK
27th December 2009, 18:14
@stax76

VDubMod OK
http://www.pixhost.org/thumbs/516/1207886_ss-2009-12-27_12-04-42.jpg (http://www.pixhost.org/show/516/1207886_ss-2009-12-27_12-04-42.jpg)

Guest
27th December 2009, 18:17
StaxRip pausing the thread for 200 ms before opening VFW and the same after closing it, it does this only for DGMultiSource however, might it help to do this for DGSource as well? I have no idea because I can't make any sense out of what these managed apps are doing. Try it and if it helps then there's no harm in doing it.

stax76
27th December 2009, 18:21
@MuLTiTaSK

My understanding was the autocrop script causes StaxRip to hang so I wonder if the autocrop script works in VirtualDubMod. Auto crop performs seeking which some native library might not be able to cope with.

MuLTiTaSK
27th December 2009, 18:25
@stax76

STDOUT
http://img1.pixhost.org/thumbs/412/1207936_ss-2009-12-27_12-18-47.png (http://www.pixhost.org/show/412/1207936_ss-2009-12-27_12-18-47.png)

StaxRip crashes
Problem signature:
Problem Event Name: APPCRASH
Application Name: StaxRip.exe
Application Version: 1.1.2.4
Application Timestamp: 4b375cb0
Fault Module Name: nvcuda.dll_unloaded
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4b076cd3
Exception Code: c0000005
Exception Offset: 079369fa
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt


logfile

------------------------------------------------------------
Opening source files
------------------------------------------------------------

J:\DGIndexNV\DGIndexNV.dgi

General
Complete name : J:\DGIndexNV\DGIndexNV.dgi
File size : 27.5 KiB


------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

12:19:10 PM 266

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

12:19:10 PM 751

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

12:19:10 PM 959

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

12:19:11 PM 373

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

MuLTiTaSK
27th December 2009, 18:29
@stax76

temp files StaxRip created

DGIndexNV.avs
DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)

DGIndexNV_Source.avs
DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)

DGIndexNV_StaxRip.log

------------------------------------------------------------
Opening source files
------------------------------------------------------------

J:\DGIndexNV\DGIndexNV.dgi

General
Complete name : J:\DGIndexNV\DGIndexNV.dgi
File size : 27.5 KiB


------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

12:24:16 PM 929

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

12:24:17 PM 382

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
opening avs/avi
------------------------------------------------------------

thread id: 1

12:24:17 PM 589

DGMultiSource("J:\DGIndexNV\DGIndexNV.dgi")
Width % 8 != 0 || Height % 8 != 0 ? Crop(0,0, -Width % 8,-Height % 8) : last
IsYV12(last) ? last : ConvertToYV12(last)


at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Open(String path)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

------------------------------------------------------------
avs/avi closed
------------------------------------------------------------

thread id: 1

12:26:04 PM 156

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at StaxRip.AVIFile.Close(Boolean realClose)
at StaxRip.AviSynthDocument.Synchronize()
at StaxRip.AviSynthDocument.GetFrames()
at StaxRip.Calc.GetOverheadAndSubtitlesKBytes()
at StaxRip.Calc.GetTotalBitrate()
at StaxRip.Calc.GetVideoBitrate()
at StaxRip.MainForm.tbSize_TextChanged()
at StaxRip.MainForm.SetTargetLength(Int32 seconds)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files, Boolean autoMode)
at StaxRip.MainForm.OpenVideoSourceFiles(List`1 files)
at StaxRip.MainForm.OpenAnyFile(List`1 l)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at StaxRip.Startup.Main()

MuLTiTaSK
27th December 2009, 18:48
@stax76

VDubMod opens StaxRip AutoCrop script fine
http://img1.pixhost.org/thumbs/412/1208064_ss-2009-12-27_12-46-31.jpg (http://www.pixhost.org/show/412/1208064_ss-2009-12-27_12-46-31.jpg)

stax76
27th December 2009, 19:04
I have no idea because I can't make any sense out of what these managed apps are doing.

I don't think there is a difference if it's native or managed app calling into VFW, it can happen a managed application don't use a native interface properly due to wrong interface definitions resulting in wrong data marshalling, this would be a bug in the managed application then. It can also happen a native library is trying to corrupt memory managed by the CLR due to a bad pointer for instance, this would be a bug in the native library then. .NET and the OS sometimes have bugs too of course. I'm in a rather unfortunate situation here since I don't have a Nvidia card or your or Nvidia's source code so I cannot use a debugger. I can try a few more things but without a debugger it's rather unlikely it will yield to a solution.

MuLTiTaSK
30th December 2009, 03:25
@neuron2

bro is it possible to add stdout (http://forum.doom9.org/showpost.php?p=1347173&postcount=155) like you did with DGMPGDec (http://forum.doom9.org/showpost.php?p=1347606&postcount=1) to DGDecNV?

Guest
30th December 2009, 06:26
bro is it possible to add stdout like you did with DGMPGDec to DGDecNV? Yes, it is surely possible. I'll do it after I complete the film % reporting for AVC.

MuLTiTaSK
30th December 2009, 06:55
@neuron2

greatly appreciate your work hopefully stdout helps get StaxRip working with DGIndexNV :thanks: