[vlc-devel] Visualisation Bugs

mlist at marxbitware.com mlist at marxbitware.com
Wed Jun 18 15:20:10 CEST 2008

Quoting Antoine Cellerier <dionoea at videolan.org>:

> Hello,
> On Wed, Jun 18, 2008, mlist at marxbitware.com wrote:
>> I have three minor issues:
>> 1.  Passing these options to
>> libvlc_media_add_option(libvlc_media_handle, options, ref ex) has no
>> effect.  I can get visualisations to function if I pass the same
>> string to libvlc_new(argv.Length, argv, ref ex).
> ./vlc /mnt/stuff/media/The\ Beatles/1/15\ -\ Yellow\ Submarine.mp3   
> :audio-visual=visual :effect-list=spectrum
> works fine here so it 'should' work using libvlc_media_add_option.

Using that method works for me too.  It would be passed using the argv  
in libvlc_new.

Unfortunately, when passing the args via libvlc_media_add_option,  
nothing happens.  Its almost like they are not being parsed.

>> 2.  How do I change the visualisation at runtime? (i.e Whilst a song
>> is playing.)
> I guess that you can change the "audio-visual" variable to trigger a
> visualisation restart. If that doesn't work, try having a look at how
> the Qt interface does it. Of course this is internal VLC programming and
> I don't know how you interact with that stuff when using libvlc.

I was under the impression that VLC used libvlc as well.  Does VLC  
make direct calls to the plugins?

Also, which "audio-visual" variable are you referring to?  I can't  
find any other than add_option, however, that is set prior to the  
media being passed to the media_player.

>> 3.  Text displayed over the visualisation (i.e the name) does not wrap
>> to a new line.  Instead, it overwrites itself resulting in several
>> layers of text on a single line.
> That's weird. Could you take a screenshot and paste it somewhere online?

Here you go:


This player will be GPL too...as well as the wrapper.

> The visualisation code most probably needs to be cleaned up anyway ... I
> might do that sometime soon (but it'll be for 0.9.1 since we froze 0.9.0
> this weekend). Once that's done, adding easy APIs to libvlc to work with
> visualisations shouldn't be too much of a hassle. Feel free to bug me on
> IRC if you want to help,

That'll be great, I think its a very important feature.

More information about the vlc-devel mailing list