marquee in libvlc

This forum is about all development around libVLC.
juraj
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Dec 2009 10:41

marquee in libvlc

Postby juraj » 20 Jan 2010 18:56

Is it possible to use marquee funtions in libvlc (http://www.fr.videolan.org/developers/v ... 12a7b20943)?

When I tried to use it

Code: Select all

libvlc_video_set_marquee_option_as_int(_mediaplyer, 2, 10, &_vlcexception);
I got an error:
error: ‘libvlc_video_set_marquee_option_as_int’ was not declared in this scope.

I tried to find declaration of marquee functions in header files, but I didn't find anything. I use vlc version 1.0.3.

BTW.: I need to display the text on-the-fly in any location in video output. That's why I want to use marquee.

Thanks.
Juraj

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

Re: marquee in libvlc

Postby Rémi Denis-Courmont » 20 Jan 2010 20:26

IIRC, this function is an addition of LibVLC 1.1.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

juraj
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Dec 2009 10:41

Re: marquee in libvlc

Postby juraj » 21 Jan 2010 17:07

Thank you. I pulled the git source code and compiled it under linux. However I am getting an error, when starting my app and initializing libvlc with options "-I", "dummy", "--ignore-config", "--verbose=2", "--no-plugins-cache":

Code: Select all

[0x88cd210] main libvlc debug: VLC media player - version 1.1.0-git The Luggage - (c) 1996-2010 the VideoLAN team [0x88cd210] main libvlc debug: libvlc was configured with ./configure [0x88cd210] main libvlc debug: translation test: code is "C" [0x88cd210] main libvlc debug: checking plugin modules [0x88cd210] main libvlc debug: recursively browsing `plugins' [0x88cd210] main libvlc warning: cannot load module `plugins/gui/libskins2_plugin.so' (plugins/gui/libskins2_plugin.so: undefined symbol: KeyToString) [0x88cd210] main libvlc warning: cannot load module `plugins/audio_output/libalsa_plugin.so' (plugins/audio_output/libalsa_plugin.so: undefined symbol: vlc_sem_destroy) [0x88cd210] main libvlc warning: cannot load module `plugins/audio_filter/liba52tofloat32_plugin.so' (plugins/audio_filter/liba52tofloat32_plugin.so: undefined symbol: var_Inherit) [0x88cd210] main libvlc warning: cannot load module `plugins/services_discovery/libbonjour_plugin.so' (plugins/services_discovery/libbonjour_plugin.so: undefined symbol: vlc_sd_probe_Add) [0x88cd210] main libvlc warning: cannot load module `plugins/misc/libnotify_plugin.so' (plugins/misc/libnotify_plugin.so: undefined symbol: __config_GetDataDir) [0x88cd210] main libvlc warning: cannot load module `plugins/misc/libgnutls_plugin.so' (plugins/misc/libgnutls_plugin.so: undefined symbol: config_GetUserDir) [0x88cd210] main libvlc warning: cannot load module `plugins/misc/libfreetype_plugin.so' (plugins/misc/libfreetype_plugin.so: undefined symbol: picture_NewFromFormat) [0x88cd210] main libvlc warning: cannot load module `plugins/misc/liblua_plugin.so' (plugins/misc/liblua_plugin.so: undefined symbol: __config_GetDataDir) [0x88cd210] main libvlc warning: cannot load module `plugins/codec/libvorbis_plugin.so' (plugins/codec/libvorbis_plugin.so: undefined symbol: vlc_meta_New) [0x88cd210] main libvlc warning: cannot load module `plugins/codec/libtheora_plugin.so' (plugins/codec/libtheora_plugin.so: undefined symbol: vlc_meta_New) [0x88cd210] main libvlc warning: cannot load module `plugins/codec/libspeex_plugin.so' (plugins/codec/libspeex_plugin.so: undefined symbol: vlc_meta_New) [0x88cd210] main libvlc warning: cannot load module `plugins/mux/libmux_ogg_plugin.so' (plugins/mux/libmux_ogg_plugin.so: undefined symbol: sout_MuxGetStream) [0x88cd210] main libvlc warning: cannot load module `plugins/access/libdvdread_plugin.so' (plugins/access/libdvdread_plugin.so: undefined symbol: var_Inherit) [0x88cd210] main libvlc warning: cannot load module `plugins/access/libdvb_plugin.so' (plugins/access/libdvb_plugin.so: undefined symbol: var_Inherit) [0x88cd210] main libvlc warning: cannot load module `plugins/access/libdvdnav_plugin.so' (plugins/access/libdvdnav_plugin.so: undefined symbol: vlc_meta_Set) [0x88cd210] main libvlc warning: cannot load module `plugins/video_output/libvout_sdl_plugin.so' (plugins/video_output/libvout_sdl_plugin.so: undefined symbol: picture_pool_New) [0x88cd210] main libvlc warning: cannot load module `plugins/demux/libogg_plugin.so' (plugins/demux/libogg_plugin.so: undefined symbol: vlc_meta_Get) [0x88cd210] main libvlc warning: cannot load module `plugins/demux/libts_plugin.so' (plugins/demux/libts_plugin.so: undefined symbol: vlc_epg_Delete) [0x88cd210] main libvlc debug: module bank initialized (342 modules) [0x88cd210] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 FPU [0x88cd210] main libvlc debug: looking for memcpy module: 3 candidates [0x88cd210] main libvlc debug: using memcpy module "memcpymmxext" [0xb44d8be0] main input debug: Creating an input for 'Media Library' [0xb44d8be0] main input debug: Input is a meta file: disabling unneeded options [0xb44d8be0] main input debug: using timeshift granularity of 50 MBytes [0xb44d8be0] main input debug: using timeshift path '/tmp' [0xb44d8be0] main input debug: `file/xspf-open:///home/majerju/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/majerju/.local/share/vlc/ml.xspf' [0xb44d8be0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/majerju/.local/share/vlc/ml.xspf' [0xb44d60c8] main demux debug: looking for access_demux module: 1 candidate [0xb44d60c8] main demux warning: no access_demux module matching "file" could be loaded [0xb44d60c8] main demux debug: TIMER module_need() : 0.160 ms - Total 0.160 ms / 1 intvls (Avg 0.160 ms) [0xb44d8be0] main input debug: creating access 'file' path='/home/majerju/.local/share/vlc/ml.xspf' [0xb44d60a8] main access debug: looking for access module: 3 candidates [0xb44d60a8] access_file access debug: opening file `/home/majerju/.local/share/vlc/ml.xspf' [0xb44d60a8] main access debug: using access module "access_file" [0xb44d60a8] main access debug: TIMER module_need() : 0.301 ms - Total 0.301 ms / 1 intvls (Avg 0.301 ms) [0xb44da678] main stream debug: Using AStream*Stream [0xb44da678] main stream debug: pre buffering [0xb44da678] main stream debug: received first data after 0 ms [0xb44da678] main stream debug: pre-buffering done 296 bytes in 0s - 8029 kbytes/s [0xb44da940] main stream debug: looking for stream_filter module: 5 candidates [0xb44da940] main stream debug: TIMER module_need() : 0.218 ms - Total 0.218 ms / 1 intvls (Avg 0.218 ms) [0xb44da940] main stream debug: looking for stream_filter module: 1 candidate [0xb44da940] main stream debug: using stream_filter module "stream_filter_record" [0xb44da940] main stream debug: TIMER module_need() : 0.087 ms - Total 0.087 ms / 1 intvls (Avg 0.087 ms) [0xb44d8be0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/majerju/.local/share/vlc/ml.xspf' [0xb44dab90] main demux debug: looking for demux module: 1 candidate [0xb44dab90] playlist demux debug: using XSPF playlist reader [0xb44dab90] main demux debug: using demux module "playlist" [0xb44dab90] main demux debug: TIMER module_need() : 0.118 ms - Total 0.118 ms / 1 intvls (Avg 0.118 ms) [0xb44dadb8] main demux meta debug: looking for meta reader module: 1 candidate [0xb44dadb8] main demux meta debug: TIMER module_need() : 0.166 ms - Total 0.166 ms / 1 intvls (Avg 0.166 ms) [0xb44d8be0] main input debug: `file/xspf-open:///home/majerju/.local/share/vlc/ml.xspf' successfully opened [0xb44dadb8] main xml debug: looking for xml module: 2 candidates [0xb44dadb8] main xml debug: using xml module "xml" [0xb44dadb8] main xml debug: TIMER module_need() : 0.292 ms - Total 0.292 ms / 1 intvls (Avg 0.292 ms) [0xb44da678] main stream error: invalid stream_vaControl query=0xb44ccba0
Do you know, why I get "main stream error: invalid stream_vaControl query=0xb44ccba0"? May be it is related to warnings that some modules cannot be loaded.
These plugins link against "libvlccore.so.2" which is the old version I have in /usr/lib:
majerju@developer-desktop:~/devel/bin/Linux/release/plugins/mux$ ldd libmux_ogg_plugin.so
linux-gate.so.1 => (0xb8042000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb800b000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb8005000)
libvlccore.so.2 => /usr/lib/libvlccore.so.2 (0xb7f2a000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dc7000)
/lib/ld-linux.so.2 (0xb8043000)
libhal.so.1 => /usr/lib/libhal.so.1 (0xb7db5000)
libdbus-1.so.3 => /lib/libdbus-1.so.3 (0xb7d7d000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7d74000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7d6f000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d49000)
libsmbios.so.2 => /usr/lib/libsmbios.so.2 (0xb7cb3000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7bc4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7bb5000)

Other plugins use correct libvlc version (libvlccore.so.4):
majerju@developer-desktop:~/devel/bin/Linux/release/plugins/demux$ ldd libaiff_plugin.so
linux-gate.so.1 => (0xb7f17000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ee2000)
libvlccore.so.4 => not found
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d7e000)
/lib/ld-linux.so.2 (0xb7f18000)

