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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th September 2010, 05:37   #61  |  Link
Esc
Registered User
 
Esc's Avatar
 
Join Date: Jan 2005
Posts: 74
When I try to use aWarpSharp2 after MCTemporalDenoise, I get error:
CAVIStreamSynth: System Exception - Access Violation at 0x4981415, reading from 0x0.
Other functions seem to not matter at all. Here are the two lines
Code:
MCTemporalDenoise(settings="high",edgeclean=true)
aWarpSharp2()
If I switch them, it works again.
Source is mpeg2source from a dvd rip.

Nice thinning btw!
Esc is offline   Reply With Quote
Old 15th September 2010, 16:31   #62  |  Link
MajorX
Registered User
 
Join Date: Mar 2010
Posts: 52
Is it good to use aWarpSharp() for good result ...means default value for anime content (BluRay source)?
MajorX is offline   Reply With Quote
Old 15th January 2011, 12:51   #63  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 486
strange crash with crop

Code:
FFmpegSource2("13.mp4")
Crop(8, 0, -8, 0)
aWarpSharp2()
Code:
VirtualDub crash report -- build 32842 (release)
--------------------------------------

Disassembly:
0faa1380: 83e802          sub    eax, 02h
0faa1383: 7408            jz     0faa138d
0faa1385: 8b5114          mov    edx, [ecx+14h]
0faa1388: 8955fc          mov    [ebp-04h], edx
0faa138b: eb12            jmp    0faa139f
0faa138d: 397920          cmp    [ecx+20h], edi
0faa1390: 740a            jz     0faa139c
0faa1392: 8b4914          mov    ecx, [ecx+14h]
0faa1395: d1f9            sar    ecx, 1
0faa1397: 894dfc          mov    [ebp-04h], ecx
0faa139a: eb03            jmp    0faa139f
0faa139c: 897dfc          mov    [ebp-04h], edi
0faa139f: 8b4d08          mov    ecx, [ebp+08h]
0faa13a2: 8b09            mov    ecx, [ecx]
0faa13a4: 8bc6            mov    eax, esi
0faa13a6: e875fcffff      call   0faa1020
0faa13ab: 8945e4          mov    [ebp-1ch], eax
0faa13ae: 83c003          add    eax, 03h
0faa13b1: c1f802          sar    eax, 02h
0faa13b4: f6050060aa0f10  test   [0faa6000], 10h
0faa13bb: 8945e8          mov    [ebp-18h], eax
0faa13be: 897d08          mov    [ebp+08h], edi
0faa13c1: 0f8448010000    jz     0faa150f
0faa13c7: 397dfc          cmp    [ebp-04h], edi
0faa13ca: 0f8e49020000    jle    0faa1619
0faa13d0: 8b75f8          mov    esi, [ebp-08h]
0faa13d3: 8b7df0          mov    edi, [ebp-10h]
0faa13d6: 8b55f4          mov    edx, [ebp-0ch]
0faa13d9: 33c0            xor    eax, eax
0faa13db: 8b4d08          mov    ecx, [ebp+08h]
0faa13de: 85c9            test   ecx, ecx
0faa13e0: 0f45c2          cmovnz eax, edx
0faa13e3: 41              inc    ecx
0faa13e4: 03d0            add    edx, eax
0faa13e6: 3b4dfc          cmp    ecx, [ebp-04h]
0faa13e9: 0f44d0          cmovz  edx, eax
0faa13ec: 2bf0            sub    esi, eax
0faa13ee: 8b4de8          mov    ecx, [ebp-18h]
0faa13f1: 83ef10          sub    edi, 10h
0faa13f4: 2bfe            sub    edi, esi
0faa13f6: 660f6e450c      movd   xmm0, [ebp+0ch]
0faa13fb: 660f70c000      pshufd xmm0, xmm0, 00h
0faa1400: 660f6bc0        packssdw xmm0, xmm0
0faa1404: 660f67c0        packuswb xmm0, xmm0
0faa1408: eb06            jmp    0faa1410
0faa140a: 8d9b00000000    lea    ebx, [ebx+00]
0faa1410: f30f6f56ff      movdqu xmm2, [esi-01h]
0faa1415: 660f6f1e        movdqa xmm3, [esi]      <-- FAULT
0faa1419: f30f6f6601      movdqu xmm4, [esi+01h]
0faa141e: f30f6f6c16ff    movdqu xmm5, [esi+edx-01h]
0faa1424: 660f6f3416      movdqa xmm6, [esi+edx]
0faa1429: f30f6f7c1601    movdqu xmm7, [esi+edx+01h]
0faa142f: 660f6fca        movdqa xmm1, xmm2
0faa1433: 660fe0cc        pavgb  xmm1, xmm4
0faa1437: 660fe0d9        pavgb  xmm3, xmm1
0faa143b: 660f6fcd        movdqa xmm1, xmm5
0faa143f: 660fe0cf        pavgb  xmm1, xmm7
0faa1443: 660fe0f1        pavgb  xmm6, xmm1
0faa1447: 660f6fcb        movdqa xmm1, xmm3
0faa144b: 660fd8de        psubusb xmm3, xmm6
0faa144f: 660fd8f1        psubusb xmm6, xmm1
0faa1453: 660febf3        por    xmm6, xmm3
0faa1457: f30f6f4c06ff    movdqu xmm1, [esi+eax-01h]
0faa145d: f30f6f5c0601    movdqu xmm3, [esi+eax+01h]
0faa1463: 660fe0ea        pavgb  xmm5, xmm2
0faa1467: 660fe0fc        pavgb  xmm7, xmm4
0faa146b: 660fe0cd        pavgb  xmm1, xmm5
0faa146f: 660fe0df        pavgb  xmm3, xmm7
0faa1473: 660f6fe9        movdqa xmm5, xmm1
0faa1477: 660fd8cb        psubusb xmm1, xmm3
0faa147b: 660fd8dd        psubusb xmm3, xmm5
0faa147f: 66000000        add    [eax], al

