Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Video encoding in real time through node js?

Do Anyone know realtime encode video in node with ffmpeg ? I know transloadit was done well on this. Any idea ?

https://transloadit.com/blog/2010/12/realtime-encoding-over-150x-faster

like image 289
user717166 Avatar asked Jul 07 '26 03:07

user717166


1 Answers

Co-founder at Transloadit here : ) We used pipes. Node.js allows us to see the data as it is still being uploaded (we used our node-formidable module). FFmpeg allows using stdin for input via ffmpeg -i -. So you can pipe uploaded bytes into that spawned child_process's stdin, and that's that : )

Off-topic, we later deprecated the feature. It turned out the market for it was less interested than we had imagined, and it sadly introduced enough operational headaches that we said goodbye to this, by us, beloved feature.

like image 176
kvz Avatar answered Jul 08 '26 20:07

kvz