Page 1 of 1

LibVLC Visualization

Posted: 17 Jul 2013 11:35
by micfort
hey,

I have been building an application where i use LibVLC as audio player and i wanted to include visualizations as an option in my application.
But beside command line options, I can't find any function to activate the visualization.
Can someone point me in the right direction?

with kind regards,

Michiel

Re: LibVLC Visualization

Posted: 17 Jul 2013 14:58
by mangokm40
I used something like this when creating the media (audio) object:
libvlc_media_t *vlcMedia = libvlc_media_new_path(vlcInstance, audioPath);
libvlc_media_add_option(vlcMedia, "audio-visual=visual");
libvlc_media_add_option(vlcMedia, "effect-list=scope");

Hope you find that useful.

Re: LibVLC Visualization

Posted: 22 Sep 2013 00:41
by micfort
hey,

I have tried those options and it won't work. (it doesn't work either as VLCInstance parameter or as media option).
I have also tried "--audio-visual=goom" as media option and that also doesn't work. That does work as VLCInstance parameter, but I have a video as well Audio files that i want to play, and for video it isn't necessary to visualize the audio. So is there a possibility to set the visualization option per media object?

Re: LibVLC Visualization

Posted: 24 Sep 2013 15:01
by MichaelMc
libVLC audio visuals haven't been 'available' from anything 2.x or later. Visuals are available in 1.x though.

Re: LibVLC Visualization

Posted: 24 Sep 2013 22:18
by micfort
hey,

If it's not available in libvlc 2,x, how does VLC 2.x visualize the audio?

Re: LibVLC Visualization

Posted: 27 Sep 2013 01:21
by Jean-Baptiste Kempf
libVLC audio visuals haven't been 'available' from anything 2.x or later. Visuals are available in 1.x though.
What?

Re: LibVLC Visualization

Posted: 27 Sep 2013 15:12
by mangokm40
I didn't know about this (because I've stopped using visualizations). However, I am unable to set the visualization per media, only in the instance parameters.

This thread discusses that: https://forum.videolan.org/viewtopic.php?f=32&t=98277