O'Reilly logo

Python Multimedia Beginner's Guide by Ninad Sathaye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - MP3 cutter from basic principles

Let's create an MP3 cutter from 'basic principles'. That is we won't be using gnonlin to do this. In this project, we will apply knowledge about seeking a track playing, pausing the pipeline along with the basic audio processing operations.

This utility can be run from the command line as:

$python AudioCutter_Method2.py [options]

Where, the [options] are as follows:

  • --input_file: The input audio file in MP3 format from which a piece of audio needs to be cut.
  • --output_file: The output file path where the extracted audio will be saved. This needs to be in MP3 format.
  • --start_time: The position in seconds on the original track. This will be the starting position of the audio to be extracted.
  • --end_time: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required