I've been using ffmpeg on my laptop for some time and I could have sworn that
scale_vaapi had an option to set the flags to nearest neighbor. I need nearest neighbor scaling because I'm converting low-res direct capture video game footage and need to preserve the sharpness of the pixels.
My attempted command is the following:
ffmpeg -hide_banner -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i "/home/mike/Videos/CAPTURE.mp4" -n -c:v h264_vaapi -b:v 14M -vf format=nv12,hwupload,scale_vaapi=iw*3:ih*3:flags=nearest "/home/mike/Desktop/CAPTURE.converted.mp4"
However this ends up giving me the following error:
Parsed_scale_vaapi_2 @ 0x557e347c5500] Option 'flags' not found
[AVFilterGraph @ 0x557e34b3b780] Error initializing filter 'scale_vaapi' with args 'iw*3:ih*3:flags=nearest'
Error reinitializing filters!
Failed to inject frame into filter network: Option not found
Error while processing the decoded data for stream #0:0
[aac @ 0x557e347a7640] Qavg: 171.142
[aac @ 0x557e347a7640] 2 frames left in the queue on closing
flags=nearest will allow it to run the conversion just fine but it won't force nearest neighbor scaling and I really want to avoid billinnear filtered pixels for my retro game footage without having to wait ten years for software rendering to complete. Any ideas?