Welcome Guest ( Log In | Register )

Could we add gapless to Apple's AAC encoder?, task for iTunesencode or other?
post Jun 21 2005, 08:11
Post #1

Group: Members (Donating)
Posts: 3474
Joined: 7-November 01
From: Strasbourg (France)
Member No.: 420

I have a question about a possible new iTunesEncode feature (or any other program driving Apple's AAC encoder). Wouldn't it be possible to add a gapless feature? It might sound silly, but after all, nyaochi did it with the latest Fraunhofer MP3 encoder (here and here). I'm not a coding expert -I'm not a coder at all- but I think that doing it wouldn't be an impossible task.

Adding somewhere in the tags the precise offset (constant for Apple's encoder) and calculating the amount of padded sample maybe suffice? I don't really know. faac and Nero AAC are gapless, and apparently Apple is not hurry to implement this feature. It's a pity, because Apple's encoder is pretty good. Gapless playback is not possible on any iPod, but on a computer (playing with foobar2000 as exemple) users would benefits from it.

Could we reproduce Nyaochi's ACMenc patch to work with iTunes? Or make something similar? What do you think?
Go to the top of the page
+Quote Post
Start new topic
post Jun 22 2005, 04:10
Post #2

Group: Members
Posts: 68
Joined: 22-May 05
Member No.: 22203

Sorry, my last post was poorly written.

QUOTE (nyaochi @ Jun 21 2005, 09:11 PM)
You missed the point. AAC stream seems to have 1024 frame size, which means that you will/must get 1024*n samples after decoding an AAC stream. That's one reason why iTunes must pad silent samples to fill the last frame. And there's another reason from encoder delay, but I don't mention here. Anyway, the necessary task is not removing the silence, but telling a decoder the number of samples to be removed for playback. It cannot be achieved by an audio editor.

I actually didn't miss the point, but used an incredibly bad example. I was just wondering if we could implement already existing silence cutoff code. A better example would probably be how some Winamp plugins are able to just cuttoff the silence at the end of a file during decoding, thus achieving gapless playback. Or isn't that true gapless?

QUOTE (nyaochi @ Jun 21 2005, 09:11 PM)
Of course I saw the FAAC source. I understand your feeling to minimize/simplify the problem. But the problem cannot be simplified as you expected. The simplest solution would be something like what I wrote in the previous post, which talented people won't scare.

I didn't doubt you saw the FAAC source, as you specifically mentioned the decoding library used by it and other programs. I just wanted to make sure others reading this thread knew the information was available. My mentioning that I was minimizing the problem was just me apologizing in advance, to ensure no one would take offence to what I was saying. And also talented people may scare if they think that working on this means they themselves must complete it. Publishing the source of whatever they did would be more than good enough. If there is enough interest, others are then able to continue. I think we are putting the cart before the horse though, don't you? After all, this program will be about as popular and useful as your ACMENC and Otto's iTunesencode. Not saying they aren't loved here at HA and other select places on the net, but they are no where near large enough to have their development or developers questioned as to who's working on them and their progress. There really shouldn't be any planning, just us making a thread like this with info, and then down the line if someone ends up working on such an app from what we and hopefully other people write here they can release it to the community. That was the point I was trying to make, just because there's demand, doesn't mean someone who wants such a feature has to make an awesome program, or even little more than a hack. I didn't want people to think I was alluding to that.
Go to the top of the page
+Quote Post

Posts in this topic
- guruboolez   Could we add gapless to Apple's AAC encoder?   Jun 21 2005, 08:11
- - Otto42   Short answer: no. Long answer: yes, but I'm n...   Jun 21 2005, 18:25
|- - Mike Giacomelli   QUOTE (Otto42 @ Jun 21 2005, 09:25 AM)Short a...   Jun 22 2005, 05:35
|- - Gabriel   QUOTE How would you get the encoder delay out of i...   Jun 22 2005, 08:56
- - Tropican   This may be a dumb question, but if the encoding d...   Jun 21 2005, 23:55
- - nyaochi   I don't know much about AAC and MP4 container ...   Jun 22 2005, 01:40
- - Tropican   QUOTE (nyaochi @ Jun 21 2005, 07:40 PM)We nee...   Jun 22 2005, 02:19
|- - nyaochi   QUOTE (Tropican @ Jun 22 2005, 10:19 AM)How d...   Jun 22 2005, 03:11
- - Tropican   Sorry, my last post was poorly written. QUOTE (ny...   Jun 22 2005, 04:10
- - Tropican   QUOTE (Gabriel @ Jun 22 2005, 02:56 AM)you ha...   Jun 22 2005, 22:31
- - M   Pardon my ignorance on the technicalities involved...   Jun 23 2005, 02:37
|- - soundcheck   QUOTE (M @ Jun 22 2005, 09:37 PM)Pardon my ig...   Jun 23 2005, 06:31
|- - bond   QUOTE (soundcheck @ Jun 23 2005, 07:31 AM)QUO...   Jun 23 2005, 20:20
|- - soundcheck   QUOTE (bond @ Jun 23 2005, 03:20 PM)QUOTE (so...   Jun 23 2005, 23:06
|- - bond   QUOTE (soundcheck @ Jun 24 2005, 12:06 AM)The...   Jun 24 2005, 09:22
|- - soundcheck   QUOTE (bond @ Jun 24 2005, 04:22 AM)hm could ...   Jun 24 2005, 21:00
- - Mono   Actually that's Apple's official stance: Q...   Jun 23 2005, 04:13
- - westgroveg   I think guruboolez needs CASE.   Jun 23 2005, 05:55
- - bond   ok so its seems to be indeed a non-mp4 file, thx...   Jun 25 2005, 10:09
|- - soundcheck   QUOTE (bond @ Jun 25 2005, 05:09 AM)ok so its...   Jun 25 2005, 18:29
|- - M   QUOTE (soundcheck @ Jun 25 2005, 12:29 PM)I t...   Jun 25 2005, 19:13
- - bond   can you run mp4box's -info on the itunes audib...   Jun 25 2005, 19:05
- - nyaochi   Since no one seems to take this task, I read the s...   Jun 27 2005, 03:04
|- - rjamorim   QUOTE (nyaochi @ Jun 26 2005, 11:04 PM)Does a...   Jun 27 2005, 03:57
|- - Juho Vähä-Herttua   I just implemented true gapless playback of AAC fi...   May 2 2006, 13:56
- - bond   somehow i get the feeling that this "hacking...   Jun 27 2005, 09:59
- - nyaochi   Thanks for the info, rjamorim and bond To summa...   Jun 27 2005, 12:03
- - Tropican   QUOTE (nyaochi @ Jun 27 2005, 06:03 AM)1) but...   Jun 29 2005, 02:58
- - loophole   http://www.apple.com/quicktime/tutorials/chaptertr...   Jun 29 2005, 05:04
|- - Fofer   Great info here, looks like this is a great way fo...   Jul 10 2005, 17:04
- - cvkslashdot   Check my tutorial w/ images if you have a mac: ht...   Jul 20 2005, 01:15
- - Otto42   This isn't really "gapless" as I see...   Jul 20 2005, 16:35
- - nyaochi   I bet Apple will implement the gapless feature in ...   Jul 20 2005, 16:49
- - e-San   I know topic seems to be dead but i am quite shure...   Mar 28 2011, 09:10

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: 27th November 2015 - 17:27