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 "ExecuteCallback.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)enableExecuteCallback:(ExecuteCallback)executeCallback;
+ (ExecuteCallback)getExecuteCallback;
+ (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;
+ (NSArray*)getFFmpegSessions;
+ (NSArray*)getFFprobeSessions;
+ (NSArray*)getSessionsByState:(SessionState)state;
+ (LogRedirectionStrategy)getLogRedirectionStrategy;
+ (void)setLogRedirectionStrategy:(LogRedirectionStrategy)logRedirectionStrategy;
+ (int)messagesInTransmit:(long)sessionId;
+ (NSString*)sessionStateToString:(SessionState)state;
@end
#endif // FFMPEG_KIT_CONFIG_H
ExecuteCallback.h
ExecuteCallback
void(^ ExecuteCallback)(id< Session > session)
Definition: ExecuteCallback.h:46
NS_ENUM
typedef NS_ENUM(NSUInteger, Signal)
Definition: FFmpegKitConfig.h:37
FFmpegKitVersion
NSString *const FFmpegKitVersion
Definition: FFmpegKitConfig.m:38
FFmpegSession.h
FFprobeSession.h
LogCallback.h
LogCallback
void(^ LogCallback)(Log *log)
Definition: LogCallback.h:31
MediaInformationSession.h
StatisticsCallback.h
StatisticsCallback
void(^ StatisticsCallback)(Statistics *statistics)
Definition: StatisticsCallback.h:31
int
int
Definition: fftools_ffmpeg_filter.c:200
FFmpegKitConfig
Definition: FFmpegKitConfig.h:50
+[FFmpegKitConfig getFFmpegSessions]
NSArray * getFFmpegSessions()
Definition: FFmpegKitConfig.m:1084
+[FFmpegKitConfig getLogRedirectionStrategy]
LogRedirectionStrategy getLogRedirectionStrategy()
Definition: FFmpegKitConfig.m:1135
+[FFmpegKitConfig getLogLevel]
int getLogLevel()
Definition: FFmpegKitConfig.m:971
+[FFmpegKitConfig disableRedirection]
void disableRedirection()
Definition: FFmpegKitConfig.m:671
+[FFmpegKitConfig registerNewFFmpegPipe]
NSString * registerNewFFmpegPipe()
Definition: FFmpegKitConfig.m:767
+[FFmpegKitConfig getSessions]
NSArray * getSessions()
Definition: FFmpegKitConfig.m:1074
+[FFmpegKitConfig getVersion]
NSString * getVersion()
Definition: FFmpegKitConfig.m:808
+[FFmpegKitConfig getExecuteCallback]
ExecuteCallback getExecuteCallback()
Definition: FFmpegKitConfig.m:967
+[FFmpegKitConfig getBuildDate]
NSString * getBuildDate()
Definition: FFmpegKitConfig.m:824
+[FFmpegKitConfig getFFprobeSessions]
NSArray * getFFprobeSessions()
Definition: FFmpegKitConfig.m:1101
+[FFmpegKitConfig getSessionHistorySize]
int getSessionHistorySize()
Definition: FFmpegKitConfig.m:995
+[FFmpegKitConfig getLastSession]
id< Session > getLastSession()
Definition: FFmpegKitConfig.m:1046
+[FFmpegKitConfig getFFmpegVersion]
NSString * getFFmpegVersion()
Definition: FFmpegKitConfig.m:804
+[FFmpegKitConfig enableRedirection]
void enableRedirection()
Definition: FFmpegKitConfig.m:652
+[FFmpegKitConfig isLTSBuild]
int isLTSBuild()
Definition: FFmpegKitConfig.m:816
+[FFmpegKitConfig getLastCompletedSession]
id< Session > getLastCompletedSession()
Definition: FFmpegKitConfig.m:1056
FFmpegSession
Definition: FFmpegSession.h:31
FFprobeSession
Definition: FFprobeSession.h:30
MediaInformationSession
Definition: MediaInformationSession.h:32
Session-p
Definition: Session.h:34