With this functionality, it is possible to add more than one audio track within our VOD content. Before proceeding, you must take the following into account:
The original uploaded clip may contain more than one track, but the platform defaults to only two.
The additional tracks must match the duration of the original clip and cannot have a difference greater than 3 seconds. If the duration varies by a few seconds, it is preferable to include this time at the end of the audio clip.
It supports .mp3, .mp4, .wav, and .m4a audio formats.
Clips uploaded before the feature was activated on the account will not show the option for additional audio.
When adding a new audio track, the Edit media feature of the clip is disabled.
The feature is activated through a commercial agreement.
How does it work?
Once the original clip is uploaded to the platform, under the player and next to the Renditions tab, a new tab called Audio Tracks appears, which shows the associated audio track or tracks for the video. If the original language displayed does not match, it can be edited as required. When doing so, you should keep in mind that when assigning a name (Name), the platform uses the ISO 639-1 standard: 2 letter code.
Note: The original track cannot be removed from the clip.To add an additional track, click on the + Add new Audio Track button.
In the pop-up that appears, you must select the language and assign the corresponding name, and then upload the additional track from your computer. Keep in mind that it cannot exceed 20 GB or be longer than 6 hours in duration
Once the fields have been assigned and the track has been uploaded, the Save button is activated. Click on it to save the changes.
After the upload process is complete, the track will appear in the list within the tab. These tracks can be deleted, but not replaced.
Within the player, you just need to click on the gear icon and select the preferred audio track.
Remember to save the changes in the media after uploading the additional audio track.
Uploading discrete audio tracks via API
For API uploading, the same API used for all media upload flows at https://platform.mediastre.am/developer/docs/api is used. You just need to add additional parameters indicating that it is a discrete audio track and the media to which it should be associated. The additional field would be "audio_track".
Example:
{
"size": "<file size in bits>",
"file_name": "<video file name>",
"type": "remote",
"fileUrl":
"<file URL>",
"audio_track": {
"media_id": "<media_id>",
"language": "<ISO 639-1 (2 letter) language code>",
"name": "<language name to show as label>"
}
}
The uploaded audio tracks will not appear in the list of renditions. Instead, they will be listed within the audio tracks tab.
Example of metadata provided:
{ ...
"audio": [
{
"_id": "62ec098e7456e464838b0934",
"language": "en",
"language_name": "English",
"default": true
},
{
"_id": "62ec148b5634y764838b0950",
"language": "es",
"language_name": "Español",
"default": false,
"meta": {
"codec": {
"audio": {
"name": "AAC",
"bitrate": 128,
"codec": "mp4a.40.5"
},
"video": {
"codec": null
}
},
... }
If you have any additional questions, please write to us through the chat.
Att: Mediastream team