How can I seperate the audio from a .flv file and end up with
something useful like a .wav or an mp3 or ogg ?
Is there a free conversion program somewhere ?
removing audio from a flv file
Moderators: MattKingUSA, khz
-
- Established Member
- Posts: 200
- Joined: Sat Nov 26, 2011 8:50 am
Re: removing audio from a flv file
What FalkTX said. avconv is excellent for conversion. For extraction/splitting/re-joining without conversion (among other things) there's also avidemux.
Looking for the ideal distro. NixOS?
Newbie composer, somewhat-experienced classical guitarist.
Largely known as HisaoNakai/contrapunctus on IRC and other places.
Newbie composer, somewhat-experienced classical guitarist.
Largely known as HisaoNakai/contrapunctus on IRC and other places.
Re: removing audio from a flv file
Ok I got it to work. The man file for avconv is really detailed and it even had
examples. I really like examples. Usually I have trouble understanding man
files but the avconv man file is really good. First I made a copy of the .flv file,
just in case I made a mess of things, and then used this command:
avconv -i input.flv -c16 wmav1 output.wav
I had tried different variations, but the resulting file wouldn't play.
Then I got lucky and this one plays fine. Now I'm happy.
Thank you all for your help. If you think something works better, I'd
be interested. Otherwise, I think this thread is solved.
examples. I really like examples. Usually I have trouble understanding man
files but the avconv man file is really good. First I made a copy of the .flv file,
just in case I made a mess of things, and then used this command:
avconv -i input.flv -c16 wmav1 output.wav
I had tried different variations, but the resulting file wouldn't play.
Then I got lucky and this one plays fine. Now I'm happy.
Thank you all for your help. If you think something works better, I'd
be interested. Otherwise, I think this thread is solved.
Re: removing audio from a flv file
One other option:
mplayer -dumpaudio videofile.flv -dumpfile audiofile.mp3
mplayer -dumpaudio videofile.flv -dumpfile audiofile.mp3
- English Guy
- Established Member
- Posts: 525
- Joined: Wed Oct 17, 2012 7:28 pm
- Location: England
- Has thanked: 8 times
- Been thanked: 7 times
Re: removing audio from a flv file
If you want to do it the GUI way you can do it with VLC. Just choose convert/save from the media menu & use the options there. It offers mp3 or flac.
Re: removing audio from a flv file
Or... if you want to convert every FLV within a directory to OGV, try this script. Save this as a file (I named mine flv_to_ogv.sh)... navigate to your directory of FLV's and run the file.
BTW... I'm about to look for a "script repository" on this forum so i can donate a few scripts that are useful to me. Let me know if you can point me to the right place.
BTW... I'm about to look for a "script repository" on this forum so i can donate a few scripts that are useful to me. Let me know if you can point me to the right place.
Code: Select all
# JMJ's FLV to OGV conversion script
#
# Converts a directory of .flv's to Ogg-Theora format @ VGA size
#
for i in *.flv;
do
# Does file exist??
if [ -e "${i%flv}ogv" ]
then
# If file exists, skip it.
echo ""
echo "${i%flv}ogv exists, SKIPPING";
echo ""
# Go to next file.
continue
fi
# Convert file
ffmpeg -i "$i" -vcodec libtheora -s vga -acodec libvorbis "${i%flv}ogv";
done