Skip to main content

We have used Brightcove to transcode many of our videos into the HLS and DASH formats.  We’d like to leverage our transcoding and copy these HLS and DASH formats for use somewhere else.  Is there a way to download the raw HLS and DASH video formats?  

You can streamline this process by creating a script that utilizes the BC Playback API to retrieve the HLS/DASH CDN URL and ffmpeg to download the content.

 

For DASH streams:

ffmpeg -i "http://example.com/path/to/video-file.mpd" -c copy output.mpd

 

For HLS streams:

ffmpeg -i "http://example.com/path/to/video-file.m3u8" -c copy output.ts

 

Note that the .m3u8 file is a playlist and does not contain the media content itself. Instead, it references .ts segments. ffmpeg can be used to fetch these segments and combine them into a single file if needed.



Hi @Denis Khoo,

Thank you for sharing your questions on Bright Spot!

I would like to complement the information that @Andy Hartono shared above.

I would like to share the following documentation: https://apis.support.brightcove.com/playback/references/reference_v2.html#tag/Videos/operation/Get_Video_by_ID_or_Reference_ID 

In it you will find how to download HLS and DASH formats from your account through API call using the playback API. 

After calling /playback/v1/accounts/{{account_id}}/videos/{{video_id}} it will get a list of metadata, look for the “Sources” in the response, and you will find downloadable URL's of the HLS and DASH content if applicable.

Happy to help!


Reply