Skip to main content
User Community Portal
Solved

Download HLS and DASH from Brightcove

  • 4 September 2024
  • 2 replies
  • 108 views

Forum|alt.badge.img

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?  

Best answer by Perla Olivas


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!

View original
Did this topic help you find an answer to your question?

2 replies

Andy Hartono
Forum|alt.badge.img+2
  • Brainy
  • 44 replies
  • September 14, 2024

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.


Perla Olivas
Forum|alt.badge.img
  • Employee
  • 41 replies
  • Answer
  • September 25, 2024


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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings