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