Closed pirquessa closed 9 years ago
Just add an arguments
option in the constructor. You can pass parameters in child_process.spawn style like this:
{
arguments: ['-vf', 'crop=ih:ih:(iw-ih)/2:0']
}
Nice ! I'll try it tonight :)
Thanks
Fail :(
There is a strange '-' as last argument in the FFMpeg.prototype._args method. It looks like we have to keep it at the end. You know why ?
The fact is that the fix does not works... Using this.arguments as the fist argument of the concat method make it works.
Oh, crap. Forgot about dash at the end which forces ffmpeg to use stdin. f65da575e8cb0510c3a325b0a0d048cd37703a8c
Seems better now. Thx :)
Do you update the npm repo each time ?
For this small library - yes.
I had to customize the lib to be able to use parameter like "-vf crop=ih:ih:(iw-ih)/2:0, transpose=2" in FFMpeg.prototype._args method.
It could be good to expose a way for the user to use custom parameters... A callback ? A generic array that will be concat to existing params ?
Could you do it for me ? :-D