Very interesting (not for a dashcam, but for home monitoring).
Show HN: Gemini can now natively embed video, so I built sub-second video search
71–80 of 118 posts
Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#72Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#73Earlier quoted context omitted.
How are you getting to $2.50/hr ? The price sheet says its 0.00079 per frame. https://ai.google.dev/gemini-api/docs/pricing#gemini-embeddi...
From what I see the code downsamples video to 5 fps, so 1 hour of video is 3600 seconds * 5 fps = 18,000 frames. 18,000 frames * $0.00079/frame = $14.22. A couple dollars more with the overlap. (The code also tries to skip "still" frames, but if your video is dynamic you're looking at the cost above.)
regardless of the file's frame rate, the gemini api natively extracts and tokenizes exactly 1 fps. the 5 fps downscaling just keeps the payload sizes small so the api requests are fast and don't timeout.
i'll update the readme to make this more clear. thanks for bringing this up.
Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#74Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#75Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#76Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#77Total aside here but is that you driving the pickup I assume?
Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#78This is a really cool implementation—embeddings still often feel like magic to me. That said, this exact use case is sort of also my biggest point of concern with where AI takes us, much more so than most of the common AI risks you hear lots of chatter about. We live in a world absolutely loaded with cameras now but ultimately retain some semblance of semi-anonymity/privacy in public by virtue of the fact that nobody…
> this exact use case is sort of also my biggest point of concern with where AI takes us, much more so than most of the common AI risks you hear lots of chatter about. I've been hearing warnings that AI would be used for this since well before it seemed feasible.
Re: Show HN: Gemini can now natively embed video, so I built sub-second video search
#79This is a really cool implementation—embeddings still often feel like magic to me. That said, this exact use case is sort of also my biggest point of concern with where AI takes us, much more so than most of the common AI risks you hear lots of chatter about. We live in a world absolutely loaded with cameras now but ultimately retain some semblance of semi-anonymity/privacy in public by virtue of the fact that nobody…