Convert matroska "ENCODER" tag, and add some more format strings.
This commit is contained in:
1 parent
f55cbb9fa3
commit
5141cf3902
1 file changed
+13
@@ -337,6 +337,10 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t
|
|||||||
|
|
||||||
if (!strcmp(tags->SimpleTags[xi].Name, "ARTIST"))
|
if (!strcmp(tags->SimpleTags[xi].Name, "ARTIST"))
|
||||||
[mkvMetadata setTag:[NSString stringWithUTF8String:tags->SimpleTags[xi].Value] forKey:@"Artist"];
|
[mkvMetadata setTag:[NSString stringWithUTF8String:tags->SimpleTags[xi].Value] forKey:@"Artist"];
|
||||||
|
|
||||||
|
if (!strcmp(tags->SimpleTags[xi].Name, "ENCODER"))
|
||||||
|
[mkvMetadata setTag:[NSString stringWithUTF8String:tags->SimpleTags[xi].Value] forKey:@"Encoding Tool"];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -443,6 +447,15 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t
|
|||||||
else if (!strcmp(track->CodecID, "V_MPEGH/ISO/HEVC")) {
|
else if (!strcmp(track->CodecID, "V_MPEGH/ISO/HEVC")) {
|
||||||
return MP42VideoFormatH265;
|
return MP42VideoFormatH265;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(track->CodecID, "V_THEORA")) {
|
||||||
|
return @"Theora";
|
||||||
|
}
|
||||||
|
else if (!strcmp(track->CodecID, "V_VP8")) {
|
||||||
|
return @"VP8";
|
||||||
|
}
|
||||||
|
else if (!strcmp(track->CodecID, "V_VP9")) {
|
||||||
|
return @"VP9";
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
return [NSString stringWithUTF8String:track->CodecID];
|
return [NSString stringWithUTF8String:track->CodecID];
|
||||||
|
|||||||
Reference in new issue
Block a user