[FFmpeg-user] Copying audio from a video into a separate file with same codec

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Mar 26 10:03:13 CET 2015


 <Meino.Cramer <at> gmx.de> writes:

> is there a way to copy the audio track 
> from a video file into another file without 
> changing the codec of the audio track?

Yes, at least in nearly all cases.

> I found this on the net:
> ffmpeg -i video.flv -ab 160k -ac 2 -ar 44100 -vn audio.mp3

Complete, uncut console output missing.
(Yes, this is needed if you want a working 
command line which is apparently what you 
want since we cannot guess the actual 
audio codec of your input file. Apart from 
that, you should always provide it to make 
the lives of those who answer here easier.)

Carl Eugen



More information about the ffmpeg-user mailing list