IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Lossless iTunes for Linux
agillis
post Nov 11 2009, 23:21
Post #1





Group: Members
Posts: 16
Joined: 14-November 08
Member No.: 62428



I am writing a script to convert FLAC files to iTunes. I need a way to encode files on Linux that work with iTunes. I haven't been able to get this to work yet. The format I use must be

1. lossless (I'd love to use Apple Lossless but theirs no encoder for Linux)
2. Have ID3 tags so the track info shows up in iTunes when you import the file (WAV is out)
3. I must be able to encode these files under Linux (no I don't want to use Wine or any way to run windows binaries under Linux)
4. Optionaly it would be nice is these files were the same size as my FLAC files (about 30% small then WAV)

How about AIFF? I have been able get the FLACs to AIFF but I can't get the ID3 tags to convert over.

I'm really stuck on this one. There has to be a format that works.
Go to the top of the page
+Quote Post
qristus
post Nov 11 2009, 23:40
Post #2





Group: Members (Donating)
Posts: 132
Joined: 15-October 01
From: Norway
Member No.: 297



Doesn't ffmpeg have ALAC support? http://ffmpeg.org/
Go to the top of the page
+Quote Post
agillis
post Nov 12 2009, 01:33
Post #3





Group: Members
Posts: 16
Joined: 14-November 08
Member No.: 62428



OK, thanks that's a good start. I didn't know ffmpeg did ALAC. I tried this

ffmpeg -i test.flac -acodec alac test.m4a

and it worked great. BUT there are no tags. iTunes shows it as an un-taggeed file. How can I move the ID3 tags over?


Go to the top of the page
+Quote Post
jcoalson
post Nov 12 2009, 02:20
Post #4


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



have you tried fluke? works for me, tags and all, no conversion needed.
Go to the top of the page
+Quote Post
agillis
post Nov 12 2009, 03:00
Post #5





Group: Members
Posts: 16
Joined: 14-November 08
Member No.: 62428



QUOTE (jcoalson @ Nov 11 2009, 20:20) *
have you tried fluke? works for me, tags and all, no conversion needed.


Thanks for the help but don't forget my requirement #3 This all need to work on linux

3. I must be able to encode these files under Linux (no I don't want to use Wine or any way to run windows binaries under Linux)
Go to the top of the page
+Quote Post
jcoalson
post Nov 12 2009, 06:50
Post #6


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



sure, encode and tag the flacs on linux, import them directly into itunes via fluke. or maybe I'm just not understanding what you want to do.

edit: just to be crystal clear: fluke lets you import flac files into itunes. they are not converted to another format, but they play back within itunes and itunes can see the tags.


This post has been edited by jcoalson: Nov 12 2009, 07:38
Go to the top of the page
+Quote Post
agillis
post Nov 12 2009, 19:08
Post #7





Group: Members
Posts: 16
Joined: 14-November 08
Member No.: 62428



QUOTE (jcoalson @ Nov 12 2009, 00:50) *
sure, encode and tag the flacs on linux, import them directly into itunes via fluke. or maybe I'm just not understanding what you want to do.

edit: just to be crystal clear: fluke lets you import flac files into itunes. they are not converted to another format, but they play back within itunes and itunes can see the tags.


I want to be able to rip CDs to a server then have users be able to import the files into iTunes. This solution must work on both Windows and MAC (fluke just works on MAC) I don't want the users to have to load any plugins or software on their PCs. This needs to be really easy. I already have this working with a script called FLAC mirror. It will mirror FLACs as mp3s. This works really well for importing into iTunes accept for the quality loss.

So the question is there any way to convert FLACs to an iTunes compatible file (lossless) with all the ID3 tags intact and not having to use any plugins or extra software on the iTunes end.
Go to the top of the page
+Quote Post
jcoalson
post Nov 12 2009, 22:12
Post #8


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



well then you're kind of stuck with whatever apple gives you:

- the only lossless formats itunes supports natively are wav, aiff, and alac
- alac is proprietary and I would not trust the reverse engineered encoders to be lossless or compliant with a secret spec
- I don't know if itunes supports tags on wav but might for aiff

so if you can figure out how to convert flac to aiff on linux and keep all the tags, that's probably as close as you're going to get.

be sure to vent some frustration on apple for not providing flac support.

edit: the commandline flac decoder will convert flac->aiff but not the tags


This post has been edited by jcoalson: Nov 12 2009, 22:15
Go to the top of the page
+Quote Post
jcoalson
post Nov 12 2009, 22:26
Post #9


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



one more thing, it sounds like you are getting into distribution... note that pretty much everyone who is selling/distributing lossless is using flac and they usually have a faq somewhere that walks users through getting itunes and wmp to work. this has been going on for years so users must be getting it. at that point you also have a chance to move some of them to better software; there are lost of programs on mac and windows that support flac natively and do everything itunes does including ipod sync.

you can peruse some of the online stores for their verbiage about getting itunes and wmp to work.
Go to the top of the page
+Quote Post
agillis
post Nov 13 2009, 03:15
Post #10





Group: Members
Posts: 16
Joined: 14-November 08
Member No.: 62428



QUOTE (jcoalson @ Nov 12 2009, 16:26) *
one more thing, it sounds like you are getting into distribution... note that pretty much everyone who is selling/distributing lossless is using flac and they usually have a faq somewhere that walks users through getting itunes and wmp to work. this has been going on for years so users must be getting it. at that point you also have a chance to move some of them to better software; there are lost of programs on mac and windows that support flac natively and do everything itunes does including ipod sync.

you can peruse some of the online stores for their verbiage about getting itunes and wmp to work.


I working on the VortexBox Linux distro. We are trying to make it rip CDs to files that work with all players. I have a script that works now using ffmpg. I just need to validate it. I can rip a track to wav using cdparanoia then convert it to WAV -> FLAC -> Apple lossless -> FLAC -> WAV and it still has the same md5sum. So I think I'm getting someplace.

Here's another question. I am trying to rip a CD track with different software and get the same result. For validation. If I rip a track on windows using dbpoweramp to wav and then the same track using iTunes to wav the md5sum is different. I wonder why? this seems like a different thread.

This post has been edited by greynol: Nov 13 2009, 17:05
Reason for edit: Do not double-post!
Go to the top of the page
+Quote Post
jcoalson
post Nov 13 2009, 07:40
Post #11


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



QUOTE (agillis @ Nov 12 2009, 21:15) *
I can rip a track to wav using cdparanoia then convert it to WAV -> FLAC -> Apple lossless -> FLAC -> WAV and it still has the same md5sum.

the ffmpeg alac encoding<->decoding should match, the question is whether itunes can always decode it. alac is proprietary, ffmpeg's reverse-engineered encoder may not be compliant, it may not always decode in itunes, apple can change the codec at any time and things break with a new version of itunes, etc. that's the risk you take.
Go to the top of the page
+Quote Post
agillis
post Nov 13 2009, 22:01
Post #12





Group: Members
Posts: 16
Joined: 14-November 08
Member No.: 62428



QUOTE (jcoalson @ Nov 13 2009, 01:40) *
the ffmpeg alac encoding<->decoding should match, the question is whether itunes can always decode it. alac is proprietary, ffmpeg's reverse-engineered encoder may not be compliant, it may not always decode in itunes, apple can change the codec at any time and things break with a new version of itunes, etc. that's the risk you take.


I will always have the FLAC files as the archive and for playing on everything but iTunes. So I can always re-encode the ALAC files if the format changes. Seems like the only solution that's simple for the end user.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th April 2014 - 19:58