Skip to content

Instantly share code, notes, and snippets.

@shuiRong
Created June 11, 2021 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuiRong/189b44886580d96f0a5ced0920e5f27c to your computer and use it in GitHub Desktop.
Save shuiRong/189b44886580d96f0a5ced0920e5f27c to your computer and use it in GitHub Desktop.
shell 脚本 批量 遍历 视频 mp4 ffmpeg 转换 mp3
#!/bin/bash
i=1
for name in *.mp4; do
ffmpeg -i "$name" -vn "mp3/神探狄仁杰OST ${i%.*}.mp3"
let "i++"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment