Show HN: Search inside YouTube videos using natural language queries
github.com
github.com
You can then use natural language search queries to find a particular frame of the video. The results are really amazing in my opinion...
If you want to experiment with it yourself, I prepared a Colab notebook that can easily be run: https://colab.research.google.com/github/haltakov/natural-la...
https://github.com/openai/CLIP/issues/13#issuecomment-771143...
Edit: I just realized 1.7.0 just came with colab, not installed by CLIP.
That should be able to scale well :-)
So, the present tool does not scale because the videos are part of the user query, but a company with an easy access to the videos and the computational power to pre-encode the frames as features could create a search engine based on CLIP.
[1] https://github.com/haltakov/natural-language-image-search
Yes, the feature computation on the images has to be sone only once and the representation is very efficient - 512 float16 values per image.
Edit: 50,630 apps according to https://www.gamedatacrunch.com/
As I focused on vertical banners, the list was smaller (~30k apps). This is equivalent to the *lite* version of Unsplash's dataset.
Hmmm... what does "with OCR added" mean? If there is text in the video (e.g. street sign) that it can also be searched??
Wondering whether it would be more efficient if extracting frames where the content has changed (e.g. over a threshold and/or all I-frames)?
Also, could this be used to identify event type in videos? I'd love to run my 25 years of home videos through this an have it annotate: "Christmas, birthday, park, camping...".
Once you compute the features, the search is very efficient! I tried it for searching in the 2M photos dataset from Unsplash and it takes like 2-3 seconds: https://github.com/haltakov/natural-language-image-search
I plan to run my personal photos through it :)
I tried it on the 2M photos from the Unsplash dataset: https://github.com/haltakov/natural-language-image-search
It could be very useful to help with law enforcement.
If it could take image set as input, then perhaps we can use this to identify our self in a random Internet video e.g. Lengthy tourist video in which you suspect you could have been covered as you were there at that place on that day.
There are people already looking for such solution(I've added the link to that discussion on my profile).
Seems like a key part of ‘organizing all the world’s information’, right? Making YouTube searchable would open up their massive content library to discovery, and enable people to find content without having to rely on The Algorithm guessing what they might want to see...
In general the switch from users going to the internet and asking it to find them certain things, to going to the internet and having things selected for them and offered up as ‘recommendations’ seems like a key shift in how the internet functions to disseminate ideas...
And I think they already have something similar. Recently, I've seen search results on Google that point you to a specific time of a YouTube video...
In the 1950's, the first Powers of Ten zoom book was hand drawn from books over years. Around 1980, a PoT film and book could use photos, but still good people made mistakes. Now creating a PoT zoom book can be homework. A video a school project. An XR a professional project. Technology, media search, acquisition, and handling costs, throttles science education content.
Necessary but not sufficient, of course. The first book might have been imagined and created earlier, but wasn't. 1950's astronomy textbooks needn't have had the color of the Sun wrong, and the same now in 2020. Though, anticipated difficulty of creation does throttle imagination...
If OP search were deployed on youtube, and fair use in its current form was allowed to survive, providing a historical step-change in the abundance and accessibility of reusable content, how might you imagine using that?
belive it or not, but your browser/tv has to download the video in order to show it.
Permissions and Restrictions You may access and use the Service as made available to you, as long as you comply with this Agreement and applicable law. You may view or listen to Content for your personal, non-commercial use. You may also show YouTube videos through the embeddable YouTube player.
The following restrictions apply to your use of the Service. You are not allowed to:
access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as expressly authorized by the Service; or (b) with prior written permission from YouTube and, if applicable, the respective rights holders;
access the Service using any automated means (such as robots, botnets or scrapers) except (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; or (b) with YouTube’s prior written permission.
>>> So, yeah: not allowed
Many nice things could be done, but the platform (or the data owner) has all the power in its hands.