Page 1 of 1

vlc.py and raspberry pi

Posted: 18 Jun 2015 16:48
by jbnadal
Hello,

I currently using on my pi the vlc.omx repository
and vlc is successfully running.

Code: Select all

cvlc -I dummy -V omxil_vout toto.mp4
But When i am trying to use the python binding. I only have the Sound,
I didnt found on the API documentation, where to put the

Code: Select all

-V omxil_vout
to select the right videooutput like on the command line.

do you know how to specify it ?

Re: vlc.py and raspberry pi

Posted: 18 Jun 2015 17:05
by jbnadal
I am try something like that

Code: Select all

if __name__ == '__main__': mrl='/tmp/test.mp4' i = vlc.Instance('--verbose 6 --vout omxil_vout'.split()) p = vlc.MediaPlayer() p.stop() media = i.media_new(mrl) p.set_media(media) em = p.event_manager() em.event_attach(vlc.EventType.MediaPlayerPositionChanged, poschanged) em.event_attach(vlc.EventType.MediaPlayerEndReached, end_callback) p.play() time.sleep (5)
I still have:

Code: Select all

[0xe388e8] main libvlc debug: VLC media player - 2.2.0-git Weatherwax [0xe388e8] main libvlc debug: Copyright © 1996-2013 the VideoLAN team [0xe388e8] main libvlc debug: revision 1aaf30b [0xe388e8] main libvlc debug: configured with ./configure '--enable-rpi-omxil' '--enable-dvbpsi' '--enable-x264' '--enable-run-as-root' [0xe388e8] main libvlc debug: searching plug-in modules [0xe388e8] main libvlc debug: loading plugins cache file /usr/local/lib/vlc/plugins/plugins.dat [0xe388e8] main libvlc debug: recursively browsing `/usr/local/lib/vlc/plugins' [0xe388e8] main libvlc debug: saving plugins cache /usr/local/lib/vlc/plugins/plugins.dat [0xe388e8] main libvlc debug: plug-ins loaded: 381 modules [0xe388e8] main libvlc debug: translation test: code is "C" [0xe388e8] main libvlc debug: CPU has capabilities FPU [0xed5208] main generic error: option vmem-chroma does not exist [0xed5208] main generic error: option vmem-width does not exist [0xed5208] main generic error: option vmem-height does not exist [0xed5208] main generic error: option vmem-pitch does not exist [0x10a6c48] main video output error: video output creation failed [0xef0a50] main decoder error: failed to create video output

Re: vlc.py and raspberry pi

Posted: 09 Jul 2015 22:13
by Jean-Baptiste Kempf
You should use VLC.git and the MMAL modules.