afinfo exmaple.mp3 afplay example.mp3
ffmpeg -ss 60 -i input-audio.aac -t 15 -c copy output.aac
-ss 60 means, "start from second 60"
-t 15 audio output length in seconds.. in this case, 15 seconds..
# -- afplay example.mp3 --
$ ffplay -nodisp -loglevel panic example.mp3
# -- afinfo example.mp3 --
$ ffprobe example.mp3
# -- afinfo example.mp3 | grep "duration:" | cut -d' ' -f3 --
$ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 example.mp3
# convert mp3 file to a wav file
$ ffmpeg -i example.mp3 example.wav