Ogg Vorbis stop playing

Designing hardware that uses VLSI Solution's devices as slave codecs such as an external MP3 decoder chip for a host microcontroller.
Post Reply
bbaldach
User
Posts: 3
Joined: Thu 2021-10-14 17:48

Ogg Vorbis stop playing

Post by bbaldach »

Hello, i've designed a "music" player based on Arduino Mega and VS1053.
It works very well with MP3 files but with Ogg Vorbis depending of file "quality" the file stop playing after 1 to 3 minutes.
I don't think it come from Arduino (that works well with MP3s) and continue to react to other signals (switch).
Is there anybody who has already encountered this problem?

I use Adafruit_VS1053 library.

Thanks for your feedback.
bbaldach
User
Posts: 3
Joined: Thu 2021-10-14 17:48

Re: Ogg Vorbis stop playing

Post by bbaldach »

i've made some measurement with scope. VS1053 stop toggle "DREQ" after few seconds depending of Ogg file "quality". Is there a patch to solve that problem ?
User avatar
pasi
VLSI Staff
Posts: 1829
Joined: Thu 2010-07-15 16:04

Re: Ogg Vorbis stop playing

Post by pasi »

bbaldach wrote: Thu 2021-10-21 20:19VS1053 stop toggle "DREQ" after few seconds depending of Ogg file "quality". Is there a patch to solve that problem ?
Check out the vs1053b patches package from http://www.vlsi.fi/en/support/software/ ... tches.html
vs1053b Patches wrote:Vorbis: If the first four bytes of Ogg Vorbis file wrap from the end of the stream buffer to the beginning, the decoding will get stuck.
Vorbis: If left channel is empty (digital 0), right channel may be ignored.
It could be that you're encountering the first situation. Edit: hmm, maybe not. Could you send us an example file which gets stuck? Also, performing a SCI register dump at this point could give more information.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
bbaldach
User
Posts: 3
Joined: Thu 2021-10-14 17:48

Re: Ogg Vorbis stop playing

Post by bbaldach »

Thanks.

I've tried with the patch and it doesn't change anything.

This is a link to the file i used:
https://1drv.ms/u/s!Ag-_HX8J6xwBgYQWzMD ... w?e=2Of3Q6
Do you know a tool to "analyse" ogg file?

I never try to make a dump of SCI Register. I'll try to do it.
User avatar
pasi
VLSI Staff
Posts: 1829
Joined: Thu 2010-07-15 16:04

Re: Ogg Vorbis stop playing

Post by pasi »

Ogginfo doesn't find any issues with the file, and neither does oggcrc.

Ogginfo is available on linux. You can find oggcrc source code from: viewtopic.php?t=2376

Edit: Seems to play fine with vs1063a and vs1053b (with or without the patches package). So, I suggest checking your SPI speed, clock polarity, and chip select handling.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Post Reply