I wanted to add the ffmpeg option -movflags +faststart, as I'm generating video preview thumbnails; so I added the option to add custom options to the ffmpeg commandline.
Before, some errors from ffmpeg were being silently dropped, in particular: bad filter errors, which I noticed while testing this new feature - you'd just get a zero length video with no explanation. I've therefore fixed ffmpeg error handling so that it will properly catch and handle errors on stdout from ffmpeg.
If you're writing a file, you'll get ffmpeg errors to stderr. If you're writing to a stream, you can catch the error event on that stream and you will receive all ffmpeg errors.
I wanted to add the ffmpeg option
-movflags +faststart
, as I'm generating video preview thumbnails; so I added the option to add custom options to the ffmpeg commandline.Before, some errors from ffmpeg were being silently dropped, in particular: bad filter errors, which I noticed while testing this new feature - you'd just get a zero length video with no explanation. I've therefore fixed ffmpeg error handling so that it will properly catch and handle errors on stdout from ffmpeg. If you're writing a file, you'll get ffmpeg errors to stderr. If you're writing to a stream, you can catch the error event on that stream and you will receive all ffmpeg errors.