M. Eerie wrote: β23 Sep 2022, 08:33
Assuming this is what you want to achieve:
This answer has worked for me so far.
Indeed it is.
Just a small repeat of how it's done.
Open the browser console (or e.g. "Developer Tools") with F12 (that's the key for Firefox and Palemoon, maybe that key differs for your browser; if so press the correct key to open the browser console)
Delete all previous entries in console.
Reload the page where the video is, maybe start the video when it is not started by itself.
Go in the console to "network" and look for m3u8
The corresponding URL to that m3u8 appears on the right side of the console. Copy that URL.
I choose the 1st URL that had m3u8 in it and gave that to yt-dlp and it worked. (sometimes you have to check the other m3u8's to get to the correct one.)
M. Eerie wrote: β23 Sep 2022, 08:33
Once you get the .m3u8 it's just a matter of yt-dlp <link>
Or first yt-dlp -F <link> and then choose a (smaller) format, since FullHD is overkill most of the timeβ¦
But one thing did not work as planned.
I looked up the formats and got these
Code: Select all
ID EXT RESOLUTION β TBR PROTO β VCODEC VBR ACODEC ABR
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
697 mp4 480x270 β 697k m3u8 β avc1.64001e 697k mp4a.40.2 0k
994 mp4 640x360 β 994k m3u8 β avc1.64001f 994k mp4a.40.2 0k
1640 mp4 960x540 β 1641k m3u8 β avc1.640020 1641k mp4a.40.2 0k
2516 mp4 1280x720 β 2516k m3u8 β avc1.640020 2516k mp4a.40.2 0k
4755 mp4 1920x1080 β 4755k m3u8 β avc1.64002a 4755k mp4a.40.2 0k
I choose -f 1640 since I deem 960x540 good enough (nice compromise between file size and quality)
But running yt-dlp -f 2516 <url> still resulted in the FullHD video.
Any ideas why the formats as listed by yt-dlp -F <url> fails? Never before that happened, only when downloading a blob: video via .m3u8 I not got the formats but the largest resolution available.
Another strange thing:
running
yt-dlp <url> yt-dlp told me the resulting video will be
~242.71MiB (I aborted that download approach)
running
yt-dlp -f 2516 <url> I still got a FullHD video, yt-dlp told me the size will be ~78.45MiB and it is in reality 76.20 MB.
Added in 10 minutes 56 seconds:
I now also downloaded the -f 994 format (640x360) and this time, it really is a 640x360 video.
Maybe the "1640 mp4 960x540" is a wrong info set up in the file that handles the videos on the server, and yt-dlp just reports what the server tells it (and gets it wrong when the server info is also [for whatever reason] wrong)