Skip to main content
Question

Download HLS and DASH from Brightcove

  • 4 September 2024
  • 1 reply
  • 16 views

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.


Reply