Video Converter

Video Converter

Released 7 years ago , Last update 6 years ago

A python module for video conversion, inspection and thumbnail generation, built on top of ffmpeg

Video Converter uses the FFmpeg multimedia framework for actual file processing, and adds an easy-to-use API for probing and converting media files on top of it.

Supported codecs and formats:

  • source: any format or codec that's supported by ffmpeg
  • target formats: Ogg, AVI, Matroska, WebM, FLV, Mov, MP4, MPEG-TS
  • target video codecs: Theora, H.264/AVC, DivX, VP8, H.263, Flv, MPEG-1, MPEG-2.
  • target audio codecs: Vorbis, AAC, MP3, MP2


  • Pythonic, clean, extensible code
  • extensive unit tests
  • tested on Python version 2.5, 2.6, 2.7
  • uses ffmpeg utilities, doesn't need to be linked against ffmpeg library itself

Module documentation is available here.

This module uses the ffmpeg utilities to do the actual media processing, and so requires them to be installed on the system (either system-wide, or to a custom location). Support for a particular format/codec depends on the underlying ffmpeg utilities being compiled with support for it.

  • 5 0
  • 4 1
  • 3 0
  • 2 0
  • 1 0
1 Reviews Read Reviews


14 day 14-day money-back guarantee


MIT license

The MIT license is an open-source license.

Quick Start

Import the module and create the Converter object:

>>> from converter import Converter
>>> c = Converter()

Examine video file:

>>> info = c.probe('test1.ogg')
>>> info.format.format
>>> info.format.duration

Resize the video:

>>> conv = c.convert('test1.ogg', '/tmp/output.ogg', {
        'format': 'ogg',
        'video': {
                    'codec': 'theora',
                    'width': 160,
                    'height': 120,
                    'fps': 15,
                    'bitrate': 300 },
        'audio': {
                    'codec': 'vorbis',
                    'channels': 1,
                    'bitrate': 32 }  })

>>> for timecode in conv:

Extract a thumbnail from the frame 10 seconds in the video:

>>> c.thumbnail('test1.ogg', 10, '/tmp/shot.png')
License » MIT license Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
No comments have been posted yet.