Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
2nd September 2016, 20:17 | #2382 | Link |
Registered User
Join Date: Apr 2016
Posts: 27
|
Trying MT mode seems to runs same as single thread mode.
Hi,
In trying AVISynth+ r2085 i386 in MT mode with this script on a 1080p source: Code:
SetFilterMTMode("DEFAULT_MT_MODE", 2) SetFilterMTMode("DGSource", 3) LoadPlugin("C:\MKVideo Encoder NV\DGDecNV\DGDecodeNV.dll") DGSource("C:\MKVideo Files\Input_Video_File.dgi") Spline144Resize(1280, 720) RoboCrop(Laced=False) LSFmod(defaults="slow", preblur="DeGrainMedian(limitY=4, limitUV=6, mode=1, interlaced=false)") FineDehalo(rx=2.0, ry=2.0, thmi=80, thma=128, thlimi=50, thlima=100, darkstr=1.0, brightstr=1.0, showmask=0, contra=0.0, excl=true) src=last dr=src.RemoveGrain(4, 2) src.HQDeringmod(dr, drrep=13, sharp=1, thr=14.0, darkthr=0, Y=3, U=3, V=3) return(last) Prefetch(8) Last edited by gaak; 2nd September 2016 at 20:35. Reason: More specific version info. |
2nd September 2016, 20:56 | #2383 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff Last edited by Groucho2004; 2nd September 2016 at 21:28. |
|
3rd September 2016, 13:36 | #2385 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
I just tried the same with Xvid 1.22 and it took 30 seconds. Even on my really ancient laptop it takes only 2 or 3 minutes. Your 10 hours are bizarre.
__________________
Groucho's Avisynth Stuff |
4th September 2016, 10:37 | #2386 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
__________________
Groucho's Avisynth Stuff |
4th September 2016, 15:08 | #2387 | Link | ||
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
Quote:
Last edited by Wilbert; 4th September 2016 at 15:13. |
||
4th September 2016, 18:23 | #2388 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
And the patch to add the new pix_fmts to FFmpeg's AviSynth demuxer was already committed close to a week ago. The planar RGB formats and ConvertTo16bit's 10/12/14 conversions don't quite work yet; you need the pull request that pinterf is currently working on for those to be fixed on our side, plus another patch that's on the FFmpeg-devel mailing list to make sure the Planar RGB formats are output correctly. Zeranoe's FFmpeg-git builds should work with them just fine now, with the caveats I mentioned above. However, you can get proper 10/12/14 YUV output if you use f3kdb or Dither to scale them up and then ConvertFromDoubleWidth/Stacked. The alpha-enabled formats and Planar RGB were a deeper issue that had to be resolved by exposing them through the C interface first (r2172 doesn't do that yet, that's why the pull request's changes are needed). Last edited by qyot27; 4th September 2016 at 18:30. |
|
4th September 2016, 18:45 | #2389 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
Last edited by Wilbert; 4th September 2016 at 19:23. |
|
4th September 2016, 19:41 | #2390 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Hi, just a short project report on the high bit depth part.
Probably you know, that instead of the the original plans (YUV 16 bit/float 4:2:0, 4:2:2 and 4:4:4) we finally decided to support more formats. Avisynth core got support (at least on my workbench) for - YUV 10-12-14 bits (and of course the 16 bit and float format) - RGB48 and 64 (RGB24 and RGB32 16-bit counterparts) - Planar RGB and Planar RGBA (8-10-12-14-16 bit integers and float) - YUVA (YUV with a 4th alpha channel) with the same options as YUV. Most of the filters and functions are ported and support all these new formats. Not much left - Invert - Overlay and Mask filters (all) - SkewRows (not priority) - GeneralConvolution for RGB32 And there are planned refinements. - There should be only one bitdepth converting function, instead of existing ConvertTo8bit/16bit/Float - Dithering for 8/10 bit conversion - more functions to use SIMD (SSE2) Some filters that are working with lookup tables internally (Limits, RGBAdjust) are not available for float video formats. 10-14 bit formats are mainly for export/import, but a few filter can already use them natively (Limits, RGBAdjust, text-overlay, etc) That's all for now, the work is going on... |
4th September 2016, 22:04 | #2391 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Different exception behaviour with/without Prefetch
This applies only to AVS+ 64 bit. Test release: r2172
Script: Code:
colorbars(width = 1280, height = 720, pixel_type = "yv12").killaudio().assumefps(50, 1) Dummy() AVSMeter reports the correct module: Code:
AVSMeter 2.3.8 (x64) - Copyright (c) 2012-2016, Groucho2004 AviSynth+ 0.1 (r2172, MT, x86_64) (0.1.0.0) Exception 0xC0000094 [STATUS_INTEGER_DIVIDE_BY_ZERO] Module: E:\Apps\VideoTools\AVSPlugins\AutoLoad64\Dummy64.dll Address: 0x0000000004CE14A5 Code:
AVSMeter 2.3.8 (x64) - Copyright (c) 2012-2016, Groucho2004 AviSynth+ 0.1 (r2172, MT, x86_64) (0.1.0.0) Exception 0xC0000094 [STATUS_INTEGER_DIVIDE_BY_ZERO] Module: D:\WINNT\system32\kernel32.dll Address: 0x0000000077D67DDD
__________________
Groucho's Avisynth Stuff |
4th September 2016, 22:23 | #2393 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
I'll try with MPC-HC. Edit: MPC-HC crash dump
__________________
Groucho's Avisynth Stuff Last edited by Groucho2004; 4th September 2016 at 22:33. |
|
5th September 2016, 00:41 | #2394 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
|
You might add the *.pdb file for access to symbols ... but the appearance of "ntdll!NtWaitForMultipleObjects" and "kernel32!ReleaseSemaphore" in the stack trace seem to support my suspicion that the thread scheduling gets disturbed by the exception. Yet, I am no expert, so no warranties...
|
11th September 2016, 04:22 | #2395 | Link | ||
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
A couple previous posts of mine getting clarified:
Quote:
I attempted it from a different angle, and that's if the ifdef was changed to accept MSVC OR MINGW, then the MinGW-GCC build of AviSynth+ with that change and the build of Libav depending on that header were suddenly okay (so long as I kept the autoload folders empty of .dlls). Unfortunately, the MinGW-GCC build of FFMS2's C plugin did not work, likely because it was using a much older version of the header. So C plugins will probably need to update against it to work right as well. Whether they'll remain backward compatible with AviSynth 2.6 in that case, I don't know. I also didn't test MSVC builds against the expanded ifdef, so those might still fail to work. All that to say, it's encouraging that a program that uses the C interface to talk to AviSynth can indeed use MinGW-GCC builds of AviSynth+. It's still early in fleshing out the support there (since there's bound to be conflicts to hammer out), but at least there's confirmation that one configuration of it actually works. Quote:
|
||
14th September 2016, 13:14 | #2397 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Last week I was working on porting RgbAdjust to RGB48/64 and planar RGB 8-16 bit formats and found a bug, that would cause buffer overflow when creating the lookup table.
If you specify dither=true, it should not occur. What is the problem with MergeChroma? |
14th September 2016, 22:31 | #2398 | Link | |
Registered User
Join Date: Jan 2010
Posts: 709
|
Quote:
the weight part on yv12
__________________
powered by Google Translator Last edited by Motenai Yoda; 14th September 2016 at 23:11. |
|
14th September 2016, 23:05 | #2399 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Possibly connected to AVS Standard MergeChroma problem, here:- http://forum.doom9.org/showthread.ph...31#post1504231
Was originally Code:
MergeChroma (clip1, clip2, float Chromaweight=1.0) Code:
MergeChroma (clip1, clip2, float weight=1.0) EDIT: And MergeLuma used LumaWeight, also added the Weight alias. [EDIT: About v2.6 Alpha 3, period]. EDIT: @ Motenai Yoda Below post: OK, I think you just added the stuff in blue, Quote:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 19th September 2016 at 12:18. |
|
|
|