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

DopeLabs dopelabs at dubstep.fm
Thu Mar 26 04:42:12 CET 2015


you might try something like

ffmpeg -i input.flv -vn -c:a copy output

use a file extension to match the current audio codec… 



> On Mar 25, 2015, at 8:37 PM, meino.cramer at gmx.de wrote:
> 
> Hi,
> 
> is there a way to copy the audio track from a video file
> into another file without changing the codec of the audio track?
> 
> I found this on the net:
> ffmpeg -i video.flv -ab 160k -ac 2 -ar 44100 -vn audio.mp3
> 
> but this reencodes to mp3...
> 
> Or this one
> ffmpeg.exe -i input.flv -vcodec copy -an output.h264
> 
> which /seems/ to create a file with h264 codec...
> 
> Or am I simply only confused here ... ? ;)
> 
> What is the right way to do this?
> 
> Thank you very much in advance for any help!
> Best regards,
> Meino
> 
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list