Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Playing a flac stream -displays shows variable bitrate?
#1
Normally, when streaming a radio station, under the graphic on the main play stream, moOde displays the bitrate - e.g. 320k,  but when I stream a station using flac, the display says "variable bitrate".    

I tested this on Hi Online and Mother Earth radio, both streaming flac.   Not sure what variable bitrate means in terms of flac?
Reply
#2
MPD is not able to snapshot the bitrate for FLAC stations. It comes in as 0.

Here's for Hi Online - Pop (FLAC)

Code:
pi@rp3:~ $ telnet localhost 6600
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.22.0
currentsong
file: http://mscp2.live-streams.nl:8100/flac.flac
Name: Hi Online
Pos: 62
Id: 63
OK
status
volume: 18
repeat: 0
random: 0
single: 0
consume: 0
partition: default
playlist: 104
playlistlength: 63
mixrampdb: 0.000000
state: play
song: 62
songid: 63
time: 68:0
elapsed: 67.789
bitrate: 0
audio: 44100:16:2
OK
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(11-15-2020, 02:01 AM)Tim Curtis Wrote: MPD is not able to snapshot the bitrate for FLAC stations. It comes in as 0.

Here's for Hi Online - Pop (FLAC)

Code:
pi@rp3:~ $ telnet localhost 6600
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.22.0
currentsong
file: http://mscp2.live-streams.nl:8100/flac.flac
Name: Hi Online
Pos: 62
Id: 63
OK
status
volume: 18
repeat: 0
random: 0
single: 0
consume: 0
partition: default
playlist: 104
playlistlength: 63
mixrampdb: 0.000000
state: play
song: 62
songid: 63
time: 68:0
elapsed: 67.789
bitrate: 0
audio: 44100:16:2
OK



Fair enough.  Maybe display the word "lossless" instead?
Reply
#4
Prolly better to file an issue with the MPD project and see if it can be addressed.
https://github.com/MusicPlayerDaemon/MPD/issues
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(11-15-2020, 02:27 AM)Tim Curtis Wrote: Prolly better to file an issue with the MPD project and see if it can be addressed.
https://github.com/MusicPlayerDaemon/MPD/issues

Maybe, except it isn't really wrong.  There is no bitrate associated with uncompressed file is there?  It just doesn't make sense in that context, so returning a zero is reasonable.
Reply
#6
MPD has no problem capturing the variable bitrate of FLAC files but streams come in as 0.

File an issue with MPD maintainer.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: