Linux编译安装python3

python官网下载python3的源码包,网址:https://www.python.org/

  1. wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
  2. tar -xvzf Python-3.6.4.tgz
  3. cd Python-3.6.4
  4. ./configure --prefix=/usr/python
  5. make
  6. make install
  7. ln -s /usr/python/bin/python3 /usr/bin/python3
  8. ln -s /usr/python/bin/pip3 /usr/bin/pip3

ffmpeg安装及基本用法

下载地址

 

    1. wget http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
    2. tar xvf ffmpeg-git-64bit-static.tar.xz
    3. cd ffmpeg-git-20160702-64bit-static/
    4. mv ff* /usr/local/bin/
    5. mv qt-faststart /usr/local/bin/

 

测试:

ffmpeg -i "test.wmv" -b:v 2523k -b:a 54k -s 1920x1080 -codec:v libx264 -codec:a aac -movflags +faststart "test.mp4"

转码时输出日志:

FFREPORT=file="ffmpeg.log":level=32  ffmpeg -i "test.wmv" -b:v 2523k -b:a 54k -s 1920x1080 -codec:v libx264 -codec:a aac -movflags +faststart "test.mp4"