My video does not appear to include any audio. Can I keep the original audio of the video used?
The volume of a video asset is set to 0 by default. But if you would like to keep the audio of a video you can use the volume property inside of your video asset.
Audio asset with volume property
{
"timeline": {
"background": "#000000",
"fonts": [
{
"src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/OpenSans-Regular.ttf"
}
],
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://github.com/shotstack/test-media/raw/main/captioning/scott-ko.mp4",
"volume": 1
},
"start": 0,
"length": 25.85
}
]
}
]
},
"output": {
"format": "mp4",
"resolution": "sd"
}
}
Audio asset without volume property (no audio)
{
"timeline": {
"background": "#000000",
"fonts": [
{
"src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/OpenSans-Regular.ttf"
}
],
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://github.com/shotstack/test-media/raw/main/captioning/scott-ko.mp4"
},
"start": 0,
"length": 25.85
}
]
}
]
},
"output": {
"format": "mp4",
"resolution": "sd"
}
}