Announcement

Collapse
No announcement yet.

Convert FLAC TO 320mp3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Convert FLAC TO 320mp3

    Have an older Ford Fiesta. Stereo does not support FLAC, but plays MP3 fine off USB.

    What is a good linux utility to convert FLAC to MP3 .. I have maybe 100 FLACS I would like to convert...I am running Debian.

    Thank YOu ,

    ================
    UPDATE -- I solved this with a quick search ... simple code works like a charm, so maybe this will help the next person:



    Apologies for the false alarm
    Last edited by kappclark; 2022-05-30, 22:37.
    ----------------------------------------------
    Bill Clark, Windham, VT
    Logitech Media Server Version: 8.3.0 - 1667251155 @ Fri 04 Nov 2022
    Hostname: talos4 Ubuntu 22.04.4 LTS
    -----------------------------------------------

    #2
    I use Clementine. It offers many tools for audio (conversion, tag editing, cover art, etc) as well as being a good player in itself.

    Comment


      #3
      I will check out Clementine...thx
      ----------------------------------------------
      Bill Clark, Windham, VT
      Logitech Media Server Version: 8.3.0 - 1667251155 @ Fri 04 Nov 2022
      Hostname: talos4 Ubuntu 22.04.4 LTS
      -----------------------------------------------

      Comment


        #4
        mp3fs is my favourite solution: https://www.blisshq.com/music-librar...ng-with-mp3fs/
        bliss - fully automated music library management. Read the music library management blog including how to use bliss to manage Squeezebox album art

        Comment


          #5
          Interesting mp3fs -- reading through it, it appears it is transcoding the flacs in real time as MP3's (which saves so much space) ..

          my need is for the actual mp3 files, which need to be put on a flash drive, and then can be listened to in the car...
          ----------------------------------------------
          Bill Clark, Windham, VT
          Logitech Media Server Version: 8.3.0 - 1667251155 @ Fri 04 Nov 2022
          Hostname: talos4 Ubuntu 22.04.4 LTS
          -----------------------------------------------

          Comment


            #6
            Originally posted by kappclark View Post
            my need is for the actual mp3 files, which need to be put on a flash drive, and then can be listened to in the car...
            The neat thing about mp3fs is that you are only maintaining one set of files. You don't need to use additional space for mp3-versions of your files, and also don't need to think about making a separate version of those files you just added to your collection - just in case you may want to bring them to your car later. Instead the mp3-version is created the moment you copy the songs you want onto your flash drive.

            Mp3fs is convenient when you now and then need to pick up a low resolution copy of some songs.
            On the other hand, if you have a large flash drive that contains your complete collection in mp3 format this becomes more of a one-time script job. Then there isn't that much to gain by using mp3fs.
            Depends on your use case :-)

            Comment


              #7
              Originally posted by Yatsushiro View Post
              I use Clementine. It offers many tools for audio (conversion, tag editing, cover art, etc) as well as being a good player in itself.
              IMO Fre:ac and Sound Converter are also good options for converting files. Which one suits you best is of course mostly a personal preference, althought it also might depend on your current installation.
              Living Room: RPI2+HifiBerry DAC+ Pro & piCorePlayer
              Attic: RPI2+HifiBerry DAC+ RCA & piCorePlayer
              Other rooms: 6x SB Radio
              LMS: Version 8.3.0 on Xubuntu 22.04LTS

              Comment


                #8
                Just use ffmpeg - it will also fill the mp3 tags with information from the source flac

                Code:
                ffmpeg -i input.flac -b:a 320k output.mp3
                Or to process all files below the current folder:

                Code:
                find . -type f -name '*.flac' -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -b:a 320k "${FILE%.flac}.mp3";' _ '{}' \;

                Comment


                  #9
                  Just for the sake of completeness, this is the script I use to convert all flac files in a directory to mp3. It is practically identical to the command Bill found in the first post in this thread, but using ffmpeg. It is not original, but I don't recall where I found it:

                  Code:
                  #!/bin/bash
                  [[ $# == 0 ]] && set -- *.flac
                  for f; do
                    ffmpeg -hide_banner -i "$f" -c:a libmp3lame -b:a 320k "${f[@]/%flac/mp3}"
                  done
                  Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

                  Comment


                    #10
                    I use FlacSquisher, which has the advantage of both working in bulk (if you want) and preserving the file structure of the FLAC originals in the new MP3s.
                    8.2.1 - 1639114554
                    Win11
                    Control: Web GUI; MaterialSkin on Android phones / pads

                    b) Freebox Pop Wifi6 / Mesh
                    External SSD, WiFi Laptop
                    2 x Touch Wireless (Firmware:8.0.1-r16907)
                    1 x SB Radio, LAN into Vonets WiFi Bridge (8.0.1-r16907)

                    Comment


                      #11
                      Originally posted by Miles9 View Post
                      The neat thing about mp3fs is that you are only maintaining one set of files. You don't need to use additional space for mp3-versions of your files, and also don't need to think about making a separate version of those files you just added to your collection - just in case you may want to bring them to your car later. Instead the mp3-version is created the moment you copy the songs you want onto your flash drive.
                      Some sort of hybrid that works lazily but caches transcoded files, checking the last modified dates to know when to flush the cache, would be nice.
                      bliss - fully automated music library management. Read the music library management blog including how to use bliss to manage Squeezebox album art

                      Comment


                        #12
                        Thank you all for the fabulous suggestions .. so much to learn ... and all very helpful...
                        ----------------------------------------------
                        Bill Clark, Windham, VT
                        Logitech Media Server Version: 8.3.0 - 1667251155 @ Fri 04 Nov 2022
                        Hostname: talos4 Ubuntu 22.04.4 LTS
                        -----------------------------------------------

                        Comment


                          #13
                          Apologies for a late reply, I am pretty sure the VLC Media player also has a bulk conversion capability under save/convert.

                          Comment


                            #14
                            DBPoweramp also has a batch converter that works well and preserves tags.
                            Main system - Rock Solid with LMS 8.3.1 on WHS 2011 - 2 Duets ( both WiFi, farthest unit gets 60% signal strength and always works since new power supply) and Squeeseslave
                            Cabin system - Rock solid with LMS 8.3.1 on Win10 Pro - 1 RPi 3 Model B (WiFi) /Hifiberry DAC+ Pro/PiCorePlayer and Squeezeslave
                            Squeezebox Boom - "At Large" player around both home and cabin
                            Headphones and car - Android phone/Bluetooth w/full library on MicroSD card - PowerAmp music player app (similar to Material Skin)

                            Comment

                            Working...
                            X