Batch convert MKV

, par MiKaël Navarro

Ci-joint un script d’exemple d’utilisation de Blender en ligne de commande (en arrière-plan sans interface) pour automatiser des tâches.

Dans cet exemple, on convertit une source vidéo au format Matroska.

$ blender.exe -b -P conv-mkv.py -- --help
Usage: blender -b -P conv-mkv.py -- [options] <file.mov>

Convert given video file to Matroska format.

Options:
 -r DIR, --render=DIR  Output path (default= //)
 -x WIDTH, --width=WIDTH
                       Resolution X (default= 320)
 -y HEIGHT, --height=HEIGHT
                       Resolution Y (default= 200)
 -f FPS, --fps=FPS     Frame rate (default= 25)
 -v VCODEC, --vcodec=VCODEC
                       Video codec (choices=['MPEG4', 'H264'], default= H264)
 -a ACODEC, --acodec=ACODEC
                       Audio codec (choices=['AAC', 'MP3'], default= AAC)
 --version             show program's version number and exit
 -h, --help            show this help message and exit