summaryrefslogtreecommitdiff
path: root/mplayer
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
commit9352995934adec8059077af241c35ccd1573bd80 (patch)
tree60286e266b3b31b90b952ac37e12a1ebbcdd2eb6 /mplayer
parentef3b84d78197acbd45d73a9b1ae44b47b5904290 (diff)
parent880bca260c4ce91554a49b2475232cf5c0ffd447 (diff)
downloadqipackages-fork-9352995934adec8059077af241c35ccd1573bd80.tar.gz
Merge branch 'master' of git://projects.qi-hardware.com/openwrt-packagesHEADmaster
Conflicts: links/Makefile
Diffstat (limited to 'mplayer')
-rw-r--r--mplayer/Makefile61
-rw-r--r--mplayer/README7
-rw-r--r--mplayer/files/input.conf2
3 files changed, 70 insertions, 0 deletions
diff --git a/mplayer/Makefile b/mplayer/Makefile
new file mode 100644
index 0000000..c10fb9e
--- /dev/null
+++ b/mplayer/Makefile
@@ -0,0 +1,61 @@
+#
+# OpenWrt
+#
+# This is free software, licensed under the GNU General Public License v2.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=MPlayer
+PKG_VERSION:=1.0rc3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.mplayerhq.hu/MPlayer/releases/
+PKG_MD5SUM:=0191ddb9c21620779838e53a4cca5ac1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/MPlayer
+ SECTION:=multimedia
+ CATEGORY:=Multimedia
+ TITLE:=MPlayer, the movie player
+ URL:=http://www.mplayerhq.hu
+ DEPENDS:=+libjpeg +libpng +directfb +zlib +libsdl +libfreetype +fontconfig +libiconv +libmad @BUILD_PATENTED
+endef
+
+define Package/MPlayer/description
+ MPlayer is a movie player which runs on many systems.
+endef
+
+CONFIGURE_ARGS := --target=mips \
+ --disable-mencoder \
+ --disable-pthreads \
+ --enable-cross-compile \
+ --prefix=/usr \
+ --with-sdl-config=$(STAGING_DIR)/usr/bin/sdl-config \
+ --with-freetype-config=$(STAGING_DIR)/host/bin/freetype-config \
+ --enable-rpath \
+ --extra-cflags="-I$(STAGING_DIR)/usr/include/directfb \
+ -I$(STAGING_DIR)/usr/lib/libiconv/include" \
+ --extra-ldflags="-L$(STAGING_DIR)/usr/lib/libiconv/lib" \
+ --host-cc=gcc \
+ --enable-fbdev \
+ --confdir=/usr/share/mplayer \
+ --enable-menu
+
+define Package/MPlayer/install
+ $(INSTALL_DIR) \
+ $(1)/usr/bin \
+ $(1)/usr/share/mplayer
+
+ $(INSTALL_BIN) \
+ $(PKG_BUILD_DIR)/mplayer \
+ $(1)/usr/bin/mplayer
+ $(INSTALL_DATA) \
+ $(FILES_DIR)/input.conf \
+ $(1)/usr/share/mplayer
+
+endef
+
+$(eval $(call BuildPackage,MPlayer))
diff --git a/mplayer/README b/mplayer/README
new file mode 100644
index 0000000..f9702c8
--- /dev/null
+++ b/mplayer/README
@@ -0,0 +1,7 @@
+1. prepare your avi files for Ben:
+
+for i in $(echo "*.avi"); do /usr/bin/mencoder -o "$i.mpg" -vf scale=320:-2 -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video:vpass=1:vbitrate=200 -ofps 24000/1001 -oac lavc -lavcopts acodec=mp2:abitrate=64 "$i" && /usr/bin/mencoder -o "$i.mpg" -vf scale=320:-2 -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video:vpass=2:vbitrate=200 -ofps 24000/1001 -oac lavc -lavcopts acodec=mp2:abitrate=64 "$i"; done
+
+2. play your files with Ben:
+
+mplayer -vo sdl -ac mad file.mpg
diff --git a/mplayer/files/input.conf b/mplayer/files/input.conf
new file mode 100644
index 0000000..b332778
--- /dev/null
+++ b/mplayer/files/input.conf
@@ -0,0 +1,2 @@
+F12 volume -1
+F11 volume 1