#!/usr/bin/env bash sudo dnf install youtube-dl ffmpeg mp3gain #find ffmpeg and mp3gain in rpmfusion # list the youtube addresses in, say, list.txt while read link; do youtube-dl $link done <list.txt for i in *mp4; do ffmpeg -i "$i" -vn \ -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \ "$i".mp3 done mp3gain -c -r *mp3这样视频和单独的音频就都有了。mp3gain normalizes the audios.
没有评论:
发表评论