[FFmpeg-user] How to extract audio from video without re-encoding?

Android PowerUser tschikruma at gmail.com
Mon Oct 11 11:49:15 EEST 2021


Android PowerUser <tschikruma at gmail.com> schrieb am Mo., 11. Okt. 2021,
10:38:

-vn -c:a copy
>
> Mp4 can remain as a container
>
> inhahe <inhahe at gmail.com> schrieb am Mo., 11. Okt. 2021, 10:35:
>
>> I want to extract audio from any arbitrary video file and have it save to
>> an audio file without re-encoding and without me knowing ahead of time
>> which audio file format to use.
>>
>> I don't know how to do it because ffmpeg requires an output filename with
>> an extension, which means I have to specify the audio file format within
>> the command. I want ffmpeg to choose the audio file format for me based on
>> the type of audio embedded in the video, much like the -x parameter does
>> in
>> youtube-dl.
>
>
M4A is probably the best container for all expenses.


More information about the ffmpeg-user mailing list