I was wondering how compatible Node.js is with videos. Not playing them, but actually editing it. My end goal is to reverse videos online. Java looks like my best bet so far, but I do like how Node.js is fast, scalable, etc.
Does anyone know if it is possible with node.js? At lease being able to break up videos into frames, putting them into an array of some sort, and then sticking them back up.
My guess is probably not, as it looks as it is based off of JavaScript. I may be wrong, but I think javaScript is more UI, Animating, Simple Data jobs, etc. Not big time video editing.
Any help is highly appreciated.
I would approach this from the other end: What tool can I use to reverse videos? I’m sure there are better options out there, but at least it’s possible to do with ffmpeg, according to this SO answer. The caveat is that you have to split it into images and then stitch them back together.
If you would go with this route (i.e., using ffmpeg in the manner described), you could indeed accomplish it with node.js for the web application and job handling. I would have some kind of workers (either something similar to e.g. resque or using e.g. node.js
child_process.fork).As @duskwuff mentions in his answer, this solution won’t be streaming, but using workers, you might be able to accomplish something acceptable, depending on your requirements.
If, on the other hand, you have e.g. a Java library that’s awesome in reversing videos, you should use that, and perhaps build the web app in Java as well.