Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xonecas/ffmpeg-node
Node.js Module for ffmpeg library.
https://github.com/xonecas/ffmpeg-node
Last synced: 3 months ago
JSON representation
Node.js Module for ffmpeg library.
- Host: GitHub
- URL: https://github.com/xonecas/ffmpeg-node
- Owner: xonecas
- Created: 2011-01-29T00:19:45.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2017-06-17T08:06:11.000Z (over 7 years ago)
- Last Synced: 2024-07-03T00:32:11.764Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 120
- Watchers: 7
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#FFMPEG-NODE
Node.js module to control ffmpeg
### To install
>npm install ffmpeg-node### Usage
```
ffmpeg.call(
[ ... ], // array of ffmpeg flags
callback // function to call after ffmpeg is done
);
```Examples:
>See file test.jsThese 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.mp4ogg:
ffmpeg -i ./test.3gp \
-acodec libvorbis -ab 128k -ar 41000 \
-vcodec libtheora -s 640x360 -r 30 \
./test.oggwebm:
ffmpeg -i ./test.3gp \
-acodec libvorbis -ab 128k -ar 41000 \
-vcodec libvpx -s 640x360 -b 614400 -aspect 16:9 \
./video.webm```