vlc.py and raspberry pi

This forum is about all development around libVLC.
jbnadal
New Cone
New Cone
Posts: 2
Joined: 18 Jun 2015 16:36

vlc.py and raspberry pi

Postby jbnadal » 18 Jun 2015 16:48

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 ?

jbnadal
New Cone
New Cone
Posts: 2
Joined: 18 Jun 2015 16:36

Re: vlc.py and raspberry pi

Postby jbnadal » 18 Jun 2015 17:05

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

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: vlc.py and raspberry pi

Postby Jean-Baptiste Kempf » 09 Jul 2015 22:13

You should use VLC.git and the MMAL modules.
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 12 guests