zoukankan      html  css  js  c++  java
  • VLC install for ubuntu

    1.安装依赖包

    #sudo apt-get build-dep vlc
    #sudo apt-get install libtool build-essential autoconf automake git-core libxcb-shm0-dev libxcb-xv0-dev libxcb-keysyms1-dev libx11-xcb-dev libcppunit-dev python-dev libboost-all-dev libdbus-1-dev libmad0-dev libavcodec-dev libavformat-dev libswscale-dev liba52-dev libxcb1-dev libxcb-shm0-dev libxcb-xv0-dev libx11-xcb-dev libqt4-dev libgcrypt-dev checkinstall nasm yasm libasm-dev
    /*sudo apt-get install cmake ffmpeg libcdparanoia-dev libcdio-paranoia-dev libcdio-cdda-dev qt4-dev-tools qt4-qmake*/
    #sudo apt-get update
    删除原有安装包:#sudo apt-get remove vlc vlc-data vlc-nox libvlc2 libvlccore2 mozilla-plugin-vlc vlc-plugin-jack vlc-plugin-pulse x264

    2.用Git下载源码

    #git clone git://git.videolan.org/vlc.git
    

    3.编译vlc,首先看源目录下的readme和install帮助文件,对编译过程有个了解,然后开始编译:

    cd ~/vlc/
    ./bootstrap
    //live555(可选)
    #cd ~/vlc/extras
    #wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz #tar -xvzf live555-latest.tar.gz
    #cd live
    #sh genMakefiles linux;make

    //x264(可选)
    #cd ~/vlc/extras
    #git clone git://git.videolan.org/x264.git x264-trunk
    #cd x264-trunk; ./configure --prefix=/usr/local/share/vlc/x264; make
    //ffmpeg(强制)
    #cd vlc/extras
    #git clone git://git.videolan.org/ffmpeg.git ffmpeg
    #cd ffmpeg
    #./configure --prefix=/usr/local/share/vlc/ffmpeg --enable-gpl --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-nonfree
    #make
    #./configure --prefix=/usr/local/share/vlc --enable-run-as-root --enable-debug --enable-x11 --enable-xvideo --enable-sdl --enable-avcodec --enable-avformat --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-live555 --with-live555-tree=~/vlc/extras/live --enable-x264 --with-x264-tree=~/vlc/extras/x264-trunk --with-ffmpeg-mp3lame --with-ffmpeg-faac --enable-caca --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses --enable-release --disable-nls --disable-optimizations --disable-gtk --disable-kde --disable-lua --disable-postproc --disable-glx --disable-cddax --disable-vcdx

    安装时若出现error可用新立得来安装相关依赖包
    #make
    #make install

    参考:

    http://wiki.videolan.org/User:J-b

    http://forum.ubuntu.com.cn/viewtopic.php?f=74&t=280513&sid=f9df9e80aa0e27a416f4da4f8763745d&start=0

  • 相关阅读:
    OC3(字符串,值类)
    OC2(初始化方法)
    OC1(类和对象)
    postgresql 时间戳格式为5分钟、15分钟
    centos添加ftp用户并禁止外切目录
    postgresql 判断日期是否合法
    tigerVNC的简单使用教程(CentOS的远程桌面连接)
    linux awk解析csv文件
    由windows向linux上传下载文件方法
    codeblocks linux编译告警乱码解决办法
  • 原文地址:https://www.cnblogs.com/wen12128/p/2711062.html
Copyright © 2011-2022 走看看