Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 14

Hybrid View

  1. #1
    Senior Member kappclark's Avatar
    Join Date
    Apr 2009
    Location
    Southern VT, USA
    Posts
    231

    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:

    https://jima.cat/convert-flac-to-mp3...-command-line/

    Apologies for the false alarm
    Last edited by kappclark; 2022-05-30 at 13: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. #2
    Senior Member
    Join Date
    May 2017
    Location
    Saint-SimÚon, France
    Posts
    117
    I use Clementine. It offers many tools for audio (conversion, tag editing, cover art, etc) as well as being a good player in itself.

  3. #3
    Senior Member kappclark's Avatar
    Join Date
    Apr 2009
    Location
    Southern VT, USA
    Posts
    231
    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
    -----------------------------------------------

  4. #4

  5. #5
    Senior Member kappclark's Avatar
    Join Date
    Apr 2009
    Location
    Southern VT, USA
    Posts
    231
    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
    -----------------------------------------------

  6. #6
    Junior Member
    Join Date
    Feb 2021
    Location
    Norway
    Posts
    5
    Quote 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 :-)

  7. #7
    Senior Member
    Join Date
    Oct 2013
    Posts
    221
    Quote 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

  8. #8
    Senior Member
    Join Date
    Dec 2020
    Posts
    322
    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";' _ '{}' \;

  9. #9
    Senior Member
    Join Date
    Jun 2017
    Posts
    861
    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.

  10. #10
    Senior Member agbagb's Avatar
    Join Date
    Aug 2006
    Location
    France
    Posts
    709
    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 LAN (Firmware:8.0.1-r16907)
    2 x SB Radios, Wireless (8.0.1-r16907)

Posting Permissions

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