Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.08k stars 87 forks source link

ytarchive complains about youtube not storing livestream past 5 days #207

Open nutterthanos opened 1 month ago

nutterthanos commented 1 month ago

Hi i seem to be getting this message when running ytarchive: 2024/07/25 11:00:57 WARNING: video: YT only retains the livestream 5 days past for seeking, starting from sequence 7988 (latest is 94388)

if i grab the url that has the seq number like this: https://rr2---sn-uxanug5-5qa6.googlevideo.com/videoplayback/expire/1721892654/ei/zqqhZqHwFtfn4t4Pg4jYoAw/ip/REDACTED/id/B_dkwPx9J9Y.2/itag/137/source/yt_live_broadcast/requiressl/yes/xpc/EgVo2aDSNQ%3D%3D/ctier/SPL/vprv/1/playlist_type/LIVE/ratebypass/yes/mime/video%2Fmp4/live/1/gir/yes/noclen/1/dur/5.000/rqh/1/keepalive/yes/sparams/expire,ei,ip,id,itag,source,requiressl,xpc,ctier,vprv,playlist_type,ratebypass,mime,live,gir,noclen,dur,rqh/sig/AJfQdSswRgIhAPqablyVdSMvdQpzuMqsWMsTNdNxTUgBXLlUkBWA1_NTAiEAj7yOHxXC-HTOwHTBuapkEpGHtqHjoXh3GPCatAfEhNg%3D/initcwndbps/1441250/mh/a7/mm/44/mn/sn-uxanug5-5qa6/ms/lva/mt/1721870439/mv/m/mvi/2/pl/18/lsparams/initcwndbps,mh,mm,mn,ms,mv,mvi,pl/lsig/AGtxev0wRQIgcQnxnJDEM0J8hCYqAUejmwmLGEXNsgfZEx9JpQKZ0awCIQCYfW1OYqsLWvMjaxzXj--y-cQP_cw9RG_E0HS2RJRFHg%3D%3D/sq/7988

i can manually send a request with 1 and it seems to work that it does download any reason why ytarchive just complains and goes to whatever the manifest file tells it to start from instead of trying?

note yt-dlp does the same behaviour

Kethsar commented 1 month ago

Because for a time that was the absolute max Youtube allowed, across hundreds of tested streams. Before that it was 12 hours even. I will need to verify other long streams have similar changes made. Also thanks for the link, I was able to verify something in regards to multi-manifest streams so I know what to do in regards to fixing them when archiving.

Kethsar commented 1 month ago

After testing on another long-running stream, it would appear the new limit is 622300 seconds. I am not sure what the significance of this time is since it's not an even day or anything, but it seems to work.

nutterthanos commented 1 month ago

fair enough at least its an week now instead of just 5 days

also one quick question how does ytarchive determine what sequence to start from based on if i put 00:00:00 as start of download since i've looked at the www.youtube.com and manifest.googlevideo.com requests and can't find the sequence number that programs like ytarchive can start from?

nvm i figured that out myself lol