FFmpegKit iOS / macOS / tvOS API  4.4
FFprobeSession.m
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 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 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 License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General License
17  * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #import "ExecuteCallback.h"
21 #import "FFprobeSession.h"
22 #import "FFmpegKitConfig.h"
23 #import "LogCallback.h"
24 
25 @implementation FFprobeSession
26 
27 - (instancetype)init:(NSArray*)arguments {
28 
30 
31  return self;
32 }
33 
34 + (void)initialize {
35  // EMPTY INITIALIZE
36 }
37 
38 - (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback {
39 
40  self = [super init:arguments withExecuteCallback:executeCallback withLogCallback:nil withLogRedirectionStrategy:[FFmpegKitConfig getLogRedirectionStrategy]];
41 
42  return self;
43 }
44 
45 - (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback withLogCallback:(LogCallback)logCallback {
46 
47  self = [super init:arguments withExecuteCallback:executeCallback withLogCallback:logCallback withLogRedirectionStrategy:[FFmpegKitConfig getLogRedirectionStrategy]];
48 
49  return self;
50 }
51 
52 - (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback withLogCallback:(LogCallback)logCallback withLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy {
53 
54  self = [super init:arguments withExecuteCallback:executeCallback withLogCallback:logCallback withLogRedirectionStrategy:logRedirectionStrategy];
55 
56  return self;
57 }
58 
59 - (BOOL)isFFmpeg {
60  return false;
61 }
62 
63 - (BOOL)isFFprobe {
64  return true;
65 }
66 
67 @end
68 
void(^ ExecuteCallback)(id< Session > session)
void(^ LogCallback)(Log *log)
Definition: LogCallback.h:31
instancetype init:withExecuteCallback:withLogCallback:withLogRedirectionStrategy:(NSArray *arguments,[withExecuteCallback] ExecuteCallback executeCallback,[withLogCallback] LogCallback logCallback,[withLogRedirectionStrategy] LogRedirectionStrategy logRedirectionStrategy)
LogRedirectionStrategy getLogRedirectionStrategy()