youtube-dl icon indicating copy to clipboard operation
youtube-dl copied to clipboard

Add vidyard support

Open k4rtik opened this issue 8 years ago • 9 comments

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.12.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x] I've verified and I assure that I'm running youtube-dl 2016.12.01

Before submitting an issue make sure you have:

  • [x] At least skimmed through README and most notably FAQ and BUGS sections
  • [x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [ ] Bug report (encountered problems with youtube-dl)
  • [x] Site support request (request for adding support for a new site)
  • [ ] Feature request (request for a new functionality)
  • [ ] Question
  • [ ] Other

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Vidyard homepage: https://www.vidyard.com/

  • Single video: ~~http://play.vidyard.com/MYsNEfzgpaB4w8xGWL2g7A~~
  • Same video embedded on another site: ~~https://www.purestorage.com/otb/ep1.html~~
  • Downloadable link to the same video: ~~http://cdn.vidyard.com/videos/Tty5gmS1jK8gPPatNZSCRg/full_hd.mp4?5R1bEOiBmTPTd29ZHp6WJbAB2_2Ffz6As5zIVJlFfEBx5r0B6ZGGus0ZpcRiljHOZi7zRLk4BSgvU5-1SIv7pJHEfwz6XHojWyhk0kwVpPMqF94~~
  • ~~Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc~~

Edit: These all 404 now, see link in the comment below.

k4rtik avatar Dec 01 '16 18:12 k4rtik

Another video: https://play.vidyard.com/wVn1pCABE7RbkAHm6vNuFu.html

mih-kopylov avatar Nov 14 '19 03:11 mih-kopylov

Here is an example of an embedded vidyard video:

~~https://tidelift.com/subscription/webinar/watch/idc/thank-you~~ (no longer available see more examples below)

Attempted download with version 2020.09.06:

[generic] thank-you: Requesting header
WARNING: Falling back on generic information extractor.
[generic] thank-you: Downloading webpage
[generic] thank-you: Extracting information
ERROR: Unsupported URL: https://tidelift.com/subscription/webinar/watch/idc/thank-you

lofidevops avatar Sep 11 '20 10:09 lofidevops

Another example, don't know how long it will be up:

https://em.barracuda.com/dc/kQ4nJk0QPyKZ4SUJ7_SxXt5LxMtfeeBvSLuLU1XILns8CEPhzxEdmypT2QgdyO0BZ01AtlyQVDnRh-S_bbbY8AW97JajKGaDYYVqx7MGKk7ZIIuNa_8vwImzCaexv8AP/U1mC0bC02K0BmI01sV000Oj

youtube-dl 'https://em.barracuda.com/dc/kQ4nJk0QPyKZ4SUJ7_SxXt5LxMtfeeBvSLuLU1XILns8CEPhzxEdmypT2QgdyO0BZ01AtlyQVDnRh-S_bbbY8AW97JajKGaDYYVqx7MGKk7ZIIuNa_8vwImzCaexv8AP/U1mC0bC02K0BmI01sV000Oj'
[generic] U1mC0bC02K0BmI01sV000Oj: Requesting header
WARNING: Falling back on generic information extractor.
[generic] U1mC0bC02K0BmI01sV000Oj: Downloading webpage
[generic] U1mC0bC02K0BmI01sV000Oj: Extracting information
ERROR: Unsupported URL: https://em.barracuda.com/dc/kQ4nJk0QPyKZ4SUJ7_SxXt5LxMtfeeBvSLuLU1XILns8CEPhzxEdmypT2QgdyO0BZ01AtlyQVDnRh-S_bbbY8AW97JajKGaDYYVqx7MGKk7ZIIuNa_8vwImzCaexv8AP/U1mC0bC02K0BmI01sV000Oj

youtube-dl --version
2021.01.16

boschkundendienst avatar Jan 19 '21 09:01 boschkundendienst

Since 2016, this issue is still opened? did anyone get a fix? I want to download this vid -https://play.vidyard.com/ZKXHwfjf1MtezrxwjKGs5h

saviour123 avatar Mar 04 '21 16:03 saviour123

I can download from vidyard, but I believe there is an access control mechanism that checks the Referer HTTP header.

For instance:

youtube-dl "https://cdn.vidyard.com/hls-videos/wYIcVOmXXMuf1hAslXUlOw/stream_master_6u7VYEhHHbx5aZtD4wGGrQ.m3u8" --add-header "Referer: https://play.vidyard.com/"

matiya avatar May 13 '21 13:05 matiya

youtube-dl https://play.vidyard.com/ZKXHwfjf1MtezrxwjKGs5h --add-header "Referer: https://play.vidyard.com/"

@matiya this is not working for me

saviour123 avatar May 13 '21 18:05 saviour123

For that video, the following should work:

youtube-dl "https://cdn.vidyard.com/hls-videos/ArwxsclFb9I2YAILazF3LA/sd_segmented/sd_segmented_zXn2vRofmYWaDPMN46AfNA.m3u8" --add-header "Referer: https://play.vidyard.com"

I'm not an expert, but I think the .m3u8 is a playlist and in order to get it, you can open the network connections in the developer tools of the browser.

I believe youtube-dl could automate this.

matiya avatar May 13 '21 19:05 matiya

Yep; all youtube-dl needs to do is find the stream_master URL (i.e. https://cdn.vidyard.com/hls-videos/fWSBwUuZPHpnh3HhjgXzFg/stream_master_5ZbxuIQGkGsDiBvSQ11C-Q.m3u8?BMvc0VjC4BMUKTj2kp0sz-7Tva-ygg0y7o0M1bNkWHCAlnjxRXi-uIaLfF7OCXSB0viEpLnWYajbdHVIvHLsdGJMldvdLGjH10hURA20YLMFbpWpjOvHL_MUl5-e8KDeq6RxHBt56ZJiDwED78K6wja50vizr5wBPV6c6sB58lFlvCODqmimPaFC6QgAQSHX9AWC) then add the referrer (--add-header "Referer: https://play.vidyard.com") and it should always work. Just confirmed with several URLs:

Screen Shot 2022-01-11 at 3 47 57 PM Screen Shot 2022-01-11 at 3 48 18 PM .

johnnyxmas avatar Jan 11 '22 21:01 johnnyxmas

Here's another url: https://play.vidyard.com/urAKCbwcLunhRfGdnQt2rT.html The command-line that worked for me:

youtube-dl 'https://cdn.vidyard.com/media/hls/mHt17oCX28b7JMxgtAtYBA/,full_hd,hd,480p,sd,.mp4.urlset/index-f2-v1-a1.m3u8' --add-header "Referer: https://play.vidyard.com/urAKCbwcLunhRfGdnQt2rT.html"

jnahmias avatar Dec 06 '22 19:12 jnahmias

Ditto. The way to do it seems to be to access the video playback from DevTools (Chrome) and see what URL the network is sending requests for segment-{NUMBER}. Then you replace it in the download section as @jnahmias showed - the unique ID that's in the network goes to the first url, and the original .html ID goes as the referrer

stanislavkozlovski avatar Jun 14 '23 20:06 stanislavkozlovski

Searching for master.m3u8 in devtools worked fine. You can observe the headers needed there. Just the referer was sufficient for me.

basaran avatar Jul 04 '23 15:07 basaran

actually, it's much easier to get the URL from the vidyard JSON. For example, using curl and jq:

$ curl --silent --show-error --fail https://play.vidyard.com/player/urAKCbwcLunhRfGdnQt2rT.json | jq -r '.payload.chapters[0].sources.mp4[] | select(.profile == "1080p") | .url'
https://cdn.vidyard.com/videos/mHt17oCX28b7JMxgtAtYBA/full_hd.mp4?WacwzqupUNYvK0u-RpqrcdDCnv6gMO-LW8uWAI3bHLpHfksSB_jpJakZfu7R2FZxRU_C6xnSAuMhoMvO_NoE4g4280IX28KUjifG9xn6oBrTdX-n1fTyhFV69hywKbQsxZJ8uF_1QgjNkLhKtqEz4Nw

Note: you may need to change 1080p to 720p or another resolution, if the higher ones aren't available.

Then you just download that URL with an appropriate referrer:

$ curl --head --referer https://play.vidyard.com/ https://cdn.vidyard.com/videos/mHt17oCX28b7JMxgtAtYBA/full_hd.mp4?WacwzqupUNYvK0u-RpqrcdDCnv6gMO-LW8uWAI3bHLpHfksSB_jpJakZfu7R2FZxRU_C6xnSAuMhoMvO_NoE4g4280IX28KUjifG9xn6oBrTdX-n1fTyhFV69hywKbQsxZJ8uF_1QgjNkLhKtqEz4Nw
HTTP/2 200 
content-type: video/mp4
content-length: 1558179927
x-amz-id-2: iz0w+n6ZLpMjJIKoKldpyPq7HBDeYSa1WyQj/EUyq7HCvZNTxTsP16Uq0AbpEb2ZAaw26ChwNU4=
x-amz-request-id: 6EBDV6Y54JR5C90R
date: Tue, 04 Jul 2023 21:14:18 GMT
last-modified: Fri, 23 Jul 2021 20:31:32 GMT
etag: "e995e2345abc4224649e7f830768fa98-298"
x-amz-storage-class: GLACIER_IR
x-amz-server-side-encryption: AES256
content-disposition: attachment
x-amz-version-id: WFrigakfilZPROrqupngELRYA8H9.Iau
accept-ranges: bytes
server: AmazonS3
x-cache: Miss from cloudfront
via: 1.1 957a0e737a088bdc07cb5cc9dcc9e826.cloudfront.net (CloudFront)
x-amz-cf-pop: EWR53-P1
x-amz-cf-id: D25vNCPQsiXUWCI2NXgXteK2wEpGch_FybYxKLRsJE2uZo0cVqVLsg==
x-cdn: cloudfront
vary: Origin

Note: remove the --head to actually download the file.

jnahmias avatar Jul 04 '23 21:07 jnahmias