question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Site request: Support for loom.com

See original GitHub issue

Checklist

  • I’m reporting a new site support request
  • I’ve verified that I’m running youtube-dl version 2021.01.24.1 (I’m not actually running 2021.01.24.1; I’m running 2021.01.16 since that’s the latest version in the AUR, but I check the changelog and the site was not supported between these releases.)
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve searched the bugtracker for similar site support requests including closed ones
  • I’ve checked that none of provided URLs violate any copyrights

Example URLs

(More can be found by just searching for site:loom.com/share on a search engine like duckduckgo or google. These are just from their help pages.)

Description

From what I understood from the loom website, it’s basically like a shitier version of youtube that doesn’t have public videos and requires you to install an extension/desktop app instead of using OBS. So basically worthless.

But, for some reason, my teacher decided to use it for a video she put up. (Since I don’t want to dox myself, I just put support videos in the example URL list.) And since she was talking stupidly slowly, so I wanted to download it and then watch it. Turns out youtube-dl didn’t already have that capability, so I’m opening an issue for it.

Anyway, the site seems to be simple enough. Ignoring their fancy JS player, the video turns out to literally just be a webm video that’s downloaded from their cdn. (If you check the network logs when you watch a video, it seems to send a request with a URL that looks like: https://cdn.loom.com/sessions/raw/[VIDEO-ID].webm?Expires=[EXPIRY-TIME]&Policy=[POLICY-VALUE]&Signature=[SIGNATURE-VALUE]&Key-Pair-Id=[KEY-PAIR]. (Where [VIDEO-ID] is from the main URL: https://www.loom.com/share/[VIDEO-ID]) I don’t know where the POLICY-VALUE, SIGNATURE-VALUE, or KEY-PAIR come from. It seems that the entire Expires=[EXPIRY-TIME]& item can be removed, without it changing anything. (Though, if you remove the policy, it will say that it’s missing the expiry. Not sure why, since it works without the expiry… Though, that could be unintentional on their end, and might be patched at some point.) This URL comes from a request the browser makes to the https://www.loom.com/api/campaigns/sessions/[VIDEO-ID]/raw-url URL, which returns a JSON formatted string, where the url key holds the reference to the cdn.

If I just take that URL and do youtube-dl https://cdn.loom.com/sessions/raw/. . ., then it’ll download the webm video properly. So implementing this shouldn’t be too hard, just parse the video id, POST the endpoint for the cdn URL, and then download that like a normal webm/etc. video.

Though, checking another URL it also seems to have this other video with a .ts extension?? idk, mpv says it’s the mpegts format, encoded in h264. I don’t recognize that format though. The URL I got that from is here. It also seems to have split that video into multiple parts, but I don’t think it did that on other videos. Idk, I didn’t look into how this works that much since I’m lazy.

If you guys decide not to implement this (because nobody uses this service), I’m fine with that too. I just wanted to make this because it seems like it’d be trivially easy to implement. (I would make a PR for it myself, except I’m a java developer and my python code looks like shit. You probably wouldn’t want it anyway.)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

4reactions
october262commented, Jan 25, 2021

for this link - https://www.loom.com/share/31b41727a5b24dacb6c1417a565b2ebf press F12 on your keyboard to bring up the debug menu, go to network - media, type mp4 in the search box, look for the link that has .mp4 at the end, copy the link and feed it into youtube-dl to download the video. (NOTE: for some reason i am only able to get a partial video to download and not the complete clip). if i use the add-on video download helper, i am able to grab the complete video.

2reactions
RobbiNespucommented, Jan 10, 2022

Looking forward for this PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Submit a request - Loom support
Submit a request. How can we help you today? -. -, How does Loom work? Technical issues and bugs, My Loom account, Billing,...
Read more >
Loom support
Getting Started · Recording & Editing · Workspaces & Plans · Settings & Billing · Troubleshooting · Recording Tips, FAQ & Security ·...
Read more >
How to contact Loom Support
Via your Personal Library page form: 1) From your Library, click the ? icon in the bottom right. 2) Select Contact support and...
Read more >
How to contact support for mobile – Loom
Here's how to contact us for mobile support: Open your Loom app in iOS or Android. Open your Videos tab at the bottom...
Read more >
Where can I make a product request? - Loom support
If you'd like your voice to be heard, you can visit our feedback by going to the Help widget in the bottom left...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found