Jump to content

audiometer from vlc rtp stream


Recommended Posts

Hi,

I Have a GUI with 2 VLC instance inside. I use VLC.au3 for receive the rtp streams

I can watch the videos and listen the audio streams.

Is there a way to read each stream audio volume value? I would like to show near the video stream the audiometers

I saw some scripts to show audio meters, but only with mp3 or wav files

This is my script:

#include <GDIPlus.au3>
#include "VLC.au3"

Global $vlc128, $vlc129
Global $video_path128 = "128.m3u8"
Global $video_path129 = "129.m3u8"

_VLCErrorHandlerRegister()

$g_hGUI = GUICreate("VLC", 200, 298, 192, 124)
GUISetState()

Global $Graphic = _GDIPlus_GraphicsCreateFromHWND($g_hGUI)

$vlc128 = _GUICtrlVLC_Create(10,10,180,144)
$vlc129 = _GUICtrlVLC_Create(10,154,180,144)

_GUICtrlVLC_Clear($vlc128)
_GUICtrlVLC_Play($vlc128, _GUICtrlVLC_Add($vlc128, $video_path128))
_GUICtrlVLC_SetVolume($vlc128,50) ;set the vlc volume to zero

_GUICtrlVLC_Clear($vlc129)
_GUICtrlVLC_Play($vlc129, _GUICtrlVLC_Add($vlc129, $video_path129))
_GUICtrlVLC_SetVolume($vlc129,100) ;set the vlc volume to max

Do
Until False * Not Sleep(100000) ;do nothing, just sleep

128.m3u8 file:

#EXTM3U
#EXTINF:321,Example Artist - Example title
rtp://239.255.0.128:5004

 

and 129.m3u8 file:

#EXTM3U
#EXTINF:321,Example Artist - Example title
rtp://239.255.0.129:5004

 

Thanks

Marco

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...