mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2025-04-21 12:27:27 +03:00
mplayer: install config from withing mplayer package
This commit is contained in:
@@ -163,11 +163,17 @@ define Package/MPlayer/install
|
||||
$(PKG_BUILD_DIR)/mplayer \
|
||||
$(1)/usr/bin/mplayer
|
||||
$(INSTALL_DATA) \
|
||||
$(FILES_DIR)/input.conf \
|
||||
$(FILES_DIR)/input.conf $(FILES_DIR)/config \
|
||||
$(1)/usr/share/mplayer
|
||||
|
||||
endef
|
||||
|
||||
define Package/MPlayer/postinst
|
||||
#!/bin/sh
|
||||
mkdir $${IPKG_INSTROOT}/root/.mplayer
|
||||
cp $${IPKG_INSTROOT}/usr/share/mplayer/config $${IPKG_INSTROOT}/root/.mplayer/config
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,MPlayer))
|
||||
|
||||
|
||||
|
||||
14
mplayer/files/config
Normal file
14
mplayer/files/config
Normal file
@@ -0,0 +1,14 @@
|
||||
sub-fuzziness=1
|
||||
utf8=1
|
||||
volume=10
|
||||
vo=cvidix
|
||||
screenw=320
|
||||
screenh=240
|
||||
fs=1
|
||||
ac=tremor
|
||||
# disabling console output reduces CPU load by 10% (floating point math used?)
|
||||
# not visible for videos anyways. Can still use -noquiet on audio files.
|
||||
quiet=1
|
||||
# playing back 48kHz sample rate audio needs downsampling on the nanonote
|
||||
# this option makes mplayer use a low-quality but faster sample-rate filter:
|
||||
af-adv=force=2
|
||||
Reference in New Issue
Block a user