# FFmpegKit iOS / macOS / tvOS API: FFmpegKitConfig.h Source File

Loading...
Searching...
No Matches
FFmpegKitConfig.h
Go to the documentation of this file.
/*
* Copyright (c) 2018-2021 Taner Sener
*
* This file is part of FFmpegKit.
*
* FFmpegKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FFmpegKit is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FFMPEG_KIT_CONFIG_H
#define FFMPEG_KIT_CONFIG_H
#import <stdio.h>
#import <pthread.h>
#import <unistd.h>
#import <Foundation/Foundation.h>
#import "FFmpegSession.h"
#import "FFprobeSession.h"
#import "LogCallback.h"
#import "MediaInformationSession.h"
#import "StatisticsCallback.h"
extern NSString* const FFmpegKitVersion;
typedef NS_ENUM(NSUInteger, Signal) {
SignalInt = 2,
SignalQuit = 3,
SignalPipe = 13,
SignalTerm = 15,
SignalXcpu = 24
};
@interface FFmpegKitConfig : NSObject
+ (void)enableRedirection;
+ (void)disableRedirection;
+ (int)setFontconfigConfigurationPath:(NSString*)path;
+ (void)setFontDirectory:(NSString*)fontDirectoryPath with:(NSDictionary*)fontNameMapping;
+ (void)setFontDirectoryList:(NSArray*)fontDirectoryList with:(NSDictionary*)fontNameMapping;
+ (NSString*)registerNewFFmpegPipe;
+ (void)closeFFmpegPipe:(NSString*)ffmpegPipePath;
+ (NSString*)getFFmpegVersion;
+ (NSString*)getVersion;
+ (int)isLTSBuild;
+ (NSString*)getBuildDate;
+ (int)setEnvironmentVariable:(NSString*)variableName value:(NSString*)variableValue;
+ (void)ignoreSignal:(Signal)signal;
+ (void)ffmpegExecute:(FFmpegSession*)ffmpegSession;
+ (void)ffprobeExecute:(FFprobeSession*)ffprobeSession;
+ (void)getMediaInformationExecute:(MediaInformationSession*)mediaInformationSession withTimeout:(int)waitTimeout;
+ (void)asyncFFmpegExecute:(FFmpegSession*)ffmpegSession;
+ (void)asyncFFmpegExecute:(FFmpegSession*)ffmpegSession onDispatchQueue:(dispatch_queue_t)queue;
+ (void)asyncFFprobeExecute:(FFprobeSession*)ffprobeSession;
+ (void)asyncFFprobeExecute:(FFprobeSession*)ffprobeSession onDispatchQueue:(dispatch_queue_t)queue;
+ (void)asyncGetMediaInformationExecute:(MediaInformationSession*)mediaInformationSession withTimeout:(int)waitTimeout;
+ (void)asyncGetMediaInformationExecute:(MediaInformationSession*)mediaInformationSession onDispatchQueue:(dispatch_queue_t)queue withTimeout:(int)waitTimeout;
+ (void)enableLogCallback:(LogCallback)logCallback;
+ (void)enableStatisticsCallback:(StatisticsCallback)statisticsCallback;
+ (void)enableFFmpegSessionCompleteCallback:(FFmpegSessionCompleteCallback)ffmpegSessionCompleteCallback;
+ (FFmpegSessionCompleteCallback)getFFmpegSessionCompleteCallback;
+ (void)enableFFprobeSessionCompleteCallback:(FFprobeSessionCompleteCallback)ffprobeSessionCompleteCallback;
+ (FFprobeSessionCompleteCallback)getFFprobeSessionCompleteCallback;
+ (void)enableMediaInformationSessionCompleteCallback:(MediaInformationSessionCompleteCallback)mediaInformationSessionCompleteCallback;
+ (MediaInformationSessionCompleteCallback)getMediaInformationSessionCompleteCallback;
+ (int)getLogLevel;
+ (void)setLogLevel:(int)level;
+ (NSString*)logLevelToString:(int)level;
+ (int)getSessionHistorySize;
+ (void)setSessionHistorySize:(int)sessionHistorySize;
+ (id<Session>)getSession:(long)sessionId;
+ (id<Session>)getLastSession;
+ (id<Session>)getLastCompletedSession;
+ (NSArray*)getSessions;
+ (void)clearSessions;
+ (NSArray*)getFFmpegSessions;
+ (NSArray*)getFFprobeSessions;
+ (NSArray*)getMediaInformationSessions;
+ (NSArray*)getSessionsByState:(SessionState)state;
+ (LogRedirectionStrategy)getLogRedirectionStrategy;
+ (void)setLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy;
+ (int)messagesInTransmit:(long)sessionId;
+ (NSString*)sessionStateToString:(SessionState)state;
+ (NSArray*)parseArguments:(NSString*)command;
+ (NSString*)argumentsToString:(NSArray*)arguments;
@end
#endif // FFMPEG_KIT_CONFIG_H
NS_ENUM
typedef NS_ENUM(NSUInteger, Signal)
Definition FFmpegKitConfig.h:36
FFmpegKitVersion
NSString *const FFmpegKitVersion
Definition FFmpegKitConfig.m:39
FFmpegSession.h
FFmpegSessionCompleteCallback
void(^ FFmpegSessionCompleteCallback)(FFmpegSession *session)
Definition FFmpegSessionCompleteCallback.h:46
FFprobeSession.h
FFprobeSessionCompleteCallback
void(^ FFprobeSessionCompleteCallback)(FFprobeSession *session)
Definition FFprobeSessionCompleteCallback.h:46
LogCallback.h
LogCallback
void(^ LogCallback)(Log *log)
Definition LogCallback.h:31
MediaInformationSession.h
MediaInformationSessionCompleteCallback
void(^ MediaInformationSessionCompleteCallback)(MediaInformationSession *session)
Definition MediaInformationSessionCompleteCallback.h:47
StatisticsCallback.h
StatisticsCallback
void(^ StatisticsCallback)(Statistics *statistics)
Definition StatisticsCallback.h:31
int
int
Definition fftools_ffmpeg_filter.c:180
FFmpegKitConfig
Definition FFmpegKitConfig.h:49
+[FFmpegKitConfig getFFmpegSessions]
NSArray * getFFmpegSessions()
Definition FFmpegKitConfig.m:1249
+[FFmpegKitConfig getFFmpegSessionCompleteCallback]
FFmpegSessionCompleteCallback getFFmpegSessionCompleteCallback()
Definition FFmpegKitConfig.m:1131
+[FFmpegKitConfig getLogRedirectionStrategy]
LogRedirectionStrategy getLogRedirectionStrategy()
Definition FFmpegKitConfig.m:1317
+[FFmpegKitConfig getLogLevel]
int getLogLevel()
Definition FFmpegKitConfig.m:1151
+[FFmpegKitConfig disableRedirection]
void disableRedirection()
Definition FFmpegKitConfig.m:797
+[FFmpegKitConfig registerNewFFmpegPipe]
NSString * registerNewFFmpegPipe()
Definition FFmpegKitConfig.m:893
+[FFmpegKitConfig getSessions]
NSArray * getSessions()
Definition FFmpegKitConfig.m:1230
+[FFmpegKitConfig getFFprobeSessionCompleteCallback]
FFprobeSessionCompleteCallback getFFprobeSessionCompleteCallback()
Definition FFmpegKitConfig.m:1139
+[FFmpegKitConfig getVersion]
NSString * getVersion()
Definition FFmpegKitConfig.m:934
+[FFmpegKitConfig clearSessions]
void clearSessions()
Definition FFmpegKitConfig.m:1240
+[FFmpegKitConfig getMediaInformationSessionCompleteCallback]
MediaInformationSessionCompleteCallback getMediaInformationSessionCompleteCallback()
Definition FFmpegKitConfig.m:1147
+[FFmpegKitConfig getBuildDate]
NSString * getBuildDate()
Definition FFmpegKitConfig.m:950
+[FFmpegKitConfig getFFprobeSessions]
NSArray * getFFprobeSessions()
Definition FFmpegKitConfig.m:1266
+[FFmpegKitConfig getMediaInformationSessions]
NSArray * getMediaInformationSessions()
Definition FFmpegKitConfig.m:1283
+[FFmpegKitConfig getSessionHistorySize]
int getSessionHistorySize()
Definition FFmpegKitConfig.m:1175
+[FFmpegKitConfig getLastSession]
id< Session > getLastSession()
Definition FFmpegKitConfig.m:1202
+[FFmpegKitConfig getFFmpegVersion]
NSString * getFFmpegVersion()
Definition FFmpegKitConfig.m:930
+[FFmpegKitConfig enableRedirection]
void enableRedirection()
Definition FFmpegKitConfig.m:778
+[FFmpegKitConfig isLTSBuild]
int isLTSBuild()
Definition FFmpegKitConfig.m:942
+[FFmpegKitConfig getLastCompletedSession]
id< Session > getLastCompletedSession()
Definition FFmpegKitConfig.m:1212
FFmpegSession
Definition FFmpegSession.h:32
FFprobeSession
Definition FFprobeSession.h:31
MediaInformationSession
Definition MediaInformationSession.h:33