Opened 3 months ago
Last modified 3 months ago
#11158 open defect
"hevc_cuvid" did not correctly decode H.265 video
Reported by: | yuhongl | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | cuda hevc |
Cc: | yuhongl, MasterQuestionable | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: hevc_cuvid does not correctly decode h265 video, but hevc correctly decode h265 video.
How to reproduce:
% ffmpeg -loglevel warning -hwaccel cuda -hwaccel_device 0 -vcodec hevc_cuvid -i h265.mp4 output_cuvid.mp4 % ffmpeg -loglevel warning -hwaccel cuda -hwaccel_device 0 -vcodec hevc -i h265.mp4 output_hevc.mp4 ffmpeg version: master branch, hash tag: d89930f8666c563a96f1dc1835b450522b4cd6da built on: Ubuntu 20.04.6 LTS ./configure --enable-cuda --enable-cuvid --enable-nvdec --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --disable-x86asm
The file output_cuvid.mp4 is wrong, output_hevc.mp4 is correct.
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Change History (3)
comment:1 by , 3 months ago
comment:2 by , 3 months ago
Cc: | added |
---|---|
Component: | ffmpeg → avcodec |
Keywords: | cuda hevc added |
Priority: | critical → normal |
Summary: | hevc_cuvid does not correctly decode h265 video → "hevc_cuvid" did not correctly decode H.265 video |
͏ https://streams.videolan.org/ffmpeg/incoming/11158/h265.mp4
͏ (~ 98.97 MiB)
comment:3 by , 3 months ago
Status: | new → open |
---|
You are not allowed to use both hwaccel and HW decoder, or use vcodec in ffmpeg, only in ffplay, since it has no c:v option:
ffplay.exe -vcodec hevc_cuvid -i https://streams.videolan.org/ffmpeg/incoming/11158/h265.mp4
or
ffmpeg.exe -c:v hevc_cuvid -i https://streams.videolan.org/ffmpeg/incoming/11158/h265.mp4 -frames:v 1 -crf 0 -cpu-used 0 file.avif
But yes some issue is there.
Video file uploaded to streams.videolan.org. File name is h265.mp4