Media Flagging Support

Posted By: Team XBMC on Jun 15, 2009 in Site News

With commit r21076, Media Flagging was added to XBMC’s main codebase. Full history and discussion can be seen here. Information for skinners is available here. Everyone be sure to thank CapnBry for his hard work.

What does this bring to the table?  When turned on (Video settings -> Extract media metadata information) the following bits of info are now natively extracted from the files themselves. Skin tricks involving file/folder names are a thing of the past.

  • Resolution
  • Aspect Ratio
  • Audio Codec
  • Video Codec
  • Audio Channels
  • Audio Languages
  • Subtitle Languages

You should also know that none of the current skins (mods excluded) support this yet. It may be a little while until your favorite skin is ready. Also, it’s up to the skinner to decide whish fields to include and in what way. Please remember be courteous when discussing implementations with our talented skinners.

This is a brand new feature, so expect some initial kinks. Remember to include a debug log if reporting an issue in the forums or TRAC. Please note if if you’re brave enough to try it out, your video database won’t work if you revert back to an older version. So if it’s worth it to you, backing up your old db isn’t a bad idea. As always, you won’t find Media Flagging in the current release, you’ll have to compile from svn or use a new 3rd party build.

Expect a new post soon featuring screenshots of some skins showing off this exciting new feature as they’re updated.

Discussion - 21 Comments

  • Gamester17 Jun 16, 2009 

    Anyone got any better screenshots than this of the PM3.HD skin?

    …with High Definition, Surround Sound, and Subtitle Flagging!

  • Gamester17 Jun 16, 2009 

    By the way, this change brings filtering by these parameters as well, right?

  • watzen Jun 16, 2009 

    just tried, could’nt find any options of adding it in a smart playlist. we’re dooooooooooooooooooooooooooomed :p

  • C-Quel Jun 16, 2009 

    No filtering available this is simple metadata for skinning purposes :) but pretty none the less!

  • watzen Jun 16, 2009 

    very. but since the info is in the database, i think that one only needs to add to the functions in the smart filtering code

  • ronie Jun 16, 2009 

    Here’s a screenshot of Transparency! with a full set of flags:

  • C-Quel Jun 16, 2009 

    ronie your missing a flag there mate…

    what is the rats name? ;)

  • XBMCG33K Jun 16, 2009 

    So far so good:

    Still have yet to find a complete list of all that is available in the recent XBMC build.

    Any Help?

  • CapnBry Jun 16, 2009 

    Complete list linked in the blog post: “Information for skinners is available here”

  • LinarSavion Jun 16, 2009 

    what is the name of the skin in comment #9?

  • Dan Dar3 Jun 16, 2009 

    Can we also get video lentgh in seconds and make all these available to Python classes? Would be nice if you guys would make minor releases at timely intervals – they don’t have to be fully tested, they could go to preview / RC releases so people can test them before general public availability.

    Thanks for all your efforts.

    - Dan

  • RedTapeMedia Jun 16, 2009 

    The Skin in comment #9 is Xperience which XBMCG33K is currently working on. It is not released publicly yet.

  • Pingback: Piethein Strengholt’s Blog » XBMC 9.10 features

  • willcm Jun 17, 2009 

    @14 where did you get the aeon w/mod to show these filters, or how do I mod my aeon to show them?

  • Gamester17 Jun 17, 2009 

    ListItem.VideoResolution – the quantized resolution video stream. Options are 480, 540, 720, or 1080.
    ListItem.VideoCodec – video codec of the stream. This is the fourcc if available or the decorder codec if not. e.g. xvid, mpeg4, h264.
    ListItem.VideoAspect – display aspect of the video. Options are 1.33, 1.66. 1.78, 1.85, 2.20, 2.35.
    ListItem.AudioCodec – audio codec of the stream. e.g. mp3, aac, ac3, dca (which is dts).
    ListItem.AudioChannels – number of channels in the stream. Can be 0 if there is no audio at all.
    ListItem.AudioLanguage – language of the audio stream if available. Uses ISO 639-2 three character codes, e.g. eng, epo, deu.
    ListItem.SubtitleLanguage – language of the subtitle stream. ISO 639-2. Blank if no subtitles.

    Some are also additional media flags available when playing a video:
    VideoPlayer.VideoCodec, VideoPlayer.AudioCodec, VideoPlayer.VideoResolution, VideoPlayer.AudioChannels.

    This is the list of media flags available to skin so far:

    - 480
    - 540
    - 720
    - 1080
    - avc1
    - div3
    - dx50
    - h264
    - mp4v
    - mpeg1video
    - svq3
    - wvc1
    - xvid
    - divx
    - 1.33
    - 1.66
    - 1.78
    - 1.85
    - 2.20
    - 2.35
    - aac
    - ac3
    - dca
    - mp2
    - mp3
    - wmapro
    - wmav2
    - 0 (Videos with no sound)
    - 1 (mono)
    - 2 (2.0)
    - 4 (3.1)
    - 5 (4.1)
    - 6 (5.1)
    - 8 (7.1)

  • skunkm0nkee Jun 17, 2009 

    Here are some new images from the MiniMeedia skin (just released v0.90 which contains some early coding for media flags).

    New Showcase view:

    Movie Info dialog (with new media flags):

  • RedTapeMedia Jun 17, 2009 
  • Gamester17 Jun 18, 2009 

    Anyone got any cool videos that show of media flagging?

    Preferably different videos of different XBMC skins ;)

  • Maximilian Jun 20, 2009

    Most of the new info labels are also available to the video player, so they can be used in DialogFullScreenInfo.xml for instance.

    Here’s what’s available:
    - VideoPlayer.VideoResolution
    - VideoPlayer.VideoCodec
    - VideoPlayer.AudioCodec
    - VideoPlayer.AudioChannels

    Screenshot from the new skin, Transparency:

About Kodi

Kodi is a free and open source media player application developed by the XBMC Foundation, a non-profit technology consortium. Kodi is available for multiple operating-systems and hardware platforms, featuring a 10-foot user interface for use with televisions and remote controls. It allows users to play and view most videos, music, podcasts, and other digital media files from local and network storage media and the internet.