LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1244|回复: 1

ffmpeg-mt 怎么就是装不好,mplayer--svn没有装mencoder?

[复制链接]
发表于 2009-6-8 17:38:44 | 显示全部楼层 |阅读模式
git慢的不是一点点哦~~
说到底就是为了解决那个高清的问题……
发表于 2009-6-8 17:50:10 | 显示全部楼层
我现在用的:
ffmpeg-mt
  1. pkgname=ffmpeg-mt-git
  2. pkgver=20090607
  3. pkgrel=1
  4. pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix (Multithread build, git version)"
  5. arch=('i686' 'x86_64')
  6. url="http://ffmpeg.mplayerhq.hu/"
  7. license=('GPL')
  8. depends=('lame' 'sdl' 'libvorbis' 'faad2' 'faac' 'xvidcore' 'zlib' 'imlib2' 'x264' 'libtheora')
  9. makedepends=('git')
  10. provides=("ffmpeg=`date +%Y%m%d`")
  11. conflicts=('ffmpeg')
  12. source=()
  13. md5sums=()

  14. _gitroot="git://gitorious.org/ffmpeg/ffmpeg-mt.git"
  15. _gitname="ffmpeg-mt"

  16. build() {
  17.   cd ${srcdir}
  18.   msg "Connecting to GIT server...."

  19.   if [ -d ${srcdir}/$_gitname ] ; then
  20.     cd $_gitname && git pull origin
  21.     msg "The local files are updated."
  22.   else
  23.     git clone $_gitroot
  24.   fi

  25.   msg "GIT checkout done or server timeout"
  26.   msg "Starting make..."

  27.   cd ${srcdir}/$_gitname
  28.   rm -r libswscale
  29.   git clone git://git.mplayerhq.hu/libswscale

  30. ./configure \
  31.   --prefix=/usr \
  32.   --enable-gpl \
  33.   --enable-postproc \
  34.   --enable-shared \
  35.   --enable-pthreads \
  36.   --enable-network \
  37.   --enable-x11grab \
  38.   --enable-runtime-cpudetect \
  39.   --enable-libmp3lame \
  40.   --enable-nonfree \
  41.   --enable-swscale-alpha \
  42.   --enable-libvorbis \
  43.   --enable-libfaac \
  44.   --enable-libfaad \
  45.   --enable-libx264 \
  46.   --enable-libxvid \
  47.   --enable-libspeex \
  48.   --enable-libopenjpeg \
  49.   --enable-libtheora \
  50.   --enable-libfaac \
  51.   --enable-libfaac \
  52.   --enable-zlib \
  53.   --enable-bzlib \
  54.   --enable-optimizations \
  55.   --arch=`uname -m` \
  56.   || return 1

  57.   make || return 1
  58.   make doc/ff{mpeg,play,server}.1 || return 1

  59.   make DESTDIR="$pkgdir" install || return 1
  60.   make DESTDIR="$pkgdir" install-man || return 1

  61. }
复制代码