Built on Aegis on Fri Dec 24 13:18:44 2010 using compiler version 1400

Windows 6.1 (Windows Vista x64 build 7600) []

EAX = 00000000
EBX = 03cd7ba0
ECX = 000000ac
EDX = 000002c0
EBP = 0018f5f4
ESI = 03c5bf58
EDI = 0007bc38
ESP = 0018f5cc
EIP = 0faa1415
EFLAGS = 00210212
FPUCW = 027f
FPUTW = ffff

Crash reason: Access Violation

Crash context:
An out-of-bounds memory access (access violation) occurred in module 'aWarpSharp2'...

...reading address 00000000.

Pointer dumps:

EBX   03cd7ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ESI   03c5bf58: 3b393839 433c383b 5c5a544f 464a5358 5457544f 41464c4e 2e2a2f37 41383031
ESP   0018f5c8: 0faa13ab 03022bb8 0077ac20 0018f67c 000002b0 000000ac 000002b0 03cd7ba0
      0018f5e8: 000002c0 03c5bf58 000001e0 0018f610 0faa30b3 00000000 00000080 03022bb8
      0018f608: 0018f67c 00000000 00000000 02dd84b4 030ca60c 0018f67c 00000000 030ca644
      0018f628: 03022bb8 03020d50 00000000 0018f66c 02eeea89 00000000 02dd93ad 03020d50
EBP   0018f5f0: 000001e0 0018f610 0faa30b3 00000000 00000080 03022bb8 0018f67c 00000000
      0018f610: 00000000 02dd84b4 030ca60c 0018f67c 00000000 030ca644 03022bb8 03020d50
      0018f630: 00000000 0018f66c 02eeea89 00000000 02dd93ad 03020d50 0018f67c 00000000
      0018f650: 03022bb8 0018f700 0309f7b8 0309f7b8 023183d8 00000000 00000000 0018f6d4

Thread call stack:
0faa1415: aWarpSharp2!00001415
0faa30b3: aWarpSharp2!000030b3
02dd84b4: AviSynth!avs_release_value [02dd0000+8320+194]
02dd93ad: AviSynth!avs_release_value [02dd0000+8320+108d]
02ddcc1a: AviSynth!DllCanUnloadNow [02dd0000+c700+51a]
7727b2aa: ntdll!RtlFormatCurrentUserKeyPath [77240000+3aff9+2b1]
7727b22d: ntdll!RtlFormatCurrentUserKeyPath [77240000+3aff9+234]
02ddce57: AviSynth!DllCanUnloadNow [02dd0000+c700+757]
02dde50b: AviSynth!DllCanUnloadNow [02dd0000+c700+1e0b]
77273253: ntdll!RtlInterlockedFlushSList [77240000+325d5+c7e]
77273282: ntdll!RtlInterlockedFlushSList [77240000+325d5+cad]
0faa1415: aWarpSharp2!00001415
02dde77f: AviSynth!DllCanUnloadNow [02dd0000+c700+207f]
6f366470: AVIFIL32!AVIStreamRead [6f360000+6450+20]
004c703d: AVIReadTunnelStream::Read()
004dbcb1: VideoSourceAVI::_read()
004c81b5: DubSource::read()
004335a8: VDFilterFrameVideoSource::RunRequests()
77273282: ntdll!RtlInterlockedFlushSList [77240000+325d5+cad]
77272eb0: ntdll!RtlInterlockedFlushSList [77240000+325d5+8db]
76626899: USER32!gapfnScSendMessage [76610000+15fc8+8d1]
76626941: USER32!gapfnScSendMessage [76610000+15fc8+979]
004619f6: VDProject::UpdateFrame()
0042e1da: ?$vdfastdeque::push_back_extend()
0043237f: VDFilterFrameQueue::Add()
00431bb2: VDFilterFrameManualSource::CreateRequest()
00462752: VDProject::DisplayFrame()
00460b28: VDProject::MoveToFrame()
004650ed: VDProject::Open()
0051d29e: VDAutoLogger::VDAutoLogger()
004694c9: VDProjectUI::HandleDragDrop()
72b26758: uxtheme!GetCurrentThemeName [72b00000+263ae+3aa]
72b10b49: uxtheme!00010b49
72b10b96: uxtheme!00010b96
766261d3: USER32!gapfnScSendMessage [76610000+15fc8+20b]
77273209: ntdll!RtlInterlockedFlushSList [77240000+325d5+c34]
77291c39: ntdll!RtlDosPathNameToNtPathName_U [77240000+51b05+134]
77273282: ntdll!RtlInterlockedFlushSList [77240000+325d5+cad]
0046daa2: _catch$?MainWndProc@VDProjectUI@@IAEJIIJ@Z$0()
00465ac0: VDProjectUI::WndProc()
00479b65: VDUIFrame::StaticWndProc()
76626238: USER32!gapfnScSendMessage [76610000+15fc8+270]
766268ea: USER32!gapfnScSendMessage [76610000+15fc8+922]
76626899: USER32!gapfnScSendMessage [76610000+15fc8+8d1]
772500e6: ntdll!KiUserCallbackDispatcher [77240000+100b8+2e]
76627d31: USER32!LoadStringW [76610000+17c12+11f]
7664eec0: USER32!PeekMessageA [76610000+3ed58+168]
76628112: USER32!DispatchMessageA [76610000+18103+f]
00452596: WinMain@16()
005b78db: __tmainCRTStartup()
75443677: kernel32!BaseThreadInitThunk [75430000+13665+12]
77279d42: ntdll!RtlInitializeExceptionChain [77240000+39cdf+63]
77279d15: ntdll!RtlInitializeExceptionChain [77240000+39cdf+36]

-- End of report
If I place Crop after aWarpSharp2 or comment out Crop, it works fine. And the original aWarpSharp works fine too. Using AviSynth 2.6 MT version 2009.09.19.

When using AviSynth 2.5.8 MT x64 version 4/16/2010, Veedub64 doesn't crash, but just gives me blank screen.

Last edited by HolyWu; 15th January 2011 at 13:12.
HolyWu is offline   Reply With Quote
Old 26th March 2012, 05:01   #64  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 821
Weird crash of aWarpsharp2

Dear experienced developers,

I'm having hard time to make aWarpsharp2 function properly. Please find sample VOB with AVS script (~15 MB) and also all
necessary plugins
(~10MB) to reproduce the error.
Whenever there is the last line which invokes sharpening function
Code:
aWarpSharp2(thresh=120, blur=2, type=0, depth=16, chroma=4)
included the script fails.
AVS2AVI and AVSMeter both crash with failure pointing to awarpsharp.dll
AvspMod crash report when trying to preview the script:
PHP Code:
Traceback (most recent call last):
  
File "F:\AvsPmod\src\AvsP.py"line 7405in OnMenuVideoRefresh
  File 
"F:\AvsPmod\src\AvsP.py"line 11109in ShowVideoFrame
  File 
"F:\AvsPmod\src\AvsP.py"line 11696in PaintAVIFrame
  File 
"pyavs.pyo"line 343in DrawFrame
  File 
