OptimalBits / navcodec

nodejs extension for libavcodec
151 stars 19 forks source link

images -> video #7

Open binarykitchen opened 11 years ago

binarykitchen commented 11 years ago

hi guys

avconv is able to generate a video from images. but in your documentation i see no such support. something like %d.jpg should be accepted in navcodec.open() i think.

cheers michael

manast commented 11 years ago

Hello,

interesting. But I would like to know, what use case is this used for?

regards,

Manuel.

binarykitchen commented 11 years ago

via socket.io i send back webcam pictures to the server and would like to create a video from these temporary jpg files ...

manast commented 11 years ago

I see. So actually you would like a different API where you can add the frames instead of opening jpeg files, right?

binarykitchen commented 11 years ago

i think the better question is to look at the available parameters of ffmpeg or avconv. they allow still images as an input, see: http://manpages.ubuntu.com/manpages/precise/man1/avconv.1.html http://ffmpeg.org/trac/ffmpeg/wiki/Create%20a%20video%20slideshow%20from%20images

in other words, adding frames or opening jpeg files does not help. as an input for your api i'd suggest something like: navcodec.open('path/to/myimage%d.jpg', ...

and in your code, parse for the printf-like syntax % and treat it differently ... just a thought.