1 Star 0 Fork 0

jxm/dosbox-x

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mtavi2wav.sh 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
Robert de Rooy 提交于 2023-04-15 15:39 . Cleanup Bash scripts.
#!/usr/bin/env bash
#
# Stupid multitrack audio hack for stupid Premiere.
# Turns a DOSBox-X multitrack AVI capture into several WAV files.
# Requires FFMPEG 3.0 or higher.
# get the track names. DOSBox-X always writes track names
declare -a NAMES
for x in $(ffprobe "${1}" 2>&1 | grep title | cut -d ':' -f 2 | sed -e 's/^ *//'); do
NAMES=("${NAMES[@]}" "${x}")
done
# do it
i=0
for name in "${NAMES[@]}"; do
name="${name// /_}" # in case of spaces
ffmpeg -i "${1}" -acodec copy -map 0:${i} -vn -y -f wav "${1}.${i}-${name}.wav" || break
i=$((i+1))
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/nowaits/dosbox-x.git
[email protected]:nowaits/dosbox-x.git
nowaits
dosbox-x
dosbox-x
master

搜索帮助