Announcement

Collapse
No announcement yet.

Player stuck when trying to stream from Tidal - mp4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Player stuck when trying to stream from Tidal - mp4

    > adding some albums from Tidal, I came across one which cannot be played
    > by LMS/Squeezelite.


    What album would it be?

    > From the logging, I get that the format seems to be type=mp4 embedded in
    > a file with a .flac extension.


    Hmm... that should never happen. TIDAL tells us what the best available
    quality for a track was. And we would follow their information. So if
    that file was referenced as FLAC, it means that TIDAL tells us (in their
    metadata) that the track was available losslessly, and that you were
    allowed to play it.

    How did you start playback of this track? Did you recently update your
    subscription? Or your TIDAL credentials? Did you try to remove your
    TIDAL account on MySB and re-authenticate?
    Servers: Logitech Media Server: 8.3 on Raspberry Pi 4B 8GB
    Players: SB Radio, RPi 3B+, 7’’ Touch, pCP @Marshall Acton, RPi 4B - Max2Play @Denon AVR-X4500H, AVM M30 @Nubert NuLine/NuVero 5.1

    #2
    Player stuck when trying to stream from Tidal - mp4

    adding some albums from Tidal, I came across one which cannot be played by LMS/Squeezelite.

    The player tries to open it, shows the artwork but freezes displaying "Connecting..."

    From the logging, I get that the format seems to be type=mp4 embedded in a file with a .flac extension.

    Code:
    [22-04-03 02:16:11.3694] Slim::Player::Song::open (362) wimp://20436422.flac
    [22-04-03 02:16:11.3699] Slim::Player::Song::open (386) seek=false time=0 canSeek=1
    [22-04-03 02:16:11.3710] Slim::Player::TranscodingHelper::getConvertCommand2 (493) Matched: flc->flc via: -
    [22-04-03 02:16:11.3714] Slim::Player::Song::open (416) Transcoder: streamMode=I, streamformat=flc
    [22-04-03 02:16:11.3719] Slim::Player::Song::open (472) Opening stream (no direct streaming) using Slim::Plugin::WiMP::ProtocolHandler [wimp://20436422.flac]
    [22-04-03 02:16:11.4553] Slim::Player::Song::open (502) URL is a song (audio): wimp://20436422.flac, type=mp4
    [22-04-03 02:16:11.4701] Slim::Player::StreamingController::_Stream (1282) e4:5f:01:2a:86:b1: stream
    [22-04-03 02:16:11.4735] Slim::Player::StreamingController::_Stream (1319) Song queue is now 4
    [22-04-03 02:16:11.4740] Slim::Player::StreamingController::_setPlayingState (2377) new playing state BUFFERING
    [22-04-03 02:16:11.4742] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state STREAMING
    [22-04-03 02:16:11.5508] Slim::Player::Squeezebox2::directHeaders (478) Processing headers for direct streaming:
    HTTP/1.1 200 OK
    Server: Logitech Media Server (8.2.1 - 1644703015)
    Connection: close
    Content-Type: audio/x-flac
    Set-Cookie: Squeezebox-albumView=; path=/
    Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
    Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
    Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
    Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
    Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
    Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
    
    [22-04-03 02:16:11.5965] Slim::Player::Player::_buffering (1144) Buffering... 0 / 245760
    [22-04-03 02:16:11.5971] Slim::Display::NoDisplay::showBriefly (33) caller Slim::Player::Player::_buffering (265) notifyLevel=1 
    [22-04-03 02:16:11.8994] Slim::Player::Player::_buffering (1144) Buffering... 0 / 245760
    [22-04-03 02:16:11.9006] Slim::Display::NoDisplay::showBriefly (33) caller Slim::Player::Player::_buffering (265) notifyLevel=1

    Is there a way to fix this?
    Servers: Logitech Media Server: 8.3 on Raspberry Pi 4B 8GB
    Players: SB Radio, RPi 3B+, 7’’ Touch, pCP @Marshall Acton, RPi 4B - Max2Play @Denon AVR-X4500H, AVM M30 @Nubert NuLine/NuVero 5.1

    Comment


      #3
      Originally posted by mherger View Post
      > adding some albums from Tidal, I came across one which cannot be played
      > by LMS/Squeezelite.


      What album would it be?

      > From the logging, I get that the format seems to be type=mp4 embedded in
      > a file with a .flac extension.


      Hmm... that should never happen. TIDAL tells us what the best available
      quality for a track was. And we would follow their information. So if
      that file was referenced as FLAC, it means that TIDAL tells us (in their
      metadata) that the track was available losslessly, and that you were
      allowed to play it.

      How did you start playback of this track? Did you recently update your
      subscription? Or your TIDAL credentials? Did you try to remove your
      TIDAL account on MySB and re-authenticate?
      Hello Michael,

      the album is "Cold Snap" by Albert Collins.


      Strange is that I neither know of any recent changes made, nor any other titles in flac affected. I'm on paid subscription so yes, Lossless works fine, normally.

      I would try removing & re-authenticating a bit later and let you know.

      Thanks a lot,
      Gerhard
      Servers: Logitech Media Server: 8.3 on Raspberry Pi 4B 8GB
      Players: SB Radio, RPi 3B+, 7’’ Touch, pCP @Marshall Acton, RPi 4B - Max2Play @Denon AVR-X4500H, AVM M30 @Nubert NuLine/NuVero 5.1

      Comment


        #4
        Originally posted by Ge Ba View Post
        Hello Michael,

        the album is "Cold Snap" by Albert Collins.


        Strange is that I neither know of any recent changes made, nor any other titles in flac affected. I'm on paid subscription so yes, Lossless works fine, normally.

        I would try removing & re-authenticating a bit later and let you know.

        Thanks a lot,
        Gerhard
        Interesting, it only plays at HIGH quality in the Tidal app as well, not HIFI.

        Sent from my Pixel 3a using Tapatalk
        Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
        Bedroom: Radio
        Bathroom: Radio

        Comment


          #5
          If you change the streaming quality to AAC/320kbps in the LMS Tidal plugin then it plays at 320kbps AAC but the now playing screen in LMS reports 0kbps FLAC.

          Sent from my Pixel 3a using Tapatalk
          Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
          Bedroom: Radio
          Bathroom: Radio

          Comment


            #6
            Originally posted by slartibartfast View Post
            If you change the streaming quality to AAC/320kbps in the LMS Tidal plugin then it plays at 320kbps AAC but the now playing screen in LMS reports 0kbps FLAC.

            Sent from my Pixel 3a using Tapatalk
            Thanks, but this doesn't work for me for some reason. Also it would just be a temporary workaround as well.

            Looks like the file is erroneously stored with .flac extension although technically it is .mp4 ? - Guess I should address it to Tidal then as an error.
            Servers: Logitech Media Server: 8.3 on Raspberry Pi 4B 8GB
            Players: SB Radio, RPi 3B+, 7’’ Touch, pCP @Marshall Acton, RPi 4B - Max2Play @Denon AVR-X4500H, AVM M30 @Nubert NuLine/NuVero 5.1

            Comment


              #7
              This indeed looks like invalid metadata. Here's what we get for one of those tracks (the one listed in your initial posting:

              Code:
              do {
                my $a = {
                  album                => {
                                            cover => "617e93f2-03eb-48b6-aaef-c356c7c92913",
                                            id => 20436415,
                                            title => "Cold Snap",
                                            vibrantColor => "#f8da61",
                                            videoCover => undef,
                                          },
                  allowStreaming       => bless(do{\(my $o = 1)}, "JSON::XS::Boolean"),
                  artist               => {
                                            id => 10930,
                                            name => "Albert Collins",
                                            picture => "065f3881-ad18-4a84-9548-812823d344d9",
                                            type => "MAIN",
                                          },
                  artists              => [
                                            {
                                              id => 10930,
                                              name => "Albert Collins",
                                              picture => "065f3881-ad18-4a84-9548-812823d344d9",
                                              type => "MAIN",
                                            },
                                          ],
                  audioModes           => ["STEREO"],
                  audioQuality         => "LOSSLESS",
                  copyright            => "1986 Alligator Records & Artist Mgmt., Inc",
                  duration             => 413,
                  editable             => bless(do{\(my $o = 0)}, "JSON::XS::Boolean"),
                  explicit             => bless(do{\(my $o = 0)}, "JSON::XS::Boolean"),
                  id                   => 20436422,
                  isrc                 => "USARL8675207",
                  mixes                => { TRACK_MIX => "0011d7dc959da6eb39d7a139c062a4" },
                  peak                 => "0.914275",
                  popularity           => 1,
                  premiumStreamingOnly => bless(do{\(my $o = 0)}, "JSON::XS::Boolean"),
                  replayGain           => "-2.26",
                  streamReady          => bless(do{\(my $o = 1)}, "JSON::XS::Boolean"),
                  streamStartDate      => "2009-06-18T00:00:00.000+0000",
                  title                => "Too Many Dirty Dishes",
                  trackNumber          => 7,
                  url                  => "http://www.tidal.com/track/20436422",
                  version              => undef,
                  volumeNumber         => 1,
                };
              }
              As you can see it says "audioQualit: LOSSLESS". That's what we are looking for to decide whether a track was available as FLAC or not. We have to rely on the data we receive to initialise the playback. There's not much we can do in this case.

              Please reach out to TIDAL and report the invalid data. Thanks!
              Michael

              "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
              (LMS: Settings/Information)

              Comment


                #8
                Originally posted by mherger View Post
                Please reach out to TIDAL and report the invalid data. Thanks!
                Thanks Michael,

                Will do so!

                Gerhard

                Sent from my BLA-L29 using Tapatalk
                Servers: Logitech Media Server: 8.3 on Raspberry Pi 4B 8GB
                Players: SB Radio, RPi 3B+, 7’’ Touch, pCP @Marshall Acton, RPi 4B - Max2Play @Denon AVR-X4500H, AVM M30 @Nubert NuLine/NuVero 5.1

                Comment


                  #9
                  Originally posted by Ge Ba View Post
                  Thanks Michael,

                  Will do so!

                  Gerhard

                  Sent from my BLA-L29 using Tapatalk
                  Did you report this to Tidal? The album is available as FLAC now [emoji2].

                  Sent from my Pixel 3a using Tapatalk
                  Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                  Bedroom: Radio
                  Bathroom: Radio

                  Comment

                  Working...
                  X