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 October 2017, 07:09 | #3642 | Link | |
Registered User
Join Date: Oct 2016
Posts: 111
|
Quote:
Without CUDA: https://i.imgur.com/TuO78nY.png With CUDA: https://i.imgur.com/TUSWvuO.png With CUDA 2: https://i.imgur.com/c06mL6c.png |
|
2nd October 2017, 13:08 | #3643 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
I hope someone port that to use opencl (maybe Khanattila since he has experience in it)
so many people can use it
__________________
See My Avisynth Stuff |
2nd October 2017, 20:13 | #3645 | Link |
/人 ◕ ‿‿ ◕ 人\
Join Date: May 2011
Location: Russia
Posts: 643
|
They are just different, it's hard to say which one is better.
https://i.imgur.com/JRM9vJb.png https://i.imgur.com/8AsGgNL.png 134 fps on 1920x1080 video ("Fast" Preset) |
5th October 2017, 14:42 | #3646 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
The following line works in standard avisynth but not in avs+ x64.
Code:
black = BlankClip(last, width=64, height=32, Color_yuv=color_black) Code:
white = BlankClip(last, width=64, height=32, Color_yuv=color_white) |
5th October 2017, 15:12 | #3647 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
|
In which way does it "not work"? Do you have any error messages?
I suppose it doesn't know color constants? Code:
--------------------------- VirtualDub Error --------------------------- Avisynth open failure: I don't know what 'color_black' means. (H:\Video\black-white.avs, line 1) --------------------------- OK --------------------------- My former AviSynth 2.56 installation seems to have provided this file in AviSynth 2.5\plugins already. But the color constants known in legacy AviSynth 2.55+ are RGB colors, not YUV. __ Actually, nope ... sorry. The file "colors_rgb.avsi" does exist in all my plugin directories for all AviSynth flavours, but is not auto-loaded. I have to Import() it explicitly to make it work. Last edited by LigH; 5th October 2017 at 15:28. |
5th October 2017, 20:20 | #3648 | Link |
Registered User
Join Date: Oct 2011
Posts: 275
|
Already had similar issues with avs+ x64
blankclip(color=color_black) # doesn't work, " I don't know what color_black means " blankclip(color=$000000) #works Switched for Hex values when i needed it but did not suspected this could be a bug |
5th October 2017, 20:39 | #3649 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
|
Well, if you explicitly
Code:
Import("colors_rgb.avsi") |
5th October 2017, 21:07 | #3650 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff |
|
7th October 2017, 08:53 | #3653 | Link |
Registered User
Join Date: Dec 2011
Posts: 354
|
Hello
I'm stabilizing shaky video with deshaker. Converting it to 16-bit so I could reduce rounding errors. Like this Code:
Function YV12toRGB32(clip c) { c.convertTo16bit() converttorgb64(matrix="Rec709") convertto8bit() } Function RGB32toYV24(clip c) { c.ConvertTo16bit() ConvertToYUV444(matrix="Rec709") convertto8bit() } s = source() s.yv12torgb32().dehsaker().RGB32toYV24() It was clear it's caused by color convertion. So I just typed Code:
s.yv12torgb32().RGB32toYV24().yv12torgb32().RGB32toYV24().yv12torgb32().RGB32toYV24().yv12torgb32().RGB32toYV24() source - https://i.imgur.com/V3aioqT.png converted - https://i.imgur.com/kddpb3i.png Is it a bug or something? (Pictures are resized since it doesn't matter for what we're talking anyway.) Last edited by bxyhxyh; 7th October 2017 at 10:23. |
7th October 2017, 11:49 | #3654 | Link |
Retried Guesser
Join Date: Jun 2012
Posts: 1,373
|
It does look like a bug. The problem seems to be in ConvertTo8bit; its output is aprox. 1 step darker after each pass, probably a rounding issue. Using dither seems to fix it:
Code:
Function YV12toRGB32(clip c) { c.convertTo16bit() converttorgb64(matrix="Rec709") convertto8bit(dither=0) } Function RGB32toYV24(clip c) { c.ConvertTo16bit() ConvertToYUV444(matrix="Rec709") convertto8bit(dither=0) } Code:
Function YV12toRGB32(clip c) { c.convertTo16bit() converttorgb64(matrix="Rec709") RGBAdjust(rb=127, gb=127, bb=127) convertto8bit() } Function RGB32toYV24(clip c) { c.ConvertTo16bit() RGBAdjust(rb=127, gb=127, bb=127) ConvertToYUV444(matrix="Rec709") convertto8bit() } Last edited by raffriff42; 7th October 2017 at 12:06. |
8th October 2017, 18:14 | #3656 | Link |
Registered User
Join Date: Aug 2005
Posts: 231
|
Probably trivial but can't find the workaround. My little script gives There is no function named 'SetMTMode' (line 3), while it works with the older Avisynth 2.6 MT from SEt. Using Avisynth+ r2508, QTGMC 3.357s with its updated plugins, W10 x64. Thanks for any tips.
Code:
global MeGUI_darx = 143 global MeGUI_dary = 80 SetMTMode(5, 4) SetMemoryMax(1000) LoadPlugin("F:\MeGUI\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("G:\source.d2v") SetMTMode(2) QTGMC( Preset="Slow", EdiThreads=2 ) Distributor() crop(14, 4, -10, -4)
__________________
Win 10 Pro x64 |
8th October 2017, 18:25 | #3657 | Link | |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
Quote:
|
|
8th October 2017, 18:26 | #3658 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
|
There is indeed no function named "SetMTMode" in AviSynth+.
See AviSynth Wiki: AviSynth+ – 4. MT notes Furthermore, use Distributor() only when you are really sure you know why. If not, it may multiply threads unexpectedly. |
10th October 2017, 16:08 | #3660 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Can someone give me a dumbed-down summary of the different MT modes? I've read this:
http://avisynth.nl/index.php/AviSynt...orrect_MT_mode But it's not very clear to me. It doesn't really state how the modes work, and especially the bit for MT_NICE_FILTER isn't clear at all on when it should be used, instead focusing on when it shouldn't. I'm guessing that MT_NICE_FILTER requests multiple frames in multiple threads, but only one instance of the filter, and that MT_MULTI_INSTANCE makes multiple instances, so it's a bit like calling the same plugin multiple times on trimmed/selecteveryed subclips and then joining or interleaving them? Or does it crop frames up into smaller frames then stack them back together, or something? (probably not) And that MT_SERIALIZED is the same as plain old single-threaded AviSynth? |
Thread Tools | Search this Thread |
Display Modes | |
|
|