audio or video detection library

By : LeJeune
Source: Stackoverflow.com
Question!

I am capturing audio and/or video streams. I have a set of audio/video clips and I would like to know if any of these clips appear in the streams.

Any recommendation for a library that can do that?

OS: Windows. Language: Don't really care - we will interface if needed.

Thanks!

By : LeJeune


Answers

I think you have a bit of development to achieve this. The process to follow conceptually sounds simple but there is a fair bit of work to achieve such a task.

You have to break the files down in to a set of samples, at some rate or frequency, then perform some form of hashing function in the images or segments of sound such that you can then compare hashes for collisions and thus find sets of images that are the same or set of sound samples that are present in both streams.

For Audio, you could use NAudio or DirectX to decode the stream. For video, you could look at any library which can decode a video file in to the separate images, such as Directshow.



Have you considered trying to do this with PHP rather than SQL queries? It might be less complex to query the results you need (All updates between these times) and then use PHP to compare the timestamps in order to determine how they should be grouped.



Concatenate all but the last one. Do the last one manually.



This video can help you solving your question :)
By: admin