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. |
14th June 2011, 02:06 | #201 | Link | |
Registered User
Join Date: Jan 2011
Posts: 121
|
Quote:
Code:
function ConvertCore(clip c, int times) { times == 0 ? c : c.ConvertToYUY2(interlaced = True).ConvertToYV12(interlaced = True).ConvertCore(times - 1) } function ConvertGavino(clip c, int times) { times == 0 ? c : c.YV12ToYUY2_26(interlaced = True).YUY2ToYV12_26(interlaced = True).ConvertGavino(times - 1) } bars = ColorBars(pixel_type = "YV12") core = bars.Animate(0, 500, "ConvertCore", 0, 500) gavino = bars.Animate(0, 500, "ConvertGavino", 0, 500) return StackHorizontal(core, gavino) Note that I transcribed the script by sight from another computer, so there might be typos. |
|
14th June 2011, 12:45 | #202 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Comparing Apples with Apples seems to work fine.
Code:
function ConvertCore(clip c, int times) { times == 0 ? c : c.ConvertToYUY2(interlaced=True, chromaresample="Bilinear").ConvertToYV12(interlaced=True, chromaresample="Bilinear").ConvertCore(times - 1) } |
15th June 2011, 10:14 | #204 | Link | |
Registered User
Join Date: Jan 2011
Posts: 121
|
Quote:
Thanks for pointing out that parameter. I just checked with Subtract and Levels, and no matter how many round trips I take, your new code works exactly the same as Gavino's with chromaresample = "Bilinear." Good work! |
|
15th June 2011, 18:38 | #205 | Link |
Registered User
Join Date: Feb 2011
Posts: 14
|
Need help with AviSynth 2.6. The performance with Yatta is just too slow for me.
I downloaded Alpha 3 and Yatta now crawls. Now I know 2.6 and Yatta work as it seems I'm alone with this issue, everyone else I've talked to say no problems. I don't think it's a hardware issue as others with lesser hardware are having no issues. So I'm asking AviSynth developers, any idea what could be going on? As soon as I replace the AviSynth.dll with the 2.5.8 version in SysWow64, the performance of Yatta skyrockets. Replace with 2.6, it's a slideshow. Thanks. The Rig I'm using: Windows 7 Ultimate 64, all updates installed. Intel i7 720QM (HT, 1.9-3Ghz) HD5870M (815/1125, running WHQL 11.6 Drivers) 8GB 1333 DDR3 Latest Intel Chipset drivers instaled Last edited by Ziddy76; 15th June 2011 at 18:42. |
15th June 2011, 23:19 | #208 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
From the YATTA thread:
YATTA, from a technical standpoint, is essentially a very complex AVS script which calls telecide to provide a visual interface to the patern matching process while creating a total encode override file. Apart from that, it's 8 years old. Are you still using the old plugins with it? |
15th June 2011, 23:46 | #209 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
@Ziddy76,
You are not giving us a great deal to work with here. YATTA is a monster set of scripts that beat up on a fist full of IVTC plugins. Try a big SetMemoryMax() In my testing 2.6 is the same or faster than 2.5.8 when running 2.5 scripts and plugins. The major difference is 2.6 has much better self control about blindly grabbing excess memory beyond the specified MemoryMax limit. 2.5.X can easily be tricked into grossly exceeding the MemoryMax limit. With 2.6 it obeys the limit. |
16th June 2011, 00:21 | #210 | Link | |
Registered User
Join Date: Feb 2011
Posts: 14
|
Quote:
I have not written any script. It's just a d2v and .yap file with metrics collected from ymc. Where am I placing this setmemorymax? It's just the Yatta program. It's driving my nuts because all I have to do is copy 2.5.8 into syswo64 and the performance is back. No script written. Copy 2.6 alpha 3, and it's a slideshow again. I feel that I am missing something that is prevent from 2.6 and Yatta from functioning properly. All the plugins are up to date. And using the last version of Yatta which was released about a week ago. And no it's not a problem with Yatta being 8 years old. I've already said it works fine with other users, they don't seem to have any problems. I'm missing something. Has to be something. Last edited by Ziddy76; 16th June 2011 at 00:31. |
|
16th June 2011, 22:49 | #211 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
@Ziddy76,
Where exactly did you download your copy of Yatta from (Exact URL please). The old one I found on my disk works perfectly. The SetMemoryMax goes in the Avisynth scripts created by Yatta. You could create a special Script.AVSI in your Avisynth plugin folder with the required script line to auto-load first so you don't need to stuff around with Yatta. |
17th June 2011, 16:06 | #212 | Link |
もこたんインしたお!
Join Date: Jan 2008
Location: Finland / Japan
Posts: 512
|
Newest version of YATTA at the moment is available from here (I would guess Ziddy76 uses one of those 131 builds there). Surprisingly, Myrsloik has taken the time lately to update it and fix certain bugs as well as bring it up to the times in certain things.
__________________
[I'm human, no debug]
|
18th June 2011, 00:12 | #213 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
@JEEB,
I know you are trying to be helpful but, please don't prompt for inexperienced user. I want to know exactly where Ziddy76 got there copy from. So many times people download "improved" versions of product that expose issues that the standard version never does. Fine if Ziddy76 got it from ivtc.org, but I need it to be stated. Something about Ziddy76's setup is exposing a problem I would like to get to the bottom of the problem. |
19th June 2011, 16:29 | #214 | Link |
Registered User
Join Date: Nov 2006
Posts: 773
|
Not sure if it's a v2.6 problem but i find the convertion YUY2 to YV12 blurry !
yuy2: http://www.sendspace.com/file/jlakv8 YV12 (convertion) : http://www.sendspace.com/file/v55p4v Take a look at the end of the large magenta bar for instance, is this normal ? zoom-in (gives a better idea) YUY2: http://www.sendspace.com/file/jwsq53 YV12: http://www.sendspace.com/file/xpvn4f Last edited by Mounir; 21st June 2011 at 15:39. |
20th June 2011, 01:28 | #217 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
@Wilbert,
It is ordered input dithering with a 02/31 recursive Bayer pattern (contrast normal 13/42 pattern) modified for equal sums in both rows and columns. Avery Lee described the recursive generation in his blog a while ago on Dithering. I modified the resultant pattern for equal summing to eliminate an obvious pattern visible in 16x16 cells. The dithering is added as an extra lower 8 bits (4bits for chroma) on the input pixels, making 16bit data. This is then used as an index into a 65K LUT to get the output 8 bit pixel. The dither pattern effectively replaces the 0.5 rounding term in generating the LUT. A non-dithered TV->PC levels translation i.e. O=(I-16)*255/219, results in only 219 distinct output values and causes banding. With dithering the output is evenly distributes with all 256 output values used. E.g input values 128 would like output value 130.41. Without dithering this is always rounded to 130. With dithering 41% of pixels become 131 and 59% become 130. The distribution is based on spatial position. This implementation is very fast. A better model might be error diffusion but this cannot be done with a simple LUT. LUT code without dither. Code:
for (int y=0; y<vi.height; ++y) { for (int x=0; x<vi.width; ++x) { p[x] = map[p[x]]; } p += pitch; } Code:
for (int y=0; y<vi.height; ++y) { const int _y = (y << 4) & 0xf0; for (int x=0; x<vi.width; ++x) { p[x] = map[ p[x]<<8 | ditherMap[(x&0x0f)|_y] ]; } p += pitch; } |
20th June 2011, 02:23 | #218 | Link | |
Registered User
Join Date: Feb 2011
Posts: 14
|
Quote:
Last edited by Ziddy76; 20th June 2011 at 03:00. |
|
20th June 2011, 06:54 | #220 | Link |
Registered User
Join Date: Jun 2009
Location: UK
Posts: 263
|
@Ziddy76, just in case you're starting to feel persecuted... [SYMPATHETIC GRIN]
The reason IanB needs to know exactly which version you're using is so that he can try to recreate and investigate your problem. Otherwise, he'd have to just guess at which version, do tests with that, and if (after probably a lot of work) he couldn't find anything wrong he wouldn't even know if that was because he was testing the wrong version (i.e. one that doesn't interact with the new AViSynth alpha the same way yours does) or because the problem is caused by something else entirely. You need to help IanB to help you (and thereby to help everyone): Be as precise as you can about the set-up you're using. |
|
|