[FFmpeg-trac] #9351(undetermined:open): bug in several windows builds when reencoding h.264 to h.265 with GPU

FFmpeg trac at avcodec.org
Sat Jul 31 21:13:48 EEST 2021


#9351: bug in several windows builds when reencoding h.264 to h.265 with GPU
-------------------------------------+-------------------------------------
             Reporter:  John Dury    |                    Owner:  Timo R.
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  ffmpeg gpu   |               Blocked By:
  buffer                             |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by John Dury:

Old description:

> Summary of the bug:
> How to reproduce:
> {{{
> % ffmpeg -report -n -loglevel error -stats -hwaccel cuvid
> -hwaccel_output_format cuda -threads 2 -i test_H_264_AAC_1080p.mkv -c:s
> copy -c:a copy -map 0:a -map 0:s? -map 0:v -c:v hevc_nvenc -preset slow
> -qmax 20 hevc-test_H_264_AAC_1080p.mkv
>
> This happens on several windows builds but not all. I tested every
> windows build with the exception of the lgpl and gpl since licensing
> should be the only difference. This is true for both the gyan.dev and
> BtbN builds. I created logs for each test from each build. I used the
> exact same ffmpeg comands on different windows builds with the exact same
> MKV test file. That file name is test_H_264_AAC_1080p.mkv and will be
> uploaded to the FTP with all of the logs from each build, successful and
> failed. I have tried this on two different machines with two different
> NVIDIA cards with no other GPU activity occurring simultaneously. The
> success/failures looks like this:
>  ffmpeg-2021-07-27-git-0068b3d0f0-essentials_build(failed)
> ffmpeg-2021-07-27-git-0068b3d0f0-full_build(failed)
> ffmpeg-4.4-essentials_build(successful)
> ffmpeg-4.4-full_build(successful)
> ffmpeg-4.4-full_build-shared(successful)
> ffmpeg-N-103083-g0068b3d0f0-win64-gpl(failed)
> ffmpeg-N-103083-g0068b3d0f0-win64-gpl-shared(failed)
> ffmpeg-n4.4-79-gde1132a891-win64-gpl-4.4(successful)
> ffmpeg-n4.4-79-gde1132a891-win64-gpl-shared-4.4(successful)
> }}}
> Trying to connect to the ftp server but it keeps timing out. I will
> hopefully upload the sample MKV and it's logs soon. Both were uploaded to
> www.filehosting.org as:
> sample MKV file:
>https://www.filehosting.org/file/details/955546/test_H_264_AAC_1080p.mkv
> log files from each windows build:
>https://www.filehosting.org/file/details/955547/test_H_264_AAC_1080p_logs.rar

New description:

 Summary of the bug:
 How to reproduce:
 {{{
 % ffmpeg -report -n -loglevel error -stats -hwaccel cuvid
 -hwaccel_output_format cuda -threads 2 -i test_H_264_AAC_1080p.mkv -c:s
 copy -c:a copy -map 0:a -map 0:s? -map 0:v -c:v hevc_nvenc -preset slow
 -qmax 20 hevc-test_H_264_AAC_1080p.mkv
 The error is:
 [hevc_nvenc @ 000000c920fbb940] Failed locking bitstream buffer: not
 enough buffer (14): .19x
 video encoding failed: Buffer too small

 This happens on several windows builds but not all. I tested every windows
 build with the exception of the lgpl and gpl since licensing should be the
 only difference. This is true for both the gyan.dev and BtbN builds. I
 created logs for each test from each build. I used the exact same ffmpeg
 comands on different windows builds with the exact same MKV test file.
 That file name is test_H_264_AAC_1080p.mkv and will be uploaded to the FTP
 with all of the logs from each build, successful and failed. I have tried
 this on two different machines with two different NVIDIA cards with no
 other GPU activity occurring simultaneously. The success/failures looks
 like this:
  ffmpeg-2021-07-27-git-0068b3d0f0-essentials_build(failed)
 ffmpeg-2021-07-27-git-0068b3d0f0-full_build(failed)
 ffmpeg-4.4-essentials_build(successful)
 ffmpeg-4.4-full_build(successful)
 ffmpeg-4.4-full_build-shared(successful)
 ffmpeg-N-103083-g0068b3d0f0-win64-gpl(failed)
 ffmpeg-N-103083-g0068b3d0f0-win64-gpl-shared(failed)
 ffmpeg-n4.4-79-gde1132a891-win64-gpl-4.4(successful)
 ffmpeg-n4.4-79-gde1132a891-win64-gpl-shared-4.4(successful)
 }}}
 Trying to connect to the ftp server but it keeps timing out. I will
 hopefully upload the sample MKV and it's logs soon. Both were uploaded to
 www.filehosting.org as:
 sample MKV file:
 ​https://www.filehosting.org/file/details/955546/test_H_264_AAC_1080p.mkv
 log files from each windows build:
 ​https://www.filehosting.org/file/details/955547/test_H_264_AAC_1080p_logs.rar

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9351#comment:22>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list