mplayer-mt-oss-git
  1. # Maintainer: MaJia321 < majia321@gmail.com >
  2. # The package is based on < http://aur.archlinux.org/packages.php?ID=25609 > .I modified it for my own taste. Notes :
  3. # 1 Enable DVD menus is only as an experiment. You may need to delete all content about libdvdnav and libdvdread.
  4. # 2 'wqy-zenhei' is a Chinese Outline Font. You can replace it with 'ttf-dejavu' like other packages.
  5. pkgname=mplayer-mt-oss-git
  6. pkgver=20090607
  7. pkgrel=1
  8. pkgdesc="A movie player for linux (multithreaded + ossaudio build, git)"
  9. arch=('i686' 'x86_64')
  10. depends=('libxv' 'libmad' 'giflib' 'cdparanoia' 'sdl' 'lame' 'libtheora' 'xvidcore'
  11.                'zlib' 'libmng' 'libxss' 'libgl' 'x264-git' 'faac' 'libdca' 'oss'
  12.                'wqy-zenhei' 'speex' 'libxvmc' 'libdvdnav' 'libdvdread')
  13. license=('GPL')
  14. url="http://www.mplayerhq.hu/"
  15. makedepends=('git')
  16. backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
  17. provides=('mplayer')
  18. conflicts=('mplayer')
  19. replaces=()
  20. install=mplayer.install
  21. source=()
  22. d5sums=()

  23. _gitroot="git://repo.or.cz/mplayer"
  24. _gitname="mplayer"

  25. build() {
  26.   # Custom CFLAGS break the mplayer build
  27.   unset CFLAGS

  28.   cd ${srcdir}
  29.   if [[ -d $_gitname ]]; then
  30.     cd $_gitname
  31.     git pull || return 1
  32.   else
  33.     git clone $_gitroot $_gitname && cd $_gitname && git merge origin/mt || return 1
  34.   fi
  35.   git submodule update --init || return 1
  36.   
  37.    cd ${srcdir}
  38.    msg "Add libdvdnav + libdvdread Support"
  39.    msg "Connecting to libdvdnav + libdvdread svn server...."
  40.    svn co svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src libdvdnav
  41.    svn co svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src libdvdread4
  42.   
  43.   cp -r $_gitname $_gitname-build
  44.   cp -r libdvdnav libdvdread4 $_gitname-build/
  45.   cd $_gitname-build

  46.   msg "Starting make..."

  47.   ./configure --prefix=/usr --confdir=/etc/mplayer --disable-gui --enable-ossaudio \
  48.   --disable-jack --disable-esd --disable-openal --disable-sunaudio \
  49.   --disable-pulse --disable-sgiaudio --disable-alsa --disable-arts --disable-nas \
  50.   --disable-win32waveout --disable-win32dll --enable-inet6 \
  51.   --disable-tv-bsdbt848 --enable-tv-teletext --disable-pvr --disable-rtc --disable-smb --disable-live --disable-nemesi \
  52.   --enable-gl --enable-sdl --disable-aa --disable-caca --disable-ggi --disable-ggiwmh --disable-directx \
  53.   --disable-dxr2 --disable-dxr3 --disable-ivtv --enable-v4l2 --disable-dvb --disable-dvbhead --disable-lirc \
  54.   --disable-vidix --disable-vidix-pcidb --disable-dhahelper --disable-svgalib_helper --disable-dga2 --disable-dga1 \
  55.   --disable-mga --disable-xmga --disable-vm --disable-xinerama --disable-zr --disable-directfb \
  56.   --enable-tv-v4l1 --enable-tv-v4l2 --enable-x11 --enable-xv --enable-fbdev \
  57.   --enable-gif --enable-png --enable-jpeg \
  58.   --enable-ass --enable-freetype --enable-menu  --enable-pthreads \
  59.   --enable-runtime-cpudetection --enable-largefiles --enable-mencoder \
  60.   --language=en,zh_CN --enable-radio --enable-radio-capture \
  61.   --enable-faad --disable-toolame --disable-twolame \
  62.   --enable-speex --enable-liba52 --enable-libvorbis --enable-mp3lame --enable-mad --enable-theora --enable-musepack \
  63.   --enable-dvdnav --enable-dvdread \
  64.   --with-dvdnav-config=/usr/bin/dvdnav-config  --with-dvdread-config=/usr/bin/dvdread-config || return 1

  65.   make && make DESTDIR=${pkgdir} install || return 1
  66.   cp etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/
  67.   mkdir -p ${pkgdir}/usr/share/mplayer
  68.   #ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf
  69.   ln -s /usr/share/fonts/wenquanyi/wqy-zenhei/wqy-zenhei.ttc ${pkgdir}/usr/share/mplayer/subfont.ttf
  70.   git clean -f
  71.   rm -fr ${srcdir}/$_svnmod-build
  72. }
复制代码

mplayer.install
  1. post_install() {
  2. echo " => To enable threading run : mplayer -lavdopts threads=N file.mkv"                                 
  3. echo " -> where N is the number of threads you want to use."
  4. echo " => Also you can add it to the config by running :"
  5. echo " -> echo "lavdopts=threads=$(cat /proc/cpuinfo | grep -c cores)" >> $HOME/.mplayer/config "
  6. echo " -> #Enable multithreading in mplayer, with 1 thread per core"
  7. }

  8. post_upgrade() {
  9.   post_install $1
  10. }
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表