Import line: | GstTag = imports.gi.GstTag; |
GIR File: | GstTag-0.10.gir |
C documentation: | GstTag |
Namespace : | GstTag |
Show / Hide Inherited methods, properties and signals |
Properties | |
---|---|
String GstTag.TAG_CDDA_CDDB_DISCID : discid
|
|
String GstTag.TAG_CDDA_CDDB_DISCID_FULL : discid-full
|
|
String GstTag.TAG_CDDA_MUSICBRAINZ_DISCID : musicbrainz-discid
|
|
String GstTag.TAG_CDDA_MUSICBRAINZ_DISCID_FULL : musicbrainz-discid-full
|
|
String GstTag.TAG_CMML_CLIP : cmml-clip
|
|
String GstTag.TAG_CMML_HEAD : cmml-head
|
|
String GstTag.TAG_CMML_STREAM : cmml-stream
|
|
String GstTag.TAG_MUSICBRAINZ_ALBUMARTISTID : musicbrainz-albumartistid
|
|
String GstTag.TAG_MUSICBRAINZ_ALBUMID : musicbrainz-albumid
|
|
String GstTag.TAG_MUSICBRAINZ_ARTISTID : musicbrainz-artistid
|
|
String GstTag.TAG_MUSICBRAINZ_TRACKID : musicbrainz-trackid
|
|
String GstTag.TAG_MUSICBRAINZ_TRMID : musicbrainz-trmid
|
None |
Method / Constructor | Defined By | |
---|---|---|
Convenience function to read a string with unknown character encoding.
Convenience function to read a string with unknown character encoding. If the string is already in UTF-8 encoding, it will be returned right away. If not it tries to detect byte-order-mark for UTF-16/32 cases and use that. Otherwise, the environment will be searched for a number of environment variables (whose names are specified in the NULL-terminated string array are specified, the current locale will be tried. If that also doesn't work, ISO-8859-1 is assumed (which will almost always succeed).
|
GstTag | |
GstTag | ||
GstTag | ||
GstTag | ||
Returns two-letter ISO-639-1 language code given a three-letter ISO-639-2 language code or two-letter ISO-639-1 language code (both are accepted for convenience).
Returns two-letter ISO-639-1 language code given a three-letter ISO-639-2 language code or two-letter ISO-639-1 language code (both are accepted for convenience). Language codes are case-sensitive and expected to be lower case.
|
GstTag | |
Returns three-letter ISO-639-2 "bibliographic" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience).
Returns three-letter ISO-639-2 "bibliographic" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience). The "bibliographic" code is derived from the English name of the language (e.g. "ger" for German instead of "de" or "deu"). In most scenarios, the "terminological" codes are prefered. Language codes are case-sensitive and expected to be lower case.
|
GstTag | |
Returns three-letter ISO-639-2 "terminological" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience).
Returns three-letter ISO-639-2 "terminological" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience). The "terminological" code is derived from the local name of the language (e.g. "deu" for German instead of "ger"). In most scenarios, the "terminological" codes are prefered over the "bibliographic" ones. Language codes are case-sensitive and expected to be lower case.
|
GstTag | |
GstTag.get_language_codes
()
:
Array
Returns a list of known language codes (in form of two-letter ISO-639-1 codes).
Returns a list of known language codes (in form of two-letter ISO-639-1 codes). This is useful for UIs to build a list of available languages for tagging purposes (e.g. to tag an audio track appropriately in a video or audio editor).
|
GstTag | |
Returns the name of the language given an ISO-639 language code, such as often found in a GST_TAG_LANGUAGE tag.
Returns the name of the language given an ISO-639 language code, such as often found in a GST_TAG_LANGUAGE tag. The name will be translated according to the current locale (if the library was built against the iso-codes package, otherwise the English name will be returned). Language codes are case-sensitive and expected to be lower case.
|
GstTag | |
GstTag.id3_genre_count
()
:
Number
Gets the number of ID3v1 genres that can be identified.
Gets the number of ID3v1 genres that can be identified. Winamp genres are included.
|
GstTag | |
GstTag | ||
GstTag.image_data_to_image_buffer
(String image_data, Number image_data_len, TagImageType image_type)
:
Gst.Buffer
Helper function for tag-reading plugins to create a GstBuffer suitable to add to a GstTagList as an image tag (such as GST_TAG_IMAGE or GST_TAG_PREVIEW_IMAGE) from the encoded image data and an (optional) image type.
Helper function for tag-reading plugins to create a GstBuffer suitable to add to a GstTagList as an image tag (such as GST_TAG_IMAGE or GST_TAG_PREVIEW_IMAGE) from the encoded image data and an (optional) image type. blob of binary image data, often accompanied by a MIME type or some other content type string (e.g. 'png', 'jpeg', 'jpg'). Sometimes there is also an 'image type' to indicate what kind of image this is (e.g. front cover, back cover, artist, etc.). The image data may also be an URI to the image rather than the image itself. In GStreamer, image tags are GstBuffers containing the raw image data, with the buffer caps describing the content type of the image (e.g. image/jpeg, image/png, text/uri-list). The buffer caps may contain an additional 'image-type' field of GST_TYPE_TAG_IMAGE_TYPE to describe the type of image (front cover, back cover etc.). GST_TAG_PREVIEW_IMAGE tags should not carry an image type, their type is already indicated via the special tag name. This function will do various checks and typefind the encoded image data (we can't trust the declared mime type).
|
GstTag | |
GstTag.list_add_id3_image
(TagList tag_list, String image_data, Number image_data_len, Number id3_picture_type)
:
Boolean
Adds an image from an ID3 APIC frame (or similar, such as used in FLAC) to the given tag list.
Adds an image from an ID3 APIC frame (or similar, such as used in FLAC) to the given tag list. Also see gst_tag_image_data_to_image_buffer() for more information on image tags in GStreamer.
|
GstTag | |
GstTag.list_from_vorbiscomment_buffer
(Buffer buffer, String id_data, Number id_data_length, Array vendor_string)
:
Gst.TagList
Creates a new tag list that contains the information parsed out of a vorbiscomment packet.
Creates a new tag list that contains the information parsed out of a vorbiscomment packet.
|
GstTag | |
Parse a xmp packet into a taglist.
Parse a xmp packet into a taglist.
|
GstTag | |
Parses the data containing an ID3v1 tag and returns a GstTagList from the parsed data.
Parses the data containing an ID3v1 tag and returns a GstTagList from the parsed data.
|
GstTag | |
GstTag.list_to_vorbiscomment_buffer
(TagList list, String id_data, Number id_data_length, String vendor_string)
:
Gst.Buffer
Creates a new vorbiscomment buffer from a tag list.
Creates a new vorbiscomment buffer from a tag list.
|
GstTag | |
Formats a taglist as a xmp packet.
Formats a taglist as a xmp packet.
|
GstTag | |
GstTag.parse_extended_comment
(String ext_comment, Array key, Array lang, Array value, Boolean fail_if_no_key)
:
Boolean
Convenience function to parse a GST_TAG_EXTENDED_COMMENT string and separate it into its components.
Convenience function to parse a GST_TAG_EXTENDED_COMMENT string and separate it into its components. If successful, key, lang and/or value will be set to newly allocated strings that you need to free with g_free() when done. key and lang may also be set to NULL by this function if there is no key or no language code in the extended comment string.
|
GstTag | |
GstTag.register_musicbrainz_tags
()
:
none
|
GstTag | |
GstTag | ||
Creates a new tag list that contains the information parsed out of a vorbiscomment packet.
Creates a new tag list that contains the information parsed out of a vorbiscomment packet.
|
GstTag | |
GstTag | ||
Convenience function using gst_tag_from_vorbis_tag(), parsing a vorbis comment string into the right type and adding it to the given taglist list.
Convenience function using gst_tag_from_vorbis_tag(), parsing a vorbis comment string into the right type and adding it to the given taglist list. Unknown vorbiscomment tags will be added to the tag list in form of a GST_TAG_EXTENDED_COMMENT (since 0.10.10 at least).
|
GstTag |
None |