marcoauto Posted August 7, 2015 Posted August 7, 2015 Hi,I Have a GUI with 2 VLC instance inside. I use VLC.au3 for receive the rtp streamsI 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 audiometersI saw some scripts to show audio meters, but only with mp3 or wav filesThis 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 sleep128.m3u8 file:#EXTM3U#EXTINF:321,Example Artist - Example titlertp://239.255.0.128:5004 and 129.m3u8 file:#EXTM3U#EXTINF:321,Example Artist - Example titlertp://239.255.0.129:5004 ThanksMarco
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now