Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

the output of h264 sample decode has some garbage in some case #715

Closed
fulinjie opened this issue Oct 9, 2018 · 2 comments
Closed

the output of h264 sample decode has some garbage in some case #715

fulinjie opened this issue Oct 9, 2018 · 2 comments
Assignees

Comments

@fulinjie
Copy link
Contributor

fulinjie commented Oct 9, 2018

Issue description:
https://trac.ffmpeg.org/ticket/7397

Tested with the latest version of MSDK: c083a27

$ ffmpeg -i crop-to-container-dims-canon.mov -c:v copy src.h264
$ ./sample_decode h264 -i src.h264 -i420 -o msdk.yuv

$ ffmpeg -hwaccel qsv -hwaccel_device /dev/dri/renderD128 -v verbose -y -c:v h264_qsv -i crop-to-container-dims-canon.mov -vf hwdownload,format=nv12 -pix_fmt yuv420p -f rawvideo -y dump.yuv -vsync 0

Both msdk.yuv and dump.yuv have garbage in my test.
The same file could be decoded correctly using ffmpeg vaapi or ffmpeg software.

@ekislyuk ekislyuk self-assigned this Oct 25, 2019
@ekislyuk
Copy link

still actual

@ekislyuk ekislyuk removed their assignment Nov 13, 2019
@weizhu-intel
Copy link
Contributor

Hi fulinjie:
Raw video src.h264 don't have actual video size information, it is contained in mov container.
So when decode raw video, you can only use actual decode surface size 1920*1088 for check.

It is not a bug.

@daleksan daleksan closed this as completed Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants