安装或更新Python3.11
Centos7默认没有安装Python3,或者默认安装了Python3.68
- 卸载Python3.68
- 安装Python3.11
yum -y install gcc zlib zlib-devel libffi libffi-devel
yum -y install readline-devel
yum -y install openssl-devel openssl11 openssl11-devel
export CFLAGS=$(pkg-config --cflags openssl11)
export LDFLAGS=$(pkg-config --libs openssl11)
wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz
tar -zxvf Python-3.11.0.tgz
cd Python-3.11.0/
./configure --prefix=/usr/python --with-ssl
make & make install
ln -s /usr/python/bin/python3 /usr/bin/python3
ln -s /usr/python/bin/pip3 /usr/bin/pip
python3 -m pip install --upgrade pip
# 或
pip install --upgrade pip --ignore-installed
echo 'export PATH="/usr/python/bin:$PATH"' >> .bashrc
source .bashrc
python3 -V
pip3 -V
ssh-keygen
cat ~/.ssh/id_rsa.pub
# GITEE添加公钥
ssh-copy-id root@aliyun
ssh -T [email protected]
git config --global user.name 'rtian'
git config --global user.email '[email protected]'
git clone [email protected]:rtian/python.git
git clone [email protected]:rtian/tv.git
curl -X HEAD -I http://tonkiang.us/
# 安装ffmpeg
yum install -y epel-release rpm
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum repolist
yum install -y ffmpeg
ffmpeg -version
ffprobe -version
ffprobe -print_format json -show_format -show_streams http://120.194.237.190:808/hls/1/index.m3u8ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=noprint_wrappers=1:nokey=1 input.mp4
-v error: 只显示错误消息,以减少输出。
-select_streams v:0: 选择第一个视频流。如果你的视频有多个视频流,你可能需要调整这个参数。
-show_entries stream=width,height: 显示视频流的宽度和高度。
-of default=noprint_wrappers=1:nokey=1: 以默认格式输出,但省略包装器(如[STREAM])和键名。
input.mp4: 你要分析的视频文件。ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0:s=, http://120.194.237.190:808/hls/1/index.m3u8curl cip.cc
curl ipinfo.io
curl ifconfig.me
curl ipinfo.io/ip
curl myip.ipip.net
curl cip.cc
curl members.3322.org/dyndns/getip
「一键投喂 软糖/蛋糕/布丁/牛奶/冰阔乐!」
(๑>ڡ<)☆谢谢老板~
使用微信扫描二维码完成支付
暂时无法评论哦~
暂无评论