311
Fn
ffmpeg-node / files
ffmpeg-node / README.md
920 bytes
1#FFMPEG-NODE 2 3Node.js module to control ffmpeg 4### To install 5>npm install ffmpeg-node 6 7### Usage 8 9``` 10ffmpeg.call( 11 [ ... ], // array of ffmpeg flags 12 callback // function to call after ffmpeg is done 13 ); 14 ``` 15 16Examples: 17>See file test.js 18 19These are the ffmpeg commands used by the module for the convenience methods. 20(If you know how to improve them for better quality/speed, please let me know). 21 22 ``` 23 mp4: 24 25 ffmpeg -i ./test.3gp \ 26 -acodec libfaac -ab 128k -ar 41000 \ 27 -vcodec libx264 -vpre slow -vpre baseline -s 640x360 -r 25 \ 28 ./test.mp4 29 30 31 ogg: 32 33 ffmpeg -i ./test.3gp \ 34 -acodec libvorbis -ab 128k -ar 41000 \ 35 -vcodec libtheora -s 640x360 -r 30 \ 36 ./test.ogg 37 38 webm: 39 40 ffmpeg -i ./test.3gp \ 41 -acodec libvorbis -ab 128k -ar 41000 \ 42 -vcodec libvpx -s 640x360 -b 614400 -aspect 16:9 \ 43 ./video.webm 44 45```