Is there any way I can improve the audio quality of a file whose pitch I modified? #538
Replies: 2 comments 2 replies
-
The answer to this is no, You can not improve the sound of a file through ffmpeg. A base method example of adjusting pitch is The sample rates are 44100. |
Beta Was this translation helpful? Give feedback.
-
you should go read the FFMPEG site. |
Beta Was this translation helpful? Give feedback.
-
I'm using the following commands to raise/lower the pitch of an audio file, but the problem is that the quality of the audio file seems kinda low after I use them. For comparison, I'm using the flutter_sound plugin to record and it has a simple pitch changing function that allows you to modify the pitch without saving the modified file to disk. The quality of this "temporarily modified" file sounds really good and by comparison the "permanently modified" file (created by ffmpegkit) doesn't sound so good. Could there maybe be something I'm missing in the commands I'm running? Or maybe is there a "polishing" command I can run after modifying the pitch?
await FFmpegKit.executeAsync('-i ' + MyAppFilesInProgressFileDir.path + currentMyAppFileFilename + ' -af asetrate=5000*1.5,aresample=5000,atempo=0.9 ' + MyAppFilesInProgressFileDir.path + currentMyAppFileFilename + 'High.mp3', ffmpegCallbackHigh);
await FFmpegKit.executeAsync('-i ' + MyAppFilesInProgressFileDir.path + currentMyAppFileFilename + ' -af asetrate=9250*0.8,aresample=9250,atempo=1.25 ' + MyAppFilesInProgressFileDir.path + currentMyAppFileFilename + 'Low.mp3', ffmpegCallbackLow);
Beta Was this translation helpful? Give feedback.
All reactions