Book Image

Python Multimedia

By : Ninad Sathaye
Book Image

Python Multimedia

By: Ninad Sathaye

Overview of this book

Multimedia applications are used by a range of industries to enhance the visual appeal of a product. This book will teach the reader how to perform multimedia processing using Python. This step-by-step guide gives you hands-on experience for developing exciting multimedia applications using Python. This book will help you to build applications for processing images, creating 2D animations and processing audio and video. Writing applications that work with images, videos, and other sensory effects is great. Not every application gets to make full use of audio/visual effects, but a certain amount of multimedia makes any application a lot more appealing. There are numerous multimedia libraries for which Python bindings are available. These libraries enable working with different kinds of media, such as images, audio, video, games, and so on. This book introduces the reader to the most widely used open source libraries through several exciting, real world projects. Popular multimedia frameworks and libraries such as GStreamer,Pyglet, QT Phonon, and Python Imaging library are used to develop various multimedia applications.
Table of Contents (13 chapters)
Python Multimedia Beginner's Guide
Credits
About the Author
About the Reviewers
Preface

Project: combining audio clips


It is time for a project! In this project, we will create a single audio file, which has custom audio clips appended one after the other. Here, we will apply several of the things learned in earlier section, and also in the previous chapter on audio processing.

Creating a new audio file, which is a combination of several audio tracks of your choice involves the following steps:

  • First thing we need are the audio files that need to be included. Depending upon our requirement, we may need only a small portion of an audio track. So we will develop a general application considering this possibility. This is illustrated in the time-line illustrated earlier.

  • Next, we need to make sure that these audio pieces are played in a specified order.

  • There should be a 'blank' or a 'silent' audio in-between the two audio pieces.

  • Next, we will also implement audio fade-out effect for each of the pieces in the track. This will ensure that the audio doesn't end abruptly.

Media 'timeline...