Skip to main content

If you want to extract the audio from a video file:

ffmpeg -i input.mkv -c:v libx264 -crf 18 -c:a aac output.mp4

This command converts the input.mkv file to output.mp4 , using H.264 for video and AAC for audio.