Log in

View Full Version : AVS won't encode


Ranguvar
23rd January 2008, 01:46
My annoying AVS won't encode...

After looking through it and commenting out certain lines at a time, I found the problem. I have to convert the video to RGB32 and back to YV12 to use a VirtualDub plugin. Even if I convert it to RGB32 and back, it's fine. Using the plugin at all kills it.

MeGUI makes xvid_encraw crash, but MeGUI stays open and just says the job failed.

VirtualDubMod, I don't know exactly what happened. I put both passes in Job Control and ran it overnight. When I came back to it, VDM was gone. I re-opened it and looked at the Job Control. It said the first pass ran with warnings, and the second pass failed. There was a stats file.


My script:
LoadPlugin("C:\Anime\WarpSharp\warpsharp.dll")
LoadVirtualdubPlugin("MSU_SmartDeblock_0.8.vdf", "SDeblock", 0)
Import("vmToon-v0.74.avsi")
AviSource("MD_01.avi", audio=false)
ConvertToRGB32().SDeblock(1, 1, 1, 1)
ConvertToYV12()
FluxSmoothST(7,7)
vmToon()
aWarpSharp(24.0, 4)
Crop(10, 10, -10 , -10)
Spline36Resize(640, 480)
Tweak(sat=1.1, bright=0.0, cont=1.1)
TextSub("MD_01.ass")
Dup(threshold=4)

Any ideas? Yes, I searched, both Doom9 and Google. Thanks!

IanB
23rd January 2008, 02:51
1. So is this the minimal script that fails?LoadVirtualdubPlugin("MSU_SmartDeblock_0.8.vdf", "SDeblock", 0)
AviSource("MD_01.avi", audio=false)
ConvertToRGB32().SDeblock(1, 1, 1, 1)
2. This script runs correctly?LoadPlugin("C:\Anime\WarpSharp\warpsharp.dll")
LoadVirtualdubPlugin("MSU_SmartDeblock_0.8.vdf", "SDeblock", 0)
Import("vmToon-v0.74.avsi")
AviSource("MD_01.avi", audio=false)
ConvertToRGB32() # .SDeblock(1, 1, 1, 1)
ConvertToYV12()
FluxSmoothST(7,7)
vmToon()
aWarpSharp(24.0, 4)
Crop(10, 10, -10 , -10)
Spline36Resize(640, 480)
Tweak(sat=1.1, bright=0.0, cont=1.1)
TextSub("MD_01.ass")
Dup(threshold=4)
3. Where did you get your copy of "MSU_SmartDeblock_0.8.vdf" from?

Ranguvar
23rd January 2008, 03:21
Thanks for your help.

Yeah, the first one fails, the second works.
Both play in MPC.

I got it here (http://compression.ru/video/deblocking/smartdeblocking_en.html).

IanB
23rd January 2008, 06:40
3. Well thats the original source, and I guess you have compared it just to be sure it has not become corrupted.

4. Does the filter work correctly in Virtualdub?

5. Seeing there is no source code available, I guess you need to bother the authors directly.

6. Just in case this is a simple out of bounds coding error try this to add some guard memory space :-LoadVirtualdubPlugin("MSU_SmartDeblock_0.8.vdf", "SDeblock", 0)
AviSource("MD_01.avi", audio=false)
AddBorders(0, 8, 0, 8)
ConvertToRGB32()
Crop(0, 8, 0, -8, False)
SDeblock(1, 1, 1, 1)

foxyshadis
23rd January 2008, 07:46
Ensure that you have avisynth 2.5.7, as well. 2.5.6 would cause a disappearing crash, but 2.5.7 causes a normal crash, which can at least be debugged.

Ranguvar
23rd January 2008, 19:08
I do have 2.5.7.

Funnily enough, using it as a filter in VDubMod when opening the source AVI works. I thought I had used this filter in an AVS before, though...

When I try your script (#6), MeGUI complains about it not being YV12, asks to change to YV12, and then before I can choose it crashes. The whole program. I added ConvertToYV12() to the end, but it still crashes when I tell it to queue. Which is weird, because even at the beginning only xvid_enraw.exe would crash, and that was when I started the encode.

I'll bother them... it's an amazing deblocking filter. In the meantime, I'll look for native AviSynth anime deblocker.