Mp3 to M3U8 audio file bitrate and quality transformation.

Options
sufian
sufian Member Posts: 2

I want to create an m3u8 file from my node api. Though it converts the extension type and i can easily play it on any m3u8 player. But it fails to perform other transformations like bitrates. I think cloudinary does not support adaptive streaming for audio only files, so i am creating 3 transformations with different bitrates. Then i create a custom m3u8 file pointing to the response urls. But all of them have same audio quality and bitrates.

const uploadOptions: UploadApiOptions = {   
  access_mode: 'public',     
unique_filename: true,     
folder: fileInfo.folder,     
public_id: publicId,   
eager_async: eagerOption,
  resource_type:'auto',     
  eager: [     
  { bit_rate: "128k", quality: 40, format: 'm3u8' },       
{bit_rate:'64k',quality:60,format:'m3u8'},      
{ bit_rate: "192k", quality: 80, format: 'm3u8' },      ],
      eager_notification_url: process.env.EAGER_URL,   
};
this is how i build the new file
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=32000
— url —

#EXT-X-STREAM-INF:BANDWIDTH=128000
— url —

#EXT-X-STREAM-INF:BANDWIDTH=192000
— url —

Tagged:

Comments

  • sufian
    sufian Member Posts: 2
    Options

    i need support on this please.

  • Tom
    Tom Member, Cloudinary Staff Posts: 68
    Options

    Hi @sufian ,

    Thanks for reaching out.

    Can you please send us the delivery URL of you eager call and also a sample m3u8 file you are testing?

    If you don't want to share this publicly, you can raise a request via https://support.cloudinary.com/hc/en-us/requests/new.

    Kind Regards,

    Thomas