Deinterlacing Trouble

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Deinterlacing Trouble

Postby Anno-san » Thu Dec 24, 2009 4:24 pm

Hey AMV goers. I am experiencing difficulty deinterlacing Berserk footage in .vob form (ripped from DVD) using smart deinterlace 2.8 beta 1. The main problem is that i am still seeing the blurring effect during fast motion sequences and on the edges of objects like

this

Image

and this

Image


configuration of smart deinterlace 2.8 beta 1
Motion Processing:

Frame-and-field differencing

edge-directed interpolate

motion map denoising

Motion threshold: 20
scene change threshold: 100

The video compression was Huffyuv v 2.1.1 and full processing mode

again, when I converted the vob selection to AVI with these selections, the blurring, grain, edge blurring were still present. Any advice on the deinterlacing?
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby Anno-san » Thu Dec 24, 2009 4:35 pm

EDIT


Revised pictures

Image

Image
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby mirkosp » Thu Dec 24, 2009 5:45 pm

Looks like blocking to me. Try using deblock() in avisynth, or if you did everything directly in virtualdub, I guess you could use virtualdub's deblocking filter.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Deinterlacing Trouble

Postby Scintilla » Thu Dec 24, 2009 9:20 pm

Here's some advice: if Berserk is just a standard telecine job like many shows are, don't deinterlace it -- inverse telecine it instead. I say "if" because I've never worked with Berserk before.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Deinterlacing Trouble

Postby Anno-san » Fri Dec 25, 2009 4:49 pm

First of all, is there an external deblocking filter for virtualdubmod that anyone knows of? If not how do i use AVI synth to do so? Is there any coding knowledge needed? Last, how do i inverse telicline it?
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby Enigma » Fri Dec 25, 2009 7:00 pm

Most of the questions u need can be solved by reading Read ErMaC & AbsoluteDestiny's Friendly AMV Guides
User avatar
Enigma
That jolly ol' bastid
 
Joined: 07 Mar 2009
Location: California
Status: Free

Re: Deinterlacing Trouble

Postby Anno-san » Sat Dec 26, 2009 11:39 am

I saved an AviSynth script containing the following

loadplugin("C:\Users\User\Desktop\stuff\AviSynth 2.5\plugins\TIVTC.dll")
AVISource("Berserk trailer 2.avi")
TFM(order=0) #0=BFF, 1=TFF
TDecimate()

in attempts to inverse telecine the AVI file. I go run the script and the .avs file doesn't even show up!
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby Scintilla » Sat Dec 26, 2009 12:19 pm

What do you mean "doesn't show up" -- you know where you saved the script file, right?
What happens when you open the .AVS file in VirtualDub (do NOT use the "Open file via AVISynth" option!) -- do you get an error message, and if so, what is it?
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Deinterlacing Trouble

Postby Anno-san » Sat Dec 26, 2009 1:34 pm

I mean the .AVS file doesn't appear in the directory i saved it in when i go to file>run script in virtualdubmod. It does not appear when i have "all scripts" selected in the drop down bar when i go to open the file through VDM and when I choose "all files" and select the avs script, it gives an error.
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby Anno-san » Sat Dec 26, 2009 1:39 pm

Now the error for the same exact .avs file i opened with VDM, causes virtualdubmod to just crash instead of giving an error, very suspicious how the outcome of opening the SAME EXACT FILE changes when I go to open it again.

Here's the crash report:
VirtualDub crash report -- build 2540 (release)
--------------------------------------

