[FFmpeg-trac] #10665(undetermined:new): VRAM usage too high in a specific video part.

FFmpeg trac at avcodec.org
Wed Nov 15 18:19:38 EET 2023


#10665: VRAM usage too high in a specific video part.
-------------------------------------+-------------------------------------
             Reporter:  Marcus       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  OOM, gpu,    |               Blocked By:
  hwupload, hwdownload               |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Marcus:

Old description:

> Summary of the bug: not happens with all videos, but in this specifc one
> the ffmpeg crashes with out of memory, my personal GPU has 4GB of VRAM
> but other user reported me that had the same problem with his 12GB VRAM
> card with some videos.
> How to reproduce:
> {{{
> ffmpeg.exe -y -i "test.mkv" -init_hw_device vulkan -vf
> format=yuv420p,hwupload,libplacebo=w=3840:h=2160:upscaler=ewa_lanczos,hwdownload,format=yuv420p
> -cq 19 -c:v hevc_nvenc "test-out.mkv"
> }}}
> {{{
> ffmpeg version N-112750-g6d60cc7baf-20231114 Copyright (c) 2000-2023 the
> FFmpeg developers
>   built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
> }}}
> sample uploaded in VideoLAN (filename: test_ticket_10665.mkv)
> console output attached in a zip file

New description:

 Summary of the bug: not happens with all videos, but in this specifc one
 the ffmpeg crashes with out of memory, my personal GPU has 4GB of VRAM but
 other user reported me that had the same problem with his 12GB VRAM card
 with some videos.
 How to reproduce:
 {{{
 ffmpeg.exe -y -i "test.mkv" -init_hw_device vulkan -vf
 format=yuv420p,hwupload,libplacebo=w=3840:h=2160:upscaler=ewa_lanczos,hwdownload,format=yuv420p
 -cq 19 -c:v hevc_nvenc "test-out.mkv"
 }}}
 {{{
 ffmpeg version N-112750-g6d60cc7baf-20231114 Copyright (c) 2000-2023 the
 FFmpeg developers
   built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
 }}}
 sample uploaded in VideoLAN (filename: test_ticket_10665.mkv)
 console output attached in a zip file


 I asked more details about the said user that had the problem with his
 12GB card, and this is his test:

 {{{
 ffmpeg -y -i "input4.mp4" -init_hw_device vulkan -c:v libx264 -preset fast
 -crf 28 -c:a copy -c:s mov_text -metadata:s:s:0 language=English
 -disposition:s:s:0 forced -vf
 format=yuv420p,hwupload,libplacebo=w=2560:h=1440:upscaler=ewa_lanczos,hwdownload,format=yuv420p
 "output.mp4"
 }}}

 [[Image(https://i.imgur.com/nDQ1DQe.png, 800px)]]

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


More information about the FFmpeg-trac mailing list