Page 1 of 1

Libvlc and Visualizations

Posted: 07 Nov 2008 02:23
by SteveBickell
Does anybody know what the option string is for for the visualizations other than Goom? I can get Goom to work ok but can't find spectrum etc. This is for 0.9.4.

Incidentally, if you try to change the width/height of goom via an option it either runs very slowly or not at all.

Cheers.

Re: Libvlc and Visualizations

Posted: 07 Nov 2008 19:41
by VLC_help
Goom effect
--goom-width=<integer> Goom display width
This allows you to set the resolution of the Goom display (bigger
resolution will be prettier but more CPU intensive).
--goom-height=<integer> Goom display height
This allows you to set the resolution of the Goom display (bigger
resolution will be prettier but more CPU intensive).
--goom-speed=<integer> Goom animation speed
This allows you to set the animation speed (between 1 and 10,
defaults to 6).
http://wiki.videolan.org/VLC_command-line_help

those are only options I can find for Goom.
--audio-visual=<string> Audio visualizations
This adds visualization modules (spectrum analyzer, etc.).
and if you use visualizer you also have to use
Visualizer filter
General:
--effect-list=<string> Effects list
A list of visual effect, separated by commas.

Re: Libvlc and Visualizations

Posted: 07 Nov 2008 21:25
by SteveBickell
Hi,

Thanks for the reply.

I've been using --audio-visual=goom and that's fine but what's the <string> for the others?

Also when you set any of the goom parameters (eg --goom-height=123) the visualization runs very very slowly.

Steve

Re: Libvlc and Visualizations

Posted: 08 Nov 2008 15:46
by VLC_help
viewtopic.php?p=101183#p101183

I cannot launch goom from command-line, if I type

Code: Select all

vlc test.mp3 --audio-visual=goom --goom-height=128 --goom-width=128 --verbose 2 --extraintf=logger
VLC doesn't launch

Code: Select all

vlc --audio-visual=goom --goom-height=128 --goom-width=128 --verbose 2 --extraintf=logger
works

how big resolutions you use? 512x512 worked well for me.

Re: Libvlc and Visualizations

Posted: 09 Nov 2008 00:13
by SteveBickell
Thanks for the link. I can now get scope and spectrum visualizations to work.

As for the goom resolution I'm using Libvlc via some C# code, not running VLC from a command line but I imagine it ends up with pretty much the same thing.

If I set the goom height and width to the height and width of the window I'm using for output the visualization runs very slowly. If I don't touch the height or width goom runs ok but doesn't quite fill the window width. It's not much of a problem but could be a bug. It also runs slowly if I set the goom speed.

The documentation for the command line options is very poor.

Cheers

Steve

Re: Libvlc and Visualizations

Posted: 11 Nov 2008 13:18
by VLC_help
You get same poor performance if you run goom+VLC manually (so not as plugin)?

Re: Libvlc and Visualizations

Posted: 13 Nov 2008 01:52
by SteveBickell
Goom runs OK if you run VLC manually but you can't change the goom height or width to fill the VLC window so you can't create the same situation.

Steve

Re: Libvlc and Visualizations

Posted: 13 Nov 2008 15:10
by VLC_help
You can change the height and width and you can also scale it runtime by dragging it from corners.

Re: Libvlc and Visualizations

Posted: 13 Nov 2008 21:35
by SteveBickell
Hi,

It works fine if you change the size of the VLC player window - Goom carries on playing normally.

I tested it again with Libvlc and it definitely doesn't work. I set the following options before playing the file.
--audio-visual=goom
--goom-height=height of window
--goom-width=width of window

before eventually calling the Play function on a media player object. The window is filled with a goom visual but it is stationary. Movement sometimes occurs but after many seconds and then it it just one change to the visual and it freezes again.

Using the VLC player has raised another question. Using Libvlc how can I change the visualization from say Goom to spectrometer while the file is playing. The VLC player does it but I can't see any obvious way with Libvlc that this can be achieved. The effects are set up with a call to libvlc_media_add_option and there does not seem to be any way to modify the options once the file is playing.

Steve

Re: Libvlc and Visualizations

Posted: 14 Nov 2008 10:26
by VLC_help
I think there should be some callback that you can use to re-initalize stuff after you change values.