Disassembly:
0056e640: 02eb add ch, bl
0056e642: cd8d int 8d
0056e644: 41 inc ecx
0056e645: ff8b4c24042b dec dword ptr [ebx+2b04244c]
0056e64b: c1c38d rol ebx, 8d
0056e64e: 41 inc ecx
0056e64f: fe8b4c24042b dec byte ptr [ebx+2b04244c]
0056e655: c1c38d rol ebx, 8d
0056e658: 41 inc ecx
0056e659: fd std
0056e65a: 8b4c2404 mov ecx, [esp+04]
0056e65e: 2bc1 sub eax, ecx
0056e660: c3 ret
0056e661: 8d41fc lea eax, [ecx-04]
0056e664: 8b4c2404 mov ecx, [esp+04]
0056e668: 2bc1 sub eax, ecx
0056e66a: c3 ret
0056e66b: cc int 3
0056e66c: cc int 3
0056e66d: cc int 3
0056e66e: cc int 3
0056e66f: cc int 3
0056e670: 8b542404 mov edx, [esp+04]
0056e674: 8b4c2408 mov ecx, [esp+08]
0056e678: f7c203000000 test edx, 00000003
0056e67e: 753c jnz strcmp+4c (0056e6bc)
0056e680: 8b02 mov eax, [edx]
0056e682: 3a01 cmp al, [ecx]
0056e684: 752e jnz strcmp+44 (0056e6b4)
0056e686: 0ac0 or al, al
0056e688: 7426 jz strcmp+40 (0056e6b0)
0056e68a: 3a6101 cmp ah, [ecx+01]
0056e68d: 7525 jnz strcmp+44 (0056e6b4)
0056e68f: 0ae4 or ah, ah
0056e691: 741d jz strcmp+40 (0056e6b0)
0056e693: c1e810 shr eax, 10
0056e696: 3a4102 cmp al, [ecx+02]
0056e699: 7519 jnz strcmp+44 (0056e6b4)
0056e69b: 0ac0 or al, al
0056e69d: 7411 jz strcmp+40 (0056e6b0)
0056e69f: 3a6103 cmp ah, [ecx+03]
0056e6a2: 7510 jnz strcmp+44 (0056e6b4)
0056e6a4: 83c104 add ecx, 04
0056e6a7: 83c204 add edx, 04
0056e6aa: 0ae4 or ah, ah
0056e6ac: 75d2 jnz strcmp+10 (0056e680)
0056e6ae: 8bff mov edi, edi
0056e6b0: 33c0 xor eax, eax
0056e6b2: c3 ret
0056e6b3: 90 nop
0056e6b4: 1bc0 sbb eax, eax
0056e6b6: d1e0 shl eax, 1
0056e6b8: 40 inc eax
0056e6b9: c3 ret
0056e6ba: 8bff mov edi, edi
0056e6bc: f7c201000000 test edx, 00000001
0056e6c2: 7414 jz strcmp+68 (0056e6d8)
0056e6c4: 8a02 mov al, [edx] <-- FAULT
0056e6c6: 42 inc edx
0056e6c7: 3a01 cmp al, [ecx]
0056e6c9: 75e9 jnz strcmp+44 (0056e6b4)
0056e6cb: 41 inc ecx
0056e6cc: 0ac0 or al, al
0056e6ce: 74e0 jz strcmp+40 (0056e6b0)
0056e6d0: f7c202000000 test edx, 00000002
0056e6d6: 74a8 jz strcmp+10 (0056e680)
0056e6d8: 668b02 mov ax, [edx]
0056e6db: 83c202 add edx, 02
0056e6de: 3a01 cmp al, [ecx]
0056e6e0: 75d2 jnz strcmp+44 (0056e6b4)
0056e6e2: 0ac0 or al, al
0056e6e4: 74ca jz strcmp+40 (0056e6b0)
0056e6e6: 3a6101 cmp ah, [ecx+01]
0056e6e9: 75c9 jnz strcmp+44 (0056e6b4)
0056e6eb: 0ae4 or ah, ah
0056e6ed: 74c1 jz strcmp+40 (0056e6b0)
0056e6ef: 83c102 add ecx, 02
0056e6f2: eb8c jmp strcmp+10 (0056e680)
0056e6f4: cc int 3
0056e6f5: cc int 3
0056e6f6: cc int 3
0056e6f7: cc int 3
0056e6f8: cc int 3
0056e6f9: cc int 3
0056e6fa: cc int 3
0056e6fb: cc int 3
0056e6fc: cc int 3
0056e6fd: cc int 3
0056e6fe: cc int 3
0056e6ff: cc int 3
0056e700: 8b54240c mov edx, [esp+0c]
0056e704: 8b4c2404 mov ecx, [esp+04]
0056e708: 85d2 test edx, edx
0056e70a: 7447 jz memset+53 (0056e753)
0056e70c: 33c0 xor eax, eax
0056e70e: 8a442408 mov al, [esp+08]
0056e712: 57 push edi
0056e713: 8bf9 mov edi, ecx
0056e715: 83fa04 cmp edx, 04
0056e718: 722d jc memset+47 (0056e747)
0056e71a: f7d9 neg ecx
0056e71c: 83e103 and ecx, 03
0056e71f: 7408 jz memset+29 (0056e729)
0056e721: 2bd1 sub edx, ecx
0056e723: 8807 mov [edi], al
0056e725: 47 inc edi
0056e726: 49 dec ecx
0056e727: 75fa jnz memset+23 (0056e723)
0056e729: 8bc8 mov ecx, eax
0056e72b: c1e008 shl eax, 08
0056e72e: 03c1 add eax, ecx
0056e730: 8bc8 mov ecx, eax
0056e732: c1e010 shl eax, 10
0056e735: 03c1 add eax, ecx
0056e737: 8bca mov ecx, edx
0056e739: 83e203 and edx, 03
0056e73c: c1e902 shr ecx, 02
0056e73f: 74 db 74

