[FFmpeg-user] How to extract audio from video without re-encoding?
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. How can I do this? Thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract audio from video without re-encoding?
-vn -c:a copy Mp4 kann als container bleiben inhahe 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. > > How can I do this? Thanks. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract audio from video without re-encoding?
Android PowerUser schrieb am Mo., 11. Okt. 2021, 10:38: -vn -c:a copy > > Mp4 can remain as a container > > inhahe 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. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract audio from video without re-encoding?
On Mon, Oct 11, 2021 at 10:49:15 +0200, Android PowerUser wrote: > Android PowerUser schrieb am Mo., 11. Okt. 2021, > 10:38: > -vn -c:a copy Agree. [...] > M4A is probably the best container for all expenses. I consider M4A quite restricted: https://en.wikipedia.org/wiki/Comparison_of_video_container_formats#Audio_coding_formats_support Matroska (MKV) is much more flexible, as is ffmpeg's own NUT format. Cheers, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".