Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: johnb on July 29, 2017, 03:46:27 AM

Title: Opus @ 32kBit: plays fine, but crashes on resume or bookmarks
Post by: johnb on July 29, 2017, 03:46:27 AM
I encoded an audiobook with libopus 1.2.1 @ 32kBit VBR.

Playback and seeking works fine, but resuming playback (after stopping) or launching a bookmark crashes RB on my clip+ with this message:

*PANIC*
Stkov codec
pc: 30063F8C sp:30803B:
    A: 300BCB8
bt end


A different audiobook that I had encoded @ 48kBit/s doesn't show this problem.  <-- that was libopus 1.2-alpha

Is this kinda expected/reasonable as the RB opus.codec has not been updated?
Title: Re: Opus @ 32kBit: plays fine, but crashes on resume or bookmarks
Post by: saratoga on July 29, 2017, 12:10:41 PM
It's definitely a bug if it crashes on resume. I thought the opus resume problems we're resolved last year, but apparently not. 

Do you have a test file you can share that triggers it?
Title: Re: Opus @ 32kBit: plays fine, but crashes on resume or bookmarks
Post by: johnb on July 29, 2017, 01:42:30 PM
I sent you a PM regarding sample files.

-------------------------------------------------
I did some more tests:

The problem exists @ 32 & 48 kBit/s
All is fine @ 64 & 96 kBit/s.


So I believe this is due to the codec improvements jmvalin has done in the   < 48 kBit/s range:
https://hydrogenaud.io/index.php/topic,114234.0.html

EDIT3:
I get the crashes on clip+, FuzeV2, FuzeV1.
No crash with Samsung YP-R0 and Sony 585  (both hosted).

EDIT4: It doesn't happen with music, rather with speech. So I encoded this free speech:
https://archive.org/download/ObamaSpeech/obama%20speech.flac

32 kBit sample:  http://www.mediafire.com/file/o7c1ccwuzs1ckl2/obama_speech.32.opus
48 kBit sample: http://www.mediafire.com/file/bt0llwlyaeucxl7/obama_speech.48.opus
Both crash RB on the Sansas.

Saratoga, I removed the two files I provided earlier in favor of the freely accessible ones.
Title: Re: Opus @ 32kBit: plays fine, but crashes on resume or bookmarks
Post by: saratoga on August 12, 2017, 03:23:11 PM
Thanks for looking into this.  Unfortunately I'm not familiar with Opus's SILK mode and not likely to have time to work on it soon.