Roland's homepage

My random knot in the Web

vid2mkv

My digital camera can also produce movies, like most camera’s these days. It saves them in AVI format, with relatively poor mjpeg compression and uncompressed sound.

So I wrote this python script to convert these AVI files to Theora / Vorbis streams in a matroška container. It takes the video files named on the command line, and then launches ffmpeg to do the conversion.

To speed up the processing of multiple files, this script runs the conversions in parallel on all the cores that your machine has.

The vid2mkv.py script can be downloaded from github.

Requirements: * python (version 3) * ffmpeg


For comments, please send me an e-mail.


Related articles


←  vid2mp4 Generate random passwords  →