This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12754 - Opus decoder fails to play stereo tracks encoded with the "--uncoupled" option
|
DetailsI have some stereo files that need to be encoded as two independent channels with no lossy stereo coupling. I encode these files by passing "--uncoupled" to the Opus encoder, e.g.
opusenc --bitrate 64 --framesize 60 --uncoupled example.wav example.opus The lossless flac version of a sample of such a file prior to encoding can be downloaded from http://kyle.tk/binaural-beat-sample.flac If I do not pass the "--uncoupled" option to the encoder, the resulting Opus file plays with no trouble on my Sansa Clip+. The sample of this encoding is at http://kyle.tk/binaural-beat-sample-64k.opus However, if I pass the "--uncoupled" option, sample at http://kyle.tk/binaural-beat-sample-64k-uncoupled.opus Rockbox only plays a cacophony of chirps, scratches, squeaks and garbled noise, and no hint of the original sound is detectable. Note: I have only been able to test this on a Clip+, as I own no other Rockbox player that is capable of playing Opus files at this time. Hopefully someone can confirm this problem on other targets, but for now, I have been able to reproduce it 100% on the Clip+, and I can confidently point to "--uncoupled" as the encoder option that results in an unplayable file. |
This task depends upon
Does the file play back correctly in the simulator?
Can you check the stack usage of the codec thread (menu system / debug / OS stacks or something like that)? It should preferably be less than 90%. This used to be a problem earlier
h->nb_streams = 2
h->nb_coupled = 0
h->channels = 2
The working file (as several other working file I know) use:
h->nb_streams = 1
h->nb_coupled = 1
h->channels = 2