Support and General Use > Audio Playback, Database and Playlists

Some ogg do not play

<< < (5/5)

yonkiman:

--- Quote from: saratoga on August 27, 2011, 02:16:37 PM ---ha.  You have 1MB for the entire vorbis decoder.  Using 75% of that on coverart is not going to work.
--- End quote ---

You're totally right!  I deleted all the album art, shaved 486MB off the space my oggs take up on my ipod, and the album loads and is indexed perfectly. 

So thanks!

But I'm still curious why this matters.  The decoder plays the file sequentially - why doesn't it ignore the album art - why does it get loaded into the 1MB it has to play with?  The album art image is always the same low res on the Rockbox, so I don't see why that should be a problem.

I'm sure there's a good reason, I'm just curious what it is!

Again, though - thanks for the support!

Lear:
The answer is fairly technical, but an Ogg file is split into a number of chunks of data called packets, and the Ogg reader part of the decoder always loads a full packet into memory. Vorbis puts all comments into one packet. For short, descriptive text, this works fine, but when you put a big image there it doesn't work too well. Getting the Ogg layer to skip a particular packet is the tricky part (I've looked a bit into it as well).

saratoga:

--- Quote from: yonkiman on August 29, 2011, 01:23:19 AM ---The decoder plays the file sequentially - why doesn't it ignore the album art - why does it get loaded into the 1MB it has to play with?

--- End quote ---

Because Ogg tags are only supposed to be a few KB, so the decoder assumes it not necessary to load them sequentially. 

Navigation

[0] Message Index

[*] Previous page

Go to full version