Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [ANNOUNCE] vdr-xine-0.0.1 plugin



On Mon, 08 Sep 2003 00:36:17 +0200
Reinhard Nissl <rnissl@gmx.de> wrote:

> I've released the first version a few minutes ago. 

Works for me with a Wintv Nova and vdr 1.2.2 on debian woody :-)

Thanks a lot for this nice piece of software. A few minutes ago I was able
to watch my first live-tv-stream from vdr, which I had been waiting for
about half a year.

Anyways, in xine the sound stopped some times and the video was hopping
when swiching channels or using fast-forward while playing a recording.
But I think that's xines fault as the installation didn't seem perfect to
me - when I started it the first time it crashed while showing a
configuration window.

Also I had to modify your code a bit to make it compile, but just adding
some absolute paths. I attatch a log-file from the installation.


Christian
   *** Neueste Versionen von xine-lib und xine-ui aus dem CVS gesaugt. ***
   *** Got fresh versions of xine-lib and xine-ui from cvs             ***

chris@aragorn:/usr/src$ tar -xjf ~/download/vdr/xine/xine-lib_03-09-08.tar.bz2 
chris@aragorn:/usr/src$ tar -xjf ~/download/vdr/xine/xine-ui_03-09-08.tar.bz2 
chris@aragorn:/usr/src$ ln -s xine-lib_cvs-03-09-08 xine-lib
chris@aragorn:/usr/src$ ln -s xine-ui_cvs-03-09-08 xine-ui
chris@aragorn:/usr/src$ tar -xzf ~/download/vdr/vdr-xine-0.0.1.tgz
chris@aragorn:/usr/src$ mv xine-0.0.1 vdr-xine_plugin-0.0.1
chris@aragorn:/usr/src/VDR/PLUGINS/src$ ln -s /usr/src/vdr-xine_plugin-0.0.1/ xine

chris@aragorn:/usr/src$ patch -d. -p0 < /usr/src/VDR/PLUGINS/src/xine/input-plugin/xine-lib.patch 
patching file xine-lib/src/input/Makefile.am

chris@aragorn:/usr/src/xine-lib/src/input$ ln -s /usr/src/VDR/PLUGINS/src/xine/input-plugin/input_vdr.* .


root@aragorn:/usr/src# apt-get install libtool #Fuer xines autogen.sh
root@aragorn:/usr/src# apt-get install automake1.7 # dito

chris@aragorn:/usr/src/xine-lib$ export LANG=C
chris@aragorn:/usr/src/xine-lib$ export CC=gcc-3.2
chris@aragorn:/usr/src/xine-lib$ export CFLAGS="-march=athlon-xp -mcpu=athlon-xp"
chris@aragorn:/usr/src/xine-lib$ export CPPFLAGS="-march=athlon-xp -mcpu=athlon-xp"
chris@aragorn:/usr/src/xine-lib$ export DEB_BUILD_OPTIONS=optimize
chris@aragorn:/usr/src/xine-lib$ export CPP=cpp-3.2
chris@aragorn:/usr/src/xine-lib$ export CXX=g++-3.2

