1 (edited by CrendKing 14-06-2021 21:55:35)

Topic: SVP + AVSF VapourSynth Filter generates bad output pixel format

I updated to today's SVP Manager version 4.5.0.210-1 and noticed that the generate.js is changed for VapourSynth variant. Specifically, when playing 10-bit video, it generates

input_um = clip.resize.Point(format=vs.YUV420P10,dither_type="random")

Unfortunately, due to how DirectShow and AviSynthPlus handle P010 differently, AVSF only takes P010 input but never outputs P010. Instead it always outputs P016. And it seems VapourSynth, for compatibility reason, handles P010 exactly the same way.

So, if the script converts the output clip to P010, AVSF won't find a suitable output format, and the result video will be completely green.

AviSynth variant doesn't have this problem because when using NVOF (as you instructed), it never converts the source clip. Only the nvof_src is converted.

The fix would be simply replace the two

format=vs.YUV420'+(media.p10?'P10':'P8')

to

format=vs.YUV420'+(media.p10?'P16':'P8')

Re: SVP + AVSF VapourSynth Filter generates bad output pixel format

as this is AVSF-specific then more like this:

media.p10 ? (global.player===4?'P16':'P10'):'P8'

will be fixed in the next update...