Closed johndanek closed 8 years ago
You have to separate the flag from the option string in addOutputOption
. fluent-ffmpeg automatically splits them when the string you pass contains only one space (ie addOutputOption('-flag option')
) but not when there are 2 or more : addOutputOption('-flag', '"Option with spaces"')
Thanks for the tip, but now I get the less helpful error of "Invalid argument".
ERROR creating gif: Error: ffmpeg exited with code 1: Error initializing complex filters. Invalid argument
The outputted command is still:
ffmpeg -i ./tmp4/input/trimmedFile.mp4 -i ./tmp4/input/palette.png -y -lavfi "fps=10 [x]; [x][1:v] paletteuse" ./tmp4/output/test.gif
Here is what I'm trying to do in fluent-ffmpeg:
This fails with the following error:
ERROR creating gif: Error: ffmpeg exited with code 1: Unrecognized option 'lavfi "fps=10 [x]; [x][1:v] paletteuse"'. Error splitting the argument list: Option not found
This is the ffmpeg command being used (according to the .on('start') callback):
ffmpeg -i tmp0/input/trimmedFile.mp4 -i tmp0/input/palette.png -y -lavfi "fps=10 [x]; [x][1:v] paletteuse" tmp0/output/test.gif
If I copy and paste that to the command line, it works fine. How can I get this to work in fluent-ffmpeg?