Rockbox

Tasklist

FS#11992 - Ogg files won't play on ClipV1

Attached to Project: Rockbox
Opened by Bogdan (veverone) - Saturday, 05 March 2011, 23:46 GMT
Last edited by MichaelGiacomelli (saratoga) - Monday, 02 May 2011, 17:39 GMT
Task Type Bugs
Category Codecs
Status Closed
Assigned To No-one
Operating System Another
Severity Low
Priority Normal
Reported Version Release 3.8
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

I've recently discovered RockBox and, overall, i'm truly impressed :)

There is one problem: most of the files i created for my Sansa Clip (v1) in OGG format don't work anymore.

You can see some details about the ogg below (or you can download the attached file and analyze it yourself)

General
Count : 265
Count of stream of this kind : 1
Kind of stream : General
Stream identifier : 0
Count of audio streams : 1
Audio_Format_List : Vorbis
Audio_Format_WithHint_List : Vorbis
Audio codecs : Vorbis
Complete name : .\Christian Calcatelli - The Inner Space (Fantasia).ogg
File name : Christian Calcatelli - The Inner Space (Fantasia)
File extension : ogg
Format : OGG
Format : OGG
InternetMediaType : audio/ogg
Codec : OGG
Codec : OGG
File size : 1261680
File size : 1.20 MiB
File size : 1 MiB
File size : 1.2 MiB
File size : 1.20 MiB
File size : 1.203 MiB
Duration : 253840
Duration : 4mn 13s
Duration : 4mn 13s 840ms
Duration : 4mn 13s
Duration : 00:04:13.840
Overall bit rate : 39763
Overall bit rate : 39.8 Kbps
Title : The Inner Space (Fantasia)
Track name : The Inner Space (Fantasia)
Performer : Christian Calcatelli
File creation date : UTC 2010-12-26 05:54:29.900
File creation date (local) : 2010-12-26 07:54:29.900
File last modification date : UTC 2010-12-26 05:54:44.000
File last modification date (loc : 2010-12-26 07:54:44.000

Audio
Count : 136
Count of stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
ID : 1983409522
ID : 1983409522 (0x76386D72)
Format : Vorbis
Format settings, Floor : 1
InternetMediaType : audio/vorbis
Codec : Vorbis
Codec : Vorbis
Codec/Family : Vorbis
Codec/Url : http://www.vorbis.com
Codec settings, Floor : 1
Duration : 253840
Duration : 4mn 13s 840ms
Duration : 00:04:13.840
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 48000
Bit rate : 48.0 Kbps
Channel(s) : 2
Channel(s) : 2 channels
Sampling rate : 44100
Sampling rate : 44.1 KHz
SamplingCount : 11194344
Stream size : 1523040
Stream size : 1.45 MiB
Stream size : 1 MiB
Stream size : 1.5 MiB
Stream size : 1.45 MiB
Stream size : 1.452 MiB
Writing library : BS; Lancer(SSE3) [20061110] (based on aoTuV b5 [20061024])
Writing library : Lancer b5 (UTC 2006-11-10)
Writing library/Name : Lancer
Writing library/Version : b5
Writing library/Date : UTC 2006-11-10
This task depends upon

Closed by  MichaelGiacomelli (saratoga)
Monday, 02 May 2011, 17:39 GMT
Reason for closing:  Wont Fix
Additional comments about closing:  Lack of memory on the Clipv1 will probably prevent playing this files on that device unless we eventually allow dynamically allocating more memory to codecs.
Comment by Bogdan (veverone) - Sunday, 06 March 2011, 00:12 GMT
Below is the command line (settings) used to encode the above file >>

-s %r -Q -q -1,000000 --advanced-encode-option impulse_noisetune=-9 - -o %d

Also, it was use in conjunction with Foobar ( http://img215.imageshack.us/img215/7721/ss20110306020952.png ) and an optimized encoder that you can find here > http://homepage3.nifty.com/blacksword/

Comment by Bogdan (veverone) - Sunday, 06 March 2011, 12:39 GMT
NOTE that the settings above produce a playable OGG IF we change the quality to "q 0,00000" or above.

That is my conclusion...
Comment by MichaelGiacomelli (saratoga) - Sunday, 06 March 2011, 18:49 GMT
Those files play fine on the Clip+, which is similar to the clipv1, except with 3x as much RAM for codecs. I don't have a clipv1 handy to test, but playing them in the Sim, they do in fact allocate more memory then my vorbis test files. I suspect that whatever settings or build of the vorbis encoder you're using requires more memory then we have available.
Comment by Bogdan (veverone) - Sunday, 06 March 2011, 19:03 GMT
By looking at the system status i can see that different themes occupy different amounts of RAM.

That RAM is separate from the RAM used to decode files? (for example... my current theme takes 39.1 KB from 49 KB of RAM)

P.S.: Check the "System > Rockbox Info: Skin Ram Usage"
Comment by MichaelGiacomelli (saratoga) - Sunday, 06 March 2011, 19:10 GMT
Yes, the codec is stored in a different area of memory (actually a different physical memory device as well). Rockbox has no idea how much memory each codec is using (the codecs manage memory allocation themselves) so theres no way to figure it out from the debug screen. I checked by adding print statements to the vorbis malloc commands and summing how much they allocated. Even this is only approximate though since they can also free memory and statically allocate it as well.

Vorbis is unique in that the designers made the (utterly terrible) design choice to have memory allocation be determined by the encoder, which means if you play with the encoder enough you can make files that require absurd amounts of memory.

Loading...