ffmpeg如何移除mp3文件末尾的静音?

使用ffmpeg的silenceremove滤镜移除MP3文件首尾的静音,文件开头的静音能够移除,但文件末尾的一直没处理好
ffmpeg -i a.mp3 -af silenceremove=1:0:-50dB:1:0:-50dB out.mp3

采用上面的命令,结果把从中间静音开始到末尾的音频都抹掉了。

如果是 ffmpeg -i a.mp3 -af silenceremove=1:0:-50dB:-1:0:-50dB out.mp3

则把所有的静音全抹掉了。

命令的文档在: https://ffmpeg.org/ffmpeg-filters.html#silenceremove

哪位有经验?

http://blog.zinewow.com/post/192.html