Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
  1. #11
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    960
    Quote Originally Posted by philippe_44
    I've submitted a PR here https://github.com/Logitech/slimserver/pull/606 but I think you should try it more because I think there are still various challenges with trying to stream flac like that.
    Much appreciated Philippe. I've dropped the 5 files from your PR into my existing install and after a restart of LMS the /stream.flac path is indeed available. It plays just fine on an Echo but I have no way of knowing what the stream actually is that the Echo is receiving. In iPeng, the AlexaPlayer shows up and if I click on 'more info' when streaming a FLAC file, I see this:

    That would seem to imply that the stream is an MP3 conversion from FLAC rather than native FLAC, or am I misunderstanding?

    Name:  IMG_5794.PNG
Views: 161
Size:  62.8 KB

  2. #12
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,896
    Quote Originally Posted by philchillbill View Post
    Much appreciated Philippe. I've dropped the 5 files from your PR into my existing install and after a restart of LMS the /stream.flac path is indeed available. It plays just fine on an Echo but I have no way of knowing what the stream actually is that the Echo is receiving. In iPeng, the AlexaPlayer shows up and if I click on 'more info' when streaming a FLAC file, I see this:

    That would seem to imply that the stream is an MP3 conversion from FLAC rather than native FLAC, or am I misunderstanding?

    Name:  IMG_5794.PNG
Views: 161
Size:  62.8 KB
    I missed that answer.

    Not sure re mp3, it might be a display artefact that I've forgotten to fix. I'll check that. Can you try with a client like VLC or fb2k?
    Last edited by philippe_44; 2021-05-19 at 01:17.
    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 & 3

  3. #13
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    960
    Quote Originally Posted by philippe_44;
    I missed that answer. No, the mp3 reference is a display artefact that I've forgotten to fix
    Well everything I tested played perfectly from an audio perspective. Did see a metadata artefact for the first song in a playlist where part of the name of the track was a placeholder instead of the tag. But really great progress I would say !

  4. #14
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    960

    Alexa can now handle FLAC streams

    Name:  Screenshot 2021-05-19 195030.png
Views: 126
Size:  16.5 KB

    Quote Originally Posted by philippe_44;
    Can you try with a client like VLC or fb2k?
    Same story in VLC. It plays just fine but the stream is shown as being lossy (see above). What I noticed today is that playing the stream in the browser tried to download a stream.flac file rather than start an audio stream, as if the MIME header was wrong. After a few retries it became an audio stream. Strange.
    Last edited by philchillbill; 2021-05-19 at 12:28.

  5. #15
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,896
    Quote Originally Posted by philchillbill View Post
    Name:  Screenshot 2021-05-19 195030.png
