ffmpeg - Lossless trim OPUS audio files

To trim OPUS audio files losslessly:

ffmpeg -i "input.opus" -ss <start-second>.0 -to <stop-second>.0 -map 0:a -c copy "output.opus"

Fill in start-second and stop-second with the second to start and stop. For 3 minutes, the stop second is 180 (60 * 3).

This is a personal note. Last updated: 2017-04-05 17:30:10.


Don't forget to pay my friend a visit too. Joakim