Skip to content

Camera video stream with audio from USB microphone

Capturing the video stream of an IP camera along with the audio of the soundboard microphone, or another audio capture device

This is possible starting from the version 7.1.4 of the Datastead RTSP/RTMP/HTTP/ONVIF DirectShow Source filter with the following sample code (the specific lines of code are in bold):

VideoGrabber.VideoSource = vs_IPCamera

VideoGrabber.AudioDevice = VideoGrabber.AudioDeviceIndex (...) (*)

VideoGrabber.AudioSource = as_UseExternalAudio

// VideoGrabber.AudioDeviceRendering = true // if needed to render

VideoGrabber.AudioRecording = true

VideoGrabber.RecordingMethod = ...

VideoGrabber....

VideoGrabber.StartRecording()

(*) replace (...) by the name of the audio device as it appears in the "audio devices" list of MainDemo.exe (the VideoGrabber.AudioDevice index is in the 0..n-1 range)