How to convert a video with Python and FFMpeg

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”

How to script ffmpeg for Python hackers, second part

The Python computer programming language makes a perfect tool for scripting, especially when it comes to wrapping functionalities of already existing software. Being an FFMpeg user for quiet some time now, there are many functionalities part of it, which I truly need to automate through the Python computer programming language. It is very frustrating to memorize all different types of ffmpeg commands, with all the available options. Continue reading “How to script ffmpeg for Python hackers, second part”

Introduction to the json module for the Python geek

There are many builtin modules being offered by the Python computer programming language. Each one of them has been built by the developers with the main purpose of solving specific problems.

Through this article, you will learn how to make use of the Python’s json module, so you can encode and decode Python objects through it. Continue reading “Introduction to the json module for the Python geek”

How to create a server and a client in python by using network sockets

The Python computer programming language offers a module which can be used to interact with the networking interface; this module is called socket. Having some experience with this module, I decided to share it through this article, with the main purpose of helping other Python geeks get familiar with networking. Continue reading “How to create a server and a client in python by using network sockets”

Introduction to the socket module in Python

Almost every computer programming language offers already builtin modules which help to script networking functionalities. Based on my experience with the Python computer technology, socket is a very useful module when it comes to interaction with the networking interface. According to the official documentation, the socket module is available on all modern Unix systems, Windows, Mac OS X, BeOS, OS/2 and probably additional platforms. Continue reading “Introduction to the socket module in Python”

How to script ffmpeg for python hackers, first part

The FFMpeg multimedia framework has many tools which come with a lot of functionalities and commands hard to remember, especially for the beginner. Been using it for quiet some time now, I find the framework really useful when processing multimedia files on my own machine, but sometimes it get really frustrating with the long commands which have many different options.
Continue reading “How to script ffmpeg for python hackers, first part”

How to add audio to a video with FFMpeg

FFMpeg is a great framework when it comes to processing multimedia files, especially for someone who has not budget to spend on commercial software. Been using this tool for some time now, I am really grateful to the developers who have contributed their energies in putting together a very useful computer software such as FFMpeg. Continue reading “How to add audio to a video with FFMpeg”