73
submitted 9 months ago by stebo02@lemmy.dbzer0.com to c/firefox@lemmy.ml

I've been using this extension for a while now and it works great, but since recently a QR-code is put onto the video when downloaded (if it's a HSL one that needs to be converted). I understand that this converting process can be expensive and I'm willing to donate, but $30 seems like a lot no? The QR-code is not small either, it takes up like 40% of the video, rendering it absolutely useless. Does anyone know any alternatives or workarounds?

you are viewing a single comment's thread
view the rest of the comments
[-] UndercoverUlrikHD@programming.dev 11 points 9 months ago

You can use The Stream Detector for HLS which can then be used to download via a program such as ffmpeg

[-] pipariturbiini@sopuli.xyz 1 points 9 months ago

Does this work on any site? e.g. Pornhub?

[-] WigglyTortoise@discuss.tchncs.de 3 points 9 months ago

I haven't used this extension before but it seems like what it does is find the URLs of active videos. You can do the same manually by F9(or right click > inspect) > Network > Media > Sort by size (larger files will probably be video). This will give you the URL of the video (same as if you right clicked and chose "open video in new tab", but some sites disable this).

This approach usually works for me, but many sites take steps to prevent it.

  1. Send several smaller video files. They basically cut it up into short videos so you can't access the whole thing at once. ffmpeg or a download manager (I use TurboDownloadManager) should be able to combine them relatively easily. Until recently, YouTube used this sort of method. The URL had a "range" tag that specified which frames of the video to show. Deleting this tag gave the whole video. They've since changed it and I don't know any similar tricks (just use yt-dlp for YouTube). Other sites may do something similar, like changing a number or keyword in the URL will get you the whole video.

  2. Serve a preview of a full video (that you have to pay for). Many sites have very similar URLs for free and paid videos. On some sites you might be able to guess what you need to change to get the full video. Some sites have their previews named "preview.mp4" whee the full vudeo is the same URL but named "video.mp4" or something like that. You can spend some time messing around if you find something like this, but really the chances of guessing correctly are pretty low.

  3. Encrypted keys. This is basically impossible to crack. Some URLs will have long strings of letters and numbers in them. I assume this is some sort of encrypted password that needs to match up for you to access the video. Don't even try with these ones.

TL;DR usually it'll work. Sometimes it won't but you might be able to get around it.

Also, yt-dlp works on much more than just YouTube. If I can't figure out how to download a video, I'll just give the URL (the webpage, not the direct video URL) to yt-dlp and it'll often work.

[-] UndercoverUlrikHD@programming.dev 2 points 9 months ago

Regarding point 1. that's what HLS does. The extension simply generates a simple to use CLI command to request and compile the HLS stream into a normal video file. Simply sniffing out the video source via the network manager is just the first step and most simple step of the process.

[-] UndercoverUlrikHD@programming.dev 1 points 9 months ago

I don't know what method it uses for streaming content, if it's HLS I don't see why it wouldn't work.

this post was submitted on 28 Feb 2024
73 points (94.0% liked)

Firefox

17302 readers
170 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS