|This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions.|
1 What are Media Flags?
Media Flags are icons at XBMC that displays the meta-information from the media file of a movie, TV show or music title.
2 Where does XBMC get the Information for Media Flags?
XBMC tries to read the meta information from the media file, after it was added to the Library.
This meta information can be queried by the built-in InfoLabels in order to display it in the skin.
Example-code for a resolution-flag in Confluence:
<control type="image"> <description>Video rez Image</description> <width>55</width> <height>35</height> <aspectratio align="right">keep</aspectratio> <texture>$INFO[ListItem.VideoResolution,flagging/video/,.png]</texture> </control>
2.1 Video Flags
The category video flags provides images for the following properties:
- Resolution: SD, HD, 720p, 1080p, 480p, 576p ...?
- Format: DivX, XviD, h264, x264, wmv, mpeg2video ...?
- Aspect ratio: 4:3, 16:9, 2.35:1 ...?
NOTE: What exact kind of video flag is provided depends on the skin you are using!
2.2 Audio Flags
The category audio flags provides images for the following properties:
- Channels: 1.0, 2.0, 5.1, 7.1 ...?
- Format: AC3, DTS, mp3, flac, DTS-HD MasterAudio ...?
NOTE: What exact kind of audio flag is provided depends on the skin you are using!
2.3 Media source
Most skins have flags for the video source of a media file. This information are obtained from the the filename or the directory name.
Media can be flagged with following media source flags for Confluence (XBMC's default skin):
As an alternative you can set your folder structure to fit the keywords above:
- C:\Videos\DVDR\Movie1... on Windows
- /mnt/dev1/videos/bluray/movie1 on Linux
NOTE: What exact kind of source flag is provided depends on the skin you are using and its naming convention!
2.4 Custom Flags
Most skins also have the ability to show media flags from InfoLabels that come not from the media file itself. These pieces of information are provided by the scraper that was used to scan the file to the library and can be:
- Movie Studio: WarnerBros., 20th Century Fox, Universal ...
- TV Channel/Network: HBO, ABC, FOX ...
- Rating: MPAA, FSK, UK-Rating ...
2.5 Special Notes
- Some file types (e.g. .iso) have to be played one time, before the media flags appear in the database
- You can change the kind of media flag regardless of the file by editing the table streamdetails in the XBMC database