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 folderOUTPUT_VIDEOS
within the input directory and save the file there with same name.--output_format
: The audio format of the output file. The supported output formats are OGG and MP4.