PDA

View Full Version : [SOLVED] Possible to Extract Audio From Video With FFmpeg?



dniMretsaM
August 29th, 2011, 10:05 PM
Is it possible to convert an video file (will be .flv) to an audio-only file (.ogg or whatever) with FFmpeg? If so, do I have to add anything to the code or just specify the output as an audio file?

ron999
August 29th, 2011, 10:40 PM
Is it possible to convert an video file (will be .flv) to an audio-only file (.ogg or whatever) with FFmpeg?
Hi
Yes, you would use a command like this:-

ffmpeg -i filename.flv -vn -acodec libvorbis -aq 6 filename.ogg

dniMretsaM
August 30th, 2011, 01:29 AM
Hi
Yes, you would use a command like this:-

ffmpeg -i filename.flv -vn -acodec libvorbis -aq 6 filename.ogg

I had read something about the -vn argument and wondered if that was what I was looking for. I guess it was. Thanks a bunch!

andrew.46
August 30th, 2011, 11:28 AM
Is it possible to convert an video file (will be .flv) to an audio-only file (.ogg or whatever) with FFmpeg?

Mind you many reasonable quality flv files contain aac audio these days and a simple -acodec copy would suffice in this case with either an mp4 or m4a container.