Media Flagging Support
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.
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!
By the way, this change brings filtering by these parameters as well, right?
just tried, could’nt find any options of adding it in a smart playlist. we’re dooooooooooooooooooooooooooomed :p
No filtering available this is simple metadata for skinning purposes :) but pretty none the less!
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
Here’s a screenshot of Transparency! with a full set of flags:
http://i687.photobucket.com/albums/vv237/roniez/media-flags.jpg
let’s try again:
http://i687.photobucket.com/albums/vv237/roniez/XBMC-mediaflags.jpg
ronie your missing a flag there mate…
what is the rats name? ;)
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?
Complete list linked in the blog post: “Information for skinners is available here”
http://forum.xbmc.org/showpost.php?p=347704&postcount=342
what is the name of the skin in comment #9?
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
The Skin in comment #9 is Xperience which XBMCG33K is currently working on. It is not released publicly yet.
Aeon w/mod @ TV episode level
http://i41.tinypic.com/2hi9dur.jpg
http://i40.tinypic.com/9vhbg1.jpg
http://i39.tinypic.com/2qmky6g.jpg
@14 where did you get the aeon w/mod to show these filters, or how do I mod my aeon to show them?
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)
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
@15: http://www.xbmc.org/forum/showthread.php?t=52581 Aeon Native Flagging Mod
Anyone got any cool videos that show of media flagging?
Preferably different videos of different XBMC skins ;)
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