How to programmatically create videos?

10,152

Solution 1

I know there's mencoder (part of the mplayer project), and ffmpeg, which both can do this.

Solution 2

ffmpeg is a great (open source) program for building all kinds of video, and converting one type of video (a sequence of images in this case) into other types of video.

Usually it is utilized from the command line, but that is really just a wrapper around its internal libraries. It is expressly available to be used from within another program.

There are also python bindings that wrap the c api, though this particular project doesn't seem to be getting the best support (there are probably other projects out there doing the same thing).

There's also this link where someone has used ffmpeg to do something similar to what you're looking for.

Solution 3

GStreamer is a popular choice. It's a full multimedia framework much like DirectShow or QuickTime, has the advantage of having legally licensed codecs available, and has excellent Python bindings.

Solution 4

in c++ OpenCV (open source Computer Vision library from Intel) let you create an AVI file and just push frames inside...

but it's like shooting with a cannon to a fly.

Share:
10,152
Yogesh Gandhi
Author by

Yogesh Gandhi

Updated on June 14, 2022

Comments

  • Yogesh Gandhi
    Yogesh Gandhi about 2 years

    Is there a freely available library to create a MPEG (or any other simple video format) out of an image sequence ?

    It must run on Linux too, and ideally have Python bindings.