Animation rendering issue, unknown error

Hi everyone,

I have some trouble with the rendering feature.
I’m using the latest version of Krita and FFmpeg, although when I try to render a window pops up saying that the rendering failed for an unknown reason.

It did work a time or two but since then nothing.
As I’m currently in the making of a short animated film, I desperately need to find a solution!

I tried exporting the animation as images, but even with 14 frames, it’s just not productive.

So I hope to find an answer here!

Thank you in advance,
Have a wonderful day,

Athena-

Which OS are you using? Are you using Krita 4.2.8?
Did you get version 4.2.2 of ffmpeg via the ffpeg.org site?
Are intermediate .png frame files produced in your target folder?
If it worked for a time or two before, what is different about the situation and the animation now?
Is there any kind of ‘encode’ log file produced in your target folder? If so, can you provide it for examination?

Hi, thank you for the quick response!
(I apologize in advance if I answer aside from the questions, English isn’t my first language)

I’m using the Windows 10 pro edition, version 1909.
The version I’m using of Krita and FFmpeg are indeed 4.2.8. and 4.2.2. I’ve read that it might be too new for the software to work, but I can’t seem to download past versions.
I can render the animation in .png without no problem, but it seems that the issue only occurs when a video file is at stakes.
Well, the times it worked, it did as the program would normally.
The other times, so 99% of the time, an error window pops-up saying, I quote; “Could not render animation; Unknown error.” And export everything as .png files.
It does not seem to matter whether I change the frame rate or the number of frames.
It does! here it is:
(could not figure how to add the file in itself, so I’m just gonna copy/paste it)

ffmpeg version git-2020-01-31-62d92a8 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 38.100 / 56. 38.100
  libavcodec     58. 67.100 / 58. 67.100
  libavformat    58. 37.100 / 58. 37.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 72.100 /  7. 72.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-nostdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument 0.
Reading option '-progress' ... matched as option 'progress' (write program-readable progress information) with argument 'C:/Users/Megaport/AppData/Local/Temp/KritaFFmpegProgress.IeMpTG'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '8'.
Reading option '-start_number' ... matched as AVOption 'start_number' with argument '0'.
Reading option '-i' ... matched as input url with argument 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame%04d.png'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '23'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'medium'.
Reading option '-profile:v' ... matched as option 'profile' (set profile) with argument 'main'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/turn around face - rough.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option nostdin (enable or disable interaction on standard input) with argument 0.
Applying option progress (write program-readable progress information) with argument C:/Users/Megaport/AppData/Local/Temp/KritaFFmpegProgress.IeMpTG.
[file @ 04ebdc80] Setting default whitelist 'file,crypto,data'
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame%04d.png.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 8.
Successfully parsed a group of options.
Opening an input file: C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame%04d.png.
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0000.png' for reading
[file @ 069f69c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069feb00] Statistics: 383046 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0001.png' for reading
[file @ 06a5c640] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 06a5c7c0] Statistics: 908082 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0002.png' for reading
[file @ 06a5c6c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069fdf00] Statistics: 520387 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0003.png' for reading
[file @ 06a5c780] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069fdf80] Statistics: 779249 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0004.png' for reading
[file @ 069fdf00] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069fe140] Statistics: 426456 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0005.png' for reading
[file @ 069fe140] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069fe2c0] Statistics: 649706 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0006.png' for reading
[file @ 069fdf00] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069fe300] Statistics: 675699 bytes read, 0 seeks
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0007.png' for reading
[file @ 069fe2c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 069fe500] Statistics: 689003 bytes read, 0 seeks
[image2 @ 069f4300] Probe buffer size limit of 5000000 bytes reached
Input #0, image2, from 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame%04d.png':
  Duration: 00:00:02.40, start: 0.000000, bitrate: N/A
    Stream #0:0, 8, 1/25: Video: png, 1 reference frame, rgba(pc), 4000x3000 [SAR 11811:11811 DAR 4:3], 0/1, 25 fps, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output url C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/turn around face - rough.mp4.
