ffmpeg -i video.mp4 -vn -acodec copy audio.aac Here’s a short explanation on what every parameter does:
-ioption specifies the input file.-vnoption is used to skip the video part.-acodec copywill copy the audio stream keeping the original codec.