Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python image frames to video

I am writing a python/django application and it needs to do image manipulation and then combine the images into a video (each image is a frame). Image manipulation is easy. I'm using PIL, but for the convert to video part, I'm stuck. I've found pyffmpeg but that just seems to do decoding of videos to frames, not the other way around. Although I may have missed something. I've also heard that pythonMagick (imagemagick wrapper) can do this, but I can't seem to find anything about encoding in the docs.

This is running on a linux server and must be python (since that is what the application is in).

What should I use?

like image 479
lovefaithswing Avatar asked Apr 07 '11 18:04

lovefaithswing


1 Answers

Use OpenCV and python binding. There is cv.WriteFrame function. Similar question and answer

like image 101
Andrey Sboev Avatar answered Nov 02 '22 22:11

Andrey Sboev