Learn how to create separate audio files from your videos

As more people consume their media from more devices, it becomes important to have your content available across multiple mediums to make it easy for your users to consume. Often times, your audio can be an important part of your video which can be consumed separately from the video.

For this reason we allow you to easily extract and create separate files from the audio tracks in your videos.

To create an audio output, set the value of the output attribute in the format object as "mp3". You also can use audio-only input as a source.

Example:

{
 "output": "mp3",
 "audio_bitrate": 192
}

You can find tune audio settings be using the following attributes as part of the format object. You can find a list of attributes below:

audio_bitrateoptional
Output file audio bitrate value in kilobytes. Defaults to 64.
audio_sample_rateoptional
Output file audio sample rate. Defaults to 44100.
audio_channels_numberoptional
Output file audio channels number. Default value is 2.
Warning
Currently, the only format available for audio outputs is MP3.
Similar to video, you can customize any of the audio attributes like audio_bitrate, audio_sample_rate, and audio_channels_number.

Example

{
  "output": "mp3",
  "destination": {
    "url":"s3://s3.us-east-1.amazonaws.com/yourbucket/output.mp3",
    "key":"abcde12345",
    "secret":"abcde12345",
    "permissions": "public-read"
  },
  "audio_bitrate": 128,
  "audio_sample_rate" : "44100",
  "audio_channels_number" : "2"
}

Creating audio clips with start_time and duration attributes is also supported.