[Idea] Matroska tagging support (1 Viewer)

chefkoch

Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Is there any interest in implementing Matroska support?

    For music this might be *.mka files.
    A similar structure (Artist, Album, Track, etc.) can be used for music videos, *.mkv files.
    Series/Episodes and Movies might need a slightly different structure.
    But the metadata itself is always a xml structure. (specification)

    The specification is very flexible and it is possible to build very complex tag structures using it, but I guess the most people would be happy to have a tagger which at least covers the basics, i.e. tagging a movie's summary in one language instead of tagging the summary for different languages.

    I started to write my own basic MkvTagger (forum), but it will tag only one file, not multiple ones.
    Also reinventing the wheel in terms of GUI, settings, files browser etc I would like to avoid.

    There is no matroska tagger available at all, yet. So the user base of MPTagThat will grow a lot if it would support it.

    Cheers,
    Tommy
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    I have talked about this before as a route to getting some ac3 music files into MP database. IIRC taglib# supports matroska tags now
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    I have talked about this before as a route to getting some ac3 music files into MP database. IIRC taglib# supports matroska tags now
    It does, but I took a closer look and it's not very useful in the current state.

    The Matroska specification can be found here:
    http://matroska.org/technical/specs/tagging/index.html
    here are audio & video examples:
    http://matroska.org/technical/specs/tagging/example-audio.html
    http://matroska.org/technical/specs/tagging/example-video.html
    here are some tvseries and movie examples:
    http://wiki.team-mediaportal.com/2_...lopment/3_Concepts/Metadata_system/MkvMatcher

    First of all it only reads the simple tags for: Author, Title, Album and comments
    https://github.com/chefkoch/taglib-sharp/blob/master/src/TagLib/Matroska/File.cs#L469-L479
    While these are not even enough, it also does not care about the TargetTypeValue
    http://matroska.org/technical/specs/tagging/index.html#targettypes
    This means a TITLE within a tag of a TargetTypeValue = 50 is the AlbumTitle, a title within the TargetTypeValue = 30 is the TrackTitle.
    Similar to the examples for TVSeries:
    TargetTypeValue = 70 > Series, TargetTypeValue = 60 > Season, TargetValueType = 50 > Episode
    http://wiki.team-mediaportal.com/2_...kvMatcher#Accurate_series_matching_by_IMDB_id

    So the title might be read not even correct, because it depends whether the Album or the Track title is the last one found in the file and used.
    Besides that taglib-sharp is not able to write Matroska tags.


    Within my tool I used mkvextract and mkvpropedit:
    First is to read the existing XML tags:
    http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvextract.html#mkvextract.description.tags
    http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvextract.html#mkvextract.output_redirection
    mkvpropedit is to write the tags back to the Matroska file without the need to remux it:
    http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvpropedit.html#mkvpropedit.description.tags

    Having support without additional executable would be nice, but using these "official" Matroska tools ensures to create valid Matroska files.
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    Well, if there's a need, i can enhance taglib# to read the other values.

    I was also thinking of allowing ac3 files to be tagged by having for example something like an APE Tag at the end of the file or via CUE.
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Well, if there's a need, i can enhance taglib# to read the other values.
    That would be great, because it would allow all applications which are already using TagLib# to read the Matroska values.
    But like I already explained, it's not simply done by adding other values. The simple tags need to be checked against the targetTypeValue to differentiate correctly between Album tags and Track tags etc...

    Writing the matroska tags is also not implemented in taglib# at all, iirc. Without writing ability the Matroska support MPTagThat is not needed I guess.

    Maybe the Matroska implementation in taglib# could provide some Wrapper additional wrapper classes like: Series & Movie, similar to the extensions they made for ImageTags.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom