Page 1 of 1

Visualizations working with the Activex plugin ?

Posted: 13 Jan 2006 15:18
by usbhell
Hello,

I was wondering if anyone had managed to get visualizations working with the Activex plugin, using addTarget

If I use, on the command line

Code: Select all

vlc.exe audio.mp3 --audio-visual visual
they work fine in the regular VLC player

if under Settings->Preferences->Audio I set Audio visualisations to Visualizer filter

they work fine in the regular VLC Player and the Activex control (only they are present all the time)

if I try

Code: Select all

Dim options() As Variant options() = Array(":audio-visual=visual") VLCPlugin1.addTarget App.Path & "/audio.mp3", options, VLCPlayListReplaceAndGo, -666
I get nothing ..... Other options like ":aspect-ratio=4:3" or ":directx-wallpaper" work OK.

Posted: 13 Jan 2006 16:05
by dionoea
try using "--" instead of ":" . ":" is for input specific options. "--" is just a general VLC option. I don't think that visualizations are input specific.

Posted: 14 Jan 2006 10:40
by usbhell
Thanks for the input; I gave it a go but without success. I’m not giving up yet though, I can see the control can handle them, I just don’t know how to turn them on at runtime.

Posted: 10 Feb 2006 11:38
by NiCo_
If this code shows visualization when playing video or only when playing audio ? If VLC shows visualization only when audio s played, that should be interesting for me.

Sorry for my poor english, i'm french.

help

Posted: 13 Feb 2006 13:13
by e6964822
I have the same problem as the first message and the last message.

Thank you very mush

Posted: 23 Apr 2006 13:06
by MarcH
Anybody got it working or know it it is possible?

Code: Select all

string[] option = new string[1]; option[0] = ":audio-visual=goom"; axVLCPlugin1.addTarget(@"c:\1.mp3", option, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, 0);
thanks Marc

Posted: 27 Apr 2006 17:19
by Guest
Well I finally got this working and although I don't like the idea of my solution, it seems to work quite nicely.

so in your prog you would

1/ make a copy of the file "vlcrc" in your \Application Data\vlc directory

2/ change some settings in the copy for visualizations

e.g.

audio-visual=visual
effect-list=scope

put a # against vout-filter if you want to use goom because it doesn't like it.

#vout-filter=deinterlace

3/ every time you want to show visualizations you swap the two config files round, then create a new vlc control on your form, with vb6 you would use

Code: Select all

Set VLCPlugin1 = Controls.add("VideoLAN.VLCPlugin.1", "VLCActiveX1")
with this solution you can only ever have one vlc activex on the form at a time otherwise the app ends up hanging, so before you create a new one you must remove the last one with;

Code: Select all

Controls.Remove ("VLCActiveX1")
if it wasn't for that you could use load and unload with a control array.

4/ swap the config files back

if you want to turn visualizations off you need to do the same but without swapping the config files.

in vb6 you need to untick the box in the project properties about removing information re unused activex controls

Maybe I'm not going to win any awards with this but at least its possible.

Posted: 27 Apr 2006 17:21
by usbhell
I wasn't logged on there, but that was me....

Posted: 03 May 2006 12:53
by mhwlng
it also doesn't work for me...

I'm using the active-x control inside a web page so can't use the moving files around solution...


Regards,

Marcel

Re: Visualizations working with the Activex plugin ?

Posted: 05 Jul 2007 16:45
by Lenif
I put this post up.

I need do to do same thing as usbhell ... but nothing to do ... No vizualisations ...

I use these 2 vars with activeX : [':audio-visual=visual', ':effect-list=scope']

How to use visualization var in runtime ? they don't work ? Bug in ActiveX

I can do it working with vlcActiveX.SetVariable('conf::audio-visual', 'visual') but when I do that, no more connection to my source is working .... grrrr ... i continue the strange research .... lol

EDIT: OK, now it's working good but I need to release and recreate activeX to "purge it" ... regards ...