Quantcast
Channel: How to remove last 4 seconds of MP3 file? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 5

Answer by TheScriptTiger for How to remove last 4 seconds of MP3 file?

$
0
0

You can simply use a combination of the areverse and atrim filters. Use the areverse filter to reverse the audio, and then use the atrim filter to trim off the first 4 seconds (which is actually the last 4 seconds), and then use the areverse filter again one last time and you're done.

ffmpeg -i input.mp3 -af areverse,atrim=4,areverse output.mp3

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>