pinterf / AviSynthPlus

AviSynth with improvements
http://avs-plus.net
208 stars 24 forks source link

AviSynth crashes if use ConverttoYV24 with UnSharpMask filter #39

Closed Bassquake closed 4 years ago

Bassquake commented 4 years ago

As title really. Crashes using built in UnSharpMask with ConverttoYV24.

Simply put this in an avs file:

AVIFileSource("test.avi", audio=true).converttoYV24().UnsharpMask(strength=60, radius=3, threshold=8)

And render it in ffmpeg or open in AvsPMod. It will crash out in AvsPMod and ffmpeg just doesn't output anything, just returns to command.

Tested with DirectShowSource which also crashes.

Crashes with ConverttoYUV444 as well.

It doesn't mention any limitations in the wiki for UnSharpMask.

Works fine with ConverttoYV12 though.

Edit: Program Versions Avisynth+ v2772 (20181220) FFMpeg 4.2

pinterf commented 4 years ago

UnsharpMask is not an internal filter, could you provide a download link for the version you are using? You may also check for a newer one if it's not the latest one?

Bassquake commented 4 years ago

Hm. Seems to be from Warpsharp.dll. Version I have is 20080325.

http://avisynth.nl/index.php/WarpSharp

Doesn't seem to be newer version. Recommend any alternatives?

pinterf commented 4 years ago

As I read the wiki, the plugin is from 2008, supports even the old Avisynth 2.58, and handles YV12 and YUY2 colorspaces. So you cannot use YV24 with them. Other than those two (not counting RGB) color spaces probably did not even exist at that time, so the plugin cannot tell that the YV24 format is not allowed. I do not know more about it than we discussed in https://forum.doom9.org/showthread.php?p=1876526#post1876526

Bassquake commented 4 years ago

Found the updated version (2011-06-15) mentioned on that forum, same issue.

Using MSharpen instead now as it accepts YV24 and YUV444.

http://avisynth.nl/index.php/MSharpen

Thanks for responding.