<SamantazFox>
dostoyevsky2 Youtube doesn't provide mp4 files directly. Normally, it provides the audio and video as two separate DASH streams, that need to be recomposed on the client side.
<SamantazFox>
due to a recent change, they now don't return anything because invidious is not providing the appropriate request data
<SamantazFox>
I'm already working on a fix, please be patient :)
<vikn>
Cool to see invidious mentioned here, I was already wondering why they all errored out. Small word lmao
alexherbo2 has joined #crystal-lang
<dostoyevsky2>
SamantazFox: Cool, that you are working on something! I did a small hack were I replace my own invidious instance with a small html that only has a video tag and download the mp4 via yt-dlp... which I am using atm instead of invidious
<dostoyevsky2>
I remember the yt-dlp peeps implemented a javascript interpreter to be able to do the challenge-response stuff that youtube does in the browser....
<SamantazFox>
I'm glad you found an alternative that suits you ^^
<SamantazFox>
And yes, you're right. Yt-dlp has a custom JS interpreter
<SamantazFox>
quite a beast, tbh
<dostoyevsky2>
yeah, I guess invidious would also need a js interpreter in the long run... but we will see.. maybe yt-dlp could return a stream also
<dostoyevsky2>
SamantazFox: Once you have the videoplayback urls invidious should be able to play the video, no?
<dostoyevsky2>
And then one could piggy-back on yt-dlp
<dostoyevsky2>
I guess it might be too slow if you are running one of the public invidious instances, as they'd need to call python for each request and even as a background service it's probably still too slow
vikn has quit [Remote host closed the connection]
vikn has joined #crystal-lang
vikn has quit [Remote host closed the connection]
vikn has joined #crystal-lang
vikn has quit [Remote host closed the connection]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #crystal-lang
_ht has quit [Quit: _ht]
DeBot has quit [Quit: Crystal IRC]
DeBot has joined #crystal-lang
DeBot has quit [Client Quit]
DeBot has joined #crystal-lang
alexherbo2 has quit [Remote host closed the connection]