libvlc: setting video output module programmatically

This forum is about all development around libVLC.
niol
New Cone
New Cone
Posts: 1
Joined: 04 Jan 2018 16:04

libvlc: setting video output module programmatically

Postby niol » 04 Jan 2018 16:12

Hi,

I'm using libvlc from VLC 2.2.7 and want to set vout to be opengl like I would do in the GUI. I've tried to add --vout=xcb_glx or --vout=opengl but it does not work. The only thing I've found to work is recompiling VLC with the following patch:

--- vlc-2.2.7.orig/modules/video_output/xcb/glx.c
+++ vlc-2.2.7/modules/video_output/xcb/glx.c
@@ -49,7 +49,7 @@ vlc_module_begin ()
set_description (N_("OpenGL GLX video output (XCB)"))
set_category (CAT_VIDEO)
set_subcategory (SUBCAT_VIDEO_VOUT)
- set_capability ("vout display", 150)
+ set_capability ("vout display", 250)
set_callbacks (Open, Close)

add_shortcut ("xcb-glx", "glx", "opengl", "xid")

Is there an easier way to set preferred video output when using libvlc? (I know that opengl is the default in vlc 3, I just want to known how to set video output programmatically).

Thanks,

Alex

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: libvlc: setting video output module programmatically

Postby Jean-Baptiste Kempf » 14 Jan 2018 11:20

Use libVLC 3.0.0 and it is the default
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 32 guests