понедельник, 28 мая 2012 г.

Convert ALAC m4a to FLAC with tags, artwork and lyrics

Hello, dear anonymous!

There is a script i wrote i'd like to share with you. It uses ffmpeg, mp4info and metaflac to convert an ALAC file to FLAC keeping tags, artwork and lyrics! It has several options, so execute it with -h option and read. I don't like batch scripts so use find -exec to convert all your ALAC collection to FLAC like this:

double-click the code to select and copy Download: http://alac2flac.googlecode.com/files/alac2flac-1.0.1.tar.gz
ebuild: http://alac2flac.googlecode.com/files/alac2flac-1.0.1-ebuild.tar.gz

If you're not using gentoo, then you have to install its dependencies manually. It depends on: ffmpeg, flac, libmp4v2 (built w/utils).

If you don't want to download anything, then open the spoiler below and save the code to alac2flac. Don't forget to chmod +x alac2flac it. Exec it from the dir containing it then: ./alac2flac Or save it in $PATH. Or maybe you just want to look. Anyway, here it is:

Click to show

P.S. At first i was relying on an alac|flac pipe, but when i used it in batch mode on my ALAC collection it turned out, that alac_decoder (http://craz.net/programs/itunes/alac.html) couldn't decode some m4a files. :(  Then it turned out that ffmpeg does the same job 5-10 times faster.

Комментариев нет: