summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile34
-rw-r--r--README24
-rw-r--r--README.DE29
3 files changed, 69 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index b7b7ee8..5df487f 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,22 @@ VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print
ARCHIVE = $(PLUGIN)-$(VERSION)
PACKAGE = vdr-$(ARCHIVE)
+### The version number of VDR (taken from VDR's "config.h"):
+
+ifdef FFMDIR
+FFMVERSION = $(shell grep "\#define FFMPEG_VERSION_INT " $(FFMDIR)/libavcodec/avcodec.h | \
+ cut -d "x" -f 2 )
+else
+ifeq (,$(findstring 000,$(FFMVERSION)))
+FFMVERSION = $(shell grep "\#define FFMPEG_VERSION_INT " /usr/include/ffmpeg/avcodec.h 2>/dev/null | \
+ cut -d "x" -f 2 )
+endif
+ifeq (,$(findstring 000,$(FFMVERSION)))
+FFMVERSION = $(shell grep "\#define FFMPEG_VERSION_INT " /usr/local/include/ffmpeg/avcodec.h 2>/dev/null | \
+ cut -d "x" -f 2 )
+endif
+endif
+
### Includes and Defines (add further entries here):
INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I.
@@ -48,18 +64,26 @@ endif
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
DEFINES += -D_GNU_SOURCE
-LIBS += liboutput/liboutput.a libimage/libimage.a -L$(FFMDIR)/libavcodec -lavcodec -lz
+LIBS += liboutput/liboutput.a libimage/libimage.a
-ifdef FFMDIR
-DEFINES += -DFFMDIR
-endif
ifdef FFMDIR
LIBS += -L$(FFMDIR)/libavcodec
+ifneq ($(FFMVERSION),000408)
+LIBS += -L$(FFMDIR)/libavformat -L$(FFMDIR)/libavutil
+endif
+endif
+
+LIBS += -lavcodec
+ifneq ($(FFMVERSION),000408)
+LIBS += -lavformat -lavutil
endif
-LIBS += -lavcodec -lz
+LIBS += -lz
+ifdef FFMDIR
+DEFINES += -DFFMDIR
+endif
### The object files (add further files here):
diff --git a/README b/README
index d06bd8a..ab00481 100644
--- a/README
+++ b/README
@@ -10,7 +10,7 @@ Former project's homepage: http://www.burwieck.net/vdr (dead?)
Maintainer: Andreas Brachold <vdr04-at-deltab.de>
-Project homepage: http://deltab.de/vdr/image.html
+Project homepage: http://vdr-image.berlios.de/
Some files are from the mp3/MPlayer Plugin. Thanks to Stefan Hülswitt
@@ -19,13 +19,11 @@ Required:
-----------
- fullfeatured dvb card
- vdr 1.2.6+, series vdr 1.3.0 work too
-- to compile plugin depends package libavcodec1-dev (tested with ffmpeg-0.4.8)
-- to run your will need package netpbm and libavcodec1*
+- to compile plugin depends package libavcodec1-dev (tested with ffmpeg-0.4.8/ffmpeg-0.4.9pre1/ffmpeg-cvs)
+- to run your will need package netpbm and libavcodec1
- netpbm 10.0+ (check for "anytopnm", if it does not exist upgrade/install netpbm)
- not necessary but useful utils/file (file) for better imagetyp detection, used by anytopnm
-*) it's use libavcodec.so, also static linking possible with compile #> make plugin FFMPEG_STATIC=1
-
Important Note:
if tools are installed by source absolutely also for it provide that the
programs (anytopnm pnmscale pnmfile pnmcut pnmflip) are inside the search-path,
@@ -35,10 +33,26 @@ Install:
------------
Install the plugin part as usual (see vdr docs if you not know already).
+ cd $VDRSOURCE/PLUGINS/src
+ tar -xzvf vdr-image-x.x.x.tgz
+ ln -s image-x.x.x image
+
Compile depends package libavcodec1-dev, libavcodec1 or also know ffmpeg.
later for run your will only need libavcodec1(libavcodec.so) and netpbm.
("apt-get install libavcodec1-dev libavcodec1 netpbm" on Debian)
+ to compile
+
+ cd $VDRSOURCE
+
+ make plugins
+ make plugins-install
+
+ or if you need, defined a ffmpeg source folder
+
+ make plugins FFMDIR=/usr/src/ffmpeg-cvs
+ make plugins-install
+
In the ./examples directory you can find a sample file for
imagesources.conf, change this file if needed and place it in
the plugins folder in your config folder (the video folder by default).
diff --git a/README.DE b/README.DE
index e9edad6..7259cf9 100644
--- a/README.DE
+++ b/README.DE
@@ -10,24 +10,20 @@ Former project's homepage: http://www.burwieck.net/vdr (dead?)
Maintainer: Andreas Brachold <vdr04-at-deltab.de>
-Project homepage: http://deltab.de/vdr/image.html
-
+Project homepage: http://vdr-image.berlios.de/
Einige Dateien stammen vom mp3/MPlayer Plugin, der danke geht an Stefan Hülswitt
-
Benötigt:
-----------
- Full-Featured DVB Karte
- vdr 1.2.6+
-- das Plugin ist abhängig vom Paket libavcodec1-dev zu übersetzen, (getestet mit ffmpeg-0.4.8)
-- und Paket netpbm sowie libavcodec1* zur Ausführung
+- das Plugin ist abhängig vom Paket libavcodec1-dev zu übersetzen, (getestet mit ffmpeg-0.4.8/ffmpeg-0.4.9pre1/ffmpeg-cvs)
+- und Paket netpbm sowie libavcodec1 zur Ausführung
- netpbm 10.0+ (prüfe ob das Tool "anytopnm" existiert)
- nicht notwendig, aber sinnvoll utils/file (file) für bessere Bildtyperkennung, mit anytopnm
-*) es wird libavcodec.so nachgeladen, aber auch statisches Linken ist mit möglich mit Kompilierung per #> make plugin FFMPEG_STATIC=1
-
WICHTIG,
wenn Tools von Source installiert werden, unbedingt auch dafür sorgen das
die Programme (anytopnm pnmscale pnmfile pnmcut pnmflip) innerhalb des Such-Pfade liegen,
@@ -35,12 +31,29 @@ ansonsten die Variable "PATH" innerhalb der Datei imageplugin.sh anpassen.
Installation:
------------------
-Das plugin wird wie alle plugins installiert (siehe vdr Dokumentation).
+Das Plugin wird wie alle Plugins installiert (siehe im Zweifel in vdr Dokumentation nach).
+
+ cd $VDRSOURCE/PLUGINS/src
+ tar -xzvf vdr-image-x.x.x.tgz
+ ln -s image-x.x.x image
Das Kompilieren ist abhängig vom Paket libavcodec1-dev, libavcodec1, aber auch bekannt als ffmpeg.
Später zum Ausführen wird nur noch libavcodec1(libavcodec.so) und "netpbm" benötigt.
("apt-get install libavcodec1-dev libavcodec1 netpbm" in Debian)
+ zum Übersetzen
+
+ cd $VDRSOURCE
+
+ make plugins
+ make plugins-install
+
+ oder wenn benötigt, definiere das ffmpeg source Verzeichnis
+
+ make plugins FFMDIR=/usr/src/ffmpeg-cvs
+ make plugins-install
+
+
Im ./examples Ordner liegt eine Beispiel imagesources.conf, dies ggf.
anpassen und in das plugins Verzeichnis des config Ordners legen.