diff --git a/MP42/MP42MediaFormat.h b/MP42/MP42MediaFormat.h index b241a04..0abb3ef 100644 --- a/MP42/MP42MediaFormat.h +++ b/MP42/MP42MediaFormat.h @@ -32,6 +32,7 @@ extern NSString *const MP42MediaTypeMuxed; // Video Format +extern NSString *const MP42VideoFormatH265; extern NSString *const MP42VideoFormatH264; extern NSString *const MP42VideoFormatMPEG4Visual; extern NSString *const MP42VideoFormatSorenson; @@ -68,10 +69,13 @@ extern NSString *const MP42SubtitleFormatText; extern NSString *const MP42SubtitleFormatVobSub; extern NSString *const MP42SubtitleFormatPGS; extern NSString *const MP42SubtitleFormatSSA; +extern NSString *const MP42SubtitleFormatFairPlay; + // Closed Caption Fromat extern NSString *const MP42ClosedCaptionFormatCEA608; extern NSString *const MP42ClosedCaptionFormatCEA708; +extern NSString *const MP42ClosedCaptionFormatFairPlay; // TimeCode Format diff --git a/MP42/MP42MediaFormat.m b/MP42/MP42MediaFormat.m index dfc1b85..f33e00f 100644 --- a/MP42/MP42MediaFormat.m +++ b/MP42/MP42MediaFormat.m @@ -26,6 +26,7 @@ NSString *const MP42MediaTypeTimecode = @"TimeCode Track"; // Video Format +NSString *const MP42VideoFormatH265 = @"H.265"; NSString *const MP42VideoFormatH264 = @"H.264"; NSString *const MP42VideoFormatMPEG4Visual = @"MPEG-4 Visual"; NSString *const MP42VideoFormatSorenson = @"Sorenson Video"; @@ -62,9 +63,11 @@ NSString *const MP42SubtitleFormatText = @"Text"; NSString *const MP42SubtitleFormatVobSub = @"VobSub"; NSString *const MP42SubtitleFormatPGS = @"PGS"; NSString *const MP42SubtitleFormatSSA = @"SSA"; +NSString *const MP42SubtitleFormatFairPlay = @"FairPlay Tx3g"; -// Closed Caption Fromat +// Closed Caption Format +NSString *const MP42ClosedCaptionFormatFairPlay = @"FairPlay CEA-608"; NSString *const MP42ClosedCaptionFormatCEA608 = @"CEA-608"; NSString *const MP42ClosedCaptionFormatCEA708 = @"CEA-708"; diff --git a/MP42/MP42PrivateUtilities.m b/MP42/MP42PrivateUtilities.m index 51aee4b..92f3e60 100644 --- a/MP42/MP42PrivateUtilities.m +++ b/MP42/MP42PrivateUtilities.m @@ -213,6 +213,8 @@ NSString* getHumanReadableTrackMediaDataName(MP4FileHandle fileHandle, MP4TrackI if (dataName) { if (!strcmp(dataName, "avc1")) return MP42VideoFormatH264; + else if (!strcmp(dataName, "hev1")) + return MP42VideoFormatH265; else if (!strcmp(dataName, "mp4a")) { uint8_t audiotype = MP4GetTrackEsdsObjectTypeId(fileHandle, Id); if (audiotype == MP4_MPEG4_AUDIO_TYPE) @@ -246,6 +248,8 @@ NSString* getHumanReadableTrackMediaDataName(MP4FileHandle fileHandle, MP4TrackI return MP42AudioFormatFairPlay; else if (!strcmp(dataName, "drmi")) return MP42VideoFormatFairPlay; + else if (!strcmp(dataName, "p608")) + return MP42ClosedCaptionFormatFairPlay; else if (!strcmp(dataName, "tmcd")) return MP42TimeCodeFormat; else if (!strcmp(dataName, "mp4s") && !strcmp(type, "subp"))