lisamelton / other_video_transcoding

Other tools to transcode videos.
MIT License
565 stars 26 forks source link

burn-subtitle causes "Cannot allocate memory" crash #94

Open maxbuelk opened 3 years ago

maxbuelk commented 3 years ago

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: image ffmpeg log:

ffmpeg started on 2021-01-20 at 11:14:53 Report written to "_ffmpeg_20172_21984.mkv.log" Log level: 40 Command line: "C:\ProgramData\chocolatey\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe" -loglevel error -stats -ss 0 -t 8078.112 -i "F:\Videos\Filme\Rips\Fury\Fury_t00.mkv" -filter_complex "[0:0][0:3]overlay[v]" -map "[v]" -c:v hevc_nvenc -pix_fmt:v p010le -b:v 8000k -maxrate:v 24000k -bufsize:v 24000k -rc:v vbr -color_primaries:v bt2020 -color_trc:v smpte2084 -colorspace:v bt2020nc -metadata:s:v "title=" -disposition:v default -map 0:1 -c:a:0 copy -metadata:s:a:0 "title=" -disposition:a:0 default -map 0:2 -c:a:1 eac3 -b:a:1 640k -metadata:s:a:1 "title=" -disposition:a:1 0 -map 0:4 -c:s:0 copy -disposition:s:0 0 -map 0:5 -c:s:1 copy -disposition:s:1 0 -map 0:6 -c:s:2 copy -disposition:s:2 0 -map 0:7 -c:s:3 copy -disposition:s:3 0 -map 0:8 -c:s:4 copy -disposition:s:4 0 -map 0:9 -c:s:5 copy -disposition:s:5 0 -map 0:10 -c:s:6 copy -disposition:s:6 0 -metadata:g "title=" -default_mode passthrough Fury_t00.mkv ffmpeg version 4.3.1-2020-11-19-essentials_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 [matroska,webm @ 0000019ce9c12c00] max_analyze_duration 5000000 reached at 5005000 microseconds st:0 [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0000019ce9c12c00] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'F:\Videos\Filme\Rips\Fury\Fury_t00.mkv': Metadata: title : Fury encoder : libmakemkv v1.15.3 (1.3.10/1.5.2) win(x64-release) creation_time : 2021-01-15T12:01:04.000000Z Duration: 02:14:38.11, start: 0.000000, bitrate: 56953 kb/s Chapter #0:0: start 0.000000, end 477.894083 Metadata: title : Chapter 01 Chapter #0:1: start 477.894083, end 1224.681792 Metadata: title : Chapter 02 Chapter #0:2: start 1224.681792, end 1598.722125 Metadata: title : Chapter 03 Chapter #0:3: start 1598.722125, end 2246.035458 Metadata: title : Chapter 04 Chapter #0:4: start 2246.035458, end 2604.059792 Metadata: title : Chapter 05 Chapter #0:5: start 2604.059792, end 3119.407958 Metadata: title : Chapter 06 Chapter #0:6: start 3119.407958, end 3679.967958 Metadata: title : Chapter 07 Chapter #0:7: start 3679.967958, end 4426.547125 Metadata: title : Chapter 08 Chapter #0:8: start 4426.547125, end 4709.413042 Metadata: title : Chapter 09 Chapter #0:9: start 4709.413042, end 5181.426250 Metadata: title : Chapter 10 Chapter #0:10: start 5181.426250, end 5390.426708 Metadata: title : Chapter 11 Chapter #0:11: start 5390.426708, end 5739.191792 Metadata: title : Chapter 12 Chapter #0:12: start 5739.191792, end 6491.985500 Metadata: title : Chapter 13 Chapter #0:13: start 6491.985500, end 7069.896167 Metadata: title : Chapter 14 Chapter #0:14: start 7069.896167, end 7241.609375 Metadata: title : Chapter 15 Chapter #0:15: start 7241.609375, end 8078.112000 Metadata: title : Chapter 16 Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc Metadata: BPS-eng : 53619380 DURATION-eng : 02:14:38.070000000 NUMBER_OF_FRAMES-eng: 193680 NUMBER_OF_BYTES-eng: 54142638605 SOURCE_ID-eng : 001011 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:1(deu): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: title : Surround 5.1 BPS-eng : 640000 DURATION-eng : 02:14:38.112000000 NUMBER_OF_FRAMES-eng: 252441 NUMBER_OF_BYTES-eng: 646248960 SOURCE_ID-eng : 001107 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:2(eng): Audio: flac, 48000 Hz, 7.1, s32 (24 bit) Metadata: title : Surround 7.1 BPS-eng : 2539947 DURATION-eng : 02:14:38.112000000 NUMBER_OF_FRAMES-eng: 84147 NUMBER_OF_BYTES-eng: 2564747598 SOURCE_ID-eng : 001100 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:3(deu): Subtitle: hdmv_pgs_subtitle (default) (forced) Metadata: BPS-eng : 405 DURATION-eng : 02:06:24.806395833 NUMBER_OF_FRAMES-eng: 26 NUMBER_OF_BYTES-eng: 384235 SOURCE_ID-eng : 0012A9 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:4(deu): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 26337 DURATION-eng : 02:08:12.872687500 NUMBER_OF_FRAMES-eng: 3018 NUMBER_OF_BYTES-eng: 25326442 SOURCE_ID-eng : 0012A9 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle (forced) Metadata: BPS-eng : 1283 DURATION-eng : 01:36:24.966687500 NUMBER_OF_FRAMES-eng: 154 NUMBER_OF_BYTES-eng: 927766 SOURCE_ID-eng : 0012A1 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle (forced) Metadata: BPS-eng : 1285 DURATION-eng : 01:36:24.966687500 NUMBER_OF_FRAMES-eng: 154 NUMBER_OF_BYTES-eng: 929344 SOURCE_ID-eng : 0012A3 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 35381 DURATION-eng : 02:14:12.440229166 NUMBER_OF_FRAMES-eng: 3800 NUMBER_OF_BYTES-eng: 35613812 SOURCE_ID-eng : 0012A0 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 29064 DURATION-eng : 02:03:52.070479166 NUMBER_OF_FRAMES-eng: 2938 NUMBER_OF_BYTES-eng: 27001162 SOURCE_ID-eng : 0012A1 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:9(eng): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 35390 DURATION-eng : 02:14:12.440229166 NUMBER_OF_FRAMES-eng: 3800 NUMBER_OF_BYTES-eng: 35622537 SOURCE_ID-eng : 0012A2 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:10(eng): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 29070 DURATION-eng : 02:03:52.070479166 NUMBER_OF_FRAMES-eng: 2938 NUMBER_OF_BYTES-eng: 27006407 SOURCE_ID-eng : 0012A3 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream mapping: Stream #0:0 (hevc) -> overlay:main (graph 0) Stream #0:3 (pgssub) -> overlay:overlay (graph 0) overlay (graph 0) -> Stream #0:0 (hevc_nvenc) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (flac (native) -> eac3 (native)) Stream #0:4 -> #0:3 (copy) Stream #0:5 -> #0:4 (copy) Stream #0:6 -> #0:5 (copy) Stream #0:7 -> #0:6 (copy) Stream #0:8 -> #0:7 (copy) Stream #0:9 -> #0:8 (copy) Stream #0:10 -> #0:9 (copy) Press [q] to stop, [?] for help [graph 0 input from stream 0:0 @ 0000019cea1700c0] w:3840 h:2160 pixfmt:yuv420p10le tb:1/1000 fr:24000/1001 sar:1/1 [matroska,webm @ 0000019ce9c12c00] sub2video: using 3840x2160 canvas [graph 0 input from stream 0:3 @ 0000019ce8429780] w:3840 h:2160 pixfmt:bgra tb:1/1000 fr:0/1 sar:0/1 [auto_scaler_0 @ 0000019cf998ee40] w:iw h:ih flags:'bilinear' interl:0 [trim_in_0_0 @ 0000019ce8428c40] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'trim_in_0_0' [auto_scaler_1 @ 0000019c80fbc780] w:iw h:ih flags:'bilinear' interl:0 [trim_in_0_3 @ 0000019cea1b2200] auto-inserting filter 'auto_scaler_1' between the filter 'graph 0 input from stream 0:3' and the filter 'trim_in_0_3' [auto_scaler_2 @ 0000019c80fbc280] w:iw h:ih flags:'bilinear' interl:0 [format @ 0000019cea163a00] auto-inserting filter 'auto_scaler_2' between the filter 'Parsed_overlay_0' and the filter 'format' [auto_scaler_0 @ 0000019cf998ee40] w:3840 h:2160 fmt:yuv420p10le sar:1/1 -> w:3840 h:2160 fmt:yuva420p sar:1/1 flags:0x2 [auto_scaler_1 @ 0000019c80fbc780] w:3840 h:2160 fmt:bgra sar:0/1 -> w:3840 h:2160 fmt:yuva420p sar:0/1 flags:0x2 [Parsed_overlay_0 @ 0000019cea17ffc0] main w:3840 h:2160 fmt:yuva420p overlay w:3840 h:2160 fmt:yuva420p [Parsed_overlay_0 @ 0000019cea17ffc0] [framesync @ 0000019c801fe168] Selected 1/1000 time base [Parsed_overlay_0 @ 0000019cea17ffc0] [framesync @ 0000019c801fe168] Sync level 2 [auto_scaler_2 @ 0000019c80fbc280] w:3840 h:2160 fmt:yuva420p sar:1/1 -> w:3840 h:2160 fmt:p010le sar:1/1 flags:0x2 [hevc_nvenc @ 0000019cea282040] Loaded Nvenc version 11.0 [hevc_nvenc @ 0000019cea282040] Nvenc initialized successfully [hevc_nvenc @ 0000019cea282040] 1 CUDA capable devices found [hevc_nvenc @ 0000019cea282040] [ GPU #0 - < GeForce GTX 1080 > has Compute SM 6.1 ] [hevc_nvenc @ 0000019cea282040] supports NVENC [graph_1_in_0_2 @ 0000019c80fbc880] tb:1/48000 samplefmt:s32 samplerate:48000 chlayout:0x63f [format_out_0_2 @ 0000019c80fbd080] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_2' [auto_resampler_0 @ 0000019c80fbd380] ch:8 chl:7.1 fmt:s32 r:48000Hz -> ch:6 chl:5.1(side) fmt:fltp r:48000Hz Output #0, matroska, to 'Fury_t00.mkv': Metadata: encoder : Lavf58.45.100 Chapter #0:0: start 0.000000, end 477.894083 Metadata: title : Chapter 01 Chapter #0:1: start 477.894083, end 1224.681792 Metadata: title : Chapter 02 Chapter #0:2: start 1224.681792, end 1598.722125 Metadata: title : Chapter 03 Chapter #0:3: start 1598.722125, end 2246.035458 Metadata: title : Chapter 04 Chapter #0:4: start 2246.035458, end 2604.059792 Metadata: title : Chapter 05 Chapter #0:5: start 2604.059792, end 3119.407958 Metadata: title : Chapter 06 Chapter #0:6: start 3119.407958, end 3679.967958 Metadata: title : Chapter 07 Chapter #0:7: start 3679.967958, end 4426.547125 Metadata: title : Chapter 08 Chapter #0:8: start 4426.547125, end 4709.413042 Metadata: title : Chapter 09 Chapter #0:9: start 4709.413042, end 5181.426250 Metadata: title : Chapter 10 Chapter #0:10: start 5181.426250, end 5390.426708 Metadata: title : Chapter 11 Chapter #0:11: start 5390.426708, end 5739.191792 Metadata: title : Chapter 12 Chapter #0:12: start 5739.191792, end 6491.985500 Metadata: title : Chapter 13 Chapter #0:13: start 6491.985500, end 7069.896167 Metadata: title : Chapter 14 Chapter #0:14: start 7069.896167, end 7241.609375 Metadata: title : Chapter 15 Chapter #0:15: start 7241.609375, end 8078.112000 Metadata: title : Chapter 16 Stream #0:0: Video: hevc (hevc_nvenc) (Main 10), p010le(bt2020nc/bt2020/smpte2084, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 8000 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default) Metadata: encoder : Lavc58.91.100 hevc_nvenc Side data: cpb: bitrate max/min/avg: 24000000/0/8000000 buffer size: 24000000 vbv_delay: N/A Stream #0:1(deu): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID BPS-eng : 640000 DURATION-eng : 02:14:38.112000000 NUMBER_OF_FRAMES-eng: 252441 NUMBER_OF_BYTES-eng: 646248960 SOURCE_ID-eng : 001107 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 Stream #0:2(eng): Audio: eac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp (24 bit), 640 kb/s Metadata: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID BPS-eng : 2539947 DURATION-eng : 02:14:38.112000000 NUMBER_OF_FRAMES-eng: 84147 NUMBER_OF_BYTES-eng: 2564747598 SOURCE_ID-eng : 001100 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 encoder : Lavc58.91.100 eac3 Stream #0:3(deu): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 26337 DURATION-eng : 02:08:12.872687500 NUMBER_OF_FRAMES-eng: 3018 NUMBER_OF_BYTES-eng: 25326442 SOURCE_ID-eng : 0012A9 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 1283 DURATION-eng : 01:36:24.966687500 NUMBER_OF_FRAMES-eng: 154 NUMBER_OF_BYTES-eng: 927766 SOURCE_ID-eng : 0012A1 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 1285 DURATION-eng : 01:36:24.966687500 NUMBER_OF_FRAMES-eng: 154 NUMBER_OF_BYTES-eng: 929344 SOURCE_ID-eng : 0012A3 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 35381 DURATION-eng : 02:14:12.440229166 NUMBER_OF_FRAMES-eng: 3800 NUMBER_OF_BYTES-eng: 35613812 SOURCE_ID-eng : 0012A0 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 29064 DURATION-eng : 02:03:52.070479166 NUMBER_OF_FRAMES-eng: 2938 NUMBER_OF_BYTES-eng: 27001162 SOURCE_ID-eng : 0012A1 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 35390 DURATION-eng : 02:14:12.440229166 NUMBER_OF_FRAMES-eng: 3800 NUMBER_OF_BYTES-eng: 35622537 SOURCE_ID-eng : 0012A2 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:9(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) Metadata: BPS-eng : 29070 DURATION-eng : 02:03:52.070479166 NUMBER_OF_FRAMES-eng: 2938 NUMBER_OF_BYTES-eng: 27006407 SOURCE_ID-eng : 0012A3 _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.3 win(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 12:01:04 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 53.845 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [auto_scaler_1 @ 0000019c80fbc780] w:3840 h:2160 fmt:bgra sar:0/1 -> w:3840 h:2160 fmt:yuva420p sar:0/1 flags:0x2 [auto_scaler_1 @ 0000019c80fbc780] w:3840 h:2160 fmt:bgra sar:0/1 -> w:3840 h:2160 fmt:yuva420p sar:0/1 flags:0x2 [auto_scaler_1 @ 0000019c80fbc780] w:1920 h:1080 fmt:bgra sar:0/1 -> w:3840 h:2160 fmt:yuva420p sar:0/1 flags:0x2 [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 57.266 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 57.432 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 60.185 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 61.27 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 64.565 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 64.731 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 67.276 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 69.82 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 72.406 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 79.371 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 81.748 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 83.333 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 86.795 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 86.962 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 89.631 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 89.798 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 93.343 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 93.51 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 95.512 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 95.596 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 97.347 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp [graph 0 input from stream 0:3 @ 0000019ce8429780] filter context - w: 3840 h: 2160 fmt: 28, incoming frame - w: 1920 h: 1080 fmt: 28 pts_time: 149.273 [graph 0 input from stream 0:3 @ 0000019ce8429780] Changing video frame properties on the fly is not supported by all filters. [matroska @ 0000019cea289440] Starting new cluster due to timestamp Error while filtering: Cannot allocate memory Failed to inject frame into filter network: Cannot allocate memory Error while processing the decoded data for stream #0:0 [AVIOContext @ 0000019cea168d00] Statistics: 0 seeks, 849 writeouts [hevc_nvenc @ 0000019cea282040] Nvenc unloaded [AVIOContext @ 0000019ce9c1c480] Statistics: 2233066927 bytes read, 5 seeks Conversion failed!

lisamelton commented 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?

maxbuelk commented 3 years ago

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.

lisamelton commented 3 years ago

@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.

samhutchins commented 3 years ago

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

maxbuelk commented 3 years ago

@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.

sweaver2 commented 2 years ago

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.

lisamelton commented 2 years ago

@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.