If you have any idea, I will be very happy..:-)

juraj
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Dec 2009 10:41

Re: marquee in libvlc

Postby juraj » 22 Jan 2010 09:47

I removed libvlccore.so.2 from my /usr/lib and recompiled everything. My app starts now without crash but several of vlc plugins are not loaded. I checked ldd for new vlc-1.1.0 plugins (not working) and old vlc-1.0.3 plugins (working) and:

new vlc-1.1.0 plugins (not working):

Code: Select all

ldd audio_filter/liba52tofloat32_plugin.so linux-gate.so.1 => (0xb80b4000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fac000) liba52-0.7.4.so => /usr/lib/liba52-0.7.4.so (0xb7fa1000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f7a000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e17000) /lib/ld-linux.so.2 (0xb80b5000)
old vlc-1.0.3 plugins (working):

Code: Select all

ldd audio_filter/liba52tofloat32_plugin.so linux-gate.so.1 => (0xb804d000) liba52-0.7.4.so => /usr/lib/liba52-0.7.4.so (0xb8026000) libvlccore.so.2 => not found libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ec2000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e9c000) /lib/ld-linux.so.2 (0xb804e000)
Reference to libvlccore is missing in new plugin. How can I include it?

Thanks!

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

Re: marquee in libvlc

Postby Rémi Denis-Courmont » 23 Jan 2010 09:43

You can't install two incompatible versions of LibVLC at the same time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

juraj
Blank Cone
Blank Cone
Posts: 27
Joined: 05 Dec 2009 10:41

Re: marquee in libvlc

Postby juraj » 23 Jan 2010 19:28

Yes, I understand that. But then when I removed old libvlc and libvlccore from /usr/lib and recompiled vlc-1.1.0 again, some plugins were built without reference to libvlccore and these plugins didn't work properly (e.g. audio_filter/liba52tofloat32_plugin.so). But I resolved this problem already. I copied new libvlc and libvlccore (version 1.1.0) to /usr/lib and recompiled sources once again. This way all plugins were built correctly with needed references.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests