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

Sample Rate, Bit Depth and Channels #1686

Closed
urielz opened this issue Sep 16, 2015 · 10 comments
Closed

Sample Rate, Bit Depth and Channels #1686

urielz opened this issue Sep 16, 2015 · 10 comments

Comments

@urielz
Copy link
Contributor

urielz commented Sep 16, 2015

I haven't found a way to access the sample rate, bit depth and channels of a song in QL. Is there a way to do that? It would be useful to add these variables as internal numeric tags.

@lazka
Copy link
Member

lazka commented Sep 17, 2015

currently not, but mutagen reads/parses that information in most cases.

Why do you need it?

@urielz
Copy link
Contributor Author

urielz commented Sep 17, 2015

No real need. My collection is in FLAC with various sampling rates/bit-depths. It would just be nice to have that information at hand and be able to filter/search it.

Potentially audiophiles would find it useful as sometimes they have the same album in different formats (CD, SACD, etc) and the best way to differentiate them would be by looking at the sample rate and bit-depth.

@declension
Copy link
Member

FWIW I find that ~#bitrate is a good enough substitute (for me), even though it conflates all these variables (arguably in a useful way)

@lazka
Copy link
Member

lazka commented Sep 17, 2015

While I don't find it that useful either the only downside is memory usage, and that's not that big of a problem nowadays.

Somewhat related: Latest mutagen also can read the lame version and guess if it is VBR/ABR/CBR, maybe add a "~codec" for that?

@Hunter16g
Copy link

It would be great to have this, bitrate isn't very relevant for lossless files.
IMO the best would be to have ~channels, ~bitdepth and ~samplerate or something like that, instead of one internal tag for all. However I don't know if it's difficult to implement.

lazka added a commit that referenced this issue Jan 26, 2017
@lazka
Copy link
Member

lazka commented Jan 26, 2017

720b339 added ~#channels

@lazka
Copy link
Member

lazka commented Jun 1, 2018

#2872 added ~#bitdepth and ~#samplerate

@lazka lazka closed this as completed Jun 1, 2018
@urielz
Copy link
Contributor Author

urielz commented Jun 1, 2018

Thanks @lazka for making this happen! This is awesome :)

@Hunter16g
Copy link

Hunter16g commented Sep 19, 2018

Thank you !
I've tried adding <~#samplerate> and <~#bitdepth> in the display, but it doesn't return anything. Am I doing something wrong ? The files are in FLAC, quodlibet version is 4.2 development 6ba95ed

@lazka
Copy link
Member

lazka commented Sep 20, 2018

@Hunter16g thanks for the report, I've added flac support in 15e7dc0

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

4 participants