I need to concatenate images to a video. Images contain black and white pixels, but I need to save quality of them as much as possible with saving space of disk. So, I don't need to use .mov.
And after that I'm going to load the video to a video hosting.
I'm running this command:
ffmpeg.exe -y -framerate 30 -pattern_type sequence -start_number 00000 -i "E:\Work\git_repos\projects\filestovideosconverter\target\resultImages202303261305\Our Wedding.7z.009-i%5d-d2.png" -c:v libx264 -movflags +faststar -crf 18 -pix_fmt gray -preset slow "E:\Work\git_repos\projects\filestovideosconverter\target\resultVideos202303261505\Our Wedding.7z.009-i5-d2.mp4"
It takes too much time.
Could you please help me to improve it?
UPD:
There are ~300k png images in a folder. They have 720p(1280x720) resolution.
My hardware: ryzen 3600, rtx 3080, 32gb ram, sata HDD with images
It takes ~2h 40m to create a video from the images. So, encoding speed is about 31 fps.