FFMPEG change Tone Frequency (Pitch Audio)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 06:19:32

问题


How can i change the Tone frequency. This Example only pitch it by keeping the old tone frequency and only decrease the length of File.

For Example i have a constant 100 Herz tone (as mp3) and i want it to change 90 Herz

 ffmpeg -i 100h.mp3 -af atempo=100/90 90h.mp3

This Example not works for me, it sounds same

inputfile Mp3
outputfile Mp3


回答1:


Basic method is

ffmpeg -i 100h.mp3 -af asetrate=44100*0.9,aresample=44100 90h.mp3

where 44100 should be replaced with the input sample rate.




回答2:


finally this works by keeping also the audio length

 ffmpeg -i test.mp3 -af asetrate=44100*0.9,aresample=44100,atempo=1.1 output.mp3 


来源:https://stackoverflow.com/questions/53374590/ffmpeg-change-tone-frequency-pitch-audio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!