Python vlc bindings & raspberry pi HW acceleration - Raspberry Pi Forums


i managed install vlc on raspberry pi 2 hardware acceleration described here:
viewtopic.php?f=66&t=59814&sid=65d833a9 ... 3599e1c8aa

, able run videos using hw acceleration no problems after adjusting following settings in vlc gui:
sound: output module: alsa audio output
video: outout: openmax il video output

however, when use python vlc binding play video in tkinter frame, video sluggish (no hw acceleration), , following error:

code: select all

[0291ea18] pulse audio output error: pulseaudio server connection failure: connection refused ../../../include/vlc_xlib.h:46:vlc_xlib_init: xlib not initialized threads. process using libvlc incorrectly. pass "--no-xlib" libvlc_new() fix this. [6e500c78] vdpau_display vout display error: xlib not initialized threads [6e500c78] xcb_xv vout display error: no available xvideo adaptor ../../include/vlc_xlib.h:46:vlc_xlib_init: xlib not initialized threads. process using libvlc incorrectly. pass "--no-xlib" libvlc_new() fix this. [6e50d110] glx gl error: xlib not initialized threads [swscaler @ 0x6e513b60] no accelerated colorspace conversion found yuv420p rgb565le.
using vlc binding tkinter. vlc instance in python code looks this:

code: select all

instance = vlc.instance(['--codec=omxil','--vout=omxil-vout','--input-repeat=-1',                       '--no-video-title-show', '--fullscreen', '--mouse-hide-timeout=0'])
how can play hw accelerated videos python using vlc?



raspberrypi



Comments