Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bugs
  • Category Codecs
  • Assigned To No-one
  • Operating System Another
  • Severity Low
  • Priority Very Low
  • Reported Version Release 3.8
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by veverone - 2011-03-05
Last edited by saratoga - 2011-05-02

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

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

Closed by  saratoga
2011-05-02 17:39
Reason for closing:  Wont Fix
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

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.

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/

NOTE that the settings above produce a playable OGG IF we change the quality to “q 0,00000” or above.

That is my conclusion…

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.

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”

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...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing