295 points · by kellenmace · 4y ago · 132 comments
I can see a need for search in the contents of the videos but I don't want to specify the channel, I likely don't know especially since channels can also change their name.
Once you're big enough your stats start being useful, folks in the know (mrbeast's analytics guy, I can't think of more rn, etc) advise you rotate out the thumb/titles until the click through rate is decent
Here's how to quickly try it out -
Let's say you want to find every video on The Verge's YouTube channel within the last several months in which "MacBook Pro" is mentioned. Here's a pre-populated search to accomplish that:
https://videomentions.com/search?channelUrl=https%253A%252F%...
If you follow that ^ link, then click the button to perform the search, you'll see all matching videos, with every single mention of "MacBook Pro" highlighted.
My favorite part is that all the highlighted matches are timestamped. So you can click on any of them to jump to that exact moment in the video when that keyword was said!
VideoMentions Search is great for these scenarios:
- You want to find all videos within a YouTube channel that mention your brand, your product, or the topics you care about.
- You remember watching a video where a certain topic was discussed, and now you're trying to remember which video it was to rewatch it.
- You run your own YouTube channel and want to quickly find the exact moments in your videos where you cover certain topics, so you can link others to that content.
I have wanted a way to search YouTube based on spoken words for a while. I couldn't find a tool that provides that capability though, so I built it!
I hope you find VideoMentions Search useful! I'd love to hear any feedback you have on it. Please let me know!
[1] https://videomentions.com/search?channelUrl=https%253A%252F%...
I built something similar [2] for a slightly different use case. I wanted to be able to search through all Ram Dass talks in the 'Here and Now' podcast series on YT. I'm obviously not as skilled at CSS. :) And the display of timestamps is still a bit shaky, but for me it fulfills its purpose.
Since I'm able to preload all caption files ahead of time, I'm just using pcregrep for the search which does a pretty good job.
[1] https://github.com/yt-dlp/yt-dlp [2] https://ramdass-search.net
But I need to remember which channel I watched? Maybe I'm missing something, but in my eyes it would make it tremendously more useful if I didn't have to specify channel.
I could update VideoMentions Search to allow users to select multiple channels, and then perform the search across all of those (maybe importing all the channels they're subscribed to could be handy... ). One way or another though, it would still require selecting specific channels to search within. That limitation notwithstanding, I still think it's a useful tool, though!
Thanks for checking it out!
However, I don’t use YouTube enough to mess w channels much. I’m usually searching on a particular topic.
For example, “drop ceiling panel replacement.”
Perhaps you could help users limit the channel scope by making an intelligent channel selection by keyword.
So I would put in “home improvement,” and you could choose some appropriate channels to search for my search terms.
I believe SeekToAction works even if the uploader didn't put chapters in. This was a relatively recent update, to make it fully automatic. So it's presumably doing some audio/video analysis to figure it out. All you need to do is tell Google how to seek your video (so it also works with non youtube videos too).
https://developers.google.com/search/blog/2021/07/new-way-ke...
In the meantime, I think this is a useful free tool for quickly finding spoken word matches within specific channels.
Thanks for checking it out!
Then tried on GeoWizard channel (English) and it worked great.
There is a somewhat related tool called Youglish that works on subtitles, it's great for checking the pronunciation or usage of a word or expression in many languages, but it's based on a curated list of channels with known good subtitles. I thought yours could be a great complement to this as it works directly on the audio.
Yes, youglish.com is a neat tool! I stumbled upon it when looking around for a way to search YouTube videos based on spoken words.
Thanks for checking it out! :)
VideoMentions is addressing the need-gap: 'Searching YouTube videos with transcript'[1] posted on my problem validation forum.
I appreciate that rather than just building a browser add-on to search individual video, You've built a business use case for brand monitoring. I hope you get profitable enough to afford the compute necessary to monitor top channels without having to explicitly mention them.
You're welcomed to explain how it addresses that problem at needgap, So those who need it can find it easily.
[1]: https://needgap.com/problems/88-searching-youtube-videos-wit...
I'm guessing you need a specific channel as a way of getting a list of videos, then pulling the captioning, then searching? (That's the only reason I could think of for the channel restriction, which unfortunately removes 90% of the utility)
YouTube doesn't provide a way to search all of YouTube based on spoken words, unfortunately. Still, I think this is a useful tool for quickly locating spoken word matches within a certain channel.
Some Hacker News commenters have suggested that I could auto-import all the channels the user is subscribed to, or get videos from their watch history, which are interesting ideas. For this first iteration, I kept things simple with a single "Channel URL" input.
Thanks for checking out my project, and for your feedback!
Absolutely, and I agree, however,.... it necessitates that the user use or understand "channels". When I went to your site my first thought was "what the hell's a channel?" ;-)
But yeah, for whatever percentage of youtube users use channels, I see this having a lot of use. My totally unsolicited advice is that you'll have to find some way to remove the channel requirement. Perhaps suggesting channels based on the search terms. (I've seen your other comments about adding features to a paid version)
I haven't yet managed to get VideoMentions to actually work, but that's fine, I assume you're getting hugged to death. :D Shipping anything is hard, and congrats for that.
I've not got a legit use for it right now but the few example searches I thought up returned the videos I was thinking of
Nice work!
Here are some example use-cases that I included in another comment, in case any of them are relevant to you:
1. You want to find all videos within a YouTube channel that mention your brand, your product, or the topics you care about.
2. You remember watching a video where a certain topic was discussed, and now you're trying to remember which video it was to rewatch it.
3. You run your own YouTube channel and want to quickly find the exact moments in your videos where you cover certain topics, so you can link others to that content.
Maybe #2 happens occasionally? If so, maybe you can bookmark VideoMentions Search for just such an occasion :)
In any event, thanks for checking out my project, and for the kind words!
e: thinking about it I know a few people who pull highlights out of their older content (sort of #3). Shared with them :)
If you want to search within the transcript of a single video, you can accomplish that with these steps: https://kb.swtc.edu/page.php?id=90230
That's why VideoMentions Search exists. It provides a way to search the videos within a YouTube channel to reliably find spoken word matches (and it includes matches in the title & description, too).
Thanks for checking out my project! Please let me know if I can answer any questions about it.
Also you can search individual videos by showing transcript and pressing ctrl-f
As I wrote in another comment, I've run tests where I open up the transcript of a video using these steps (https://kb.swtc.edu/page.php?id=90230), copy a few of the words, then perform a search using those words across that channel, and the video I copied the words from doesn't appear on the list of results.
If Google decides that it's going to revamp YouTube search to include spoken word/transcription matches, that would make VideoMentions Search irrelevant– and I'd be okay with that!
In the meantime, I think this is a useful free tool for quickly finding spoken word matches within specific channels.
Thanks for checking it out!
Couldn't help but search the guy that uploaded 2 million vids to yt, sorry if it breaks anything.
It would be cool to search for a specific quote like "buddy of mine" (frequently said by Joe Rogan). Also searching for parts of a word (similar to regex options?) might be difficult to implement but would be super useful as an option i.e if i searched for any word that starts with yc with a correct pattern (or given option on the UI) i could find results for both "yc" and "ycombinator".
VideoMentions Search is built entirely using serverless technologies, so it should scale really well. There's no single server or database to act as a bottleneck. When you perform a search, your browser fires off a number of network requests to serverless function API endpoints that fetch the data from YouTube, then return a response. So if you do an "All time" search on a channel with 2 million videos, your laptop fan may kick on while your browser works hard firing off thousand and thousands of requests until it's fetched all 2 million videos, you run out of memory, or you manually hit the "Cancel" button - whichever comes first :)
Your regex idea is interesting, and I'll consider implementing some more complex rules like that if enough people request it. For now, my answer would be to either perform separate searches (like one for "yc" and another for "ycombinator"), or perform one search, then use ctrl/cmd+f to search within the matches displayed on the page.
Thanks for checking out my project, and for the great feedback!
"Heh I might've just bricked you" -> "I don't think so, but you might've bricked yourself."
Next step- have the browser send a single request per video, directly to YouTube. Actually, make it 2 or 3 just for redundancy. Then do the caption processing in-browser. Or better yet, distribute an ~electron~ app that runs this locally in the background with a separate process to autorespawn if quit.
Separately and seriously, you should triple your pricing for this.
For example, if you try to run this code to fetch a YouTube video page in the browser console from any non-YouTube site (like Hacker News or VideoMentions), you'll see the it errors out:
(async () => { const response = await fetch('https://www.youtube.com/watch?v=irjc1nJ1eJs'); console.log(response); })();
That's why my app uses serverless API endpoints as a middleman. It works like this:
1. Browser fires off a request to the API endpoint.
2. The serverless function Node.js process spins up, fetches the data from YouTube, returns the response, then spins back down.
3. My app takes the video data in the response, saves it in memory, searches it for matches, and re-renders the UI to show the matches, if any.
I built my app to do as much work as possible client-side, and to use serverless function API endpoints for anything that can't be done in-browser.
Thanks for checking out my project!
So because it doesn't use the YouTube API at all, the total monthly cost is $0 :)
That's why I'm able to offer free, unrestricted access to the tool and allow folks to perform unlimited searches.
Thanks for checking out my project! I hope you find it useful!
How exactly did you solve/approach the problem?
1. How did you crawl across those millions of videos from the platform?
2. How are you indexing stuff like that
The search is scoped by channel, so the closed-caption files for all the videos in the channel are downloaded and searched for on the fly.
Edit: Wow, thanks to dev tools, I can see that the website is downloading the transcript and metadata for all the videos from the channel to the client. So the search is happening client-side!!
I replied to @lewisjoe's comment above this one with some more details about tricks I'm employing to make searches fast.
Thanks for checking out my project!
My app does as much of the fetching and match finding work that it can client-side. For the few things that can't be done client-side, my app calls serverless function API endpoints to fetch the YouTube channel and video data it needs. Here are the tricks I'm using to make it fast:
- As soon as the "Channel URL" field loses focus, I start fetching the most recent 30 videos on that channel in the background. This way, by the time the user enters the keyword and date range, I've already fetched some (maybe even all!) of the data ahead of time, which means less wait time for them.
- Once a specific video's data (title, description, transcript, etc.) has been fetched once, it is saved in memory. All other searches the user performs from that point on will pull the video data from the in-memory cache, if it's there. Otherwise, it will fall back to fetching the video data over the network. This in-memory caching makes subsequent searches within the same date range (or a shorter date range) take <1 second.
- Network requests to fetch video data are processed concurrently rather than one at a time. So the browser fires off as many as it can in parallel to get them all resolved as quickly as possible.
- As soon as any matches are found, the UI updates to show the user. This way, the user can start scrolling through the matches and reviewing them while the search is still in progress– they don't have to wait until it finishes to start interacting with the matches.
Thanks for checking out my project, and for the kind words! I appreciate it.
I don’t know if it even works anymore and I’m sure the code is atrocious. But I remember that I would just scrape YouTube pages for video IDs, and then use an API that returned video captions for a given ID [1]. I could see how OP would do something similar.
I replied to @lewisjoe's comment above this one with some more details about tricks I'm employing to make searches fast.
Thanks for checking out my project!
Thanks for checking out my project!
Some requests can't be sent from the browser directly to YouTube due to the Content Security Policy directives that YouTube has in place, though.
For example, if you try to run this code to fetch a YouTube video page in the browser console from any non-YouTube site (like Hacker News or VideoMentions), you'll see the it errors out:
(async () => { const response = await fetch('https://www.youtube.com/watch?v=irjc1nJ1eJs'); console.log(response); })();
That's why my app uses serverless API endpoints as a middleman. It works like this:
1. Browser fires off a request to the API endpoint.
2. The serverless function Node.js process spins up, fetches the data from YouTube, returns the response, then spins back down.
3. My app takes the video data in the response, saves it in memory, searches it for matches, and re-renders the UI to show the matches, if any.
I built my app to do as much work as possible client-side, and to use serverless function API endpoints for anything that can't be done in-browser.
I replied to @lewisjoe's comment above this one with some more details about tricks I'm employing to make searches fast.
Thanks for checking out my project!
I just tested it against a smallish British channel with a video that I wanted to see again, and couldn’t remember which one of the 50-odd videos it was. It did not carch the full quote directly, because YT read it as “Marvin nature” instead of “Mother Nature,” a consequence of Alfie’s accent. But my search for “Mother Nature” picked up another reference close enough to it to show the text. Sort of unlucky with the miss and very lucky with the proximity to the hit.
I drew a blank regarding the other channels whose videos I want to revisit, but I know I will think of them later because there are so many. This is extremely useful. I’ve already bookmarked the site.
Thanks for checking out my project! :)
I'm not sure if this would be against Google's terms so you might want to check:
If you started indexing such that I could do a search and it would come back with any indexed content I think you would have invented a new search engine. Seems extremely useful.
I already use YouTube this way today but as you pointed out searching by title can be tricky.
Search engines supported by ads are also typically quite profitable.
Result:
SPOKEN WORDS "…kept things simple it recycled the same basic chassis and attach the battery which can be removed with just eight bolts from underneath and used carryover components wherever possible in fact…"
Thanks for checking out my project!
That's why I built VideoMentions Search. It pulls in the transcript for every video within the channel and date range you selected and shows you any and all matches.
Also - even when a Google search does work to find a video based on spoken words, all you're given is a link to that video's page. You can't see all the times that keyword was mentioned within the video and click on one of those mentions to jump to that exact moment in the video, like you can with VideoMentions Search.
If Google/YouTube added those capabilities, then VideoMentions Search would be irrelevant. In the meantime though, I think it's a useful free tool for quickly finding spoken word matches within a specific channel.
Thanks for checking it out!
How do you do search result ranking? Any signals that you use to decide “this is a high quality video from reputable channel and it’s relevant”? I would imagine # of followers / likes / comments / like-comment ratio or the likes are used?
Thanks for checking out my project!
VideoMentions Search allows you to specify the channel URL, keywords and date range, then does all that hard work for you, quickly locating all videos that contain those keywords.
I hope that's helpful. Thanks for checking out my project!
Somewhat related, friend use to had setup that automatically downloads YT subtitles, lowbit rate audio and video preview thumbnails to create searchable archive that doesn't use much space. Found it very useful for his studies but thumbnails wasn't great for slides.
Thanks for checking out my project!
Thanks for checking out my project!
I could update VideoMentions Search to allow users to select multiple channels, and then perform the search across all of those. Like maybe maybe auto-importing all the channels they're subscribed to could be useful. One way or another though, it would still require selecting specific channels to search within. For this first iteration, I just kept things simple with a single channel URL input. Despite that limitation, I still think it's a useful tool, though; I plan to use it often myself.
Thanks for checking it out!
My use case would be for ham radio. Lots of ham radio YouTubers film their QSOs (conversations) and mention the callsigns that they make contact with. I want to find the channels that mention my callsign and I'm sure lots of other hams would want to know. Anywho cool project. GL 73
Thanks for checking out my project!
Potentially future updates could search a logged in user's history?
I like your idea of searching the logged-in user's history! That could be handy. Another thing I've thought about is auto-importing all the channels they're subscribed to so they can search within those.
For the first version of VideoMentions Search, I kept things simple with a single "Channel URL" input field, but using their history/subscriptions is totally doable. I'll see if there's enough demand for that.
In any event, I still think that this simple first version has utility. I like being able to quickly pinpoint all the moments when a certain topic was mentioned across all of a channel's videos.
Thanks so much for taking a look, and for your feedback!
I would like to search for rich evans saying "aiiiiiiiiids" with varying word length but now i can only search for "aids"
https://videomentions.com/search?channelUrl=https%253A%252F%...
Thanks for checking it out!
https://www.reddit.com/r/RedLetterMedia/comments/uxoegh/ever...
it's considered funny when one of these movie reviewers calls something "aids" but it says it with a varying amount if "i"'sin the word. so it would be cool if we could find all the instances of rich evans being crass.
https://videomentions.com/search?channelUrl=https%253A%252F%...
Thanks a lot!
Thanks for checking out my project!
Very useful website - thank you for the service
Thanks for checking out my project!
Thanks for checking it out!