O'Reilly logo

Python Multimedia Beginner's Guide by Ninad Sathaye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - video format converter

We will create a video conversion utility that will convert an input video file into a format specified by the user. The file you need to download from the Packt website is VideoConverter.py. This file can be run from the command line as:

python VideoConverter.py [options]

Where, the options are as follows:

  • --input_path: The full path of the video file we wish to convert. The video format of the input files. The format should be in a supported list of formats. The supported input formats are MP4, OGG, AVI, and MOV.
  • --output_path: The full path of the output video file. If not specified, it will create a folder OUTPUT_VIDEOS within the input directory and save the file there with same name.
  • --output_format: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required