intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
308 stars 125 forks source link

Scaling from P010 to NV12 has bad output on Apollo Lake #398

Open fhvwy opened 6 years ago

fhvwy commented 6 years ago

Scaling from P010 to NV12 seems to do something nasty to the chroma plane of the output.

For example:

ffmpeg -y -hwaccel vaapi -hwaccel_output_format vaapi -i in.mp4 -an -vf 'scale_vaapi=w=1278:h=720:format=nv12' -c:v h264_vaapi out.mp4

Input and output files: p010_nv12.zip.

It doesn't happen when not scaling (direct conversion P010 to NV12), but does happen at any scale factor in either dimension for both upscaling and downscaling.

The input and output method doesn't seem to matter - with decoding and/or encoding done in software (with corresponding upload and/or download operations) the output is the same.

Seen on both J3455 and N4200. Not reproducible on other tested gen9 platforms - works on Coffee Lake, not possible on Skylake due to lack of P010 support.

aaronwolen commented 6 years ago

Good additional information about this issue here with a simple workaround.

KamistixX commented 6 years ago

J3355 is also impacted.