簡化ffmpeg對音頻操作的腳本:au
au
是一個小的腳本,能夠簡化ffmpeg對一些常見音頻的操作如:在一組BPM上切割節拍的特定數目,音量調整,文件合并,各種文件格式之間的轉換。
安裝
- 安裝 ffmpeg (Linux用戶可能還需要安裝 PHP )
- 保存 au 文件至你的
~/bin
文件夾
-
chmod the file to be executable:
chmod u+x ~/bin/au
You're all set.
可用的命令
au cut input.wav 120 16 ouput.wav # cut file to specified bpm*beats for making loops
au join file1.wav file2.wav [...file3.wav] output.wav # join files together to make one audio file
au vol input.wav 0.5 output.wav # adjust the volume of a file
au mp3 input.wav output.mp3 # convert to an mp3 of the same name
au wav input.aif output.wav # convert to a wav of the same name
au mono stereo.wav mono.wav # convert stereo to mono
au stereo mono.wav stereo.wav # convert mono to stereo
示例
# cut verses.wav to 4 bars at 132bpm
au cut verses.wav 132 16 verses-cut.wav
# convert aif to wav (saves to verses.wav)
au wav verses.aif
# halve the volume of a clip (overwrites verses.aif)
au vol verses.aif 0.5
# join some files together as song.wav
au join verse.wav chorus.wav verse.wav song.wav
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!