Windows 6.0 (Windows 2000 build 6002) [Service Pack 2]

EAX = 0000001b
EBX = 00000100
ECX = 02612b64
EDX = 0000001b
EBP = 0012f6d0
DS:ESI = 0023:00000007
ES:EDI = 0023:02602be8
SS:ESP = 0023:0012f6a4
CS:EIP = 001b:0056e6c4
FS = 003b
GS = 0000
EFLAGS = 00210202
FPUCW = ffff027f
FPUTW = ffffffff

MM0 = 00f0f0f000f0f0f0
MM1 = 0000000000000000
MM2 = 000000ef00ef00ef
MM3 = 000000ef00ef00ef
MM4 = 00f0f0f000f0f0f0
MM5 = 000000f000f000f0
MM6 = 8000000000000000
MM7 = 8000000000000000

Crash reason: Access Violation

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

Thread traces:

Thread 000013fc (Main thread)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(344)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(387)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(414)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(474)

Thread call stack:0056e6c4: strcmp()
00529034: VariableTable::Lookup()
00528657: CScriptInterpreter::LookupRootVariable()
00528549: CScriptInterpreter::ParseValue()
0056a13c: free()
00527a79: CScriptInterpreter::ParseExpression()
00528ad8: CScriptInterpreter::Token()
00527858: CScriptInterpreter::ExecuteLine()
0056ce9b: fgetc()
004832f6: ?$vector::push_back()
00497635: RunScript()
764213c9: USER32!SetWindowLongW [76410000+113b4+15]
0049259c: VDProjectUI::MenuHit()
76428e7d: USER32!InflateRect [76410000+18d4f+12e]
750140de: uxtheme!DrawThemeText [75010000+405e+80]
7502c37e: uxtheme!HitTestThemeBackground [75010000+1b1a8+11d6]
764306b8: USER32!IsWindow [76410000+2067b+3d]
764306b8: USER32!IsWindow [76410000+2067b+3d]
764303ab: USER32!DispatchMessageW [76410000+2021c+18f]
7501af85: uxtheme!GetThemeBool [75010000+a886+6ff]
750125a7: uxtheme!000025a7
750125f4: uxtheme!000025f4
76430245: USER32!DispatchMessageW [76410000+2021c+29]
76430454: USER32!DefWindowProcW [76410000+203b4+a0]
7643041f: USER32!DefWindowProcW [76410000+203b4+6b]
750129f8: uxtheme!000029f8
7643041f: USER32!DefWindowProcW [76410000+203b4+6b]
00494aa4: VDProjectUI::MainWndProc()
750338ec: uxtheme!GetThemePropertyOrigin [75010000+2224d+169f]
764306b8: USER32!IsWindow [76410000+2067b+3d]
764306b8: USER32!IsWindow [76410000+2067b+3d]
7501891b: uxtheme!IsThemeBackgroundPartiallyTransparent [75010000+809d+87e]
75018740: uxtheme!IsThemeBackgroundPartiallyTransparent [75010000+809d+6a3]
7642fd72: USER32!GetWindowLongW [76410000+1f8bf+4b3]
764284f5: USER32!EnumDisplayMonitors [76410000+1844c+a9]
7642fea1: USER32!GetWindowLongW [76410000+1f8bf+5e2]
7642fe61: USER32!GetWindowLongW [76410000+1f8bf+5a2]
7642fdf3: USER32!GetWindowLongW [76410000+1f8bf+534]
7642fea1: USER32!GetWindowLongW [76410000+1f8bf+5e2]
7642fe61: USER32!GetWindowLongW [76410000+1f8bf+5a2]
76429d6a: USER32!ReleaseDC [76410000+19ced+7d]
76429d75: USER32!ReleaseDC [76410000+19ced+88]
7502bff8: uxtheme!HitTestThemeBackground [75010000+1b1a8+e50]
76429d75: USER32!ReleaseDC [76410000+19ced+88]
76429f8d: USER32!WCSToMBEx [76410000+19ec1+cc]
76429f9d: USER32!WCSToMBEx [76410000+19ec1+dc]
777b5dae: ntdll!KiUserCallbackDispatcher [77750000+65d80+2e]
76428e7d: USER32!InflateRect [76410000+18d4f+12e]
76430454: USER32!DefWindowProcW [76410000+203b4+a0]
7643041f: USER32!DefWindowProcW [76410000+203b4+6b]
7643041f: USER32!DefWindowProcW [76410000+203b4+6b]
764303ab: USER32!DispatchMessageW [76410000+2021c+18f]
7501af85: uxtheme!GetThemeBool [75010000+a886+6ff]
7502d5c0: uxtheme!GetWindowTheme [75010000+1d466+15a]
750125a7: uxtheme!000025a7
750125f4: uxtheme!000025f4
76430245: USER32!DispatchMessageW [76410000+2021c+29]
76430454: USER32!DefWindowProcW [76410000+203b4+a0]
7643041f: USER32!DefWindowProcW [76410000+203b4+6b]
004949bf: VDProjectUI::StaticWndProc()
00495023: VDProjectUI::MainWndProc()
7642fea1: USER32!GetWindowLongW [76410000+1f8bf+5e2]
7642fe61: USER32!GetWindowLongW [76410000+1f8bf+5a2]
7642fdf3: USER32!GetWindowLongW [76410000+1f8bf+534]
004949bf: VDProjectUI::StaticWndProc()
7642fd72: USER32!GetWindowLongW [76410000+1f8bf+4b3]
7642fe4a: USER32!GetWindowLongW [76410000+1f8bf+58b]
7642fdf3: USER32!GetWindowLongW [76410000+1f8bf+534]
7643018d: USER32!GetMessageW [76410000+1fef7+296]
7642885c: USER32!IsWindowVisible [76410000+1878a+d2]
76428b7c: USER32!DispatchMessageA [76410000+18b6d+f]
004839e8: WinMain@16()
00573ba5: _unlockexit()
0056ae97: _onexit()
0056caee: WinMainCRTStartup()
7750d0e9: kernel32!BaseThreadInitThunk [774c0000+4d0d7+12]
777919bb: ntdll!RtlInitializeExceptionChain [77750000+41958+63]
7779198e: ntdll!RtlInitializeExceptionChain [77750000+41958+36]

