Media flags: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(updating screenshot to Kodi)
No edit summary
Line 1: Line 1:
Media Flags are icons at Kodi that displays the meta-information from the media file of a movie, TV show or music title.
'''Media flags''' are icons in Kodi that displays the meta-information from the media file of a movie, TV show or music title.


== Examples ==
== Examples ==
Line 9: Line 9:


== Flag types and where they come from ==
== Flag types and where they come from ==
 
Kodi tries to read the meta information from the media file after it's been added to the [[Library]]. This meta-information can be queried by the built-in [[InfoLabels]] in order to display it in the skin.<br />
Kodi tries to read the meta information from the media file, after it was added to the Library.
Example-code for a resolution-flag in [[Confluence]] (Kodi's default skin):
This meta information can be queried by the built-in [[InfoLabels]] in order to display it in the skin.<br />
Example-code for a resolution-flag in Confluence:
<syntaxhighlight lang="xml" enclose="div">
<syntaxhighlight lang="xml" enclose="div">
<control type="image">
<control type="image">
Line 25: Line 23:
=== Video flags ===
=== Video flags ===
The category video flags provides images for the following properties:
The category video flags provides images for the following properties:
{| class=wikitable
{| class=wikitable
! Resolution
! Resolution
Line 37: Line 33:
|}
|}


What exact kind of video flag is provided depends on the skin you are using The above are just a few examples types.
What exact kind of video flag is provided depends on the skin you are using. The above are just a few examples types.


=== Audio flags ===
=== Audio flags ===
The category audio flags provides images for the following properties: e.g.
The category audio flags provides images for the following properties: e.g.
{| class=wikitable
{| class=wikitable
! Channels
! Channels
Line 50: Line 44:
|[[File:Aac.png|80px]] [[File:Ac3.png|80px]] [[File:Mp3.png|80px]] [[File:Flac.png|80px]] [[File:Dts.png|80px]] [[File:Dtshd_ma.png|80px]] [[File:Truehd.png|80px]] [[File:Pcm_bluray.png|80px]] [[File:Cdda.png|80px]] '''...'''
|[[File:Aac.png|80px]] [[File:Ac3.png|80px]] [[File:Mp3.png|80px]] [[File:Flac.png|80px]] [[File:Dts.png|80px]] [[File:Dtshd_ma.png|80px]] [[File:Truehd.png|80px]] [[File:Pcm_bluray.png|80px]] [[File:Cdda.png|80px]] '''...'''
|}
|}
 
What exact kind of audio flag is provided depends on the skin you are using. The above are just a few examples types.
What exact kind of audio flag is provided depends on the skin you are using! The above are just a few examples types.


=== Media source ===
=== Media source ===
{{see also|Add-on:Confluence#Media flags|Naming video files}}
{{see also|Add-on:Confluence#Media flags|Naming video files}}
Most skins have flags for the video source of a media file. This information are obtained from the the filename or the directory name.
Most skins have flags for the video source of a media file. This information is obtained from the the filename or the directory name.
 
Media can be flagged with following media source flags in Confluence:
Media can be flagged with following media source flags for [[Confluence]] (Kodi's default skin):
 
{{#lst:Add-on:Confluence|flags}}
{{#lst:Add-on:Confluence|flags}}



Revision as of 06:45, 14 September 2015

Media flags are icons in Kodi that displays the meta-information from the media file of a movie, TV show or music title.

Examples


Flag types and where they come from

Kodi tries to read the meta information from the media file after it's been 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 (Kodi's default skin):

<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>

Video flags

The category video flags provides images for the following properties:

Resolution Format Aspect ratio
480.png 1080.png 720.png 1080 n.png 480-1.png ... Divx.png Xvid.png H264.png Bluray.png Dvd.png Avc1.png ... 1.33.png 1.66.png 2.20.png 2.35.png ...

What exact kind of video flag is provided depends on the skin you are using. The above are just a few examples types.

Audio flags

The category audio flags provides images for the following properties: e.g.

Channels Formats
1.png 2.png 6.png 8.png 10.png ... Aac.png Ac3.png Mp3.png Flac.png Dts.png Dtshd ma.png Truehd.png Pcm bluray.png Cdda.png ...

What exact kind of audio flag is provided depends on the skin you are using. The above are just a few examples types.

Media source

Most skins have flags for the video source of a media file. This information is obtained from the the filename or the directory name. Media can be flagged with following media source flags in Confluence:

  • DVD, if the filename contains DVD.
  • Bluray, if the filename contains BLURAY, BRRIP, BD25, or BD50.
  • HDDVD, if the filename contains HDDVD.
  • TV, if the filename contains HDTV, PDTV, or DSR.
  • VHS, if the filename contains VHS.


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

What exact kind of source flag is provided depends on the skin you are using and its naming convention.

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 ...

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 Kodi database

See also

Development: