Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
DavidRM
Posted - Oct 16 2013 : 14:14:12 I just bought ImageEn today, and I'm looking at the VMR_Capture demo as a blueprint for what I'm trying to do.
For some reason, though, it's not recording audio. RenderAudio is set to true (which is just part of the demo and I haven't changed anything in the demo), but there's no audio being recorded to the AVI.
I tested with the Windows Sound Recorder and my microphone is working fine.
I'm using Delphi XE2.
Thanks!
-David
8 L A T E S T R E P L I E S (Newest First)
DavidRM
Posted - Oct 24 2013 : 14:16:30 That did the trick!
Rockin'. =)
-David
fab
Posted - Oct 24 2013 : 12:59:28 Ok, this seems a bug! Please try this fix:
- open ieds.pas unit - in method TIEDirectShow.StdConnect replace the line…
Posted - Oct 23 2013 : 14:03:36 Here is what GraphEdit shows. As you can see, the audio connects to the Smart Tee filter...and that's it. You can see where the Smart Tee filter *SHOULD* connect to one of the MUX filter inputs, but doesn't.
11.21 KB
DavidRM
Posted - Oct 23 2013 : 12:44:03 So there's no simple, drop-in way to get audio recorded with video?
-David
xequte
Posted - Oct 23 2013 : 11:38:17 Hi David
Have you tried using a third party DirectShow tool to compare your results:
Posted - Oct 23 2013 : 11:28:19 While I was at it, I tested each of the 10 available audio codecs too, using SetAudioCodec.
Made no difference.
-David
DavidRM
Posted - Oct 23 2013 : 11:11:03 No dice. I had already tried that. Tried again, setting it to the only audio input format available, and the result was the same: No audio.
// set video source as index of IO.DShowParams.VideoInputs
w := VideoFormats[ ListBox1.ItemIndex ].MaxWidth;
h := VideoFormats[ ListBox1.ItemIndex ].MaxHeight;
SetVideoInput(ComboBox1.ItemIndex, StrToIntDef(edit4.Text,0), w, h); // set the second parameter if you have more than one camera with same name
SetAudioInput(0);
// enable video and audio rendering
RenderVideo:=true;
RenderAudio:=true;
xequte
Posted - Oct 23 2013 : 02:01:06 Hi David
I'm afraid the VMR capture demo does not handle audio. You should code SetAudioInput (in the same manner as the SetVideoInput code).