-- End of report
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby Scintilla » Sat Dec 26, 2009 7:38 pm

Anno-san wrote:I mean the .AVS file doesn't appear in the directory i saved it in when i go to file>run script in virtualdubmod. It does not appear when i have "all scripts" selected in the drop down bar when i go to open the file through VDM and when I choose "all files" and select the avs script, it gives an error.

You're confusing .AVS scripts with VirtualDub batch scripts, which presumably have a different extension.
DON'T select "run scripts"; select "Open video file" and open the .AVS file like you would open any other video file.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Deinterlacing Trouble

Postby Anno-san » Sat Dec 26, 2009 7:46 pm

Did that. Now it says, "Error code: 2" and it can't open the source file.
User avatar
Anno-san
 
Joined: 24 Dec 2009

Re: Deinterlacing Trouble

Postby Bauzi » Sun Dec 27, 2009 6:59 pm

Do you have the PAL or NTSC version of the DVDs?

I have the PAL dvds and I'm very interesting in how to filter it properly. It's damn hard sometimes.
Image
Image
User avatar
Bauzi
 
Joined: 21 May 2004
Location: Austria (uhm the other country without kangaroos^^)
Status: Under High Voltage

Re: Deinterlacing Trouble

Postby mirkosp » Mon Dec 28, 2009 3:46 am

Bauzi wrote:Do you have the PAL or NTSC version of the DVDs?

I have the PAL dvds and I'm very interesting in how to filter it properly. It's damn hard sometimes.


Well, PAL sometimes is impossible to filter properly, unless you feel like opening up photoshop and manually fixing the frame blending. Avisynth can only do so much, that you either keep it or go for the elbow grease route. It's a matter of deciding whether it's really worth the effort or not, though...
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 0 guests