"pyavs.pyo"line 320in _GetFrame
  File 
"avisynth.pyo"line 277in GetFrame
WindowsError
exceptionaccess violation reading 0x00000000 
I'm using AviSynth 2.60, build Sep 13 2011. No multithreading involved at all, Win 7 x64 @ Intel E8400, 8GB RAM.

Is there any alternative plugin that would provide same/very similar output to aWarpsharp?

in advance for your replies!
kypec is online now   Reply With Quote
Old 27th March 2012, 14:47   #65  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
Fixed, see updated link in first post.
SEt is offline   Reply With Quote
Old 27th March 2012, 15:14   #66  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Thanks, SEt!
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 28th March 2012, 01:18   #67  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
While I'm at it, let's post some improvements that were implemented years ago but never made it to public: new version 2012.03.28.

Changes:
1) Added new final part aWarp4 that takes 4x upsampled source for better final subpixel interpolation. Allows producing much sharper result with lower depth, so less deformations. Examples:
Code:
aWarp4(Spline36Resize(width*4, height*4, 0.375, 0.375), aSobel().aBlur(), depth=3)
aWarp4(nnedi3_rpow2(rfactor=2).Spline36Resize(width*4, height*4, 0.25, 0.25), aSobel().aBlur(), depth=3)
aWarp4(nnedi3_rpow2(rfactor=2).nnedi3_rpow2(rfactor=2), aSobel().aBlur(), depth=2)
Note that upsampling should be left-top aligned, so Spline36Resize(width*4, height*4) or nnedi3_rpow2(rfactor=4) won't produce correct results.

2) aWarpSharp2 can now be also called by aWarpSharp() with internal parameters conversion for compatibility with ancient scripts. Direct aWarpSharp2 call is encouraged though.
3) New chroma values: 5 and 6: the same as 3 and 4, but luma isn't processed and just copied. Useful for filtering sources with certain chroma problems.
4) Changed some defaults.
SEt is offline   Reply With Quote
Old 28th March 2012, 06:47   #68  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 821
SEt, much appreciated!
kypec is online now   Reply With Quote
Old 28th March 2012, 11:43   #69  |  Link
mastrboy
Registered User
 
Join Date: Sep 2008
Posts: 287
Thanks
mastrboy is offline   Reply With Quote
Old 12th June 2012, 05:12   #70  |  Link
handsomejack
Registered User
 
Join Date: Jun 2009
Posts: 13
I cant download Toon 1.1, please upload to another host.
handsomejack is offline   Reply With Quote
Old 12th June 2012, 05:40   #71  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,514
Quote:
Originally Posted by handsomejack View Post
I cant download Toon 1.1, please upload to another host.
Toon-v1.1
http://www.mediafire.com/?6p3dx7cpc7dyakl
poisondeathray is offline   Reply With Quote
Old 12th June 2012, 06:59   #72  |  Link
handsomejack
Registered User
 
Join Date: Jun 2009
Posts: 13
Thanks poisondeathray, you are lifesaver
handsomejack is offline   Reply With Quote
Old 8th June 2013, 14:18   #73  |  Link
luke83
Registered User
 
luke83's Avatar
 
Join Date: Oct 2010
Posts: 109
Quote:
Originally Posted by poisondeathray View Post
what's matter Toon in aWarpsharp2???

