When trying to export a timelapse using the Recorder docker, I get a popup saying
Export failed. FFmpeg message:
[fc#0 @ 000001e3821bf540] Error reinitializing filters!
[fc#0 @ 000001e3821bf540] Task finished with error code: -22 (Invalid argument)
[fc#0 @ 000001e3821bf540] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/libx264 @ 000001e3821f7780] Could not open encoder before EOF
[vost#0:0/libx264 @ 000001e3821f7780] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libx264 @ 000001e3821f7780] Terminating thread with return code -22 (Invalid argument)
Conversion failed!
The log file that gets created alongside the failed video says this:
C:/Users/millheat/Downloads/_Programs/ffmpeg-7.0-essentials_build/ffmpeg-7.0-essentials_build/bin/ffmpeg.exe -hide_banner -y -framerate 30 -i C:/Users/millheat/Videos/Krita Timelapses/test\20240422104333%07d.jpg -framerate 30 -start_number 65-1 -i C:/Users/millheat/Videos/Krita Timelapses/test\20240422104333%07d.jpg -filter_complex
[0]loop=530:size=1:start=65[main1];
[main1]scale=1920:1080[main2];
[main2]loop=1:size=1:start=0[main3];
[main3]setpts=PTS-STARTPTS[main4];
[1]split [first1][transition1];
[transition1]scale=1920:1080 [transition2];
[transition2]loop='if(gte(2, 1), 130, 0)':size=1:start=1[transition3];
[transition3]setpts=PTS-STARTPTS[transition4];
[transition4][main4]xfade=transition=smoothright:duration=0.5:offset=0[v1];
[v1]setpts=PTS-STARTPTS[v2];
[v2]trim=start_frame=1[v3];
[first1]loop=āif(gte(2, 1), (230) - 0.5, 230)ā:size=1:start=1[preview1];
[preview1]scale=1920:1080[preview2];
[preview2]setpts=PTS-STARTPTS[preview3];
[preview3][v3] concat [final1];
[final1] setpts=PTS-STARTPTS[final2];
[final2] trim=start_frame=1
-c:v libx264 -r 30 -pix_fmt yuv420p C:/Users/millheat/Videos/Krita Timelapses/test\10.mp4
Input #0, image2, from āC:/Users/millheat/Videos/Krita Timelapses/test\20240422104333%07d.jpgā:
Duration: 00:00:02.17, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 96:96 DAR 16:9], 30 fps, 30 tbr, 30 tbn
Input #1, image2, from āC:/Users/millheat/Videos/Krita Timelapses/test\20240422104333%07d.jpgā:
Duration: 00:00:00.03, start: 0.000000, bitrate: N/A
Stream #1:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 96:96 DAR 16:9], 30 fps, 30 tbr, 30 tbn
Stream mapping:
Stream #0:0 (mjpeg) ā loop:default
Stream #1:0 (mjpeg) ā split:default
trim:default ā Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 000001e3827c5840] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000001e38443c040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000001e384ba9040] deprecated pixel format used, make sure you did set range correctly
[Parsed_xfade_8 @ 000001e3821f8b80] The inputs needs to be a constant frame rate; current rate of 1/0 is invalid
[Parsed_xfade_8 @ 000001e3821f8b80] Failed to configure output pad on Parsed_xfade_8
[fc#0 @ 000001e3821bf540] Error reinitializing filters!
[fc#0 @ 000001e3821bf540] Task finished with error code: -22 (Invalid argument)
[fc#0 @ 000001e3821bf540] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/libx264 @ 000001e3821f7780] Could not open encoder before EOF
[vost#0:0/libx264 @ 000001e3821f7780] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libx264 @ 000001e3821f7780] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 000001e3821c1bc0] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
Conversion failed!
Specs:
Krita 5.2.2
ffmpeg linked (ffmpeg-7.0-essentials_build)
Windows 11
Precision 5680
The issue seems to be the ācurrent rate of 1/0 is invalidā? But I donāt know where or how to fix that.
Iāve tested creating an animation and it exports using ffmpeg with no issue, only the recorder seems to have a problem.
What could be causing the recorder to fail?