locked
How to capture audio, and send it over ip to camera? RRS feed

  • Question

  • What would be best approach or if there are existing directshow filters that do this (or examples)...

    1) (this is source filter) That is I want to capture audio from PC mic (just using standard audio capture filter)

    2) Wrap that in a http post or just send it over socket (with http header info included)

    Is there an example filter on how to do #2?

    That is...how using my audio source filter, do I process what its capturing....and send it over the wire to a camera
    (camera has speaker attached to it, the goal is to communicate via a mic attached to pc, to a speaker over network, that has speakers plugged into it)
    Tuesday, July 14, 2009 12:07 AM

Answers

  • IP cameras use a variety of protocols in general, and for the "two way audio" feature when you send audio back to the camera there is no preferred, typical or otherwise widely respected protocol at all, this is entirely dependent on hardware. Some cameras, for example, can implement RTSP client in order to receive audio. So you need to check your camera API/reference to find out what exactly you need to do to get audio to the camera and then implement, wrap into DirectShow filter (renderer) and build a capture graph to stream audio to the camera.
    http://alax.info/blog/tag/directshow
    Tuesday, July 14, 2009 5:53 AM