/pymv

Python wrapper library for ffmpeg

Primary LanguagePython

pymv

A basic wrapper library for the ffmpeg CLI tool.

Example

This is a very basic example taking an input file (filename.mkv), selecting the streams for use, setting codec information, and finally running the command producing the output file (test.mkv).

from pymv import Pymv

mov = Pymv()
mov.Input('filename.mkv') \
    .Map(0,0).Map(0,1)
mov.Video.Codec('copy')
mov.Audio.Codec('aac') \
    .Channels(2)
mov.Output('test.mkv')
mov.Run()

More examples

More examples can be found in the tests folder.

TODO

There's a lot of work that needs to be done and can be found in the TODO file.