Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node.js Module for ffmpeg library.
JavaScript
Branch: master

Merge pull request #5 from Katoka/master

Changed how params are passed
latest commit 5cf0f911f6
@xonecas authored

README

Node.js module to control ffmpeg

usage:

   ffmpeg.call(
      [ ... ],                 // array of ffmpeg flags
      callback                 // function to call after ffmpeg is done
   );

Examples:

   See file test.js

These are the ffmpeg commands used by the module for the convenience methods.
(If you know how to improve them for better quality/speed, please let me know).

   mp4:

   ffmpeg -i ./test.3gp \
      -acodec libfaac -ab 128k -ar 41000 \
      -vcodec libx264 -vpre slow -vpre baseline -s 640x360 -r 25 \
      ./test.mp4


   ogg:

   ffmpeg -i ./test.3gp \
      -acodec libvorbis -ab 128k -ar 41000 \
      -vcodec libtheora -s 640x360 -r 30 \
      ./test.ogg

   webm:

   ffmpeg -i ./test.3gp \
      -acodec libvorbis -ab 128k -ar 41000 \
      -vcodec libvpx -s 640x360 -b 614400 -aspect 16:9 \
      ./video.webm


Something went wrong with that request. Please try again.