Plain FFmpeg
Plain FFmpeg is really tiny library for constructing and executing FFmpeg processes from Node.
Features
- Output from stderr is formated in JSON
- Unlike other FFmpeg wrappers, it exposes the actual process and it's events
- It doesn't provide convinience methods that mask options i.e you'll be using
.in('-r', 24)
to set the input framerate instead of.setFramerate(24)
Example
One way of starting the process is:
var FFmpeg = ; var ffmpeg = global: '-y': null input: '-i': 'http://domain.com/video.mp4' '-r': 24 output: 'output.mov' '-c:v': 'libx264' ;ffmpegstart; ffmpeg
All methods return the object, so you can chain them like:
var ffmpeg = 'input_path' 'output_path'start
The third argument in the constructor is an options
object, so you can pass it presets:
var h264_preset = in: '-r' '24' out: '-c:v': 'libx264' '-c:a': 'libaac' var ffmpeg = 'input_path' null h264_preset;ffmpegstart