Page 1 of 1

How to set audio visualization with python-vlc ?

Posted: 30 May 2021 03:14
by spfl97
My main problem is I can't display external subtitle(.srt) of audio file when it's playing.
I know it can be fixed on GUI by setting an audio visualizer, but how can I do this in python-vlc ?

Image

Re: How to set audio visualization with python-vlc ?

Posted: 31 May 2021 03:55
by mfkl

Code: Select all

--audio-visual={any,goom,projectm,visual,glspectrum,none} Audio visualizations This adds visualization modules (spectrum analyzer, etc.).
https://wiki.videolan.org/VLC_command-line_help

Re: How to set audio visualization with python-vlc ?

Posted: 31 May 2021 22:44
by spfl97

Code: Select all

--audio-visual={any,goom,projectm,visual,glspectrum,none} Audio visualizations This adds visualization modules (spectrum analyzer, etc.).
https://wiki.videolan.org/VLC_command-line_help
Thanks a lot, I was looking in wrong place https://www.olivieraubert.net/vlc/python-ctypes/doc/.

could you tell me that is there any command for getting showing subtitle in MediaPlayerTimeChanged or not, please ?

Re: How to set audio visualization with python-vlc ?

Posted: 01 Jun 2021 03:44
by mfkl
could you tell me that is there any command for getting showing subtitle in MediaPlayerTimeChanged or not, please ?
Can you rephrase that please?

Re: How to set audio visualization with python-vlc ?

Posted: 01 Jun 2021 09:30
by spfl97
could you tell me that is there any command for getting showing subtitle in MediaPlayerTimeChanged or not, please ?
Can you rephrase that please?
I mean is there a way to get the currently displayed subtitle or subtitle of a specific time by command ?
I think I should do this manually but I'm not sure. sorry for my bad English.

Re: How to set audio visualization with python-vlc ?

Posted: 01 Jun 2021 13:42
by RĂ©mi Denis-Courmont
You can do that with a SPU filter plugin, not with LibVLC.