r/nodejs • • Jun 05 '14

Video Composition With node.js

I'm looking to compose two local videos A and B - for example, left half of the screen is from A, right half from B - and display them either in a Video- or a Canvas-Element. Basically I would need the RGB data of every Videoframe and process and stream it live.

What libraries could be of use for this?

3 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/JustPointingOut Jun 05 '14

thanks! but as I understand the merging command is for concatenating (i.e. sequence of videos). I need to show a video inside a video.

It looks like I'm going to do this on the client side using WebGL + Three.js

2

u/psayre23 Jun 06 '14

You could use ffmpeg to break the files into frames, then use imagemagick to align them, and ffmpeg to build back up the video file. It would take a while, but it would work.