GNOME Bugzilla – Bug 777210
dleyna-plugin: should convert from bits/second to kbits/second
Last modified: 2017-02-04 17:52:22 UTC
I have a patch to fix this: UPNP should state bitrate in bytes/second (see http://www.upnp.org/schemas/av/didl-lite-v2.xsd). dleyna-plugin should convert this to kbits/second.
Created attachment 343473 [details] [review] dleyna: convert bytes/s to kbits/s.
Created attachment 343844 [details] [review] dleyna: convert bits/s to kbits/s.
Review of attachment 343473 [details] [review]: Checked DLNA guidelines and it should be bits/second.
I checked the DLNA guidelines at https://www.dlna.org/guidelines/ and it's bits/second, not bytes/second as per the UPNP spec. But it still needs a conversion to kbits/second.
Review of attachment 343844 [details] [review]: Hi Ben, Sorry for taking some time to review your patch. The bitrate metadata-key is Kbits/s, so converting to Kbits is correct. Took me awhile to find in the protocol, that it uses bits/s, what has conviced me is the following: > This guideline defines the concept of bitrate. An example of a maximum combined > value for a bitrate parameter for an object.item.videoitem containing a video component of 5 Mbps, > an audio track of 1 Mbps, and system overhead bitrate of 30 Kbps would be 6030000. I'll be pushing this shortly.
Oh, forgot to git bz push it. pushed as 1d93ae1199d445de07dd6720ec94e973c1695f66
Great. Thanks!