[FFmpeg-trac] #10124(undetermined:new): NVENC h.264 reference frames over 4 causes error
FFmpeg
trac at avcodec.org
Tue Dec 27 07:09:10 EET 2022
#10124: NVENC h.264 reference frames over 4 causes error
-------------------------------------+-------------------------------------
Reporter: | Type: defect
CaptainObvious |
Status: new | Priority: normal
Component: | Version: 5.1.2
undetermined |
Keywords: NVENC, | Blocked By:
reference frames, refs |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Trying to use FFmpeg/NVENC to encode 1080p 23.976fps Blu-ray AVC files
that don't need re-encoding in Architect Pro (unsuccessfully, so far).
Hardware is a 2080 Ti, current drivers 527.56.
In trying to emulate a known working file, one of the things I need to do
is produce a video with 5 reference frames. As I understand it, h.264 spec
allows up to 16 reference frames, so this shouldn't be an issue.
When "-refs 5" or higher is specified, FFmpeg fails with error:
"[h264_nvenc @ hhhhhhhhhhhhhhhh] InitializeEncoder failed: invalid param
(8): Invalid Level."
When "-refs 4" or lower is used, no problem. Have tried this on the
current release version 5.1.2-full_build-www.gyan.dev and the latest
nightly from Dec 25, 2022.
I've simplified the following command-line significantly:
{{{
ffmpeg -y -i "input.mp4" -c:v h264_nvenc -bluray-compat 1 -b:v 1500000
-bufsize 1500000 -maxrate 3000000 -level 4.1 -profile:v high -refs 5
"output.264"
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10124>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list