removing audio from a flv file

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

Post Reply
zeelog
Established Member
Posts: 7
Joined: Sun Dec 14, 2008 2:17 am

removing audio from a flv file

Post by zeelog »

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 ?
TheSafePlaces
Established Member
Posts: 200
Joined: Sat Nov 26, 2011 8:50 am

Re: removing audio from a flv file

Post by TheSafePlaces »

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.
zeelog
Established Member
Posts: 7
Joined: Sun Dec 14, 2008 2:17 am

Re: removing audio from a flv file

Post by zeelog »

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 -c:a:16 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.
Pablo
Established Member
Posts: 1274
Joined: Thu Apr 17, 2008 9:57 pm
Been thanked: 3 times

Re: removing audio from a flv file

Post by Pablo »

One other option:

mplayer -dumpaudio videofile.flv -dumpfile audiofile.mp3
User avatar
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

Post by English Guy »

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.
Fedora
Established Member
Posts: 11
Joined: Sat Nov 24, 2012 1:04 am

Re: removing audio from a flv file

Post by Fedora »

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. :-)

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
Post Reply