| 81 | | * audio |
| 82 | | * subtitles |
| 83 | | * video |
| | 53 | Defines the basic media type. |
| | 54 | |
| | 55 | Based on the media type the object has additional member |
| | 56 | variables. These are also the keys in the dict. If you checked `media` |
| | 57 | to be MEDIA_IMAGE, you can be sure that the object has an attribute |
| | 58 | `people` (but it may be None). |
| | 59 | |
| | 60 | **Media Core**: Basic sets of attributes most media objects have |
| | 61 | |
| | 62 | Attributes: `title`, `caption`, `comment`, `size`, `type`, |
| | 63 | `subtype`, `timestamp`, `keywords`, `country`, `language`, |
| | 64 | `langcode`, `url`, `media`, `artist`, `mime` |
| | 65 | |
| | 66 | **MEDIA_IMAGE**: Image file |
| | 67 | |
| | 68 | Attributes: Core attributes, `description`, `people`, `location`, |
| | 69 | `event`, `width`, `height`, `thumbnail`, `software`, `hardware`, |
| | 70 | `dpi`, `city`, `rotation`, `author` |
| | 71 | |
| | 72 | **MEDIA_AUDIO** Audio file or stream: |
| | 73 | |
| | 74 | Attributes: Core attributes, `channels`, `samplerate`, `length`, |
| | 75 | `encoder`, `codec`, `format`, `samplebits`, `bitrate`, `fourcc`, |
| | 76 | `trackno`, `id`, `userdate` |
| | 77 | |
| | 78 | Additional attributes for stand-alone audio files not inside a |
| | 79 | container: `trackof`, `album`, `genre`, `discs`, `thumbnail` |
| | 80 | |
| | 81 | **MEDIA_AV**: A/V container with audio and video content |
| | 82 | |
| | 83 | Attributes: Core attributes, `length`, `encoder`, `trackno`, |
| | 84 | `trackof`, `copyright`, `product`, `genre`, `writer`, `producer`, |
| | 85 | `studio`, `rating`, `starring`, `thumbnail`, `delay`, `image`, |
| | 86 | `video`, `audio`, `subtitles`, `chapters`, `software` |
| | 87 | |
| | 88 | The attributes `video`, `audio`, `subtitles` and `chapters` are |
| | 89 | lists with additional media objects of different types. |
| | 90 | |
| | 91 | **MEDIA_VIDEO**: Video stream inside MEDIA_AV |
| | 92 | |
| | 93 | Attributes: Core attributes, `length`, `encoder`, `bitrate`, |
| | 94 | `samplerate`, `codec`, `format`, `samplebits`, `width`, `height`, |
| | 95 | `fps`, `aspect`, `trackno`, `fourcc`, `id` |
| | 96 | |
| | 97 | **MEDIA_CHAPTER**: Chapter in a container (e.g. MEDIA_AV) |
| | 98 | |
| | 99 | Attributes: `name`, `pos`, `enabled`, `id` |
| | 100 | |
| | 101 | **MEDIA_SUBTITLE**: Subtitle stream inside MEDIA_AV |
| | 102 | |
| | 103 | Attributes: `language`, `trackno`, `title`, `id` |
| | 104 | |
| | 105 | **MEDIA_DISC**: Disc (dvd, audio disc, etc) |
| | 106 | |
| | 107 | DVD rips on hard-disc in iso file, as directory with a VIDEO_TS |
| | 108 | subtree or VCD cue/bin files are also of this type. |
| | 109 | |
| | 110 | Basic disc attributes: `id`, `tracks`, `mixed`, `label` |
| | 111 | |
| | 112 | Additional DVD attributes: `length` |
| | 113 | |
| | 114 | Additional DVD title (MEDIA_AV) attributes: `angles` |
| | 115 | |
| | 116 | **MEDIA_DIRECTORY**: Directory |
| | 117 | |
| | 118 | Attributes: Core attributes |
| | 119 | |
| | 120 | **MEDIA_GAME**: Game file on hard-disc |
| | 121 | |
| | 122 | Attributes: Core attributes |