Converting FLAC into mp3s

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • max.spicer
    Senior Member
    • Apr 2005
    • 1661

    Converting FLAC into mp3s

    What's the easiest way to convert from FLAC to MP3s on Linux (Debian Sarge)? I have music stored in FLAC format that I need a separate copy of in MP3 format for a portable device. A solution involving something like 'flac -d <file> | <good mp3 encoder>' would do as I could then script it, but the ideal world be a tool where I could say "Oy, you! Take these flac files and put them here as mp3s would you? There's a good chap!" Command-line is another requirement as my box doesn't run x and has no head.

    Ta muchly!

    PS It's too late for whatever that encoder it is that encodes to multiple formats - I've done my ripping.
    Some people think the title of this song is irrelevant,
    but it's not irrelevant - it's a hippopotamus.
  • JJZolx
    Senior Member
    • Apr 2005
    • 11597

    #2
    What OS does your personal machine run? Just because the music server is running Linux doesn't mean the conversion needs to be done there. So long as you can access the directories from a Windows box.

    I'm in the process of developing a Windows VBS script, "flac2mp3.vbs" that will be run from the command line and can mirror a flac file, complete directory, or entire directory tree to files in mp3 format. It uses flac.exe and then metaflace.exe (to extract tag info) and lame.exe.

    If your server runs Linux, but you have a Windows machine on the network then this might be feasible for you. There are undoubtedly also other existing options for you if you do the conversion on a Windows machine.
    ________
    silver surfer reviews
    Last edited by JJZolx; 2011-01-22, 08:36.

    Comment

    • Pat Farrell

      #3
      Converting FLAC into mp3s

      On Mon, 2005-04-11 at 13:36 -0700, max.spicer wrote:
      > What's the easiest way to convert from FLAC to MP3s on Linux (Debian
      > Sarge)? I have music stored in FLAC format that I need a separate copy
      > of in MP3 format for a portable device. A solution involving something
      > like 'flac -d <file> | <good mp3 encoder>' would do as I could then

      flac -d * | lame -
      will work just fine
      What else do you need?

      You might want to look at my flac2mp3.pl file
      on http://www.pfarrell.com/music/slimse...msoftware.html
      it handle wildcards and a couple of extra stuff, nothing
      that you can't do with shell commands, but it does make it easier

      Pat


      --
      Pat pfarrell (AT) pfarrell (DOT) com



      Comment

      • max.spicer
        Senior Member
        • Apr 2005
        • 1661

        #4
        Originally posted by JJZolx
        What OS does your personal machine run? Just because the music server is running Linux doesn't mean the conversion needs to be done there. So long as you can access the directories from a Windows box.
        My main personal machine is XP. I do run Samba on the server so can indeed access shares from the PC. However, my server is on all night, has two processors and does nothing. I'm also unconvinced about the need to transfer almost 100GB of data across the network and back (although it would be done at night so I guess it doesn't really matter).
        Some people think the title of this song is irrelevant,
        but it's not irrelevant - it's a hippopotamus.

        Comment

        • max.spicer
          Senior Member
          • Apr 2005
          • 1661

          #5
          Originally posted by Pat Farrell
          flac -d * | lame - will work just fine
          What else do you need?
          I'm guessing that that wouldn't preserve metadata.
          Some people think the title of this song is irrelevant,
          but it's not irrelevant - it's a hippopotamus.

          Comment

          • Pat Farrell
            Senior Member
            • Apr 2005
            • 4297

            #6
            Re: Converting FLAC into mp3s

            On Tue, 2005-04-12 at 02:05 -0700, max.spicer wrote:
            > Pat Farrell Wrote:
            > > flac -d * | lame - will work just fine
            > > What else do you need?

            > I'm guessing that that wouldn't preserve metadata.


            true.

            You would need some combination of metaflac to extract the data
            and whatever id3 tagger you like for reinserting it.

            --
            Pat


            Pat
            http://www.pfarrell.com/music/slimse...msoftware.html

            Comment

            • rramstad
              Junior Member
              • Apr 2005
              • 15

              #7
              here's some software

              If you run Linux, or want to run Cygwin/X with Perl on Windows, this software is getting pretty useful...



              It does three things that are really useful... first, it will copy most tags from FLAC to mp3 when doing the initial transcoding. Second, if the file hasn't changed, it doesn't do anything. (Some scripts will just always convert everything in a given directory.) Third, it will check to see if just the tags have changed, and if so, just update the tags (not do the conversion again).

              It has some shortcomings, notably if a directory is moved, or deleted, there can be stuff in the mp3 output directory which isn't really supposed to be there... but it does about 90% of what I need a script to do...

              Comment

              Working...