eladg / ffmpeg-by-example

Creative Commons Attribution 4.0 International
8 stars 5 forks source link

Extract an AAC audio track from a video file - FFmpeg By Example #45

Open eladg opened 2 years ago

eladg commented 2 years ago

https://www.ffmpegbyexample.com/examples/0484nafv/extract_an_aac_audio_track_from_video_file/

Assuming video.mp4 has an audio stream encoded with AAC, the following command will stream-copy that stream to audio.aac. The -c:a copy parameter will instruct ffmpeg to copy the audio stream instead of re-encoding it. The -vn parameter will ignore the video stream of all inputs.