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 create a simple logger in Python, first part

The Python computer programming language offers a builtin module which can be utilized to log applications. Being a junior developer, lately I have started to realize the importance of logging.

Before one can properly make use of the Python’s builtin logging module, they need to learn the basics. Through this tutorial, the reader is going to learn how to create a simple logger with the help of the Python’s builtin module, so they can build some basic foundation which can be useful later in their serious projects. Continue reading “How to create a simple logger in Python, first part”

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 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 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”

How to add a watermark with Python and FFmpeg on your video

The FFmpeg multimedia framework offers many utilities which can be used to process video files. Having used such tools myself for some time now, I find the framework truly useful, especially when I want to do video conversion. Although FFmpeg is a great framework to use as a standalone; accessing its features through the Python computer programming language makes things more interesting.
Continue reading “How to add a watermark with Python and FFmpeg on your video”