The following command accepts an mp4 video file (FILE.mp4) and extracts the audio portion into a new file (OUTPUTFILE.mp3) as an mp3:
ffmpeg -i FILE.mp4 -acodec libmp3lame OUTPUTFILE.mp3
Linux Shell Scripting Cookbook - Third Edition
by Shantanu Tushar
Published by
Packt Publishing, 2017
The following command accepts an mp4 video file (FILE.mp4) and extracts the audio portion into a new file (OUTPUTFILE.mp3) as an mp3:
ffmpeg -i FILE.mp4 -acodec libmp3lame OUTPUTFILE.mp3