Open sungn opened 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.
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 -