Page 1 of 1

libvlc: setting video output module programmatically

Posted: 04 Jan 2018 16:12
by niol
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

Re: libvlc: setting video output module programmatically

Posted: 14 Jan 2018 11:20
by Jean-Baptiste Kempf
Use libVLC 3.0.0 and it is the default