Vs1053 stopping files

Designing hardware that uses VLSI Solution's devices as slave codecs such as an external MP3 decoder chip for a host microcontroller.
Post Reply
kayan
User
Posts: 4
Joined: Mon 2020-06-22 11:58

Vs1053 stopping files

Post by kayan » Mon 2020-06-22 12:51

Hello I am new in this forum . I am using the vs1053 as a slave for AVR MCU and adafruit library.When I play some files from sd card playing stops at ten seconds( I dont know why at ten second).This is happening only three or four files in a hundred files.I could not find the common feature of this files.Why this error may happen ,thank you

User avatar
pasi
VLSI Staff
Posts: 1690
Joined: Thu 2010-07-15 16:04

Re: Vs1053 stopping files

Post by pasi » Mon 2020-06-22 14:15

1. Which audio format(s) are the files?
2. Does the playback always stop on the same files? Are other files playing more than 10 seconds?
3. Does the playback continue normally from the next file?
4. Is it exactly 10 seconds, or approximately?
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

kayan
User
Posts: 4
Joined: Mon 2020-06-22 11:58

Re: Vs1053 stopping files

Post by kayan » Mon 2020-06-22 17:39

Hi, thank you for response.

1.I am working on only mp3 files.
2.Yes playback stops same files,there is no problem with other files
3. playback just stops.
4.i am reading decodetime. when i select the specific files ,the decode time freezes at tenth second and playback stops.

note: i download the id3 tag reader and sorted music by their bitrates i noticed that the files which stops at tenth second dont have bitrate in their tags.
Attachments
Ekran Görüntüsü (132).png
Ekran Görüntüsü (132).png (143.43 KiB) Viewed 157 times

User avatar
pasi
VLSI Staff
Posts: 1690
Joined: Thu 2010-07-15 16:04

Re: Vs1053 stopping files

Post by pasi » Tue 2020-06-23 14:37

Could you send me one of the failing files to our support at vlsi.fi address?

The files probably do not have an ID3v2 tag. Does your player make use of the ID3 tags in any way?
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

kayan
User
Posts: 4
Joined: Mon 2020-06-22 11:58

Re: Vs1053 stopping files

Post by kayan » Tue 2020-06-23 14:55

no my player not using id3 tags yet, I just noticed the files which i mentioned dont have id3 tags

User avatar
pasi
VLSI Staff
Posts: 1690
Joined: Thu 2010-07-15 16:04

Re: Vs1053 stopping files

Post by pasi » Wed 2020-06-24 9:46

Those files seem to be MP4-AAC files in a DASH container. You should see 'M4' in HDAT1.

The DASH container is the reason why the playback stops after 10 seconds.

We have added code in the vs1063a patches package so that vs1063a will play the DASH files, but I haven't (yet) checked if the same is possible and feasible for vs1053b.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

kayan
User
Posts: 4
Joined: Mon 2020-06-22 11:58

Re: Vs1053 stopping files

Post by kayan » Wed 2020-06-24 17:19

Thank you, as you said HDAT1 = 0x4d34 . then i will skip those files by checking id3 tags .another question do you think can AVR(max 16Mhz working frequency) handle with flac files.

User avatar
pasi
VLSI Staff
Posts: 1690
Joined: Thu 2010-07-15 16:04

Re: Vs1053 stopping files

Post by pasi » Fri 2020-06-26 12:11

Unfortunately vs1053b doesn't have the same "patch hooks" in the AAC decoder, so supporting DASH files is pretty much out of the question unless you switch to vs1053a.

You'll have to test if flac is possible. It's all about the SPI transfer rates and the latency of the storage you have. If you use SD or uSD, you want to use multiple block read. Or if you use a library function, then it might already support that.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply