简体   繁体   English

taglib-sharp不标记mkv文件

[英]taglib-sharp not tagging mkv files

I'm using taglib-sharp to write tags to video files. 我正在使用taglib-sharp将标签写入视频文件。 It's able to write tags just fine to mp4 files, but I can't get it to write tags to mkv files. 它能够将标签写到mp4文件中,但我无法将标签写到mkv文件中。 I've tried various applications to view the metadata, but none of them can see any, including MediaInfo. 我已经尝试了各种应用程序来查看元数据,但是它们都看不到任何内容,包括MediaInfo。

Do I need to do something different to tag mkv files? 我需要做一些不同的事情来标记mkv文件吗? They're definitely supported as there's code specifically for tagging them, but I can't find anything suggesting I'm doing something wrong. 绝对支持它们,因为有专门用于标记它们的代码,但是我找不到任何暗示我做错了事情的信息。

I'm tagging files like so: 我像这样标记文件:

TagLib.File file = TagLib.File.Create(row.Cells[0].Value.ToString());
file.Tag.Album = series.SeriesName;
file.Tag.Disc = (uint)episodeData.Season;
file.Tag.Track = (uint)episodeData.Episode;
file.Tag.Title = foundEpisode.EpisodeName;
file.Tag.Comment = foundEpisode.Overview;
file.Tag.Genres = new string[] { "TVShows" };

I'm using the latest version of taglib-sharp too (2.1.0). 我也在使用最新版本的taglib-sharp(2.1.0)。 Any help would be much appreciated. 任何帮助将非常感激。

For anyone encountering the same issue, the cause is the outdated version (6 years out of date!) of taglib-sharp in the NuGet package manager. 对于遇到相同问题的任何人,原因都是NuGet软件包管理器中taglib-sharp的版本过时(已过期6年!)。 Build from source and Matroska files seem to tag just fine. 从源代码构建文件和Matroska文件似乎标记得很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM