get video audio ffmpeg code example
Example 1: extract audio from video ffmpeg
ffmpeg -i sample.avi -q:a 0 -map a sample.mp3
Example 2: extract audio from video ffmpeg
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac
ffmpeg -i sample.avi -q:a 0 -map a sample.mp3
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac