|
楼主 |
发表于 2024-9-17 17:57:20
|
显示全部楼层
江苏省连云港市
你提供的命令效果不太理想,网上找的教程跑不通,大神帮忙看下:
查看原音视频文件音轨频率
ffmpeg -i "Solo Of The Week - 27 Guns N' Roses - Sweet Child O' mine.mkv"
命令执行后找到音轨的Stream,频率为48000Hz;
升降调操作
1
# 升半音
2
ffmpeg -i "Solo Of The Week - 27 Guns N' Roses - Sweet Child O' mine.mkv" -filter_complex "asetrate=48000*2^(1/12),atempo=1/2^(1/12)" "output.mkv"
3
4
# 升全音
5
ffmpeg -i "Solo Of The Week - 27 Guns N' Roses - Sweet Child O' mine.mkv" -filter_complex "asetrate=48000*2^(2/12),atempo=1/2^(2/12)" "output.mkv"
6
7
# 降半音
8
ffmpeg -i "Solo Of The Week - 27 Guns N' Roses - Sweet Child O' mine.mkv" -filter_complex "asetrate=48000*2^(-1/12),atempo=1/2^(-1/12)" "output.mkv"
9
10
# 降全音
11
ffmpeg -i "Solo Of The Week - 27 Guns N' Roses - Sweet Child O' mine.mkv" -filter_complex "asetrate=48000*2^(-2/12),atempo=1/2^(-2/12)" "output.mkv"
在视频中提取音频
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3 |
|