Certain OGG files fail to play back
Posted: Sat 2024-03-02 1:46
First things first. I don't think this is the "high bit of the stream ID" issue, I had trouble with that initially, but was able to fix it by applying the patch.
That said, I'm using a number of OGG files that were created using ffmpeg.exe under Windows. Approximately 10% of them don't play back correctly. They start correctly, then after a few seconds of silence the player reports that it's stopped.
Full environment. I'm working with an Adafruit MusicMaker Featherwing, using an SD card to provide the music files. The Microcontroller is an ESP32-S2, using the Adafruit Feather form factor. I'm using the Adafruit VS1053 library found at https://github.com/adafruit/Adafruit_VS1053_Library . So I'll confess that I'm not crystal clear exactly how the data from the file is passed into the VS1053B. Since it will successfully play most songs, it seems reasonable to assume the error is with the OGG file itself.
I've attached an example of an OGG file that does not play correctly. If you can provide any insight into the problem, I'd be most grateful.
If all else fails, I could encode it as an AAC file instead, although I'd prefer OGG if possible. Support of AAC files would require some additional logic and changes in the playback software.
That said, I'm using a number of OGG files that were created using ffmpeg.exe under Windows. Approximately 10% of them don't play back correctly. They start correctly, then after a few seconds of silence the player reports that it's stopped.
Full environment. I'm working with an Adafruit MusicMaker Featherwing, using an SD card to provide the music files. The Microcontroller is an ESP32-S2, using the Adafruit Feather form factor. I'm using the Adafruit VS1053 library found at https://github.com/adafruit/Adafruit_VS1053_Library . So I'll confess that I'm not crystal clear exactly how the data from the file is passed into the VS1053B. Since it will successfully play most songs, it seems reasonable to assume the error is with the OGG file itself.
I've attached an example of an OGG file that does not play correctly. If you can provide any insight into the problem, I'd be most grateful.
If all else fails, I could encode it as an AAC file instead, although I'd prefer OGG if possible. Support of AAC files would require some additional logic and changes in the playback software.