This script decribes how to easily extract audio from video with ffmpeg.

Install ffmpeg

On Windows and macOS : go to FFmpeg website and download the build
On Linux : sudo apt install ffmpeg in a terminal

Code

In command line :

ffmpeg -i input.mp4 output.mp3

input: video source file
output: audio file you want to ouput to

 

See my other tutorials