Open maxbuelk opened 3 years ago
@IzNarf My apologies for not responding sooner but I never got an email notification from GitHub about your issue. And I have no idea why.
Thank you for including your .log
information.
I don't know why ffmpeg
would crash with an out-of-memory error only when burning the subtitle. Have you tried using a different encoder? Perhaps x264
or even Nvenc without using the --hevc
option?
No problem. I just tested all available encoders (x264, x265, nvenc with and without hevc).
Unfortunately, an out-of-memory error occurs with all of them. Without burn-subtitle all encoder finish without error.
@IzNarf OK, I suspect it could be the version of ffmpeg
that you're using then. Try burning a subtitle with the latest "full" build instead of the "essentials" and see if that works.
IIRC, there was a memory leak in ffmpeg when burning subtitles at one point. I noticed it most when the subtitle track had only a few entries, such as a foreign audio track. I'm not sure if it's fixed yet or not
@donmelton I have tried different fmpeg builds with all available encoders but unfortunately no success. I will boot a Linux system and try again.
@samhutchins I found the bug report. https://trac.ffmpeg.org/ticket/429 Its closed and it deals with the x264 encoder. But this user also tries to burn forced subtitles with few entries.
I'm seeing this same issue, command is: other-transcode --amf --add-audio all --add-subtitle all --crop auto --burn 2 "E:\DVD Rips\Spectre*.mkv" With this command, I see the memory fairly quickly creep up until it maxes out my 32GB of Ram and things start crashing.
Removing the Burn command fixes the issue.
If I try to burn the primary subtitle track, I don't see the same issue.
Logs to follow.
@sweaver2 Thanks. But at this point I'm not sure what I can do because this is obviously a bug in ffmpeg
and/or the overlay
filter.
Hi Don,
thank you for your work regarding video_transcoding and other_video_transcoding. I really enjoy using these tools.
While encoding the 4K version of Fury the memory usage rises and rises, leading to a "cannot allocate memory" crash. I used the following settings: other-transcode --hevc --nvenc --eac3 --main-audio 1=surround --add-audio 2=surround --surround-bitrate 640 --add-subtitle all --burn-subtitle auto "Fury_t00.mkv". I tried selecting the subtitle to burn, same crash. Encoding without burn-subtitle worked.
Am i missing something? Thanks in advance
Max
Task Manager: ffmpeg log: