Adding bit rate information to a skin
#1
Hi,

I was wondering if it would be possible for a skin to display the bit rate of a video in the library. The file size and duration of a video can be extracted and displayed so would it be possible to just calculate file size divided by duration and then display this value in the same way other ListItems are displayed in the skin?

Thanks
Reply
#2
Bitrate is only available for songs or PVR streams (audio, video, dolby).

https://kodi.wiki/view/InfoLabels
Reply
#3
I know it's not natively supported but would it be possible in theory? Maybe by creating an addon? All the addon would need to do would be to read the duration and file size of each item, preform the basic calculation and then output this value in a way that could be read (and then displayed) by the skin. Does that sound feasible?

Thanks
Reply
#4
(2024-09-05, 10:22)mattd50 Wrote: Does that sound feasible?
Sure.
Reply
#5
Would you be able to offer any advice on how to go about this? What would be the best way for the addon to go about carrying out the task?
Reply
#6
Sorry I have no idea.
Reply
#7
(2024-09-02, 16:03)mattd50 Wrote: Hi,

I was wondering if it would be possible for a skin to display the bit rate of a video in the library. The file size and duration of a video can be extracted and displayed so would it be possible to just calculate file size divided by duration and then display this value in the same way other ListItems are displayed in the skin?

Thanks

There is also an addon for exactly such tasks.
You just have to integrate it into your skin.
It is "script.embuary.helper" look here.

https://github.com/sualfred/script.embua...#calculate
Reply
#8
Thanks for you help. I (with a lot of help from ChatGPT) managed to do it by creating a service add-on. If anyone is interested:

https://file.io/SgQbrXGpByBv

Works with:

  <variable name="VideoBitrateInfo">
      <value>$INFO[Skin.String(Video_Bitrate)]</value>
  </variable>
Reply
#9
If that's the only value in your variable then just use $INFO[Skin.String(Video_Bitrate)] in the label.
Reply

Logout Mark Read Team Forum Stats Members Help
Adding bit rate information to a skin0