News for hackers. Stuff that matters.
Re:Get The TLDR Of Any YouTube Video by messe on Saturday April 29, 2023 @01:31PM (#35755052)
I built a similar thing with the GPT-4 APIs a few weeks ago; thanks for the reminder that I must put it on GitHub at some point, as it's only about 30 lines of code.
Re:Get The TLDR Of Any YouTube Video by drewrbaker on Saturday April 29, 2023 @01:35PM (#35755118)
I need this, but for Vimeo videos.
Re:Get The TLDR Of Any YouTube Video by messe on Saturday April 29, 2023 @01:39PM (#35755164)
It should be doable. What I built only works for videos with transcripts, but I've been looking to improve it using OpenAI's Whisper for Speech-To-Text. I'm just lazy so I haven't gotten around to it (...which is why I spent an hour throwing together a 30-line script to summarize youtube videos for me)
Re:Get The TLDR Of Any YouTube Video by f0e4c2f7 on Saturday April 29, 2023 @01:48PM (#35755275)
For you or anyone else reading this I recently ran across this video documenting setting up and using whisper. It's probably a little overdetailed, but I found the github docs a little underdetailed so might be useful. Whisper is pretty powerful. One of the more useful open source ai tools available right now.

https://www.youtube.com/watch?v=XX-ET_-onYU

But as you implied in your comment, it should be possible to do it quite well with any video by transcripting with whisper and then sending the text to gpt or another LLM to summarize.

Re:Get The TLDR Of Any YouTube Video by messe on Saturday April 29, 2023 @01:57PM (#35755359)
I'll check it out (or maybe let my script check it out first), thanks.

From what I remember the Whisper API docs weren't too bad, but I didn't try actually implementing anything, so you could be right that they're underdetailed.

Re:Get The TLDR Of Any YouTube Video by cced on Saturday April 29, 2023 @02:20PM (#35755585)
I’m currently working on this with the caveat that I want to do the work locally. Using whisper but the summarization portion if this task is not straightforward given the limited context size of models.

Does anyone have any additional insight into this problem?

Re:Get The TLDR Of Any YouTube Video by sethgecko on Saturday April 29, 2023 @02:53PM (#35755888)
I’ve done something similar here https://github.com/mcdallas/summarize it feeds an audio file to whisper and then summarizes the transcript. You can easily wrap it with yt-dlp to download the audio portion of a video
Re:Get The TLDR Of Any YouTube Video by mkagenius on Saturday April 29, 2023 @05:26PM (#35757357)
I also did the same but its a web app, https://github.com/mkagenius/audioGPT (i also have it hosted but I am afraid if i post the link, it would eat through all my credits)
Re:Get The TLDR Of Any YouTube Video by belter on Saturday April 29, 2023 @01:42PM (#35755210)
Maybe one for TikTok videos? Would be the scourge of influencers...
Re:Get The TLDR Of Any YouTube Video by wand3r on Saturday April 29, 2023 @02:07PM (#35755470)
The GPT4 API is not generally available yet right? At least for the public?
Re:Get The TLDR Of Any YouTube Video by messe on Saturday April 29, 2023 @02:20PM (#35755584)
You can apply for access, and you'll be added to a waiting list. I only have access to the GPT4 API with 8K context, not 32K.
Re:Get The TLDR Of Any YouTube Video by permo-w on Saturday April 29, 2023 @02:22PM (#35755611)
it’s accessible via the beta. they gave me access after a day or two of waiting, but I don’t know if that’s typical or not
Re:Get The TLDR Of Any YouTube Video by sebzim4500 on Saturday April 29, 2023 @03:04PM (#35756000)
There's a waiting list. I applied on the first day and only just got access.
Re:Get The TLDR Of Any YouTube Video by rolisz on Saturday April 29, 2023 @03:13PM (#35756111)
No :(. I applied several weeks ago and I still don't have access
Re:Get The TLDR Of Any YouTube Video by gregw134 on Saturday April 29, 2023 @03:23PM (#35756206)
Please do. Curious how you transform a YouTube video to text before sending to chatgpt?
Re:Get The TLDR Of Any YouTube Video by jy1 on Saturday April 29, 2023 @03:25PM (#35756213)
Youtube offers transcripts / cc
Re:Get The TLDR Of Any YouTube Video by sunshadow on Saturday April 29, 2023 @03:54PM (#35756536)
Re:Get The TLDR Of Any YouTube Video by messe on Saturday April 29, 2023 @04:50PM (#35757042)
Yep, it’s pretty much that except using GPT-4 and a wider context.