Ffmpeg

From   

Conversion

ffmpeg -i input.mp3 output.ogg

Extract Audio

ffmpeg -i a1.mp4 -vn -acodec copy a1.aac

Trim

ffmpeg -i a1.aac -ss 00:00:42 -to 00:07:30 -c copy a2.aac