Roland's homepage

My random knot in the Web

avi2mkv

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 AVI files named on the command line, and then launches ffmpeg2theora and mkvmerge to do the conversion.

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

source:avi2mkv.py
GPG signature:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEABECAAYFAlE4mrUACgkQEnfvsMMhpyWyPgCgpwx19n7jXQt86xpwJIkn00b+
GY0AoJHIDWniPyRpYhmkzjQaWdStegHR
=V0+I
-----END PGP SIGNATURE-----
SHA256 hash:5a0daa3614b5007ad17b4844ff63ac5fdb73c2c3ac548b0b89741aa46aee26c7
Requirements:python, ffmpeg2theora and mkvmerge

Note

|filename|/images/cc0.png

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