Opened 4 months ago
Closed 12 days ago
#11158 closed defect (wontfix)
"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 (8)
comment:1 by , 4 months ago
comment:2 by , 4 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)
follow-up: 4 comment:3 by , 4 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.
comment:4 by , 2 weeks ago
Hi Balling, can you please help me to delete the mp4 file from https://streams.videolan.org/ffmpeg/incoming/11158/h265.mp4, then I will close the ticket.
comment:5 by , 2 weeks ago
This looks like a real bug, why do you want to close it, and I imagine the samples from the our sample directory cannot be removed, even with DMCA (?).
comment:6 by , 2 weeks ago
It shows some license plates, which are not masked by my mistake, so I would like to delete it and close the ticket.
comment:8 by , 12 days ago
Resolution: | → wontfix |
---|---|
Status: | open → closed |
We found the bug is related to Nvidia's GPU video decoder. We already contacted Nvidia about it. We had the video deleted from Videolan, so the ticket is closed as wontfix.
Video file uploaded to streams.videolan.org. File name is h265.mp4