Quote:
It's good idea to do anti-aliasing and temporal filtering over edge mask before passing it to warp stage if you want more stable results.
do you mean an external anti-aliasing filter? (like AAA, DAA or FAA)
Is there an internal function for that?
luke83 is offline   Reply With Quote
Old 8th June 2013, 16:03   #74  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,514
Quote:
Originally Posted by luke83 View Post
what's matter Toon in aWarpsharp2???
Green borders with awarpsharp (hence the reason for awarpsharp2's existence), read the first post .

http://forum.doom9.org/showthread.php?p=1289036#post1289036



Quote:
do you mean an external anti-aliasing filter? (like AAA, DAA or FAA)
Is there an internal function for that?
I don't know who you are quoting for this ? or what context this refers to ??
poisondeathray is offline   Reply With Quote
Old 8th June 2013, 17:53   #75  |  Link
luke83
Registered User
 
luke83's Avatar
 
Join Date: Oct 2010
Posts: 109
Quote:
Originally Posted by poisondeathray View Post
Green borders with awarpsharp (hence the reason for awarpsharp2's existence), read the first post .
honestly i had green borders with the new version of Avisynth 2.6 MT optimized by SET XD
However...
Quote:
Originally Posted by poisondeathray View Post
I don't know who you are quoting for this ? or what context this refers to ??
I've quoted it from the readme of awarpsharp2
luke83 is offline   Reply With Quote
Old 16th August 2015, 06:05   #76  |  Link
killerteengohan
Registered User
 
Join Date: Feb 2013
Posts: 68
This plugin works pretty good. I wouldn't mind more control over the depth though for a more exact line measurement.

Is there a way to use depth with decimals like with the regular awarpsharp or can it be implemented?

I cannot use depth=3.5 on awarpsharp2 but its fine with awarpsharp.

depth=1 is almost the same as depth=3.5 on the original awarpsharp when it comes to line thinning, but not quite as much and if I set it to depth=2 in awarpsharp2, its more than depth=3.5 on the original awarpsharp and I was hoping to get the about the exact same thinning level.
killerteengohan is offline   Reply With Quote
Old 16th August 2015, 14:56   #77  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,085
Quote:
Originally Posted by killerteengohan View Post
This plugin works pretty good. I wouldn't mind more control over the depth though for a more exact line measurement.

Is there a way to use depth with decimals like with the regular awarpsharp or can it be implemented?

I cannot use depth=3.5 on awarpsharp2 but its fine with awarpsharp.

depth=1 is almost the same as depth=3.5 on the original awarpsharp when it comes to line thinning, but not quite as much and if I set it to depth=2 in awarpsharp2, its more than depth=3.5 on the original awarpsharp and I was hoping to get the about the exact same thinning level.
You started a thread a while back in which SeT said this:

Quote:
Originally Posted by SEt View Post
aWarpSharp2 is exactly the same algorithm as aWarpSharp, only with some bugfixes. If you are getting significantly different results you are doing something wrong. Latest aWarpSharp2 supports aWarpSharp alias that remaps the parameter values automatically if you absolutely can't read the documentation.

Btw, aWarpSharp2 has integer parameters because algorithm uses actually integers, so again aWarpSharp2 is exactly the same as aWarpSharp, just removes the false feeling that slight change in float number changes something when it actually maps to the same integer inside.
Reel.Deel is offline   Reply With Quote
Old 9th November 2015, 09:37   #78  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,036
hi SEt

this http://www.dropbox.com/s/5s6xht0xu80...8_x64.zip?dl=1 from http://avisynth.nl/index.php/AviSynt...2B_x64_plugins

has the same crash http://forum.doom9.org/showpost.php?...6&postcount=18 in avs 64

and in avs+ 64 (even with "width=640, height=480", since avs 64 will work fine here)

Code:
AVSMeter 2.1.5 (x64)
AviSynth+ 0.1 (r1576, x64) (2.6.0.5)

Exception 0xC000001D
STATUS_ILLEGAL_INSTRUCTION

Press any key to exit...
but in avs+ 32 with awarpsharp2-2015.10.25 by cretindesalpes will be fine in both image size

Apart from this problem, I think Y8 is important for speed up script like aWarpSharp4xx since aWarpSharp2 uses MPEG-1 chroma placement, yes, make aWarpSharp2 uses MPEG-2 chroma placement and supports other planar colorspaces is better but I think add Y8 more important
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 30th December 2015, 23:42   #79  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 610
aWarpSharp2 2015-12-30:
  • Support for YV16 and YV24 colorspaces
  • Support for Y8 colorspace, by _08
  • Added parameter depthC specifying the depth for the chroma planes, by _08
  • Added parameter cplace to specify MPEG1 or MPEG2 chroma placement
  • Some crashes of the beta version hopefully solved.
__________________
dither 1.27.2 for AviSynth | avstp 1.0.3 for AviSynth development | fmtconv r19 for Vapoursynth | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 9th January 2016, 00:20   #80  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,036
Quote:
Originally Posted by cretindesalpes View Post
aWarpSharp2 2015-12-30:
  • Support for YV16 and YV24 colorspaces
  • Support for Y8 colorspace, by _08
  • Added parameter depthC specifying the depth for the chroma planes, by _08
  • Added parameter cplace to specify MPEG1 or MPEG2 chroma placement
  • Some crashes of the beta version hopefully solved.


this work with no crashes, now the only thing is missed is x64 plugin
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.