chris@aragorn:/usr/src/xine-lib$ ./autogen.sh 
[...]
xine-lib summary:
----------------
 * input plugins:
   - file          - net
   - stdin_fifo    - rtp
   - http          - mms
   - pnm           - rtsp
   - dvb
   - dvd           - vcd
   - cdda
   - v4l

 * demultiplexer plugins:
   - avi           - mpeg
   - mpeg_block    - mpeg_audio
   - mpeg_elem     - mpeg_pes
   - mpeg_ts       - qt/mpeg-4
   - film          - roq
   - fli           - smjpeg
   - idcin         - wav
   - wc3 mve       - voc
   - vqa           - aiff
   - cdda          - snd/au
   - yuv4mpeg2     - real/realaudio
   - ea wve        - raw dv
   - interplay mve - psx str
   - ws aud        - pva
   - vox           - nsf
   - nsv           - 4xm
   - ac3
   - asf
   - ogg
   - mng

 * video decoder plugins:
   - mpeg2           - ffmpeg
   - cyuv            - divx4
   - cinepak         - msvc
   - fli             - msrle
   - rgb             - yuv
   - roqvideo        - svq1
   - idcin           - smc
   - rpza            - wc3video
   - qtrle           - interplayvideo
   - dxr3_video
   - w32dll
   - png

 * audio decoder plugins:
   - a52/ra-dnet     - dts
   - mad             - adpcm
   - linear pcm      - roqaudio
   - log pcm         - gsm610
   - ffmpeg          - interplayaudio
   - nosefart
   - vorbis
   - w32dll
   - faad

 * subtitle decoder plugins:
   - spu             - spucc
   - sputext
   - dxr3_spu

 * post effect plugins:
  * planar video effects:
   - invert          - expand
   - eq              - eq2
   - boxblur         - denoise3d
   - unsharp         - tvtime
  * SFX:
   - goom            - oscope
   - fftscope        - mosaico

 * video driver plugins:
   - XShm (X11 shared memory)
   - SyncFB (for Matrox G200/G400 cards)
   - Xv (XVideo *static*)
   - OpenGL
   - fb (Linux framebuffer device)
   - sdl (Simple DirectMedia Layer)
   - dxr3 (Hollywood+ and Creative dxr3, both mpeg and non-mpeg video)
   - vidix (X11 and framebuffer support)

 * audio driver plugins:
   - oss (Open Sound System)
   - esd (Enlightened Sound Daemon)
   - arts (aRts - KDE soundserver)
---

chris@aragorn:/usr/src/xine-lib$ fakeroot debian/rules binary
[...] Complains about aalib and curl [...]
dpkg-shlibdeps: warning: could not find path for libxine.so.1
dpkg-shlibdeps: warning: could not find path for libxine.so.1
dpkg-shlibdeps: warning: could not find path for libxine.so.1
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Suggests}
dh_md5sums
dh_builddeb
dpkg-deb: building package `libxine-dev' in `../libxine-dev_1-rc0a-1_i386.deb'.
dpkg-deb: building package `libxine1' in `../libxine1_1-rc0a-1_i386.deb'.

   *** Install xine-lib to enable building xine-ui ***

root@aragorn:/debian# cp /usr/src/libxine1_1-rc0a-1_i386.deb selfmade/
root@aragorn:/debian# cp /usr/src/libxine-dev_1-rc0a-1_i386.deb selfmade/
root@aragorn:/debian# deb-update-selfmade 
root@aragorn:/debian# apt-get update
root@aragorn:/debian# apt-get remove xine # Version 0.5.irgendwas
root@aragorn:/debian# apt-get install libxine1 libxine-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  slang1-dev 
The following NEW packages will be installed:
  libxine-dev libxine1 slang1-dev 
[...]
root@aragorn:/debian# apt-get install aalib1-dev libcurl-dev
[...]
chris@aragorn:/usr/src/xine-ui$ ./autogen.sh 
[...]
checking for curl-config... /usr/bin/curl-config
checking for CURL-LIB version >= 7.10.2... 
*** An old version of CURL (7.9.5) was found.
*** You need a version of CURL newer than 7.10.2. The latest version of
*** CURL is always available from:
***        http://curl.sf.net/
***
*** If you have already installed a sufficiently new version, this error
*** probably means that the wrong copy of the curl-config shell script is
*** being found. The easiest way to fix this is to remove the old version
*** of CURL, but you can also set the CURL_CONFIG environment to point to the
*** correct copy of curl-config. (In this case, you will have to
*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf
*** so that the correct libraries are found at run-time))
no
*** All of curl dependent parts will be disabled ***
[...]

