vpn

vps 流量重置

19 09时点还没重置

19 12:09分已重

安装v2ray

1
bash <(curl -s -L https://git.io/v2ray.sh)

vim /etc/profile
在最后一行写上,
export V2RAY_VMESS_AEAD_FORCED=false
退出保存。

source /etc/profile 使其即时生效。

MTProxy

1
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh

Brook

1
2
3
4
5
6
7
8
9
10
11
## https://github.com/txthinking/brook
wget https://github.com/txthinking/brook/releases/download/v20190601/brook

# chmod
chmod u+x brook

### Shadowsocks
nohup brook ssserver -l :3072 -p Admin123# > /dev/null 2>&1 &

# brook server
nohup brook server -l :2222 -p Admin123# > /dev/null 2>&1 &

youtube-dl

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

# youtube
wget http://www.youtube-dl.org/downloads/latest/youtube-dl
chmod u+x youtube-dl

# 需要安装yasm
# wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
# tar -zxvf yasm-1.3.0.tar.gz
# cd yasm-1.3.0
# ./configure
# make && make install

# install ffmpep
# wget https://ffmpeg.org/releases/ffmpeg-4.1.3.tar.bz2
# tar -zxvf ffmpeg-4.1.tar.gz
# cd ffmpeg-4.1
# ./configure --prefix=/usr/local/ffmpeg
# make && make install

#vi /etc/profile
#在最后PATH添加环境变量:
PATH=$PATH:/usr/local/ffmpeg/bin
export PATH

#保存退出
source /ect/profile 设置生效

安装 ffmpeg

1.升级系统

1
2
3
sudo yum install epel-release -y
sudo yum update -y
sudo shutdown -r now

2.安装Nux Dextop Yum 源

由于CentOS没有官方FFmpeg rpm软件包。但是,我们可以使用第三方YUM源(Nux Dextop)完成此工作。

  1. CentOS 7
1
2
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
  1. CentOS 6
1
2
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

3.安装FFmpeg 和 FFmpeg开发包

1
sudo yum install ffmpeg ffmpeg-devel -y

4.测试是否安装成功

1
ffmpeg

5.如果你想了解更多关于FFmpeg使用方面的资料,可以输入:

1
ffmpeg -h

youtube-dl

youtube-dl -F xxx 显示视频信息

查询参数是 -F