Friday, October 26, 2018

I wrote a custom youtube-dl extractor for Cisco Live videos

u/m1xed0s asked about how to download Cisco Live videos. Nobody had a great answer, and it turns out I was wrong-- youtube-dl couldn't download anything from https://ciscolive.cisco.com/on-demand-library/

So I took it as a challenge to write some python. Submitted the pull request to the main repo, but I expect to take time before the code is merged.

It's not as feature-rich as other extractors, but it gets the job done.

You do NOT have to log in to your Cisco account :)

You can wait for the merge, or run my branch directly:

$ git clone -b ciscolive git@github.com:austind/youtube-dl.git Cloning into 'youtube-dl'... remote: Enumerating objects: 32, done. remote: Counting objects: 100% (32/32), done. remote: Compressing objects: 100% (21/21), done. remote: Total 91088 (delta 17), reused 23 (delta 11), pack-reused 91056 Receiving objects: 100% (91088/91088), 51.35 MiB | 22.15 MiB/s, done. Resolving deltas: 100% (67022/67022), done. Checking connectivity... done. Checking out files: 100% (917/917), done. $ cd youtube-dl/ $ python -m youtube_dl https://ciscolive.cisco.com/on-demand-library/?search.event=ciscoliveus2018#/session/1509501642762001PaDs [ciscolive] 1509501642762001PaDs: Downloading JSON metadata [brightcove:new] 5803751938001: Downloading webpage [brightcove:new] 5803751938001: Downloading JSON metadata [brightcove:new] 5803751938001: Downloading m3u8 information [brightcove:new] 5803751938001: Downloading m3u8 information [brightcove:new] 5803751938001: Downloading m3u8 information [brightcove:new] 5803751938001: Downloading m3u8 information [brightcove:new] 5803751938001: Downloading MPD manifest [brightcove:new] 5803751938001: Downloading MPD manifest [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 662 [download] Destination: 1 Video Delivery Technology to Rule Them All; Adaptive Bitrate Streaming-5803751938001.fhls-487-3.mp4 [download] 4.5% of ~278.70MiB at 17.32MiB/s ETA 01:04 


No comments:

Post a Comment