mypopydev / FFmpeg

mirror of git://source.ffmpeg.org/ffmpeg.git
http://ffmpeg.org
Other
2 stars 1 forks source link

[ffmpeg-vaapi][h264 decode]fate-h264-conformance-cvfc1_sony_c case test failed When Using ffmpeg-vaapi #1

Open sungn opened 6 years ago

sungn commented 6 years ago

The HW decoded data does not match the expected。

command ./ffmpeg -nostdin -nostats -cpuflags all -flags unaligned -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_flags allow_profile_mismatch -threads 1 -thread_type frame+slice -i ./fate-suite/h264-conformance/CVFC1_Sony_C.jsv -pix_fmt yuv420p -flags +bitexact -fflags +bitexact -f framecrc -

sungn commented 6 years ago

root caused:

First: The reason why the video gets bigger:

The h264_init_ps() method in the h264_slic.c file requires width and height to be multiples of 16, so the resolution has changed.

Second: Tailoring differences between soft and hard solutions The av_frame_apply_cropping function in the frame.c file will crop the frame. Currently the hardware only crops Right/Bottom. The soft decoding will crop Rignt/Left/Top/Bottom.