CrendKing / avisynth_filter

DirectShow filters that put AviSynth and VapourSynth into video playing
MIT License
107 stars 8 forks source link

AviSynthPlus-RIFE colorspace errors #83

Closed Usulyre closed 1 year ago

Usulyre commented 1 year ago

Environment

AvsFilterSource()

ConvertBits(32, fulls=false, fulld=true) ConvertToPlanarRGB(matrix="pc709", chromaresample="spline36") # change matrix if it's other

RIFE(model=23, factor_num=2, factor_den=1, gpu_id=0, gpu_thread=8)

Describe the bug

Getting a colorspace error : Convertbits: YUV2 input must stay in 8 bits

CrendKing commented 1 year ago

Have you tried to follow the message and convert the 16-bit video to 8-bit? 32 is the wrong direction to go.

Usulyre commented 1 year ago

How do I do that? Sorry I couldn't figure it out yet. I was following this issue:

https://github.com/Asd-g/AviSynthPlus-RIFE/issues/1

CrendKing commented 1 year ago

I tried the plugin. The script you quoted is correct but incomplete, because the output of RIFE() seems to be the same as output, which is planar RGB 32. This is a format not supported by DirectShow, you need to convert it back to something like YV12, such as

ConvertBits(8)
ConvertToYV12()

Unfortunately, it seems there are other issues in the plugin, which always causes my player to crash with "ACCESS VIOLATION" error.

Please follow up with the plugin author to address these problems.