Applying option profile:v (set profile) with argument main.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Successfully parsed a group of options.
Opening an output file: C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/turn around face - rough.mp4.
[file @ 069f77c0] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
detected 12 logical cores
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 8 times
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0008.png' for reading
[file @ 06a5c740] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 06a60900] Statistics: 676112 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0009.png' for reading
[file @ 06a5c740] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 06a60900] Statistics: 662699 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0010.png' for reading
[file @ 06a5c740] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 06a60900] Statistics: 783476 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0011.png' for reading
[file @ 06a5c740] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 06a60900] Statistics: 456291 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0012.png' for reading
[file @ 0899dc40] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 06a5c740] Statistics: 764778 bytes read, 0 seeks
[graph 0 input from stream 0:0 @ 06a5c780] Setting 'video_size' to value '4000x3000'
[graph 0 input from stream 0:0 @ 06a5c780] Setting 'pix_fmt' to value '26'
[graph 0 input from stream 0:0 @ 06a5c780] Setting 'time_base' to value '1/8'
[graph 0 input from stream 0:0 @ 06a5c780] Setting 'pixel_aspect' to value '11811/11811'
[graph 0 input from stream 0:0 @ 06a5c780] Setting 'frame_rate' to value '8/1'
[graph 0 input from stream 0:0 @ 06a5c780] w:4000 h:3000 pixfmt:rgba tb:1/8 fr:8/1 sar:11811/11811
[format @ 069fd8c0] Setting 'pix_fmts' to value 'yuv420p'
[auto_scaler_0 @ 069faf40] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 069faf40] w:iw h:ih flags:'bicubic' interl:0
[format @ 069fd8c0] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 069ae140] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[auto_scaler_0 @ 069faf40] w:4000 h:3000 fmt:rgba sar:11811/11811 -> w:4000 h:3000 fmt:yuv420p sar:1/1 flags:0x4
[libx264 @ 09b29c00] using mv_range_thread = 72
[libx264 @ 09b29c00] using SAR=1/1
[libx264 @ 09b29c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 09b29c00] profile Main, level 6.0, 4:2:0, 8-bit
[libx264 @ 09b29c00] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=8 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/turn around face - rough.mp4':
  Metadata:
    encoder         : Lavf58.37.100
    Stream #0:0, 0, 1/16384: Video: h264 (libx264), 1 reference frame (avc1 / 0x31637661), yuv420p, 4000x3000 [SAR 1:1 DAR 4:3], 0/1, q=-1--1, 8 fps, 16384 tbn, 8 tbc
    Metadata:
      encoder         : Lavc58.67.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Clipping frame in rate conversion by 0.000008
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0013.png' for reading
[file @ 0899e2c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b200] Statistics: 531621 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0014.png' for reading
[file @ 0899e100] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bb40] Statistics: 819623 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0015.png' for reading
[file @ 0899dd00] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bc40] Statistics: 383046 bytes read, 0 seeks
frame=    4 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0016.png' for reading
[file @ 0899da80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267be40] Statistics: 908082 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0017.png' for reading
[file @ 0899dc40] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267c040] Statistics: 520387 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0018.png' for reading
[file @ 0899e200] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b200] Statistics: 779249 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0019.png' for reading
[file @ 0899ddc0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b700] Statistics: 426456 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0020.png' for reading
[file @ 0899dec0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bc40] Statistics: 649706 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0021.png' for reading
[file @ 0899d9c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b300] Statistics: 675699 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0022.png' for reading
[file @ 0899e040] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b800] Statistics: 689003 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0023.png' for reading
[file @ 0899db80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267ba40] Statistics: 676112 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0024.png' for reading
[file @ 0899d680] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267ba40] Statistics: 662699 bytes read, 0 seeks
frame=   13 fps= 12 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0025.png' for reading
[file @ 0899df80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267ba40] Statistics: 783476 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0026.png' for reading
[file @ 0899e100] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bf40] Statistics: 456291 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0027.png' for reading
[file @ 0899dd00] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b900] Statistics: 764778 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0028.png' for reading
[file @ 0899dc40] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bc40] Statistics: 531621 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0029.png' for reading
[file @ 0899db80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267be40] Statistics: 819623 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0030.png' for reading
[file @ 0899e200] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267ba40] Statistics: 383046 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0031.png' for reading
[file @ 0899d900] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267ba40] Statistics: 908082 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0032.png' for reading
[file @ 0899e100] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b700] Statistics: 520387 bytes read, 0 seeks
frame=   21 fps= 13 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0033.png' for reading
[file @ 0899e100] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b300] Statistics: 779249 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0034.png' for reading
[file @ 0899d5c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bc40] Statistics: 426456 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0035.png' for reading
[file @ 0899df80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b700] Statistics: 649706 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0036.png' for reading
[file @ 0899d5c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b500] Statistics: 675699 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0037.png' for reading
[file @ 0899e200] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b600] Statistics: 689003 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0038.png' for reading
[file @ 0899d5c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b500] Statistics: 676112 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0039.png' for reading
[file @ 0899db80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267b200] Statistics: 662699 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0040.png' for reading
[file @ 0899df80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267ba40] Statistics: 783476 bytes read, 0 seeks
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[image2 @ 069f4300] Opening 'C:/Users/Megaport/Videos/turn around/mihca/Face/Rough/frame0041.png' for reading
[file @ 0899df80] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 3267bf40] Statistics: 456291 bytes read, 0 seeks
x264 [error]: malloc of size 37715584 failed
Video encoding failed
[AVIOContext @ 09b6a040] Statistics: 0 seeks, 1 writeouts
[libx264 @ 09b29c00] scene cut at 5 Icost:3289905 Pcost:3099588 ratio:0.0578 bias:0.0625 gop:5 (imb:18197 pmb:27931)
Conversion failed!

Hi, what size your animation is - what size is your canvas, how many drawn frames you have (count all filled rectangles, which means if you have several layers then sum all rectangles in all of those layers) and how long it is (here 14 frames, right?). How much RAM do you have and how much Krita can have (this can be seen in Configure Krita -> Performance) and how much RAM is used (see the bottom bar - but this you need to check when the render fails, not when it succeds).

Hi,

I’ve looked into all of them, my RAM, and Krita’s. (There’s way more space available than the actual size of the canvas)
Everything is set up right, I tried rendering in Clip Studio and it works just fine, I think it’s a Krita issue.
(I could use Clip but I really don’t fancy working on it)

There’s only 14frames, it’s just the rough line so just one layer.

In a situation like this, specific detail is needed to help work out what the problem is and where it’s happening.
Please provide the information that tiar listed, in numerical detail.

Can you also provide details (ideally in a screenshot) of the exact contents and values in the Render Animation window that you use before this failure.

If possible, can you also provide a download link to the .kra file that gives this problem?

1 Like

Hi,
I understand, here they are :

I would like to add if it can be of any help, that it seems like above 14 frames it won’t render.
After I’ve set the ram memory to the “highest”, I tried again and it worked. I tried with 45 and it failed. (45 = 2 repetitions of the animation)
I even tried rendering into my other disk but it failed.

![animationcache|400x331]

size

Baseline - medium

Btw, crazy suggestion, but something I did last time: can you please try rendering 45 frames after setting Krita to only use like 2GB? (in Performance -> Memory Limit. But don’t make File Size Limit smaller.)

The idea is that ffmpeg (which is a different program from Krita) needs some RAM to render it as well, so Krita will only use SWAP, and ffmpeg will use RAM.
EDIT No… it cannot be ffmpeg fault, because often ffmpeg doesn’t even have a chance to work on frames before Krita gives up on saving frames. It must be some bug in Krita that makes it use RAM outside of what is given to it. When you’re already doing RAM-heavy work, Krita takes the whole assigned RAM, so if it needs to put some more stuff outside of assigned RAM, it only has how much is left for the system…

Please tell me if it worked. (And if not, how many frames have you managed to render). Make sure to restart Krita before trying to render, and only open this file.

1 Like

Is it too early to say I love you?
Because you literally saved my life right there !!

Thank you so much to both of you !!

turn around rough (1234)

Good to know! :smiley: I had to render a huge animation some time ago and it turned out to be a good way to do it as well. There is a way to deal with even bigger animations that even after changing to 1-2GB won’t render, but it’s tedious.

I think I might want to write a guide how to deal with and render something big, because there are a few culprints that need to be written down. For example, the File Size for swap needs to be big, as you did. What else might be beneficial is unchecking “Enable background cache generation” - it will save you some performance while working on it.

Also I believe the reasoning I presented above is wrong… I believe it’s Krita messing things up, not ffmpeg.

1 Like

It’s good to know it’s working for you :slight_smile:

The RAM allocation of 14GB out of 16GB is too high though.
With a freshly started Windows system, if you run krita then the total RAM usage is 2.3 GB (Windows plus the Krita application before it starts to use RAM for its own image and animation work).

I’ve just imported the .mp4 animation that was made and for some reason the Animation Importer plugin would not go past frame 35 (another investigation needed) but I padded it out to 45 frames with duplicate frames.
After that I saw total memory usage of 4.2 GB (Image 2.1GB pool 2.1GB).

Having done that, I could render it out to .mp4 with no problem and I noticed that for a short time there was ffmpgelink (some link/calling process) using 2GB of RAM. So at least 4.3 GB (preferably more) of RAM needs to be available for use outside of that allocated to krita in its settings.

It would be interesting to know if Athena can render ok if the RAM allocation is taken down to 11GB or maybe 10GB, on that basis.

Athena is also running 6 clones and has the animation cache in-memory, all of which will push up krita’s RAM use until it may hit the OS, the application itself and ffmpeglink when it’s being used.
Having said that, it does sound unlikely based on the guidelines (tool tips on hover) for those factors.

It is a complicated subject and any guidelines would of course be welcome if it’s possible to do that.

6 clones is fine for 6 cores in the processor. It makes it faster to work… at least on normal-sized animations.
And in-memory is less buggy. On-disk often cause issues for some reason, not sure why, especially with opacity keyframes.
Also I don’t really understand this:

But just in case, Krita should never use more RAM than in the limit; when it needs more, it should use Krita’s SWAP file. That’s why this worries me because it proves Krita uses some of the RAM that should be left alone :frowning: and complains about out-of-memory when it runs out of it, even if there is a SWAP file available…

As I said, I don’t think Athena should have had problems with RAM headroom clash. I’ve just adjusted my settings to more or less the same as hers were (except that I only have 8 cores) and after rendering, the total RAM usage for krita was 9.6GB which is roughly 8.5 GB for image storage plus animation overhead.
If the RAM allocation is too high and krita does use it all, or most of it, then the OS itself will not be able to carry out krita’s own swapping out (writing to the swap file) since the OS will need RAM for data block buffering and file management while it tries to do this and then falls over.

This did happen before when someone had a PC with 4GB of RAM running Windows and krita (and a browser) and was then surprised when his computer crashed after an animation got close to 2GB of image RAM used.