Подскажите, что я не так делаю с VLC, что он у меня грохается.
- Код: Выделить всё
sergey@linux-68dp:~/VLC/1> fpc MainFormUnit.pas
Free Pascal Compiler version 2.2.4 [2010/01/15] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling MainFormUnit.pas
MainFormUnit.pas(8,3) Note: Local variable "p_li" not used
MainFormUnit.pas(9,3) Note: Local variable "p_mi" not used
MainFormUnit.pas(10,3) Note: Local variable "p_md" not used
Linking MainFormUnit
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
76 lines compiled, 0.5 sec
3 note(s) issued
sergey@linux-68dp:~/VLC/1> ./MainFormUnit
[0x80d60bc] main libvlc debug: VLC media player - 1.1.2 The Luggage
[0x80d60bc] main libvlc debug: Copyright © 1996-2010 the VideoLAN team
[0x80d60bc] main libvlc debug: revision exported
[0x80d60bc] main libvlc debug: configured with ./configure '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--enable-a52' '--enable-aa' '--enable-alsa' '--enable-asademux' '--enable-dca' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-dvdread' '--enable-faad' '--enable-fast-install' '--enable-fb' '--enable-flac' '--enable-freetype' '--enable-fribidi' '--enable-glx' '--enable-gnomevfs' '--enable-gnutls' '--enable-httpd' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libcddb' '--enable-libmpeg2' '--enable-libproxy' '--enable-lirc' '--enable-live555' '--enable-lua' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-ncurses' '--enable-ogg' '--enable-optimizations' '--enable-oss' '--enable-pulse' '--enable-pvr' '--enable-real' '--enable-realrtsp' '--enable-smb' '--enable-sout' '--enable-speex' '--enable-taglib' '--enable-theora' '--enable-v4l' '--enable-v4l2' '--enable-vcd' '--enable-vcdx' '--enable-visual' '--enable-vorbis' '--enable-waveout' '--enable-xvideo' '--with-live555-tree=/usr/lib/live' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' 'CXXFLAGS=-fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g'
[0x80d60bc] main libvlc debug: translation test: code is "C"
[0x80d60bc] main libvlc debug: checking plugin modules
[0x80d60bc] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04041e-3e8.dat
[0x80d60bc] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x80d60bc] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04041e-3e8.dat
[0x80d60bc] main libvlc debug: module bank initialized (399 modules)
[0x80d60bc] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 FPU
[0x80d60bc] main libvlc debug: looking for memcpy module: 3 candidates
[0x80d60bc] main libvlc debug: using memcpy module "memcpymmxext"
[0x82b379c] main input debug: Creating an input for 'Media Library'
[0x82b379c] main input debug: Input is a meta file: disabling unneeded options
[0x82b379c] main input debug: using timeshift granularity of 50 MiB
[0x82b379c] main input debug: using timeshift path '/tmp'
[0x82b379c] main input debug: `file/xspf-open:///home/sergey/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/sergey/.local/share/vlc/ml.xspf'
[0x82b379c] main input debug: creating demux: access='file' demux='xspf-open' path='/home/sergey/.local/share/vlc/ml.xspf'
[0x82b1b84] main demux debug: looking for access_demux module: 2 candidates
[0x82b1b84] main demux debug: no access_demux module matching "file" could be loaded
[0x82b1b84] main demux debug: TIMER module_need() : 1.134 ms - Total 1.134 ms / 1 intvls (Avg 1.134 ms)
[0x82b379c] main input debug: creating access 'file' path='/home/sergey/.local/share/vlc/ml.xspf'
[0x82b1b64] main access debug: looking for access module: 2 candidates
[0x82b1b64] filesystem access debug: opening file `/home/sergey/.local/share/vlc/ml.xspf'
[0x82b1b64] main access debug: using access module "filesystem"
[0x82b1b64] main access debug: TIMER module_need() : 0.346 ms - Total 0.346 ms / 1 intvls (Avg 0.346 ms)
[0x82b1fd4] main stream debug: Using AStream*Stream
[0x82b1fd4] main stream debug: pre buffering
[0x82b1fd4] main stream debug: received first data after 0 ms
[0x82b1fd4] main stream debug: pre-buffering done 314 bytes in 0s - 6524 KiB/s
[0x82b221c] main stream debug: looking for stream_filter module: 5 candidates
[0x82b221c] main stream debug: no stream_filter module matching "any" could be loaded
[0x82b221c] main stream debug: TIMER module_need() : 0.342 ms - Total 0.342 ms / 1 intvls (Avg 0.342 ms)
[0x82b221c] main stream debug: looking for stream_filter module: 1 candidate
[0x82b221c] main stream debug: using stream_filter module "stream_filter_record"
[0x82b221c] main stream debug: TIMER module_need() : 0.200 ms - Total 0.200 ms / 1 intvls (Avg 0.200 ms)
[0x82b379c] main input debug: creating demux: access='file' demux='xspf-open' path='/home/sergey/.local/share/vlc/ml.xspf'
[0x82b23ac] main demux debug: looking for demux module: 1 candidate
[0x82b23ac] playlist demux debug: using XSPF playlist reader
[0x82b23ac] main demux debug: using demux module "playlist"
[0x82b23ac] main demux debug: TIMER module_need() : 0.228 ms - Total 0.228 ms / 1 intvls (Avg 0.228 ms)
[0x82b25bc] main demux meta debug: looking for meta reader module: 2 candidates
[0x82b25bc] lua demux meta debug: Trying Lua scripts in /home/sergey/.local/share/vlc/lua/meta/reader
[0x82b25bc] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x82b25bc] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
An unhandled exception occurred at $B76D1AB9 :
EAccessViolation : Access violation
$B76D1AB9
sergey@linux-68dp:~/VLC/1> ldd -v MainFormUnit
linux-gate.so.1 => (0xffffe000)
libvlc.so.5 => /usr/lib/libvlc.so.5 (0xb77e0000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb77c5000)
libvlccore.so.4 => /usr/lib/libvlccore.so.4 (0xb76c5000)
libc.so.6 => /lib/libc.so.6 (0xb755a000)
/lib/ld-linux.so.2 (0xb781d000)
libdbus-1.so.3 => /lib/libdbus-1.so.3 (0xb7513000)
librt.so.1 => /lib/librt.so.1 (0xb7509000)
libdl.so.2 => /lib/libdl.so.2 (0xb7504000)
libm.so.6 => /lib/libm.so.6 (0xb74da000)
Version information:
/usr/lib/libvlc.so.5:
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.3) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.8) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libpthread.so.0:
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libvlccore.so.4:
librt.so.1 (GLIBC_2.2) => /lib/librt.so.1
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.3) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.9) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.10) => /lib/libc.so.6
libc.so.6 (GLIBC_2.8) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.7) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libc.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
/lib/libdbus-1.so.3:
librt.so.1 (GLIBC_2.2) => /lib/librt.so.1
libpthread.so.0 (GLIBC_2.3.3) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.3.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/librt.so.1:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.2) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_PRIVATE) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libdl.so.2:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
/lib/libm.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
sergey@linux-68dp:~/VLC/1>
Библиотека и программа в архиве.
ЗЫ там интерфейс к новому API. Ближайший аналог PasLibVlc - но только для Win. Эти только для unix.
Добавлено спустя 18 часов 18 минут 14 секунд:
Неужели переходить на С ?
Подскажите что нибудь.