Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bitrate, Bitdepth and Decoder information to playing track #808

Open
orenskl opened this issue Feb 14, 2022 · 2 comments
Open

Add Bitrate, Bitdepth and Decoder information to playing track #808

orenskl opened this issue Feb 14, 2022 · 2 comments

Comments

@orenskl
Copy link

orenskl commented Feb 14, 2022

Problem to solve

Currently mopidy-iris does not present the user with the track audio stream data. I think it would be nice to add such a feature - specifically for audiophile users.

Proposed solution

Add the following information to displayed with the track data:

  • Track Bitrate
  • Track Bitdepth
  • Track Decoder

Additional info

No response

@jaedb
Copy link
Owner

jaedb commented Feb 17, 2022

It really comes down to whether this data is provided by the source. While this could be 'acquired' from other sources, it wouldn't necessarily align with your specific version of the audio.

On top of this, the Mopidy Track model only supports bitrate of your requested attributes.

bitrate could be exposed and this should be relatively straightforward, at least for Mopidy-Local tracks, but other sources (Spotify HTTP API for instance) are not likely to provide this; the track will need to be loaded by Mopidy first. I would expect that the Spotify backend would determine the playback quality, so this would be the same for all Spotify tracks anyway.

@orenskl
Copy link
Author

orenskl commented Feb 18, 2022

Using Mopidy-tidal as a backend I get this:

{
   "id" : 1,
   "jsonrpc" : "2.0",
   "result" : {
      "__model__" : "Track",
      "album" : {
         "__model__" : "Album",
         "artists" : [
            {
               "__model__" : "Artist",
               "name" : "Amy Winehouse",
               "uri" : "tidal:artist:15796"
            }
         ],
         "name" : "Back To Black",
         "uri" : "tidal:album:2798956"
      },
      "artists" : [
         {
            "__model__" : "Artist",
            "name" : "Amy Winehouse",
            "uri" : "tidal:artist:15796"
         }
      ],
      "disc_no" : 1,
      "length" : 240000,
      "name" : "Back To Black",
      "track_no" : 5,
      "uri" : "tidal:track:15796:2798956:2798961"
   }
}

Which means that bitrate is not exposed by the backend ?

I guess this is a feature request for Mopidy and also for the relevant backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants