Find the answer to your Linux question:
Results 1 to 2 of 2
I was wondering how i could dump the audio from all the FLV files in a directory without typing them in one by one and leaving the original file name ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    1

    help! converting multiple FLVs to MP3s using Mplayer or ffmpeg

    I was wondering how i could dump the audio from all the FLV files in a directory without typing them in one by one and leaving the original file name intact.

    I download allot of music videos from youtube and its very time consuming doing them one by one in mplayer or ffmpeg.

    I think something along the lines of this might save time by repeating it over and over again but it wont retain its filename

    mplayer -dumpaudio *.flv -dumpfile *.mp3
    rm *.flv

    any help would be greatly appreciated

    sorry im a complete noob

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    not that I knew how to use mplayer but this looks like a typical task for a shell script in which you run a loop over multiply filenames.

    Bash Shell Loop Over Set of Files

    It can be combined with the basename command which filters out the name of the file without the ending. e.g
    basename hello.vlf .vlf
    would give "hello" as result which could in turn be used to compose the filename "hello.mp3"

Posting Permissions

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