Using libvlccore inside a libvlc application

This forum is about all development around libVLC.
afiestas
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2009 12:47

Using libvlccore inside a libvlc application

Postby afiestas » 02 Oct 2009 12:54

Hi!
Is there any example or tutorial of how to mess libvlccore and libvlc? I know this is tricky but afaik if I want to modify vars without restart the player (use var_Set) I need it.

Thanks !

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Using libvlccore inside a libvlc application

Postby Rémi Denis-Courmont » 03 Oct 2009 11:00

Code: Select all

struct vlc_object_t *libvlc_get_vlc_instance(libvlc_instance_t *p_instance);
returns the internal VLC main object. After that you can use most libvlccore functions.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

afiestas
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2009 12:47

Re: Using libvlccore inside a libvlc application

Postby afiestas » 05 Oct 2009 12:51

Thanks!
I can change the brightness now :p

I needed to define the macro typeof myself because seems that it's not available in g++ (4.3.1) basically what I did is an alias typeof->__typeof__
#define typeof(X) __typeof__(X)

Once again thanks!

afiestas
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2009 12:47

Re: Using libvlccore inside a libvlc application

Postby afiestas » 05 Oct 2009 16:44

One more question: Is possible to add/remove filters using libvlccore?

I've tried it by many ways but I have not found the right one :/ for example I tried vout_EnableFilter (vout == video output right?)

Thanks!

Ps: Wow! I just saw
[16:49] <CIA-80> Rémi Denis-Courmont master include/vlc_common.h: Use __typeof__ which works with any GNU C profile, not like typeof

That was fast!

afiestas
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2009 12:47

Re: Using libvlccore inside a libvlc application

Postby afiestas » 07 Oct 2009 10:21

Well after a bit of research I'm able to add/remove effects, thx for the help!

One small question which remains in my mind is what is the right way of get "video output" object, at the moment I'm using vlc_list_children because vlc_object_find_name is not working :/ any tip on that?

Thx again!

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Using libvlccore inside a libvlc application

Postby Rémi Denis-Courmont » 07 Oct 2009 17:38

input_GetVout() is the recommended way to get the video output.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 50 guests