Closed sk2212 closed 9 years ago
It lack c++11
support, but I don't understand why, c++11
enabled at https://github.com/RSATom/QmlVlcDemo/blob/master/QmlVlcDemo.pro#L22
hm.. you have -std=c++0x
not -std=c++11
in your command line. What distro do you use?
Ahh sorry, my fault.
Has to explicitly set my g++ compiler to version 4.9:
QMAKE_CC = gcc-4.9 QMAKE_CXX = g++-4.9
Project is building now :-)!
Glad to hear about your success :)
Please close this issue if you have no any more questions.
Maybe we can use this issue for further questions...Building works, but when I try to start the project the program crashs:
QML debugging is enabled. Only use this in a safe environment. [0x11e8088] main libvlc debug: VLC media player - 2.0.8 Twoflower [0x11e8088] main libvlc debug: Copyright © 1996-2013 VLC authors and VideoLAN [0x11e8088] main libvlc debug: revision 2.0.8a-0-g68cf50b [0x11e8088] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -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=0ubuntu0.12.04.1' '--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-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--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' [0x11e8088] main libvlc debug: searching plug-in modules [0x11e8088] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat [0x11e8088] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 16, now registering size 0. Das Programm ist abgestürzt.
Maybe the problem is that "'--enable-qt4'" option parameter? It should be "'--enable-qt5'", shoudn`t it?
I am using Ubuntu 12.04 LTS with 64bit system and QT5.4.1.
$ dpkg -l | grep vlc ii libvlc-dev 2.0.8-0ubuntu0 development files for libvlc ii libvlc5 2.0.8-0ubuntu0 multimedia player and streamer library ii libvlccore-dev 2.0.8-0ubuntu0 development files for libvlccore ii libvlccore5 2.0.8-0ubuntu0 base library for VLC and its modules ii vlc 2.0.8-0ubuntu0 multimedia player and streamer ii vlc-data 2.0.8-0ubuntu0 Common data for VLC ii vlc-nox 2.0.8-0ubuntu0 multimedia player and streamer (without X su ii vlc-plugin-not 2.0.8-0ubuntu0 LibNotify plugin for VLC ii vlc-plugin-pul 2.0.8-0ubuntu0 PulseAudio plugin for VLC
Thanks for your quick help!
Okay...fix this problem with:
sudo /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/
It seems that I have to renew the plugin cache of vlc.
http://stackoverflow.com/questions/25068127/how-to-use-libvlc-with-qt-5
Hopefully the last error to fix:
QML debugging is enabled. Only use this in a safe environment.
[0x16c0e78] main libvlc debug: VLC media player - 2.0.8 Twoflower
[0x16c0e78] main libvlc debug: Copyright © 1996-2013 VLC authors and VideoLAN
[0x16c0e78] main libvlc debug: revision 2.0.8a-0-g68cf50b
[0x16c0e78] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -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=0ubuntu0.12.04.1' '--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-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--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'
[0x16c0e78] main libvlc debug: searching plug-in modules
[0x16c0e78] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x16c0e78] main libvlc debug: recursively browsing /usr/lib/vlc/plugins' [0x16c0e78] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0x16c0e78] main libvlc debug: plug-ins loaded: 420 modules [0x16c0e78] main libvlc debug: translation test: code is "de" [0x16c0e78] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [0x16c0e78] main libvlc debug: looking for memcpy module: 4 candidates [0x16c0e78] main libvlc debug: using memcpy module "memcpymmxext" [0x18a3608] main interface debug: looking for interface module: 1 candidate [0x18a3608] main interface debug: using interface module "hotkeys" [0x18a3608] main interface debug: TIMER module_need() : 0.129 ms - Total 0.129 ms / 1 intvls (Avg 0.129 ms) [0x1891d38] main interface debug: looking for interface module: 1 candidate [0x18a1a58] main playlist debug: playlist threads correctly activated [0x1891d38] main interface debug: using interface module "inhibit" [0x18a1a58] main playlist debug: rebuilding array of current - root Wiedergabeliste [0x18a1a58] main playlist debug: rebuild done - 0 items, index -1 [0x1891d38] main interface debug: TIMER module_need() : 1.577 ms - Total 1.577 ms / 1 intvls (Avg 1.577 ms) [0x18a3888] main input debug: Creating an input for 'http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x18a3888] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x18a3888] main input debug:
http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' gives access http' demux
' path download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x18a3888] main input debug: creating demux: access='http' demux='' location='download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' file='(null)' [0x7f75cc001308] main demux debug: looking for access_demux module: 0 candidates [0x7f75cc001308] main demux debug: no access_demux module matched "http" [0x7f75cc001308] main demux debug: TIMER module_need() : 0.037 ms - Total 0.037 ms / 1 intvls (Avg 0.037 ms) [0x18a3888] main input debug: creating access 'http' location='download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi', path='(null)' [0x7f75cc001678] main access debug: looking for access module: 2 candidates [0x18ae6e8] main input debug: Creating an input for 'http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x18ae6e8] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x18ae6e8] main input debug:
http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' gives access http' demux
' path download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x18ae6e8] main input debug: creating demux: access='http' demux='' location='download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' file='(null)' [0x7f75c0001508] main demux debug: looking for access_demux module: 0 candidates [0x7f75c0001508] main demux debug: no access_demux module matched "http" [0x7f75c0001508] main demux debug: TIMER module_need() : 0.042 ms - Total 0.042 ms / 1 intvls (Avg 0.042 ms) [0x18ae6e8] main input debug: creating access 'http' location='download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi', path='(null)' [0x7f75c0001878] main access debug: looking for access module: 2 candidates [0x7f75cc001678] access_http access debug: asking libproxy about url 'http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x7f75c0001878] access_http access debug: asking libproxy about url 'http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x7f75cc001678] access_http access debug: libproxy suggest to use 'direct://' [0x7f75cc001678] access_http access debug: http: server='download.blender.org' port=80 file='/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x7f75c0001878] access_http access debug: libproxy suggest to use 'direct://' [0x7f75c0001878] access_http access debug: http: server='download.blender.org' port=80 file='/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' [0x7f75c0001878] main access debug: net: connecting to download.blender.org port 80 [0x7f75cc001678] main access debug: net: connecting to download.blender.org port 80 [0x7f75cc001678] main access debug: connection succeeded (socket = 29) [0x7f75c0001878] main access debug: connection succeeded (socket = 28) [0x7f75c0001878] access_http access debug: protocol 'HTTP' answer code 206 [0x7f75c0001878] access_http access debug: Content-Type: video/x-msvideo [0x7f75c0001878] access_http access debug: stream size=156506028,pos=0,remaining=156506028 [0x7f75c0001878] access_http access debug: this frame size=156506028 [0x7f75c0001878] access_http access debug: Connection: close [0x7f75c0001878] access_http access debug: Server: lighttpd/1.4.35 [0x7f75c0001878] main access debug: using access module "access_http" [0x7f75c0001878] main access debug: TIMER module_need() : 598.297 ms - Total 598.297 ms / 1 intvls (Avg 598.297 ms) [0x7f75c0002038] main stream debug: Using stream method for AStream* [0x7f75c0002038] main stream debug: starting pre-buffering [0x7f75c0002038] main stream debug: received first data after 0 ms [0x7f75c0002038] main stream debug: pre-buffering done 1024 bytes in 0s - 71428 KiB/s [0x7f75c0001c28] main stream debug: looking for stream_filter module: 7 candidates [0x7f75cc001678] access_http access debug: protocol 'HTTP' answer code 206 [0x7f75cc001678] access_http access debug: Content-Type: video/x-msvideo [0x7f75c0001c28] main stream debug: no stream_filter module matching "any" could be loaded [0x7f75c0001c28] main stream debug: TIMER module_need() : 1.773 ms - Total 1.773 ms / 1 intvls (Avg 1.773 ms) [0x7f75c0001c28] main stream debug: looking for stream_filter module: 1 candidate [0x7f75cc001678] access_http access debug: stream size=156506028,pos=0,remaining=156506028 [0x7f75c0001c28] main stream debug: using stream_filter module "stream_filter_record" [0x7f75c0001c28] main stream debug: TIMER module_need() : 0.243 ms - Total 0.243 ms / 1 intvls (Avg 0.243 ms) [0x7f75cc001678] access_http access debug: this frame size=156506028 [0x18ae6e8] main input debug: creating demux: access='http' demux='' location='download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' file='(null)' [0x7f75cc001678] access_http access debug: Connection: close [0x7f75c0008ca8] main demux debug: looking for demux module: 54 candidates [0x7f75cc001678] access_http access debug: Server: lighttpd/1.4.35 [0x7f75cc001678] main access debug: using access module "access_http" [0x7f75cc001678] main access debug: TIMER module_need() : 601.095 ms - Total 601.095 ms / 1 intvls (Avg 601.095 ms) [0x7f75cc007768] main stream debug: Using stream method for AStream* [0x7f75cc007768] main stream debug: starting pre-buffering [0x7f75cc007768] main stream debug: received first data after 0 ms [0x7f75cc007768] main stream debug: pre-buffering done 1024 bytes in 0s - 66666 KiB/s [0x7f75cc0079c8] main stream debug: looking for stream_filter module: 7 candidates [0x7f75cc0079c8] main stream debug: no stream_filter module matching "any" could be loaded [0x7f75cc0079c8] main stream debug: TIMER module_need() : 0.126 ms - Total 0.126 ms / 1 intvls (Avg 0.126 ms) [0x7f75cc0079c8] main stream debug: looking for stream_filter module: 1 candidate [0x7f75cc0079c8] main stream debug: using stream_filter module "stream_filter_record" [0x7f75cc0079c8] main stream debug: TIMER module_need() : 0.073 ms - Total 0.073 ms / 1 intvls (Avg 0.073 ms) [0x18a3888] main input debug: creating demux: access='http' demux='' location='download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' file='(null)' [0x7f75c0001c28] avi stream debug: <list 'AVI '> [0x7f75c0001c28] avi stream debug: <list 'hdrl'> [0x7f75c0001c28] avi stream debug: <list 'strl'> [0x7f75c0001c28] avi stream debug: </list 'strl'> [0x7f75c0001c28] avi stream debug: <list 'strl'> [0x7f75cc007bf8] main demux debug: looking for demux module: 54 candidates [0x7f75c0001c28] avi stream debug: </list 'strl'> [0x7f75c0001c28] avi stream debug: </list 'hdrl'> [0x7f75c0001c28] avi stream debug: <list 'INFO'> [0x7f75c0001c28] avi stream debug: </list 'INFO'> [0x7f75cc0079c8] avi stream debug: <list 'AVI '> [0x7f75cc0079c8] avi stream debug: <list 'hdrl'> [0x7f75cc0079c8] avi stream debug: <list 'strl'> [0x7f75c0001c28] avi stream debug: skipping movi chunk [0x7f75c0001c28] avi stream debug: </list 'AVI '> [0x7f75cc0079c8] avi stream debug: </list 'strl'> [0x7f75c0001c28] avi stream debug: * LIST-root size:156506028 pos:0 [0x7f75c0001c28] avi stream debug: + RIFF-AVI size:156506020 pos:0 [0x7f75cc0079c8] avi stream debug: <list 'strl'> [0x7f75cc0079c8] avi stream debug: </list 'strl'> [0x7f75cc0079c8] avi stream debug: </list 'hdrl'> [0x7f75c0001c28] avi stream debug: | + LIST-hdrl size:306 pos:12 [0x7f75c0001c28] avi stream debug: | | + avih size:56 pos:24 [0x7f75c0001c28] avi stream debug: | | + LIST-strl size:116 pos:88 [0x7f75c0001c28] avi stream debug: | | | + strh size:56 pos:100 [0x7f75c0001c28] avi stream debug: | | | + strf size:40 pos:164 [0x7f75c0001c28] avi stream debug: | | + LIST-strl size:106 pos:212 [0x7f75c0001c28] avi stream debug: | | | + strh size:56 pos:224 [0x7f75cc0079c8] avi stream debug: <list 'INFO'> [0x7f75cc0079c8] avi stream debug: </list 'INFO'> [0x7f75c0001c28] avi stream debug: | | | + strf size:30 pos:288 [0x7f75c0001c28] avi stream debug: | + LIST-INFO size:42 pos:326 [0x7f75c0001c28] avi stream debug: | | + ISFT size:29 pos:338 [0x7f75c0001c28] avi stream debug: | + JUNK size:3712 pos:376 [0x7f75c0001c28] avi stream debug: | + LIST-movi size:155875260 pos:4096 [0x7f75c0008ca8] avi demux debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE [0x7f75cc0079c8] avi stream debug: skipping movi chunk [0x7f75cc0079c8] avi stream debug: </list 'AVI '> [0x7f75c0008ca8] avi demux debug: stream[0] rate:24 scale:1 samplesize:0 [0x7f75cc0079c8] avi stream debug: * LIST-root size:156506028 pos:0 [0x7f75c0008ca8] avi demux debug: stream[0] video(MP42) 854x480 24bpp 24.000000fps [0x7f75cc0079c8] avi stream debug: + RIFF-AVI size:156506020 pos:0 [0x18ae6e8] main input debug: selecting program id=0 [0x7f75cc0079c8] avi stream debug: | + LIST-hdrl size:306 pos:12 [0x7f75cc0079c8] avi stream debug: | | + avih size:56 pos:24 [0x7f75cc0079c8] avi stream debug: | | + LIST-strl size:116 pos:88 [0x7f75cc0079c8] avi stream debug: | | | + strh size:56 pos:100 [0x7f75cc0079c8] avi stream debug: | | | + strf size:40 pos:164 [0x7f75cc0079c8] avi stream debug: | | + LIST-strl size:106 pos:212 [0x7f75cc0079c8] avi stream debug: | | | + strh size:56 pos:224 [0x7f75cc0079c8] avi stream debug: | | | + strf size:30 pos:288 [0x7f75cc0079c8] avi stream debug: | + LIST-INFO size:42 pos:326 [0x7f75cc0079c8] avi stream debug: | | + ISFT size:29 pos:338 [0x7f75cc0079c8] avi stream debug: | + JUNK size:3712 pos:376 [0x7f75cc0079c8] avi stream debug: | + LIST-movi size:155875260 pos:4096 [0x7f75cc007bf8] avi demux debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE [0x7f75cc007bf8] avi demux debug: stream[0] rate:24 scale:1 samplesize:0 [0x7f75cc007bf8] avi demux debug: stream[0] video(MP42) 854x480 24bpp 24.000000fps [0x18a3888] main input debug: selecting program id=0 [0x7f75c0008ca8] avi demux debug: stream[1] rate:48000 scale:1152 samplesize:0 [0x7f75c0008ca8] avi demux debug: stream[1] audio(0x55 - MPEG Audio layer 1/2/3) 2 channels 48000Hz 0bits [0x7f75cc007bf8] avi demux debug: stream[1] rate:48000 scale:1152 samplesize:0 [0x7f75cc007bf8] avi demux debug: stream[1] audio(0x55 - MPEG Audio layer 1/2/3) 2 channels 48000Hz 0bits [0x7f75c0008ca8] avi demux warning: cannot find idx1 chunk, no index defined [0x7f75c0008ca8] avi demux debug: selected standard index for stream[0] [0x7f75c0008ca8] avi demux debug: selected standard index for stream[1] [0x7f75c0008ca8] avi demux error: no key frame set for track 0 [0x7f75c0008ca8] avi demux debug: stream[0] created 0 index entries [0x7f75c0008ca8] avi demux error: no key frame set for track 1 [0x7f75c0008ca8] avi demux debug: stream[1] created 0 index entries [0x7f75c0008ca8] avi demux warning: broken or missing index, 'seek' will be approximative or will exhibit strange behavior [0x7f75c0008ca8] avi demux warning: cannot create index (unseekable stream) [0x7f75c0008ca8] avi demux warning: cannot find idx1 chunk, no index defined [0x7f75c0008ca8] avi demux debug: selected standard index for stream[0] [0x7f75c0008ca8] avi demux debug: selected standard index for stream[1] [0x7f75cc007bf8] avi demux warning: cannot find idx1 chunk, no index defined [0x7f75cc007bf8] avi demux debug: selected standard index for stream[0] [0x7f75c0008ca8] avi demux error: no key frame set for track 0 [0x7f75c0008ca8] avi demux debug: stream[0] created 0 index entries [0x7f75c0008ca8] avi demux error: no key frame set for track 1 [0x7f75c0008ca8] avi demux debug: stream[1] created 0 index entries [0x7f75c0008ca8] avi demux warning: broken or missing index, 'seek' will be approximative or will exhibit strange behavior [0x7f75cc007bf8] avi demux debug: selected standard index for stream[1] [0x7f75c0008ca8] main demux debug: using demux module "avi" [0x7f75c0008ca8] main demux debug: TIMER module_need() : 1.459 ms - Total 1.459 ms / 1 intvls (Avg 1.459 ms) [0x7f75cc007bf8] avi demux error: no key frame set for track 0 [0x7f75cc007bf8] avi demux debug: stream[0] created 0 index entries [0x7f75cc007bf8] avi demux error: no key frame set for track 1 [0x7f75cc007bf8] avi demux debug: stream[1] created 0 index entries [0x7f75cc007bf8] avi demux warning: broken or missing index, 'seek' will be approximative or will exhibit strange behavior [0x7f75cc007bf8] avi demux warning: cannot create index (unseekable stream) [0x7f75cc007bf8] avi demux warning: cannot find idx1 chunk, no index defined [0x7f75cc007bf8] avi demux debug: selected standard index for stream[0] [0x7f75cc007bf8] avi demux debug: selected standard index for stream[1] [0x7f75cc007bf8] avi demux error: no key frame set for track 0 [0x7f75cc007bf8] avi demux debug: stream[0] created 0 index entries [0x7f75cc007bf8] avi demux error: no key frame set for track 1 [0x7f75cc007bf8] avi demux debug: stream[1] created 0 index entries [0x7f75cc007bf8] avi demux warning: broken or missing index, 'seek' will be approximative or will exhibit strange behavior [0x7f75cc007bf8] main demux debug: using demux module "avi" [0x7f75cc007bf8] main demux debug: TIMER module_need() : 1.020 ms - Total 1.020 ms / 1 intvls (Avg 1.020 ms) [0x7f75c000abe8] main decoder debug: looking for decoder module: 30 candidates [0x7f75cc0025f8] main decoder debug: looking for decoder module: 30 candidates [0x7f75cc0025f8] avcodec decoder debug: libavcodec initialized (interface 0x352300) [0x7f75c000abe8] avcodec decoder debug: libavcodec already initialized [0x7f75c000abe8] avcodec decoder debug: trying to use direct rendering [0x7f75cc0025f8] avcodec decoder debug: trying to use direct rendering [0x7f75cc0025f8] avcodec decoder debug: allowing 4 thread(s) for decoding [0x7f75c000abe8] avcodec decoder debug: allowing 4 thread(s) for decoding [0x7f75cc0025f8] avcodec decoder debug: ffmpeg codec (MS MPEG-4 Video v2) started [0x7f75cc0025f8] main decoder debug: using decoder module "avcodec" [0x7f75cc0025f8] main decoder debug: TIMER module_need() : 85.812 ms - Total 85.812 ms / 1 intvls (Avg 85.812 ms) [0x7f75cc00a838] main decoder debug: looking for decoder module: 30 candidates [0x7f75cc00a838] main decoder debug: using decoder module "mpeg_audio" [0x7f75cc00a838] main decoder debug: TIMER module_need() : 0.151 ms - Total 0.151 ms / 1 intvls (Avg 0.151 ms) [0x7f75c000abe8] avcodec decoder debug: ffmpeg codec (MS MPEG-4 Video v2) started [0x7f75c000abe8] main decoder debug: using decoder module "avcodec" [0x7f75c000abe8] main decoder debug: TIMER module_need() : 86.359 ms - Total 86.359 ms / 1 intvls (Avg 86.359 ms) [0x7f75cc00b738] main demux meta debug: looking for meta reader module: 2 candidates [0x7f75c000ef68] main decoder debug: looking for decoder module: 30 candidates [0x7f75c000ef68] main decoder debug: using decoder module "mpeg_audio" [0x7f75c000ef68] main decoder debug: TIMER module_need() : 0.132 ms - Total 0.132 ms / 1 intvls (Avg 0.132 ms) [0x7f75c000fc48] main demux meta debug: looking for meta reader module: 2 candidates [0x7f75cc00b738] lua demux meta debug: Trying Lua scripts in /home/s.frenzel/.local/share/vlc/lua/meta/reader [0x7f75c000fc48] lua demux meta debug: Trying Lua scripts in /home/s.frenzel/.local/share/vlc/lua/meta/reader [0x7f75cc00b738] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x7f75c000fc48] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x7f75cc00b738] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x7f75c000fc48] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x7f75cc00b738] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x7f75c000fc48] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x7f75cc00b738] main demux meta debug: no meta reader module matching "any" could be loaded [0x7f75c000fc48] main demux meta debug: no meta reader module matching "any" could be loaded [0x7f75cc00b738] main demux meta debug: TIMER module_need() : 2.231 ms - Total 2.231 ms / 1 intvls (Avg 2.231 ms) [0x7f75c000fc48] main demux meta debug: TIMER module_need() : 1.918 ms - Total 1.918 ms / 1 intvls (Avg 1.918 ms) [0x18a3888] main input debug:
http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' successfully opened
[0x18ae6e8] main input debug: `http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi' successfully opened
[0x18ae6e8] main input debug: Buffering 0%
[0x18a3888] main input debug: Buffering 0%
[0x18ae6e8] main input debug: Buffering 0%
[0x18a3888] main input debug: Buffering 0%
[0x7f75cc00a838] mpeg_audio decoder debug: MPGA channels:2 samplerate:48000 bitrate:160
[0x1892dc8] main generic debug: creating audio output
[0x18a3888] main input debug: Buffering 24%
[0x18ae6e8] main input debug: Buffering 24%
[0x18a3888] main input debug: Buffering 48%
[0x18ae6e8] main input debug: Buffering 48%
[0x7f75c000ef68] mpeg_audio decoder debug: MPGA channels:2 samplerate:48000 bitrate:160
[0x7f75a8000988] main audio output debug: looking for audio output module: 3 candidates
[0x18a9848] main generic debug: creating audio output
[0x7f75a0000988] main audio output debug: looking for audio output module: 3 candidates
[0x7f75a8000988] pulse audio output debug: using stereo channel map
[0x7f75a0000988] pulse audio output debug: using stereo channel map
[0x7f75a0000988] pulse audio output debug: using library version 1.1.0
[0x7f75a0000988] pulse audio output debug: (compiled with version 1.1.0, protocol 26)
[0x7f75a8000988] pulse audio output debug: using library version 1.1.0
[0x7f75a8000988] pulse audio output debug: (compiled with version 1.1.0, protocol 26)
[0x7f75a0000988] pulse audio output debug: connected locally to unix:/home/s.frenzel/.pulse/6f54f26e579bb9b534a00f8600000294-runtime/native as client #35
[0x7f75a0000988] pulse audio output debug: using protocol 26, server protocol 26
[0x7f75a8000988] pulse audio output debug: connected locally to unix:/home/s.frenzel/.pulse/6f54f26e579bb9b534a00f8600000294-runtime/native as client #36
[0x7f75a8000988] pulse audio output debug: using protocol 26, server protocol 26
[0x7f75a8000988] pulse audio output debug: using buffer metrics: maxlength=4194304, tlength=15360, prebuf=0, minreq=5120
[0x7f75a0000988] pulse audio output debug: using buffer metrics: maxlength=4194304, tlength=15360, prebuf=0, minreq=5120
[0x7f75a8000988] pulse audio output debug: connected to sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo
[0x7f75a0000988] pulse audio output debug: connected to sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo
[0x7f75a8000988] main audio output debug: using audio output module "pulse"
[0x7f75a8000988] main audio output debug: TIMER module_need() : 4.799 ms - Total 4.799 ms / 1 intvls (Avg 4.799 ms)
[0x7f75a0000988] main audio output debug: using audio output module "pulse"
[0x7f75a0000988] main audio output debug: TIMER module_need() : 4.624 ms - Total 4.624 ms / 1 intvls (Avg 4.624 ms)
[0x7f75a0000988] main audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
[0x7f75a8000988] main audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
[0x7f75a8000988] main audio output debug: mixer 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
[0x7f75a0000988] main audio output debug: mixer 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
[0x7f75a0000988] main audio output debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
[0x7f75a0000988] main audio output debug: conversion pipeline completed
[0x7f75a8000988] main audio output debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
[0x7f75a8000988] main audio output debug: conversion pipeline completed
[0x7f75a80035b8] main mixer debug: looking for audio mixer module: 2 candidates
[0x7f75a0002f18] main mixer debug: looking for audio mixer module: 2 candidates
[0x7f75a8000988] pulse audio output debug: nothing to play
[0x7f75a80035b8] main mixer debug: using audio mixer module "float32_mixer"
[0x7f75a80035b8] main mixer debug: TIMER module_need() : 0.179 ms - Total 0.179 ms / 1 intvls (Avg 0.179 ms)
[0x7f75a8000988] main audio output debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/969 bytes
[0x7f75a0000988] pulse audio output debug: nothing to play
[0x7f75a0002f18] main mixer debug: using audio mixer module "float32_mixer"
[0x7f75a0002f18] main mixer debug: TIMER module_need() : 0.221 ms - Total 0.221 ms / 1 intvls (Avg 0.221 ms)
[0x7f75a8003cb8] main audio filter debug: looking for audio filter module: 1 candidate
[0x7f75a0000988] main audio output debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/969 bytes
[0x7f75a0003168] main audio filter debug: looking for audio filter module: 1 candidate
[0x7f75a8000988] pulse audio output debug: listing sink alsa_output.pci-0000_00_1b.0.analog-stereo (0): Internes Audio Analog Stereo
[0x7f75a0000988] pulse audio output debug: listing sink alsa_output.pci-0000_00_1b.0.analog-stereo (0): Internes Audio Analog Stereo
[0x7f75a8003cb8] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32
[0x7f75a8003cb8] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search
[0x7f75a8003cb8] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
[0x7f75a8003cb8] main audio filter debug: using audio filter module "scaletempo"
[0x7f75a8003cb8] main audio filter debug: TIMER module_need() : 0.174 ms - Total 0.174 ms / 1 intvls (Avg 0.174 ms)
[0x7f75a8000988] main audio output debug: filter(s) 'mpga'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
[0x7f75a0003168] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32
[0x7f75a0003168] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search
[0x7f75a8000988] pulse audio output debug: base volume: 65536
[0x7f75a0003168] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
[0x7f75a0003168] main audio filter debug: using audio filter module "scaletempo"
[0x7f75a800c748] main audio filter debug: looking for audio filter module: 13 candidates
[0x7f75a0003168] main audio filter debug: TIMER module_need() : 0.185 ms - Total 0.185 ms / 1 intvls (Avg 0.185 ms)
[0x7f75a0000988] main audio output debug: filter(s) 'mpga'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
[0x7f75a0000988] pulse audio output debug: base volume: 65536
[0x7f75a0004128] main audio filter debug: looking for audio filter module: 13 candidates
[0x7f75a800c748] mpgatofixed32 audio filter debug: mpga->f32l, bits per sample: 32
[0x7f75a800c748] main audio filter debug: using audio filter module "mpgatofixed32"
[0x7f75a800c748] main audio filter debug: TIMER module_need() : 0.910 ms - Total 0.910 ms / 1 intvls (Avg 0.910 ms)
[0x7f75a8000988] main audio output debug: conversion pipeline completed
[0x7f75a0004128] mpgatofixed32 audio filter debug: mpga->f32l, bits per sample: 32
[0x7f75a0004128] main audio filter debug: using audio filter module "mpgatofixed32"
[0x7f75a0004128] main audio filter debug: TIMER module_need() : 0.859 ms - Total 0.859 ms / 1 intvls (Avg 0.859 ms)
[0x7f75a0000988] main audio output debug: conversion pipeline completed
[0x7f75a8000988] main audio output debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
[0x7f75a8000988] main audio output debug: conversion pipeline completed
[0x7f75a8000988] main audio output debug: filter(s) 'f32l'->'f32l' 52800 Hz->48000 Hz Stereo->Stereo
[0x7f75a0000988] main audio output debug: filter(s) 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
[0x7f75a0000988] main audio output debug: conversion pipeline completed
[0x7f75a0000988] main audio output debug: filter(s) 'f32l'->'f32l' 52800 Hz->48000 Hz Stereo->Stereo
[0x7f75a8014bd8] main audio filter debug: looking for audio filter module: 13 candidates
[0x7f75a0013e08] main audio filter debug: looking for audio filter module: 13 candidates
[0x7f75a8014bd8] main audio filter debug: using audio filter module "samplerate"
[0x7f75a8014bd8] main audio filter debug: TIMER module_need() : 0.267 ms - Total 0.267 ms / 1 intvls (Avg 0.267 ms)
[0x7f75a8000988] main audio output debug: conversion pipeline completed
[0x7f75a0013e08] main audio filter debug: using audio filter module "samplerate"
[0x7f75cc00a838] main decoder debug: End of audio preroll
[0x7f75a0013e08] main audio filter debug: TIMER module_need() : 0.273 ms - Total 0.273 ms / 1 intvls (Avg 0.273 ms)
[0x7f75a0000988] main audio output debug: conversion pipeline completed
[0x7f75c000ef68] main decoder debug: End of audio preroll
[0x7f75a0000988] pulse audio output debug: nothing to play
[0x7f75a8000988] pulse audio output debug: nothing to play
[0x7f75a0000988] pulse audio output debug: nothing to play
[0x7f75a8000988] pulse audio output debug: nothing to play
[0x7f75ac001d48] main spu text debug: looking for text renderer module: 2 candidates
[0x7f75b0001d48] main spu text debug: looking for text renderer module: 2 candidates
[0x7f75ac001d48] freetype spu text debug: Building font databases.
[0x7f75ac001d48] freetype spu text debug: Took 0 microseconds
[0x7f75b0001d48] freetype spu text debug: Building font databases.
[0x7f75b0001d48] freetype spu text debug: Took 0 microseconds
* glibc detected * /home/s.frenzel/projects/qt/build-QmlVlcDemo-Qt_5_4_1_gcc_64-Debug/QmlVlcDemo: double free or corruption (out): 0x00007f75b00059e0 ***
Debug/QmlVlcDemo: double free or corruption
Hm.. It seems some bug there.
you could try update QmlVlc
subrepo to the latest version, but don't sure it will not break build of QmlVlcDemo
Okay, will give it a try tomorrow. The crash is not reproducible. Sometimes it works, sometimes not. At all it is nice to to see to get vlc working within a qml file!!! Great job!!
Thanks, I'll try update QmlVlc myself soon
Okay...before I take a look deeper into this I have another question. Is it possible to play uPnP content at all? VLC player supports it so I think also this plugin?
If VLC supports it - it should be no problem with it in QmlVlc
I've updated QmlVlc
to the latest version. And found that you could fix your problem with c++11
by adding QMAKE_CXXFLAGS_CXX11 += -std=c++11
to QmlVlcDemo.pro
file.
Thanks for help! I will close this issue.
I try to compile QmlVlcDemo with sources from github but I get following compile errors within QtCreator:
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQMLVLC_QTMULTIMEDIA_ENABLE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../QmlVlcDemo -I. -I../QmlVlcDemo/deps/QmlVlc -I../QmlVlcDemo/deps/QmlVlc/libvlc_wrapper -I../QmlVlcDemo/deps -I../QmlVlcDemo/deps/libvlc-sdk/include -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include/QtQuick -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include/QtMultimedia -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include/QtGui -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include/QtQml -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include/QtNetwork -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/include/QtCore -I. -I../../../Programs/Qt/Qt5.4.1/5.4/gcc_64/mkspecs/linux-g++ -o QmlVlc.o ../QmlVlcDemo/deps/QmlVlc/QmlVlc.cpp In file included from ../QmlVlcDemo/deps/QmlVlc/QmlVlcSurfacePlayerProxy.h:29:0, from ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayer.h:29, from ../QmlVlcDemo/deps/QmlVlc/QmlVlcVideoSurface.h:32, from ../QmlVlcDemo/deps/QmlVlc/QmlVlc.cpp:30: ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayerProxy.h:49:29: error: expected ';' at end of member declaration ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayerProxy.h:49:31: error: 'override' does not name a type ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayerProxy.h:50:36: error: expected ';' at end of member declaration ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayerProxy.h:50:38: error: 'override' does not name a type ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayerProxy.h:54:54: error: expected ';' at end of member declaration ../QmlVlcDemo/deps/QmlVlc/QmlVlcPlayerProxy.h:54:56: error: 'override' does not name a type make: *\ [QmlVlc.o] Error 1 16:04:56: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet. Fehler beim Erstellen/Deployment des Projekts QmlVlcDemo (Kit: Qt 5.4.1 (gcc_64)) Bei der Ausführung von Schritt "Make"
What`s wrong here?
Regards, Sandro