Comments (9)
This should be fixed after half integrating pytube and using their way of computing the signed url token, with commit 67201e6
from livestream_saver.
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.
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.
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.
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.
@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.
The issue should be fixed (for now) in commit dcb62de.
from livestream_saver.
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.
Members-only videos should work now, as of d0a06d1.
from livestream_saver.
Related Issues (20)
- ffmpeg takes forever to read the concatenated ts HOT 4
- livestream_saver does not handle age-restricted videos correctly HOT 14
- New Youtube UI update, Livestreams moved to new tab HOT 3
- Missing Videos tab endpoint data for Livestream VODS HOT 2
- Cannot monitor or download (public videos = 0) HOT 1
- Streams no longer using Videos/Community tab to list live stream. HOT 2
- having trouble downloading streaming video. HTTP Error 404: Not Found HOT 2
- Unable to start livestream_saver on Ubuntu HOT 9
- Support monitoring multiple channels in one instance of the script HOT 4
- Could not find ffmpeg or ffprobe. HOT 1
- Unhandled exception: Missing streamingData key in json causing downloads to be interrupted HOT 4
- Exception while accessing title of video (possibly a pytube issue) HOT 1
- I think the latest change broke something HOT 2
- "The following content is not available on this app." errors HOT 8
- Help getting yt-dlp to spawn on events? HOT 4
- Cookie HOT 2
- Outdated client error. Retrying shortly... HOT 1
- SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] HOT 2
- How to install? HOT 4
- No module named 'yt_dlp' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livestream_saver.