CelliesProjects / ESP32_VS1053_Stream

A streaming library for Arduino esp32 with a vs1053 mp3/aac/ogg/flac decoder. Plays http, https (insecure mode) and chunked streams and parses the metadata. Also plays ogg and mp3 from sdcard.
MIT License
37 stars 9 forks source link

Unable to play ogg streams, flac ogg playing but no sound #8

Closed Sentinel8000 closed 2 years ago

Sentinel8000 commented 2 years ago

When i try play ogg streams with the library i get false to streamisrunning and codec: unknow and code fail to play ogg streams, no sound.

Tested normal ogg streams:

http://retro.dancewave.online/retrodance.ogg https://icast.connectmedia.hu/4765/mr2.ogg https://www.jazzradio.hu:8000/jazzradio_192.ogg
https://icast.connectmedia.hu/4765/mr2.ogg http://dancewave.online/dance.ogg

If i try flac ogg (maybe not supported), library detect codec: ogg and streamisrunning true but no sound.

Tested Flac type ogg stream: http://retro.dancewave.online/retrodance.flac.ogg

Im not sure, the problem is with the library or the ogg format not supported.

CelliesProjects commented 2 years ago

An Ogg stream can be two things:

This library only plays files and streams encoded with the Ogg-Vorbis codec. So no FLAC encoded files.

Any Ogg files containing streams that are not mp3, aac, aac+ or Ogg-Vorbis will not be recognised or played.

CelliesProjects commented 2 years ago

See https://www.vlsi.fi/en/support/software/vs10xxpatches.html

Sentinel8000 commented 2 years ago

I know flac type ogg need extra patch for vs1053 library to use, i have just tested.

But if we talk about flac, i know about these patches, if i have this in a header format and im include this in code. Stream will be played or will be problem because this library is a extension for the vs1053 library?

https://github.com/schreibfaul1/ESP32-vs1053_ext/blob/master/src/vs1053b-patches-flac.h

Im reverse the ogg vorbis part of your answer/my question, if my shared ogg streams was not ,,standard" (lookslike all what i have found) can you give a example ogg stream what can handle the vs1053 stream?

CelliesProjects commented 2 years ago

Just pushed 99eec8a which should fix at least some of the above streams. Some more work might be needed. http://retro.dancewave.online/retrodance.flac.ogg does not play, but in debug mode I see data being pumped to the codec, but no sound.