I have an FFmpeg command to trim audio:ffmpeg -ss 01:43:46 -t 00:00:44.30 -i input.mp3 output.mp3The problem I have with this command is that option -t requires a duration (in seconds) from 01:43:46. I want to trim audio using start/stop times, e.g. between 01:43:46 and 00:01:45.02.Is this possible?
Trim audio file using start and stop times
audio;ffmpeg;trim
ffmpeg seems to have a new option -to       -to position (output)       Stop writing the output at position.  position must be a time duration specification, see the Time       duration section in the ffmpeg-utils(1) manual.       -to and -t are mutually exclusive and -t has priority.Sample command with two time formatsffmpeg -i file.mkv -ss 20 -to 40 -c copy file-2.mkvffmpeg -i file.mkv -ss 00:00:20 -to 00:00:40 -c copy file-2.mkvThis should create a copy (file-2.mkv) of file.mkv from the 20 second mark to the 40 second mark.