Tuesday, 11 April 2017

How to check for corrupted webm video using node.js and fluent-ffmpeg?

I'd like to check if an encoded webm video has errors. So far I've managed to catch an error using something like this:

ffmpeg -v error -i ../broken.webm -f null - 

which outputs:

[matroska,webm @ 0x7fba5400a200] Read error at pos. 110050 (0x1ade2)

I would like to achieve the same output using node.js and fluent-ffmpeg, but I couldn't figure out to to pass -v error and -f null - using the js wrapper syntax. Any ideas ?



via George Profenza

No comments:

Post a Comment