chris@aragorn:/usr/src/xine-ui$ fakeroot debian/rules binary
[...]
[-- NO CURL --]
[...]
mkdir -p debian/xine-ui/usr/share/doc/xine-ui
install -m 644 README debian/xine-ui/usr/share/doc/xine-ui
# these must not be compressed, or xine's online help will fail:
cd debian/xine-ui/usr/share/doc/xine-ui; \
mkdir -p ../../xine/doc; \
mv README.config_?? README_?? FAQ_?? ../../xine/doc; \
ln -s ../../xine/doc/* .
mv: cannot stat `FAQ_??': No such file or directory
dh_testversion 2
dh_testversion: This program is deprecated, you should use build dependencies instead.
dh_testversion: Something like: "Build-Depends: debhelper (>= 2)"
dh_testdir
dh_testroot
dh_installdocs
dh_installmenu
dh_installmime
dh_installchangelogs -k ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
chmod +x debian/shlibdeps.sh
debian/shlibdeps.sh xine-ui
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Suggests}
dh_md5sums
dh_builddeb
dpkg-deb: building package `xine-ui' in `../xine-ui_0.9.22-1_i386.deb'.

   *** Install built xine-ui ***

root@aragorn:/debian# cp /usr/src/xine-ui_0.9.22-1_i386.deb selfmade/
root@aragorn:/debian# deb-update-selfmade
root@aragorn:/debian# apt-get update
root@aragorn:/debian# apt-get install xine-ui
[...]

  *************************************
  *** XINE is built and installed!  ***
  *************************************

chris@aragorn:/usr/src/$ ln -s vdr-1.2.2 VDR
chris@aragorn:/usr/src/vdr-1.2.2$ REMOTE=LIRC DEBUG_OSD=1 make
chris@aragorn:/usr/src/vdr-1.2.2/PLUGINS/src$ ln -s /usr/src/vdr-xine_plugin-0.0.1/ xine
chris@aragorn:/usr/src/vdr-1.2.2$ make plugins
[...]
make[1]: Entering directory `/usr/src/vdr-xine_plugin-0.0.1'
g++ -O2 -Wall -Woverloaded-virtual `xine-config --cflags`  -c -DVIDEODIR=\"\" -DPLUGIN_NAME_I18N='"xine"' -I../../../include -I../../../../DVB/include xine.c
xine.c:9: vdr/plugin.h: No such file or directory
In file included from xine.c:10:
xineDevice.h:7: vdr/device.h: No such file or directory
In file included from xineDevice.h:8,
                 from xine.c:10:
xineLib.h:7: vdr/device.h: No such file or directory
xineLib.h:8: vdr/osdbase.h: No such file or directory
make[1]: *** [xine.o] Error 1
make[1]: Leaving directory `/usr/src/vdr-xine_plugin-0.0.1'
make: *** [plugins] Error 2

   *************************************************************************
   *** Einfuegen absoluter Pfade in /usr/src/vdr-xine-0.0.1/xine*.h      ***
   *** ----------------------------------------------------------------- ***
   ***  replaced "#include <vdr/foo.h>" with absolute paths in           ***
   ***     "/usr/src/vdr-xine-0.0.1/xine*.h"                             ***
   ***  and modified file "xineDevice.c" at line 163:                    ***
   ***  //char fifoName[] = VIDEODIR "/xine/device0.vdr";                ***
   ***    char fifoName[] = "/video" "/xine/device0.vdr";                ***
   *************************************************************************

root@aragorn:/usr/src/vdr-xine_plugin-0.0.1# make clean
root@aragorn:/usr/src/VDR# CC=gcc-3.2 CXX=g++-3.2 make plugins
[...]
root@aragorn:/video# mkdir xine
root@aragorn:/video# chown vdr:video xine; chmod g+rwx xine
root@aragorn:/video/xine# mkfifo device0.vdr device1.vdr device2.vdr device3.vdr
root@aragorn:/video/xine# chown vdr:video *; chmod g+rw xine
root@aragorn:/usr/src/VDR# su -c "/usr/local/bin/vdr -c /usr/local/vdr -Pxine" vdr 
vdr: ./PLUGINS/lib/libvdr-xine.so.1.1.27: cannot open shared object file: No such file or directory

root@aragorn:/usr/src/VDR# ln -s ../vdr-xine_plugin-0.0.1/libvdr-xine.so PLUGINS/lib/libvdr-xine.so.1.1.27
root@aragorn:/usr/src/VDR# su -c "/usr/local/bin/vdr -c /usr/local/vdr -Pxine" vdr

   *** Other Terminal ***

$ xine "vdr://video/xine/device0.vdr#demux:mpeg_pes"

   *********************
   *** !!! Works !!! ***
   ***  (partially)  ***
   *********************

Home | Main Index | Thread Index