Engineering and technology notes

How to convert FLAC to MP3, Ubuntu command line

12 Flares Filament.io Made with Flare More Info

This worked great, but make sure you have “lame” and “flac”

sudo apt-get install flac
sudo apt-get install lame

Then in the folder with all the .flac files:

for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done
Twitter 4 Facebook 4 Google+ 2 LinkedIn 0 inShare Buffer 1 Email — Email to a friend Filament.io Made with Flare More Info 12 Flares
Tagged with: 2013 , Ubuntu
Posted in Rambling
10 comments on “How to convert FLAC to MP3, Ubuntu command line 
  1. Ubuntoid says:

    Nope, what repo are these in? apt-cache and apt-get could find neither flac nor lame.

  2. jat255 says:

    josh@josh-ThinkPad:/run$ apt-cache policy flac
    flac:
    Installed: 1.2.1-6build1
    Candidate: 1.2.1-6build1
    Version table:
    *** 1.2.1-6build1 0
    500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
    100 /var/lib/dpkg/status

    josh@josh-ThinkPad:/run$ apt-cache policy lame
    lame:
    Installed: 3.99.5+repack1-3
    Candidate: 3.99.5+repack1-3
    Version table:
    *** 3.99.5+repack1-3 0
    500 http://us.archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages
    100 /var/lib/dpkg/status

    main and universe repos, respectively. On raring, at least…

  3. gallagherrobby says:

    iDealshare VideoGo is just the professional FLAC Converter which can fast and batch convert FLAC files to lossless audio format like Apple Lossless ALAC M4A, AIFF, WAV, AU, APE, or convert FLAC to lossy audio format like AAC, WMA, AIFF, OGG, MP3 and etc

  4. gerardglove says:

    Another way is to convert FLAC to iPhone supported format. Bigasoft Audio Converter is just the professional FLAC to iPhone Converter which can fast and batch convert FLAC files to iPhone supported format. It can either convert FLAC to iPhone supported lossless audio format like Apple Lossless ALAC M4A, AIFF, WAV; or convert FLAC to iPhone supported lossy audio format like AAC or MP3.

  5. Vedavrat says:

    Thank you! It works!
    But 320 kbps is so much for me… Therefore i put ‘lame -b 320 …’ for speech.

  6. Bleh says:

    Using ffmpeg (and without an ugly for loop).

    http://lewisdiamond.blogspot.ca/2012/01/converting-flac-to-mp3.html

    find -name “*.flac” -exec ffmpeg -i {} -acodec libmp3lame -ab 128k {}.mp3 \;

Leave a Reply Cancel reply 

 

OwnCloud add-on thread – NETGEAR Communities

OwnCloud add-on thread ‎2012-09-25 04:04 PM This is a general discussion thread for the OwnCloud add-on Owncloud for Sparc (Duo/NV+ v1 etc.): http://www.readynas.com/forum/viewtopic.php?f=47&t=66762 Owncloud for ARM (Duo/NV+ v2): http://www.readynas.com/forum/viewtopic.php?f=147&t=64597 Owncloud for x86 (NVX/Ultra/Ultra Plus/Pro): http://www.readynas.com/forum/viewtopic.php?f=48&t=64596 Continues from http://www.readynas.com/forum/viewtopic.php?f=61&t=62063

Source: OwnCloud add-on thread – NETGEAR Communities

Git

Git (/ɡɪt/[6]) is a version control system (VCS) for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for software development,[7] but it can be used to keep track of changes in any files. As a distributed revision control system it is aimed at speed,[8] data integrity,[9] and support for distributed, non-linear workflows.[10] Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contribu

Source: Git – Wikipedia

SmartMesh IP – Linear Technology

SmartMesh IP products are wireless chips and pre-certified PCB modules complete with ready-to-deploy wireless mesh networking software. They are built for IP compatibility, and based on the 6LoWPAN  and 802.15.4e standards. The SmartMesh IP product line enables low power consumption and >99.999% data reliability even in harsh, dynamically changing RF environments. To learn more about SmartMesh benefits and applications, please visit

Source: SmartMesh IP – Linear Technology

Libelium – Smart City project in Serbia to monitor Environmental Parameters by Public Transportation with Waspmote | Libelium

A clean air supply is essential to our own health and that of the environment. But since the industrial revolution, the quality of the air we breathe has deteriorated considerably – mainly as a result of human activities. The issue of air quality is still a major concern for many European citizens. It is also one of the areas in which the European Union has been most active. Since the early 1970s, the EU has been working to improve air quality by controlling emissions of harmful substances into the atmosphere, improving fuel quality, and by integrating environmental protection requirements into the transport and energy sectors. Waspmote has been used to control public transportation and monitor environmental parameters in several cities in Serbi

Source: Libelium – Smart City project in Serbia to monitor Environmental Parameters by Public Transportation with Waspmote | Libelium

Repeater Bridge – DD-WRT Wiki

A wireless bridge connects two LAN segments with a wireless link. The two segments are in the same subnet and look like two Ethernet switches connected by a cable to all computers on the subnet. Since the computers are on the same subnet, broadcasts reach all machines. DHCP clients in one segment can get their addresses from a DHCP server in the other segment.Use a wireless bridge to transparently connect computers in one room to computers in a different room when you cannot—or don’t want to—run an Ethernet cable between the two rooms.A standard wireless bridge (Client Bridge) connects wired clients to a secondary router as if they were connected to your main router with a cable. Secondary clients share the bandwidth of a wireless connection back to your main router. Of course, you can still connect clients to your main router using either a cable connection or a wireless connection.

Source: Repeater Bridge – DD-WRT Wiki

Rechargeable Battery Capacity Tester

Do you have a pile of AA rechargeable batteries in your drawer? Some are old, some are new, but which sets would you bring with your camera on your next trip, and which ones are past their useful life? I like using rechargeable batteries, but I’m certain that some of them are not living up to the stated capacity on the label. So how good are those batteries? Simple battery testers measure the voltage, but that’s not what we need – we want to find the overall capacity of the battery. How long will a battery last from the time it’s fully charged to the time that the “low battery” indicator comes on your device? You can see this in action in a video in the last step of this instructable.

Source: Rechargeable Battery Capacity Tester