Videos with multiple audio tracks / multi-track audio
It seems that if you upload a video with multiple audio tracks, Cloudinary only picks one. Is there a way to downmix all audio tracks or to choose which audio track is delivered?
-
Hey Francis,
Unfortunately, I can't really share the video itself publicly, I can share some example metadata:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'multi-track-example.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2020-07-31T20:46:42.000000Z
Duration: 00:00:05.00, start: 0.000000, bitrate: 12013 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709/bt709/iec61966-2-1), 750x1334, 10028 kb/s, 28.26 fps, 30 tbr, 600 tbn, 600 tbc (default)
Metadata:
rotate : 270
creation_time : 2020-07-31T20:46:43.000000Z
handler_name : Core Media Video
encoder : HEVC
Side data:
displaymatrix: rotation of 90.00 degrees
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 248 kb/s (default)
Metadata:
creation_time : 2020-07-31T20:46:43.000000Z
handler_name : Core Media Audio
Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 248 kb/s (default)
Metadata:
creation_time : 2020-07-31T20:46:43.000000Z
handler_name : Core Media AudioThe use case is basically this: we are uploading videos with a video stream and two audio streams. We would like to be able to use Cloudinary to transcode the videos such that the two audio streams are combined/overlapped/flattened into a single one.
Does that make sense?
-
Hi Ravi,
For multiple audio tracks, we are picking up the first one.
Currently, we don't support such options.
You can open a support ticket and share with us your video to see if we can have a workaround.
Thanks,
Francis
-
You can create the manifest file with multiple audio tracks. Custom manifest files creation: https://cloudinary.com/documentation/adaptive_bitrate_streaming#manually_creating_representations_and_master_files
Here is a blog that mentions the structure of such a file: https://tech47.in/blog/react-hls-vod-with-page-localisation
Please sign in to leave a comment.
Comments
6 comments