AuraGem YouTube Proxy

@clseibold I was pleasantly surprised to find myself watching YouTube videos in Alhena through your AuraGem proxy. I tried many months ago and it didn't work (although it could have been a bug in Alhena at the time). Anyway, I'm impressed! I gotta ask how it's done and if you have any bandwidth concerns piping these large files around. I assume the video isn't transcoded. If not, could you add that? (Just kidding).

🦎 bluesman

Jul 03 · 3 months ago · 👍 clseibold

5 Comments ↓

🚀 clseibold · Jul 03 at 14:00:

I'm glad you like it and use it!

I used to use a library for the yt downloading, but it stopped working. I now just call out to the yt-dlp binary, lol.

Outside of the downloading, I use the official YouTube API, which has a golang library.

🦎 bluesman [OP] · Jul 03 at 22:00:

That's great. I need to figure out how to stream longer videos instead of waiting for them to download before they play. I'm not sure VLCJ supports that although it can reportedly stream from HTTP. I tried "streaming" from a file in progress but the reported length is too short and the player stops early. Research suggests it might work if the mp4 metadata is at the beginning of the file. An investigation for another day.

🦎 bluesman [OP] · Aug 04 at 15:22:

@clseibold I'm wondering if this is broken (maybe api change) or if I broke something in my client!

🚀 clseibold · Aug 21 at 19:36:

@bluesman I'll try to look at it soon, but I think my YouTube proxy gets hit a lot (possibly by search engines or bots) and so the daily api limit gets reached fairly quickly.

🦎 bluesman [OP] · Aug 21 at 21:22:

@clseibold No worries. It's nice to see you posting.


Source