Audio files | Get length in seconds
# sox MYFILE.mp3 -n stat
# sox MYFILE.mp3 -n stat
Install libsox-fmt-mp3
EXAMPLE: cuts 10 seconds from the very beginning and recodes to 256 kbit/s sox file.in.mp2 -C 256 file.out.mp2 trim 10
install libsox-fmt-mp3