Views: 126
Size:  16.5 KB
    Same story in VLC. It plays just fine but the stream is shown as being lossy (see above). What I noticed today is that playing the stream in the browser tried to download a stream.flac file rather than start an audio stream, as if the MIME header was wrong. After a few retries it became an audio stream. Strange.
    Weird... I've tried with VLC and got confirmation that it's flac. I'm wondering if either I forgot to put something in the PR or you missed something in applying it
    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 & 3

  6. #16
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    960
    Quote Originally Posted by philippe_44
    Weird... I've tried with VLC and got confirmation that it's flac. I'm wondering if either I forgot to put something in the PR or you missed something in applying it
    I saw 5 changed files in the PR, so on my Ubuntu install, I stopped LMS and copied:

    silence.flac and silence-header.flac to /usr/share/squeezeboxserver/HTML/EN/html
    convert.conf to /usr/share/squeezeboxserver
    HTTP.pm to /usr/share/perl5/Slim/Player
    the other HTTP.pm to /usr/share/perl5/Slim/Web

    I then did a sudo chown root:root on all the copies filed and restarted LMS

    TBH I'm not sure why my LMS has files in /usr/share/squeezeboxserver and in /usr/share/perl5 so maybe my approach in applying your PR to my existing install was wrong.

  7. #17
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,896

    Alexa can now handle FLAC streams

    Quote Originally Posted by philchillbill View Post
    I saw 5 changed files in the PR, so on my Ubuntu install, I stopped LMS and copied:

    silence.flac and silence-header.flac to /usr/share/squeezeboxserver/HTML/EN/html
    convert.conf to /usr/share/squeezeboxserver
    HTTP.pm to /usr/share/perl5/Slim/Player
    the other HTTP.pm to /usr/share/perl5/Slim/Web

    I then did a sudo chown root:root on all the copies filed and restarted LMS

    TBH I'm not sure why my LMS has files in /usr/share/squeezeboxserver and in /usr/share/perl5 so maybe my approach in applying your PR to my existing install was wrong.
    Got it - I missed what happens when the URL contains a player's name (like stream.flac?player=Alexa) and that caused the issue (it changes for how long LMS remembers a player after it disappeared). I've updated the PR
    Last edited by philippe_44; 2021-05-19 at 23:12.
    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 & 3

  8. #18
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    960
    Quote Originally Posted by philippe_44;
    Got it - I missed what happens when the URL contains a player's name (like stream.flac?player=Alexa) and that caused the issue (it changes for how long LMS remembers a player after it disappeared). I've updated the PR
    I dropped in that one changed file (Slim/Web/HTTP.pm) and indeed VLC now showed the stream as FLAC for the first attempt at playing something. However, exiting VLC and then restarting the same file now showed it as MPEG. I also saw a few times with playing in the browser an attempt to download a file called stream.flac rather than play it as audio, so looks like the MIME/haeder issue might still be there. I have never seen that with /stream.mp3.

    Have you tried "Forget this player" in the WEB UI using Settings --> Player --> VLC from Alexa --> Forget this player? It works fine when the player was created via /stream.mp3 but not when /stream.flac is used.

    Also, player controls like next/previous seem to work sometimes and sometimes not.
    Last edited by philchillbill; 2021-05-20 at 02:26.

  9. #19
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,896

    Alexa can now handle FLAC streams

    Quote Originally Posted by philchillbill View Post
    I dropped in that one changed file (Slim/Web/HTTP.pm) and indeed VLC now showed the stream as FLAC for the first attempt at playing something. However, exiting VLC and then restarting the same file now showed it as MPEG. I also saw a few times with playing in the browser an attempt to download a file called stream.flac rather than play it as audio, so looks like the MIME/haeder issue might still be there. I have never seen that with /stream.mp3.

    Have you tried "Forget this player" in the WEB UI using Settings --> Player --> VLC from Alexa --> Forget this player? It works fine when the player was created via /stream.mp3 but not when /stream.flac is used.

    Also, player controls like next/previous seem to work sometimes and sometimes not.
    ah crap... I need to investigate more. Difficulty is that although flac is fully streamable w/o header, some "players" want a header, still. MP3 does not suffer from that.

    I also do my tests with fb2k so Iĺll add VLC systematically now
    Last edited by philippe_44; 2021-05-20 at 09:38.
    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 & 3

  10. #20
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,896
    Quote Originally Posted by philippe_44 View Post
    ah crap... I need to investigate more. Difficulty is that although flac is fully streamable w/o header, some "players" want a header, still. MP3 does not suffer from that.

    I also do my tests with fb2k so Iĺll add VLC systematically now
    I think I'll have to give up on this one. There are too many issues with a flac continuous stream.

    Normally, flac is supposed to be streamable because it has paquets delimiters like mp3 and each paquet is self-contained, which makes headers optional. Unfortunately, most players I've tried want headers. Then the ones that can just work with paquets can't accept sampling rate change in the stream (which will happen as this is a continuous stream but with different tracks - again mp3 allows that). Then when playing local files, LMS might not transcode them (flac) and in that case they have a full flac header which confuses even more players that can accept raw paquet (they can't recover flac sync properly).

    On paper, this should work according to flac specs, but in practice it does not
    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 & 3

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •