Open Bloodcapillary opened 2 years ago
You need to open https://www.ffmpeg.org/ffmpeg.html#Options and https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/README.md Then "simply" match the ffmpeg commands to the fluent ffmpeg commands and type them. While this library make ffmpeg easy to use it does not actually write the commands itself :P
That would actually be a great feature request, if this project finds a maintainer. Converting existing ffmpeg commands into fluent api code.
ffmpeg -loop 1 -t 5 -i 1.jpg -loop 1 -t 5 -i 2.jpg -loop 1 -t 5 -i 3.jpg -loop 1 -t 5 -i 4.jpg -filter_complex "[0]scale=320:640[a];[1]scale=320:640[b];[2]scale=320:640[d];[3]scale=320:640[f];[a][b]xfade=transition=smoothleft:duration=1:offset=4.5[c];[c][d]xfade=transition=smoothright:duration=1:offset=9[e];[e][f]xfade=transition=smoothup:duration=1:offset=13.5,format=yuv420p" output.mp4
thanks!!!