The FFMpeg multimedia framework offers many builtin utilities which can be used to process different types of media files, such as audio, images and videos. Having some practical experience with the ffmpeg tool which is being found in the FFMpeg framework, I can say that its commands are not easy to remember, especially for the beginner who has not any idea how stuff works under the hood.
Since I have some basic knowledge in the Python computer programming language, I have decided to automate some of the ffmpeg’s functionalities by making use of a module called subprocess. Based on my practical experience with the Python’s subprocess module, one can easily make use of it to spawn child processes in their own operating system.
Before going any further with this tutorial, make sure to launch a new Python interactive console in your own operating system. Once you have managed to do that, use the Python import statement to include the subprocess module in your interactive sessions. The command is being shown below.
Continue reading “How to convert a video with Python and FFMpeg”