Page 1 of 1

TRVMicrophoneView does not work

Posted: Thu Dec 08, 2022 8:43 am
by mitzi
Hello,
I have TRVCamSound connected to TRVCamera and TRVMicrophoneView (default settings) connected to this TRVCamSound. When I play mp4 file with sound in TRVCamera (sound is hearable via connected TRVAudioPlayer) but TRVMicrophone does not show anything.

RVMedia 9.2, VCL, FFMPEG, Delphi 11.2, 64bit

Re: TRVMicrophoneView does not work

Posted: Sun Dec 11, 2022 4:40 pm
by Sergey Tkachenko
I confirm the bug with TRVMicrophoneView not working with TRVCamSound.
It will be fixed in the next update (planned on the next week).

Re: TRVMicrophoneView does not work

Posted: Mon Dec 12, 2022 7:52 pm
by Sergey Tkachenko
Fixed in v9.3 (just uploaded)

Re: TRVMicrophoneView does not work

Posted: Tue Dec 13, 2022 9:56 am
by mitzi
Now it works, but there's another problem. When I change camera to another one WITHOUT sound, latest peak stays visible in MicrophoneView. Is there any way to clear it?
BTW how can I find out whether audio is available for specified camera?

Re: TRVMicrophoneView does not work

Posted: Tue Dec 13, 2022 11:46 am
by Sergey Tkachenko
I'll fix it in the next update.
As a workaround, when switching a camera, you can call RVCamSound1.SetLevel(128). It will clear MicrophoneView.

There is no property for determining if the current video has sound. But when you start playing video using FFmpeg, MRVCamSound.OnGetAudioStreamIndex event occurs. This event has the count of audio streams in video as a parameter.