-
ffmpeg改变音频采样率和声道命令
ffmpeg -i 1.wav -ar 8000 -ac 1 output.wav
-ar 音频采样率
-ac 音频声道 1 表示单声道2023-07-17 23:38:03 1
-
使用FFmpeg直播推流命令:ffmpeg -re -i "input.mp4" -c copy -f flv "rtmp"。
2023-05-14 12:38:50 0
-
nvidia-smi查看NVIDIA显卡信息
2023-05-14 12:12:09 0
-
conda常用的命令
创建python虚拟环境
conda create -n ChatGLM python=3.10
激活虚拟环境
conda activate ChatGLM
退出当前虚拟环境
conda deactivate
查看虚拟环境
conda env list
删除虚拟环境
conda remove -n ChatGLM --all2023-05-06 18:28:50 1
-
Linux中给用户设置简单密码会报下面的错误
The password fails the dictionary check - it is too simplistic/systematic
解决方案
vim /etc/security/pwquality.conf
把dictcheck = 0注释去掉2023-05-06 17:39:54 1
-
ffmpeg学习教程https://ruanyifeng.com/blog/2020/01/ffmpeg.html
2023-04-29 16:43:00 1
-
在 Linux 中要想下载,我们可以使用 wget 命令下载。
wget -b -c -t 3 url
-b:后台下载
-c:断开会自动续连
-t:后面的数字表示尝试连接的次数,如果填0,则表示一直尝试连接
url:要下载的http地址2023-04-28 19:51:50 2
-
安装aria2
yum install aria2
使用aria2c下载
aria2c -s 16 -x 16 -c --input-file=files
-s 16 表示开启16个线程
-x 16 表示分16段
-c 表示断点续传
--input-file=files 表示读取files文件中的下载地址实现批量下载2023-04-28 19:47:19 2
-
使用ffmpeg剪裁视频
格式: -vf crop=w:h:x:y
-vf表示简单过滤模式
w表示要剪裁视频的宽度
h表示要剪裁视频的高度
x和y表示要剪裁视频的起点坐标
例如:ffmpeg -i input.mp4 -vf crop=iw:ih-76:0:76 output.mp4 -y
iw表示源视频宽度
ih表示源视频高度2023-04-28 19:39:22 3
-
在Linux上如何下载网上的资料,可以使用下面的命令下载资料。
wget -b 你要下载资料的url -t 3 -c
-b是后台下载
-t 3是尝试3次连接,如果填0,是一直尝试连接
-c断点续传下载文件
具体可以参考文献https://blog.csdn.net/qq_36412526/article/details/1049544322023-04-28 11:25:33 3
Hi,Friend
热爱生活,热爱程序