Linux

Categorized | Multimedia, cli

Convert YouTube FLV files in Linux

If you downloaded a Flash FLV file and want to convert it to an audio or video file, do the following:

For audio:

ffmpeg -i input.flv -ar 44100 -ab 160 -ac 2 output.mp3

For video:

ffmpeg -i input.flv -s 352×288 -b 512 -ab 128 output.mpg 

Author Profile

T4L ;

Other posts by T4L

Author's web site



Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


7 Comments


  1. thanks for this smart flv converter,i am looking for a flv to mp3 converter for quite some time. is this suitable for mac?

    1
  2. Craig B.

    Simple and fantastic solution. Really, great job. Ever since my Vista basically stopped connecting to the Internet, I’ve switched to Fedora. FLV conversion was one of the functions I could perform on Vista with a program but had no idea how to do on Linux. With this, you’ve definitely helped make my switch to Linux a permanent one!

    2
  3. Craig S

    I am new to linux (fedora). What do you mean

    For audio:

    ffmpeg -i input.flv -ar 44100 -ab 160 -ac 2 output.mp3

    For video:

    ffmpeg -i input.flv -s 352×288 -b 512 -ab 128 output.mpg

    What are the exact steps? where do these commands go, etc?

    3
  4. cool as ice

    Hi Craig S

    suppose you have a file named party.flv
    but you only want the music not de video so you can extract the
    audio to have a file named party,mp3
    then open a terminal, go to the directory where de file party.flv is…and write in a new command line

    ffmpeg -i party.flv -ar 44100 -ab 160 -ac 2 party.mp3

    -i means the input file
    -ab is the encoding bitrate

    for more information you can type in a new command line
    man ffmpeg > ffmpegmanual

    then you will have a text file with the manual for ffmpeg
    named ffmpegmanual

    if you have an error may be you have to install ffmpeg
    I think that in fedora you have to writte
    su yum ffmpeg

    go to
    http://www.ilovetux.com/2008/05/howto-install-ffmpeg-on-fedora-linux.html

    4
  5. Nerdiah

    I found that the bit-rate was too low. I got it to work when I used:
    ffmpeg -i input.flv -ar 44100 -ab 160000 -ac 2 output.mp3

    5
  6. Michael

    If you can use GUI, avidemux is a nice tool for all audio/video conversions.

    http://fixounet.free.fr/avidemux/

    6

  7. great tip michael this worked perfectly.

    7

1 Trackback(s)

  1. 16 12 2008 : Convert YouTube FLV files in Linux | Linux-Trickz

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>