StainlessS
24th July 2018, 15:27
ForceProcess(), v1.00, By StainlessS @ Doom9
A standalone drop in replacement for RT_Stats v2.0(currently Beta11) RT_ForceProcess().
EDIT: Almost the same as TWriteAVI v2.0 ForceProcessAVI.
TWriteAVI v2.0 is an incredibly useful plugin, but not likely to be released in x64 without someone else taking over project,
requires better CPP and ASM/Intrinsic programmer.
(I do not have the inclination to acquire further skills in either, this ol' dog don't wannt learn no new tricks)
ForceProcess(), v1.00, By StainlessS @ Doom9
Requires VS2008 CPP runtimes,
ForceProcess(clip, bool "Video"=True,bool "Audio"=false,Bool "Debug"=True) :- Returns 0
If Video (default true), Force read every frame of clip from 0 to FrameCount-1.
If Audio (default false), Force read every sample of clip from 0 to NumberOfSamples-1.
Useful where a clip outputs some kind of file for use in a second filter, this function would in such a case
forcibly read and therefore write the file, so that it may be available to other filters or to a second pass of the filter that
initially wrote the file.
Debug, default true. Write Progress to DebugView.
The ForceProcess function forcibly processes both video and audio streams (ie reads each frame/sample in sequence),
so that any eg log files produced by either video and/or audio processing filter will be forcibly written to disk.
ForceProcess is a runtime function not filter and so only returns on completion.
Example:
Two Pass:
WhateverSource(...)
A_Two_Pass_Function(Pass=1) # Create some kind of deshaker log or whatever.
ForceProcess() # Force Pass 1, creating log
A_Two_Pass_Function(Pass=2) # Use created log
return Last
Debug output looks something like this (See DebugView - https://docs.microsoft.com/en-us/sysinternals/downloads/debugview )
00000005 12:42:07.125 [3404] ForceProcess: Commencing Forced process
00000006 12:42:07.437 [3404] ForceProcess: 187] 4.98% nFrms=188 T=0.313sec : 600.64FpS 0.001665SpF
00000007 12:42:07.828 [3404] ForceProcess: 376] 9.99% nFrms=189 T=0.390sec : 484.62FpS 0.002063SpF
00000008 12:42:08.140 [3404] ForceProcess: 565] 14.99% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000009 12:42:08.484 [3404] ForceProcess: 754] 20.00% nFrms=189 T=0.343sec : 551.02FpS 0.001815SpF
00000010 12:42:08.781 [3404] ForceProcess: 942] 24.98% nFrms=188 T=0.297sec : 633.00FpS 0.001580SpF
00000011 12:42:09.093 [3404] ForceProcess: 1131] 29.99% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000012 12:42:09.437 [3404] ForceProcess: 1320] 34.99% nFrms=189 T=0.344sec : 549.42FpS 0.001820SpF
00000013 12:42:09.750 [3404] ForceProcess: 1509] 40.00% nFrms=189 T=0.312sec : 605.77FpS 0.001651SpF
00000014 12:42:10.093 [3404] ForceProcess: 1697] 44.98% nFrms=188 T=0.344sec : 546.51FpS 0.001830SpF
00000015 12:42:10.468 [3404] ForceProcess: 1886] 49.99% nFrms=189 T=0.375sec : 504.00FpS 0.001984SpF
00000016 12:42:10.875 [3404] ForceProcess: 2075] 54.99% nFrms=189 T=0.406sec : 465.52FpS 0.002148SpF
00000017 12:42:11.265 [3404] ForceProcess: 2264] 60.00% nFrms=189 T=0.391sec : 483.38FpS 0.002069SpF
00000018 12:42:11.625 [3404] ForceProcess: 2452] 64.98% nFrms=188 T=0.359sec : 523.68FpS 0.001910SpF
00000019 12:42:11.953 [3404] ForceProcess: 2641] 69.99% nFrms=189 T=0.328sec : 576.22FpS 0.001735SpF
00000020 12:42:12.250 [3404] ForceProcess: 2830] 74.99% nFrms=189 T=0.297sec : 636.36FpS 0.001571SpF
00000021 12:42:12.515 [3404] ForceProcess: 3019] 80.00% nFrms=189 T=0.266sec : 710.53FpS 0.001407SpF
00000022 12:42:12.781 [3404] ForceProcess: 3207] 84.98% nFrms=188 T=0.265sec : 709.43FpS 0.001410SpF
00000023 12:42:13.093 [3404] ForceProcess: 3396] 89.99% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000024 12:42:13.453 [3404] ForceProcess: 3585] 94.99% nFrms=189 T=0.359sec : 526.46FpS 0.001899SpF
00000025 12:42:13.765 [3404] ForceProcess: 3774] 100.00% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000026 12:42:13.765 [3404] ForceProcess: Time=6.641secs (0.111mins) : Avg 568.438FpS 0.001759SpF
dll's for Avisynth v2.58, avs/+ v2.60 x86 and x64, + source + VS2008 Project files. (~68KB)
See Mediafire OR SendSpace in my sig below this post.
A standalone drop in replacement for RT_Stats v2.0(currently Beta11) RT_ForceProcess().
EDIT: Almost the same as TWriteAVI v2.0 ForceProcessAVI.
TWriteAVI v2.0 is an incredibly useful plugin, but not likely to be released in x64 without someone else taking over project,
requires better CPP and ASM/Intrinsic programmer.
(I do not have the inclination to acquire further skills in either, this ol' dog don't wannt learn no new tricks)
ForceProcess(), v1.00, By StainlessS @ Doom9
Requires VS2008 CPP runtimes,
ForceProcess(clip, bool "Video"=True,bool "Audio"=false,Bool "Debug"=True) :- Returns 0
If Video (default true), Force read every frame of clip from 0 to FrameCount-1.
If Audio (default false), Force read every sample of clip from 0 to NumberOfSamples-1.
Useful where a clip outputs some kind of file for use in a second filter, this function would in such a case
forcibly read and therefore write the file, so that it may be available to other filters or to a second pass of the filter that
initially wrote the file.
Debug, default true. Write Progress to DebugView.
The ForceProcess function forcibly processes both video and audio streams (ie reads each frame/sample in sequence),
so that any eg log files produced by either video and/or audio processing filter will be forcibly written to disk.
ForceProcess is a runtime function not filter and so only returns on completion.
Example:
Two Pass:
WhateverSource(...)
A_Two_Pass_Function(Pass=1) # Create some kind of deshaker log or whatever.
ForceProcess() # Force Pass 1, creating log
A_Two_Pass_Function(Pass=2) # Use created log
return Last
Debug output looks something like this (See DebugView - https://docs.microsoft.com/en-us/sysinternals/downloads/debugview )
00000005 12:42:07.125 [3404] ForceProcess: Commencing Forced process
00000006 12:42:07.437 [3404] ForceProcess: 187] 4.98% nFrms=188 T=0.313sec : 600.64FpS 0.001665SpF
00000007 12:42:07.828 [3404] ForceProcess: 376] 9.99% nFrms=189 T=0.390sec : 484.62FpS 0.002063SpF
00000008 12:42:08.140 [3404] ForceProcess: 565] 14.99% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000009 12:42:08.484 [3404] ForceProcess: 754] 20.00% nFrms=189 T=0.343sec : 551.02FpS 0.001815SpF
00000010 12:42:08.781 [3404] ForceProcess: 942] 24.98% nFrms=188 T=0.297sec : 633.00FpS 0.001580SpF
00000011 12:42:09.093 [3404] ForceProcess: 1131] 29.99% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000012 12:42:09.437 [3404] ForceProcess: 1320] 34.99% nFrms=189 T=0.344sec : 549.42FpS 0.001820SpF
00000013 12:42:09.750 [3404] ForceProcess: 1509] 40.00% nFrms=189 T=0.312sec : 605.77FpS 0.001651SpF
00000014 12:42:10.093 [3404] ForceProcess: 1697] 44.98% nFrms=188 T=0.344sec : 546.51FpS 0.001830SpF
00000015 12:42:10.468 [3404] ForceProcess: 1886] 49.99% nFrms=189 T=0.375sec : 504.00FpS 0.001984SpF
00000016 12:42:10.875 [3404] ForceProcess: 2075] 54.99% nFrms=189 T=0.406sec : 465.52FpS 0.002148SpF
00000017 12:42:11.265 [3404] ForceProcess: 2264] 60.00% nFrms=189 T=0.391sec : 483.38FpS 0.002069SpF
00000018 12:42:11.625 [3404] ForceProcess: 2452] 64.98% nFrms=188 T=0.359sec : 523.68FpS 0.001910SpF
00000019 12:42:11.953 [3404] ForceProcess: 2641] 69.99% nFrms=189 T=0.328sec : 576.22FpS 0.001735SpF
00000020 12:42:12.250 [3404] ForceProcess: 2830] 74.99% nFrms=189 T=0.297sec : 636.36FpS 0.001571SpF
00000021 12:42:12.515 [3404] ForceProcess: 3019] 80.00% nFrms=189 T=0.266sec : 710.53FpS 0.001407SpF
00000022 12:42:12.781 [3404] ForceProcess: 3207] 84.98% nFrms=188 T=0.265sec : 709.43FpS 0.001410SpF
00000023 12:42:13.093 [3404] ForceProcess: 3396] 89.99% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000024 12:42:13.453 [3404] ForceProcess: 3585] 94.99% nFrms=189 T=0.359sec : 526.46FpS 0.001899SpF
00000025 12:42:13.765 [3404] ForceProcess: 3774] 100.00% nFrms=189 T=0.313sec : 603.83FpS 0.001656SpF
00000026 12:42:13.765 [3404] ForceProcess: Time=6.641secs (0.111mins) : Avg 568.438FpS 0.001759SpF
dll's for Avisynth v2.58, avs/+ v2.60 x86 and x64, + source + VS2008 Project files. (~68KB)
See Mediafire OR SendSpace in my sig below this post.