Moode Forum
Playing a flac stream -displays shows variable bitrate? - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Playing a flac stream -displays shows variable bitrate? (/showthread.php?tid=3158)



Playing a flac stream -displays shows variable bitrate? - inthemoode - 11-14-2020

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?


RE: Playing a flac stream -displays shows variable bitrate? - Tim Curtis - 11-15-2020

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



RE: Playing a flac stream -displays shows variable bitrate? - inthemoode - 11-15-2020

(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?


RE: Playing a flac stream -displays shows variable bitrate? - Tim Curtis - 11-15-2020

Prolly better to file an issue with the MPD project and see if it can be addressed.
https://github.com/MusicPlayerDaemon/MPD/issues


RE: Playing a flac stream -displays shows variable bitrate? - inthemoode - 11-15-2020

(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.


RE: Playing a flac stream -displays shows variable bitrate? - Tim Curtis - 11-15-2020

MPD has no problem capturing the variable bitrate of FLAC files but streams come in as 0.

File an issue with MPD maintainer.