first commit

This commit is contained in:
momen
2021-10-21 14:57:58 +08:00
parent ba65bf40aa
commit 8184931095
572 changed files with 3165246 additions and 305 deletions

View File

@@ -0,0 +1,13 @@
# 6.11.2 批量编码转换 .
安装影音转换工具sudo apt install ffmpeg
创建运行脚本touch conv.sh
右键设置可执行权限或者chmod +x conv.sh
用编辑器打开conv.sh添加以下内容参数可酌情修改:
#!/bin/bash
for file in `find . -type f -a -name '*.mov'`
do
ffmpeg -i "$file" -c:v h264 -b:v 3000k -r
:v 25 -c:a ac3 -b:a 192k -r:a 44100 -ac 2 "$(expr "$file" : '\(.*\)\.mov').mp4";
[ "x$?x" == "x0x" ] && rm "$file"
done