| FFmpegKit iOS / macOS / tvOS API 6.0

Loading...
Searching...
No Matches
MediaInformation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2022 Taner Sener
3 *
4 * This file is part of FFmpegKit.
5 *
6 * FFmpegKit is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpegKit is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FFMPEG_KIT_MEDIA_INFORMATION_H
21#define FFMPEG_KIT_MEDIA_INFORMATION_H
22
23#import <Foundation/Foundation.h>
24#import "Chapter.h"
25#import "StreamInformation.h"
26
27 extern NSString* const MediaKeyMediaProperties;
28 extern NSString* const MediaKeyFilename;
29 extern NSString* const MediaKeyFormat;
30 extern NSString* const MediaKeyFormatLong;
31 extern NSString* const MediaKeyStartTime;
32 extern NSString* const MediaKeyDuration;
33 extern NSString* const MediaKeySize;
34 extern NSString* const MediaKeyBitRate;
35 extern NSString* const MediaKeyTags;
36
40@interface MediaInformation : NSObject
41
42- (instancetype)init:(NSDictionary*)mediaDictionary withStreams:(NSArray*)streams withChapters:(NSArray*)chapters;
43
49- (NSString*)getFilename;
50
56- (NSString*)getFormat;
57
63- (NSString*)getLongFormat;
64
70- (NSString*)getDuration;
71
77- (NSString*)getStartTime;
78
84- (NSString*)getSize;
85
91- (NSString*)getBitrate;
92
98- (NSDictionary*)getTags;
99
105- (NSArray*)getStreams;
106
112- (NSArray*)getChapters;
113
119- (NSString*)getStringProperty:(NSString*)key;
120
126- (NSNumber*)getNumberProperty:(NSString*)key;
127
133- (id)getProperty:(NSString*)key;
134
140- (NSString*)getStringFormatProperty:(NSString*)key;
141
147- (NSNumber*)getNumberFormatProperty:(NSString*)key;
148
154- (id)getFormatProperty:(NSString*)key;
155
161- (NSDictionary*)getFormatProperties;
162
168- (NSDictionary*)getAllProperties;
169
170@end
171
172#endif // FFMPEG_KIT_MEDIA_INFORMATION_H
Chapter.h
MediaKeyBitRate
NSString *const MediaKeyBitRate
Definition MediaInformation.m:29
MediaKeyDuration
NSString *const MediaKeyDuration
Definition MediaInformation.m:27
MediaKeyTags
NSString *const MediaKeyTags
Definition MediaInformation.m:30
MediaKeyFormat
NSString *const MediaKeyFormat
Definition MediaInformation.m:24
MediaKeyFormatLong
NSString *const MediaKeyFormatLong
Definition MediaInformation.m:25
MediaKeyStartTime
NSString *const MediaKeyStartTime
Definition MediaInformation.m:26
MediaKeySize
NSString *const MediaKeySize
Definition MediaInformation.m:28
MediaKeyFilename
NSString *const MediaKeyFilename
Definition MediaInformation.m:23
MediaKeyMediaProperties
NSString *const MediaKeyMediaProperties
StreamInformation.h
MediaInformation
Definition MediaInformation.h:41
-[MediaInformation getChapters]
NSArray * getChapters()
Definition MediaInformation.m:98
-[MediaInformation getTags]
NSDictionary * getTags()
Definition MediaInformation.m:90
-[MediaInformation getSize]
NSString * getSize()
Definition MediaInformation.m:82
-[MediaInformation getFormatProperties]
NSDictionary * getFormatProperties()
Definition MediaInformation.m:156
-[MediaInformation getFilename]
NSString * getFilename()
Definition MediaInformation.m:62
-[MediaInformation getStreams]
NSArray * getStreams()
Definition MediaInformation.m:94
-[MediaInformation getFormat]
NSString * getFormat()
Definition MediaInformation.m:66
-[MediaInformation getLongFormat]
NSString * getLongFormat()
Definition MediaInformation.m:70
-[MediaInformation getBitrate]
NSString * getBitrate()
Definition MediaInformation.m:86
-[MediaInformation getDuration]
NSString * getDuration()
Definition MediaInformation.m:78
-[MediaInformation getAllProperties]
NSDictionary * getAllProperties()
Definition MediaInformation.m:160
-[MediaInformation getStartTime]
NSString * getStartTime()
Definition MediaInformation.m:74