Git Product home page Git Product logo

Comments (9)

glubsy avatar glubsy commented on July 1, 2024 2

This should be fixed after half integrating pytube and using their way of computing the signed url token, with commit 67201e6

from livestream_saver.

undulum avatar undulum commented on July 1, 2024 2

In ytarchive, this was fixed by using the Android player response, the same strategy that yt-dlp used:
https://github.com/Kethsar/ytarchive/compare/50043024..d0380487

from livestream_saver.

glubsy avatar glubsy commented on July 1, 2024

This is not entirely fixed yet. Some live streams appear to be throttled while others are not. Perhaps the signature needs to be applied periodically, which would force us to refresh the download URLs for each stream every now and then. If that is the case, we'll need to figure out that time period somehow.

It has been reported to me that restarting the download process brings back normal download speed to normal for a little while, which corroborates this assumption.

from livestream_saver.

snipergod87 avatar snipergod87 commented on July 1, 2024

It may indeed be throttling, There was a public livestream earlier today that ended 3 hours ago (started 4h ago).
LiveStreamSaver is still downloading segments
2021-10-13 11:30:24,825 - INFO - livestream_saver - Found live: UWrIOOoFIaM title: 【Moona Boona】MysStory【Episode 2】. Downloading... 2021-10-13 11:30:24,826 - INFO - download.UWrIOOoFIaM - Will start downloading from segment number 0. 2021-10-13 11:30:25,329 - INFO - download.UWrIOOoFIaM - Stream seems to be viewed live. Good. 2021-10-13 11:30:25,330 - INFO - download.UWrIOOoFIaM - Stream status Status.OK Finding throttling function name finished regex search, matched: %s a\.[A-Z]&&\(b=a\.get\("n"\)\)&&\(b=([^(]+)\(b\) Finding throttling function name finished regex search, matched: %s a\.[A-Z]&&\(b=a\.get\("n"\)\)&&\(b=([^(]+)\(b\) 2021-10-13 11:30:25,878 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="299" mime_type="video/mp4" res="1080p" fps="60fps" vcodec="avc1.4d402a" progressive="False" type="video"> 2021-10-13 11:30:25,879 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="136" mime_type="video/mp4" res="720p" fps="30fps" vcodec="avc1.4d401f" progressive="False" type="video"> 2021-10-13 11:30:25,879 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="298" mime_type="video/mp4" res="720p" fps="60fps" vcodec="avc1.4d4020" progressive="False" type="video"> 2021-10-13 11:30:25,880 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="135" mime_type="video/mp4" res="480p" fps="30fps" vcodec="avc1.4d401f" progressive="False" type="video"> 2021-10-13 11:30:25,880 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="134" mime_type="video/mp4" res="360p" fps="30fps" vcodec="avc1.4d401e" progressive="False" type="video"> 2021-10-13 11:30:25,880 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="133" mime_type="video/mp4" res="240p" fps="30fps" vcodec="avc1.4d4015" progressive="False" type="video"> 2021-10-13 11:30:25,881 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="160" mime_type="video/mp4" res="144p" fps="30fps" vcodec="avc1.4d400c" progressive="False" type="video"> 2021-10-13 11:30:25,881 - INFO - download.UWrIOOoFIaM - Available <Stream: itag="140" mime_type="audio/mp4" abr="128kbps" acodec="mp4a.40.2" progressive="False" type="audio"> 2021-10-13 11:30:25,882 - INFO - download.UWrIOOoFIaM - Selected video <Stream: itag="299" mime_type="video/mp4" res="1080p" fps="60fps" vcodec="avc1.4d402a" progressive="False" type="video"> 2021-10-13 11:30:25,882 - INFO - download.UWrIOOoFIaM - selected audio <Stream: itag="140" mime_type="audio/mp4" abr="128kbps" acodec="mp4a.40.2" progressive="False" type="audio"> Downloading segment 1436...
It is currently 15:50

Edit: at 17:30 critical error, Error 403 Forbidden.
It downloaded 30 minutes of a 1h stream.

Edit 2: I am being throttling with youtube-dl to 60KB's so its most likely the same for livestream-saver. Currently to download an uploaded video I am using aria2c through youtube-dl with a few arguments -j 16 -x 16 -s 16 at least I can get around 1MB/s but I dont think aria2c can be incorporated here.

from livestream_saver.

glubsy avatar glubsy commented on July 1, 2024

I am being throttling with youtube-dl to 60KB

Yup, I have been experiencing the exact same issue. I don't have a clear solution yet. It's something to investigate further.

from livestream_saver.

glubsy avatar glubsy commented on July 1, 2024

@undulum thanks for that link. I will have to work on this and implement the same solution.
I just hope this is the actual definitive solution and that it will last.

from livestream_saver.

glubsy avatar glubsy commented on July 1, 2024

The issue should be fixed (for now) in commit dcb62de.

from livestream_saver.

glubsy avatar glubsy commented on July 1, 2024

Just a heads up, the current implementation is incomplete, so members-only videos are not accessible, even with cookies loaded. A workaround is to spawn yt-dlp as hook command (and use the --skip-download flag or skip_download = true in the config file).

Remember to use --live-from-start with the latest version of yt-dlp (it can download from the first segment).

from livestream_saver.

glubsy avatar glubsy commented on July 1, 2024

Members-only videos should work now, as of d0a06d1.

from livestream_saver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.