sle118 or @philippe_44 I saw a sneak preview of an Ethernet board with Squeezeamp a while back , and was wondering how things are coming along with the board, but also on the software side. This would be a general info question , and not in any way meant as a nudge.
Announcement
Collapse
No announcement yet.
ANNOUNCE: Squeezelite-ESP32 (dedicated thread)
Collapse
X
-
Comment
-
Comment
-
sle118 or @philippe_44 I saw a sneak preview of an Ethernet board with Squeezeamp a while back , and was wondering how things are coming along with the board, but also on the software side. This would be a general info question , and not in any way meant as a nudge.
Although it is mentioned that Ethernet support requires the "unpublished" v4.3 version of squeezelite-esp32, this v4.3 software is actually available for download . As far as I know a Squeezeamp board with ethernet connector does not exist (yet). So you would need to connect/solder the mentioned ethernet boards to mentioned GPIO pins of the WROVER module (when using an ethernet board with RMII interface), or to the SPI interface of the WROVER module (when using an ethernet board with SPI interface).
Last edited by CJS; 2023-03-08, 10:10.| LMS 8.3.2 on Linux Mint 21.2 | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |Comment
-
I suppose you mean the picture of the board that sle118 refers to as SqueezeIO design in post number 1791? That board looks for sure interesting. But I don't think that it is a "Squeezeamp" board, in the sense that it does not have an audio power amplifier.
According to the description that sle118 gives in post 1780, the SqueezeIO design "is a board that has Ethernet and simultaneous optical and RCA digital out as well as analog out... In addition to analog in".Last edited by CJS; 2023-03-08, 16:06.| LMS 8.3.2 on Linux Mint 21.2 | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |Comment
-
I suppose you mean the picture of the board that sle118 refers to as SqueezeIO design in post number 1791? That board looks for sure interesting. But I don't think that it is a "Squeezeamp" board, in the sense that it does not have an audio power amplifier.
According to the description that sle118 gives in post 1780, the SqueezeIO design "is a board that has Ethernet and simultaneous optical and RCA digital out as well as analog out... In addition to analog in".
LMS 7.9 - 1xRadio, 1xBoom, 5xDuet,3xTouch, 1 SB2. Sony PlayStation, Emby, Chromecast v1 and v2 and...
6xSqueezeAmp, several other ESP32-Wrover boards with jumper wires flying around, some with ethernet!Comment
-
Hi Folks,
I've noticed that some of my flac files won't play on my PV DAC32. I've posted on the DAC32 thread, but it was suggested I post it here. Some analysis of the issue was done on the other thread (following my post there), for reference.
Hoping someone here will be able to help me understand why some of my flac files won't play on the DAC32, but do play everywhere else.
Thanks for your help!
BrawnyComment
-
I've noticed that some of my flac files won't play on my PV DAC32. I've posted on the DAC32 thread, but it was suggested I post it here. Some analysis of the issue was done on the other thread (following my post there), for reference.
Hoping someone here will be able to help me understand why some of my flac files won't play on the DAC32, but do play everywhere else.Last edited by CJS; 2023-03-10, 19:24.| LMS 8.3.2 on Linux Mint 21.2 | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |Comment
-
The key question is why the FLAC file that is made available for download by brawny does play on piCorePlayer with squeezelite v1.9.9-1419-pCP, but not on ESP32 players with squeezelite-ESP32. This specific FLAC file does not play on the DAC32 with 32-bit squeezelite-ESP32 (Polyvection firmware v1.2.6), and also not on my ESP Muse Luxe with 16-bit squeezelite-ESP32 v2.1254. Maybe philippe_44 has an idea why?LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3Comment
-
At this moment I can only tell that when I try to play mentioned FLAC file on my ESP Muse Luxe player, LMS gives the following error message (mac address of player obscured):
Code:[23-03-10 22:09:02.5942] Slim::Player::Squeezebox2::statHandler (156) Error: xx:xx:xx:xx:xx:xx: Decoder does not support file format, code 0
FYI, the FLAC example file that does not play on squeezelite-ESP32 can be downloaded from this post posted by brawny .
EDIT: I opened a telnet session on my ESP Muse Luxe. When I start playing mentioned FLAC I get following messages in the telnet terminal:
Code:[08:39:50.329369] flac_decode:267 flac error: FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR [08:39:50.333891] decode_thread:100 decode error [08:39:50.418306] output_thread_i2s:463 Output state is 1 [08:39:50.560737] decode_flush:251 decode flush [08:39:50.561365] output_flush:446 flush output buffer [08:39:50.581360] output_thread_i2s:463 Output state is 0 I (2402957) muse: Called for battery service with 4.110769 I (2402957) battery: Voltage 4.11V [08:40:20.860157] output_thread_i2s:463 Output state is -1 [08:40:20.860713] output_thread_i2s:467 switching off amp GPIO 21 [08:39:50.162816] stream_thread:264 headers: len: 493 HTTP/1.1 200 OK Server: Logitech Media Server (8.3.2 - 1677516824) Connection: close Content-Type: audio/x-flac Set-Cookie: Squeezebox-albumView=; path=/ Set-Cookie: Squeezebox-expandPlayerControl=true; path=/ Set-Cookie: Squeezebox-expanded-MY_MUSIC=0; path=/ Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/ Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/ Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/ Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
Last edited by CJS; 2023-03-10, 21:50.| LMS 8.3.2 on Linux Mint 21.2 | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |Comment
-
At this moment I can only tell that when I try to play mentioned FLAC file on my ESP Muse Luxe player, LMS gives the following error message (mac address of player obscured):
Code:[23-03-10 22:09:02.5942] Slim::Player::Squeezebox2::statHandler (156) Error: xx:xx:xx:xx:xx:xx: Decoder does not support file format, code 0
FYI, the FLAC example file that does not play on squeezelite-ESP32 can be downloaded from this post posted by brawny .
EDIT: I opened a telnet session on my ESP Muse Luxe. When I start playing mentioned FLAC I get following messages in the telnet terminal:
Code:[08:39:50.329369] flac_decode:267 flac error: FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR [08:39:50.333891] decode_thread:100 decode error [08:39:50.418306] output_thread_i2s:463 Output state is 1 [08:39:50.560737] decode_flush:251 decode flush [08:39:50.561365] output_flush:446 flush output buffer [08:39:50.581360] output_thread_i2s:463 Output state is 0 I (2402957) muse: Called for battery service with 4.110769 I (2402957) battery: Voltage 4.11V [08:40:20.860157] output_thread_i2s:463 Output state is -1 [08:40:20.860713] output_thread_i2s:467 switching off amp GPIO 21 [08:39:50.162816] stream_thread:264 headers: len: 493 HTTP/1.1 200 OK Server: Logitech Media Server (8.3.2 - 1677516824) Connection: close Content-Type: audio/x-flac Set-Cookie: Squeezebox-albumView=; path=/ Set-Cookie: Squeezebox-expandPlayerControl=true; path=/ Set-Cookie: Squeezebox-expanded-MY_MUSIC=0; path=/ Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/ Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/ Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/ Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3Comment
-
Let me try to give a summary / history of the issue:- Member brawny posted in this post in the DAC32 thread that certain flac files in his large collection of flac files do NOT play on his DAC32 player, but DO play on all other squeezebox players (including pCP) as well as on other software players.
- On request he uploaded an example flac file that does not play on his DAC32 player
- Member kidstypike confirmed that the example FLAC also does not play on his DAC32 player (but that it did play after re-encoding to FLAC using "EZ CD Audio Converter").
- I (CJS) can confirm that the example FLAC also does not play on my ESP Muse Luxe (tested with firmware v1.0-1254-16)
Further testing that I did:
The example FLAC plays fine on:- Squeezebox Boom
- piCorePlayer with squeezelite v1.9.9-1419-pCP on RPi Zero
- Squeezebox Controller player with firmware 8.0.1-r16907
- SqueezePlay v8.0.1r1420 on Windows.
- DAC32 player with latest PolyVection firmware v1.2.6 (tested by others)
- ESP Muse Luxe with firmware v1.0-1254-16 (tested by me)
I have re-encoded the FLAC to FLAC using ffmpeg.exe v5.1.2, and the re-encoded FLAC plays fine on my ESP Muse Luxe player.
FYI, I used following command for re-encoding:
Code:ffmpeg -i input.flac -c:v copy -acodec flac -compression_level 5 output.flac
Re-encoding FLAC files would be a workaround, but it would be better if squeezelite-ESP32 can play these FLAC files that can be played on other players without problem. The ESP32 log suggests a memory limitation (flac_decode:267 flac error: FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR), but then I wonder why other players including squeezelite do not report a similar problem.
philippe_44 , let me know if you want me to open an issue on squeezelite-esp32 github.
======================
EDIT 2023-03-14: Today I discovered that I can make the example FLAC file playable on ESP32 by using ffmpeg to only update the metadata in the FLAC file, so WITHOUT re-encoding the audio! Following command was used to update the metadata:
Code:ffmpeg -i input.flac -c:v copy -c:a copy output.flac
I don't much about the FLAC format, but will try to find out which are the differences in meta data between the original FLAC (that does not play on ESP32) and the updated FLAC (that does play on ESP32). I will post my findings in a follow-up post.Last edited by CJS; 2023-03-14, 18:40.| LMS 8.3.2 on Linux Mint 21.2 | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |Comment
-
EDIT 2023-03-14: Today I discovered that I can make the example FLAC file playable on ESP32 by using ffmpeg to only update the metadata in the FLAC file, so WITHOUT re-encoding the audio!
Following command was used to update the metadata:
Code:ffmpeg -i input.flac -c:v copy -c:a copy output.flac
I will try to find out which are the differences in meta data between the original FLAC (that does not play on ESP32) and the updated FLAC (that does play on ESP32). I will post my findings in a follow-up post.
It appears that the posted example file has an empty METADATA_BLOCK_SEEKTABLE with the following content:
Code:METADATA block #2 type: 3 (SEEKTABLE) is last: false length: 0 seek points: 0
Code:metaflac.exe --remove --block-type=SEEKTABLE original.flac
===========================
EDIT: For who is interested, further technical details are provided below.
The table below shows a comparison of the METADATA blocks of the original FLAC (ESP32_NOPLAY.flac) and the updated FLAC (ESP32_PLAY.flac):
Code:+-----------+---------------------------+--------------------------+ | Flacfile | ESP32_NOPLAY.flac | ESP32_PLAY.flac | +-----------+---------------------------+--------------------------+ | block #0 | type: 0 (STREAMINFO) | | | total samples: 7592844 | | | MD5 signature: dc12a8a89fd9f0f25a0f0d38d875d8fc | +-----------+---------------------------+--------------------------+ | block #1 | type: 4 (VORBIS_COMMENT) | | | vendor string: reference libFLAC 1.3.0 20130526 | | | comments: 14 | +-----------+---------------------------+--------------------------+ | block #2 | type: 3 (SEEKTABLE) | type: 6 (PICTURE) | | | length: 0 | length: 121085 | | | seek points: 0 | data length: 121043 | +-----------+---------------------------+--------------------------+ | block #3 | type: 6 (PICTURE) | type: 1 (PADDING) | | | length: 121085 | is last: true | | | data length: 121043 | length: 3082 | +-----------+---------------------------+--------------------------+ | block #4 | type: 1 (PADDING) | | | | is last: true | | | | length: 3078 | | +-----------+---------------------------+--------------------------+
1) STREAMINFO, VORBIS_COMMENT and PICTURE blocks in both files are identical.
2) File that does not play on ESP32 has an "empty" SEEKTABLE block with length: 0 and seek points: 0.
3) After removing the empty SEEKTABLE metadata block with ffmpeg (automatically) or metaflac (explicitly) the FLAC file becomes playable on ESP32 players.
I will create an Issue (problem report) on the squeezelite-esp32 github, and refer to this forum post.
EDIT: Issue 231 has been created on squeezelite-esp32 gitbub.Last edited by CJS; 2023-03-15, 08:16.| LMS 8.3.2 on Linux Mint 21.2 | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |👍 1Comment
Comment