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

Meino.Cramer at gmx.de Meino.Cramer at gmx.de
Thu Mar 26 04:37:16 CET 2015


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




More information about the ffmpeg-user mailing list