Media Flagging Support

June 15th, 2009 theuni

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.

  1. June 16th, 2009 at 12:29 | #1

    Anyone got any better screenshots than this of the PM3.HD skin?
    http://img41.imageshack.us/img41/83/screenshot035i.jpg

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

  2. June 16th, 2009 at 12:31 | #2

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

  3. watzen
    June 16th, 2009 at 14:38 | #3

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

  4. C-Quel
    June 16th, 2009 at 14:43 | #4

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

  5. watzen
    June 16th, 2009 at 14:54 | #5

    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

  6. ronie
    June 16th, 2009 at 16:07 | #6

    Here’s a screenshot of Transparency! with a full set of flags:
    http://i687.photobucket.com/albums/vv237/roniez/media-flags.jpg

  7. ronie
    June 16th, 2009 at 16:21 | #7
  8. C-Quel
    June 16th, 2009 at 16:27 | #8

    ronie your missing a flag there mate…

    what is the rats name? ;)

  9. June 16th, 2009 at 16:36 | #9

    So far so good:

    http://i43.tinypic.com/16b0qdu.jpg

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

    Any Help?

  10. June 16th, 2009 at 17:27 | #10

    Complete list linked in the blog post: “Information for skinners is available here”
    http://forum.xbmc.org/showpost.php?p=347704&postcount=342

  11. LinarSavion
    June 16th, 2009 at 17:54 | #11

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

  12. June 16th, 2009 at 18:28 | #12

    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

  13. RedTapeMedia
    June 16th, 2009 at 19:04 | #13

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

  14. RedTapeMedia
  15. willcm
    June 17th, 2009 at 06:52 | #15

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

  16. June 17th, 2009 at 07:15 | #16

    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:

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

  17. skunkm0nkee
    June 17th, 2009 at 15:13 | #17

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

    New Showcase view:
    http://img34.imageshack.us/img34/1723/showcasemoviesflagsa.png

    Movie Info dialog (with new media flags):
    http://img4.imageshack.us/img4/816/movieinfoflags.png

  18. RedTapeMedia
    June 17th, 2009 at 20:40 | #18

    @15: http://www.xbmc.org/forum/showthread.php?t=52581 Aeon Native Flagging Mod

  19. June 18th, 2009 at 13:25 | #19

    Anyone got any cool videos that show of media flagging?

    Preferably different videos of different XBMC skins ;)

  20. June 20th, 2009 at 07:53 | #20

    http://forum.xbmc.org/showthread.php?t=52987

    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:
    http://i687.photobucket.com/albums/vv237/roniez/movie-fullscreen-info.jpg

Comments are closed.