- I have 24 frames (
frame-%d.png) - I want to turn them into a video that will be 1 second long
- That means that each frame should play for 1/24 seconds
I'm trying to figure out the correct settings in order to achieve that:
await new Promise((resolve) => {
ffmpeg()
.on('end', () => {
setTimeout(() => {
console.log('done')
resolve()
}, 100)
})
.on('error', (err) => {
throw new Error(err)
})
.input('/my-huge-frames/frame-%d.png')
.inputFPS(1/24)
.output('/my-huge-video.mp4')
.outputFPS(24)
.noAudio()
.run()
- Are my
inputFPS(1/24)&outputFPS(24)correct ? - Each
frame-%d.pngis huge: 32400PX x 32400PX (~720Mb). Willffmpegbe able to generate such a video, and if so, will the video be playable? If not, what is the maximum resolution eachframe-%d.pngshould have instead? - Since the process will be quite heavy, I believe using the command line could be more appropriate. In that case, what is the equivalent of the above Js code in the command line (as in
ffmpeg -framerate etc...) ?