Default Green Orange
Ovidiu's Box
Thinking inside and outside my box
Home Page Home
  • Despre mine
  • Resume
  • Biografie
  • Contact
RSS

  • Proiecte personale

  • Susțin

    Cazare Băile Herculane. Pensiunea Roua de Munte style=

  • Ciripeli pe Twitter

    • Ha! Google a activat deja priority inbox pe conturile de Apps. Cool (deși feature-ul, în sine, nu e mare brânză). 15 mins ago
    • Modern Marketing And PR Pro Fluency Matrix http://bit.ly/aSM80j 9 hrs ago
    • Kiwi Linux 10.08 released with Chromium, Shotwell and more http://bit.ly/bKDp0L 9 hrs ago
    • How Facebook Scales with Open Source http://bit.ly/dy95Dr 9 hrs ago
    • 3 Ways Google Will Invade Your Enterprise http://bit.ly/bgRoFI 9 hrs ago
    • More updates...
  • Ultimele comentarii

    • ovidiusoft on Ce-am mai citit – August 2010
    • ovidiusoft on Ce este și cum se face monitorizarea și filtrarea accesului la Internet
    • Alin on Repararea de drumuri la români
    • Blogulet on Repararea de drumuri la români
    • ovidiusoft on Repararea de drumuri la români
  • Nu vezi caracterele românești?

    ăâîșț

    Pentru utilizatorii de Windows. Pentru ca diacriticele să fie afișate corect, instalează Actualizarea de fonturi corespunzătoare extinderii Uniunii Europene. Mai multe detalii sunt disponibile aici.

Convert m4a/mp4 to mp3

Pinguinul din calculator Add comments

I stumbled across some m4a files a few days ago and I really wanted them in mp3 format. The conversion itself was not that complicated, since I based my script on the previous Convert flac to mp3 post and script. The tricky pars was figuring out what decoder I needed to use on Linux.

To make the search even more confusing, there are actually two file extensions for the same thing: m4a and mp4. Read more about the war between them here. I finally figured out I needed the package faad. Why not mp4dec or m4adec or even mp4 or m4a? We will never know.

Anyway, the following one-liner requires faad and lame installed. It keeps the filename and changes only the extension. It doesn’t keep any ID3 tags (btw, are they called id4 tags in case of mp4 files and i4d files in case of m4a !?).

Just run these in the directory where you keep the files:

  • for mp4 files:
  • for F in *.mp4; do faad -o - "$F" | lame -h --vbr-new -V 0 - "`basename "$F" mp4`"mp3; done

  • for m4a files:
  • for F in *.m4a; do faad -o - "$F" | lame -h --vbr-new -V 0 - "`basename "$F" m4a`"mp3; done

You will get a mp3 file for each of the mp4/m4a files.

Enjoy ;)

Image credit: Andrew Mason.

  • Twitter
  • Facebook
  • LinkedIn
  • Google Reader
  • Google Bookmarks
  • Yahoo Messenger
  • Yahoo Mail
  • Google Gmail
  • Share/Bookmark

Related posts:

  1. Convert flac to mp3 The post is in English because it might interest other...
  2. Convert Xmail to Dovecot users This post is in English because it might interest other...
  3. How to boot multiple CDs from a USB stick I routinely need to use several live CDs or installation...
  4. DDNS with PowerDNS – client side I use PowerDNS for my own DNS servers, but what...
  5. DDNS with PowerDNS – server side This is the second part in the “DDNS with PowerDNS”...


January 22nd, 2010  
Tags: conversie, faad, lame, m4a, mp3, mp4, script

Leave a Reply

CommentLuv Enabledshow more

  • Abonează-te

    • RSS post-uri
    • RSS comentarii
    • Email post-uri
    • Email comentarii
  • Categorii

  • Post-uri recente

    • Ce-am mai citit – August 2010
    • Ce este și cum se face monitorizarea și filtrarea accesului la Internet
    • Repararea de drumuri la români
    • Și dacă am avea un singur impozit?
    • Cele 5 faze ale relației angajat-angajator
    • Televizorul ca monitor
    • NOVIT susține proiectul Euko
    • Plata în funcție de valoare – judecători
    • Plata în funcție de valoare – idei pentru sănătate
    • Interviurile structurate
  • Post-uri aletoare

    • De ce nu voi mai cumpăra niciodată nimic de la HP
    • Ce-am mai citit - Aprilie 2009
    • Spune NU playback-ului!
    • Compatibilitatea la interviu
    • udev vs evms = cpu 100%
    • Creare utilizatori MySQL
    • Patrulaterul morții
    • Invitație la Întâlnirea RLUG Martie '10
    • Eu la ce facultate mă duc?
    • Eliminarea www din fața URL-urilor
  • Norișorul de etichete

    angajare angajati anunt auto backup banci blog carti cd cheat sheet creta cv email excursie google idiot impozite impresii intalnire internet interviu invitatie laptop linux mare munte muzica NOVIT online orson scott card plata protocoale recrutare resurse umane rlug romania script server servicii strategie taxe tunisia twitter usb wordpress
Copyright © 2010 Ovidiu's Box All Rights Reserved
Designed by i Software Reviews. Converted to 3 Columns by Ovidiu Constantin.
XHTML CSS Log in