libvlc python binding no video output

*nix specific usage questions
knotito
New Cone
New Cone
Posts: 5
Joined: 15 Jul 2013 14:02

libvlc python binding no video output

Postby knotito » 16 Jul 2013 06:42

Hi
Justed tried to get working the minimal code to play a file using python bindings of libvlc.

The code

Code: Select all

import vlc inst = vlc.Instance('--fullscreen', '-vvv') media = inst.media_new('file:///home/knotito/Videos/H2G2.avi') player = inst.media_player_new() player.set_media(media) player.play()
The output

Code: Select all

[0x1b0cf08] main libvlc debug: VLC media player - 2.0.7 Twoflower [0x1b0cf08] main libvlc debug: Copyright © 1996-2013 VLC authors and VideoLAN [0x1b0cf08] main libvlc debug: revision 2.0.6-54-g7dd7e4d [0x1b0cf08] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=3' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-fbosd' '--enable-libva' '--enable-linsys' '--enable-omxil' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'build_alias=x86_64-linux-gnu' [0x1b0cf08] main libvlc debug: searching plug-in modules [0x1b0cf08] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat [0x1b0cf08] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x1b0cf08] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0x1b0cf08] main libvlc debug: plug-ins loaded: 422 modules [0x1b0cf08] main libvlc debug: translation test: code is "C" [0x1b0cf08] main libvlc debug: CPU has capabilities MMX 3DNow! MMXEXT SSE SSE2 SSE3 FPU [0x1b0cf08] main libvlc debug: looking for memcpy module: 4 candidates [0x1b0cf08] main libvlc debug: using memcpy module "memcpymmxext" [0x1a39718] main interface debug: looking for interface module: 1 candidate [0x1a39718] main interface debug: using interface module "hotkeys" [0x1a39718] main interface debug: TIMER module_need() : 0.596 ms - Total 0.596 ms / 1 intvls (Avg 0.596 ms) [0x1b3d088] main interface debug: looking for interface module: 1 candidate [0x1a39b68] main playlist debug: playlist threads correctly activated [0x1b3d088] main interface debug: using interface module "inhibit" [0x1b3d088] main interface debug: TIMER module_need() : 3.395 ms - Total 3.395 ms / 1 intvls (Avg 3.395 ms) [0x1be3f78] main input debug: Creating an input for 'H2G2.avi' [0x1a39b68] main playlist debug: rebuilding array of current - root Playlist [0x1a39b68] main playlist debug: rebuild done - 0 items, index -1 [0x1be3f78] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x1be3f78] main input debug: `file:///home/knotito/Videos/H2G2.avi' gives access `file' demux `' path `/home/knotito/Videos/H2G2.avi' [0x1be3f78] main input debug: creating demux: access='file' demux='' location='/home/knotito/Videos/H2G2.avi' file='/home/knotito/Videos/H2G2.avi' [0x7f43640010d8] main demux debug: looking for access_demux module: 3 candidates [0x7f43640010d8] main demux debug: no access_demux module matching "file" could be loaded [0x7f43640010d8] main demux debug: TIMER module_need() : 9.184 ms - Total 9.184 ms / 1 intvls (Avg 9.184 ms) [0x1be3f78] main input debug: creating access 'file' location='/home/knotito/Videos/H2G2.avi', path='/home/knotito/Videos/H2G2.avi' [0x7f4364005548] main access debug: looking for access module: 2 candidates [0x7f4364005548] filesystem access debug: opening file `/home/knotito/Videos/H2G2.avi' [0x7f4364005548] main access debug: using access module "filesystem" [0x7f4364005548] main access debug: TIMER module_need() : 1.861 ms - Total 1.861 ms / 1 intvls (Avg 1.861 ms) [0x7f43640064e8] main stream debug: Using stream method for AStream* [0x7f43640064e8] main stream debug: starting pre-buffering [0x7f43640064e8] main stream debug: received first data after 0 ms [0x7f43640064e8] main stream debug: pre-buffering done 1024 bytes in 0s - 5747 KiB/s [0x7f4364006748] main stream debug: looking for stream_filter module: 7 candidates [0x7f4364006748] main stream debug: no stream_filter module matching "any" could be loaded [0x7f4364006748] main stream debug: TIMER module_need() : 5.498 ms - Total 5.498 ms / 1 intvls (Avg 5.498 ms) [0x7f4364006748] main stream debug: looking for stream_filter module: 1 candidate [0x7f4364006748] main stream debug: using stream_filter module "stream_filter_record" [0x7f4364006748] main stream debug: TIMER module_need() : 1.237 ms - Total 1.237 ms / 1 intvls (Avg 1.237 ms) [0x1be3f78] main input debug: creating demux: access='file' demux='' location='/home/knotito/Videos/H2G2.avi' file='/home/knotito/Videos/H2G2.avi' [0x7f4364007708] main demux debug: looking for demux module: 54 candidates [0x7f4364006748] avi stream debug: <list 'AVI '> [0x7f4364006748] avi stream debug: <list 'hdrl'> [0x7f4364006748] avi stream debug: <list 'strl'> [0x7f4364006748] avi stream debug: </list 'strl'> [0x7f4364006748] avi stream debug: <list 'strl'> [0x7f4364006748] avi stream debug: </list 'strl'> [0x7f4364006748] avi stream debug: <list 'odml'> [0x7f4364006748] avi stream warning: unknown chunk (not loaded) [0x7f4364006748] avi stream debug: </list 'odml'> [0x7f4364006748] avi stream debug: </list 'hdrl'> [0x7f4364006748] avi stream debug: <list 'INFO'> [0x7f4364006748] avi stream debug: </list 'INFO'> [0x7f4364006748] avi stream debug: skipping movi chunk
Anyone can help? I didn't get the problem

Thx in advance :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15318
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc python binding no video output

Postby Rémi Denis-Courmont » 16 Jul 2013 18:22

You cut the log before the audio and video tracks are even created.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

knotito
New Cone
New Cone
Posts: 5
Joined: 15 Jul 2013 14:02

Re: libvlc python binding no video output

Postby knotito » 16 Jul 2013 19:28

that is the problem, they definitlly have not been created...


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 82 guests