Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: extract audio from .flv video

  1. #1
    Join Date
    Aug 2008
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    extract audio from .flv video

    Is there a way to save the audio from youtube downloads separate from the video?

  2. #2
    Join Date
    Dec 2008
    Location
    Littleton, Colorado USA
    Beans
    362
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: extract audio from .flv video

    There is a pearl script called "youtube-dl" that I have that will download a youtube movie and save it to your hard drive.

    Use mplayer to strip the sound:

    "mplayer -dumpaudio nodame_theme.flv -dumpfile nodame_theme.mp3"

    I've done it with a video and wanted the song. Works fine.

  3. #3
    Join Date
    Aug 2008
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: extract audio from .flv video

    Ok, thanks. That's what I was looking for.

  4. #4
    Join Date
    Aug 2008
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: extract audio from .flv video

    Just tried it and it works great. Thanks again.

  5. #5
    Join Date
    Jan 2008
    Location
    /us/al/home/mb_webguy
    Beans
    2,339
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: extract audio from .flv video

    While that's basically the way I'd do it (though I'd likely use the Video DownloadHelper extension in Firefox to download and possibly convert the video to something more usable), you can also strip the audio using VLC.

    Open VLC and go to Media->Convert/Save. Open the file you want to strip and click Convert/Save. At the top, check the File output, and provide a filename and location. Choose your Encapsulation preference, make sure nothing is selected on the Video tab, check the Audio box on the Audio tab and choose the settings, and click Save.

    It's not as quick as typing in that one command in the terminal, but it doesn't involve typing a command in the terminal, which scares some people who are used to doing everything with a GUI.

  6. #6
    Join Date
    Aug 2008
    Beans
    112
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: extract audio from .flv video

    Another way to do it, thanks. I'm not scared of the command line, I grew up memorizing long commands and typing them in. And then batch files so I wouldn't have to type so much. When I switched from dos to OS/2 I still used the command line as much as I could.

  7. #7
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: extract audio from .flv video

    You might be able to do it with ffmpeg too, like this:
    Code:
    ffmpeg -i in.flv -vn -f wav out.wav
    But, I don't have any flv's so I can't say for sure. But I use that to rip audio from avi files.
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  8. #8
    Join Date
    Sep 2006
    Beans
    3,713

    Re: extract audio from .flv video

    FFmpeg can extract the audio without re-encoding. This preserves the quality. First I find out what type of audio is in the file if I don't already know:
    Code:
    ffmpeg -i inputfile.flv
    Along with some other data, it will tell you about the audio:
    Code:
    Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 56 kb/s
    Now I know it is mp3 audio (it usually is mp3 in FLV) I use the following command:
    Code:
    ffmpeg -i inputfile.flv -acodec copy output.mp3

  9. #9
    Join Date
    Oct 2007
    Location
    hk
    Beans
    706
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: extract audio from .flv video

    I have 30 .flv files in this folder. How can I extract audio from all files in this folder by ffmpeg using a single command? Also I would like to know how to display the audio information of multiple files by the ffmpeg -i command. Thanks!
    Ubuntu 7.10 on P4 1.8G and PIII 933mHz

  10. #10
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: extract audio from .flv video

    To run "ffmpeg -i" on all the flv files:
    Code:
    for j in *.flv; do ffmpeg -i "$j"; done
    To extract mp3 audio from each flv:
    Code:
    for j in *.flv; do ffmpeg -i "$j" -acodec copy "$j".mp3; done; rename 's/flv.mp3$/mp3/' *

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •