I was looking for a way to encode multiple videos at the same time with NodeJS, but have not yet found a good solution for it.
Using FFMPEG I never get a 100% rejection response. There is always a broken video.
OS: Ubuntu 12.04
size = "#{options.maxWidth}x#{options.maxHeight}"
proc = new ffmpeg({
source: options.input
}).withVideoCodec(options.encoder).withSize(size).keepPixelAspect(true).withStrictExperimental()
proc.onProgress (progress) ->
console.log "progress: " + progress.percent
proc.saveToFile options.output, (stdout, stderr) ->
console.log "file has been converted succesfully"
source
share