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

Note

creative commons public domain logo

To the extent possible under law, Roland Smith has waived all copyright and related or neighboring rights to vid2mkv.py. This work is published from the Netherlands.


←  vid2mp4 Generate random passwords  →