FFmpegKit iOS / macOS / tvOS API 6.0
|
#import <FFmpegKit.h>
Main class to run FFmpeg
commands. Supports executing commands both synchronously and asynchronously.
FFmpegSession *session = [FFmpegKit execute:"-i file1.mp4 -c:v libxvid file1.avi"]; FFmpegSession *asyncSession = [FFmpegKit executeAsync:@"-i file1.mp4 -c:v libxvid file1.avi" withCompleteCallback:completeCallback]; </pre> <p>Provides overloaded <code>execute</code> methods to define session specific callbacks. <pre> FFmpegSession *asyncSession = [FFmpegKit executeAsync:@"-i file1.mp4 -c:v libxvid file1.avi" withCompleteCallback:completeCallback withLogCallback:logCallback withStatisticsCallback:statisticsCallback];
Definition at line 43 of file FFmpegKit.h.
+ (void) cancel |
Cancels all running sessions.
This method does not wait for termination to complete and returns immediately.
Definition at line 1 of file FFmpegKit.m.
+ (void) cancel: | (long) | sessionId |
Cancels the session specified with sessionId
.
This method does not wait for termination to complete and returns immediately.
sessionId | id of the session that will be cancelled |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) execute: | (NSString*) | command |
Synchronously executes FFmpeg command provided. Space character is used to split command into arguments. You can use single or double quote characters to specify arguments inside your command.
command | FFmpeg command |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeAsync: | (NSString*) | command | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
command | FFmpeg command |
completeCallback | callback that will be called when the execution has completed |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeAsync: | (NSString*) | command | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
command | FFmpeg command |
completeCallback | callback that will be called when the execution has completed |
queue | dispatch queue that will be used to run this asynchronous operation |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeAsync: | (NSString*) | command | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
command | FFmpeg command |
completeCallback | callback that will be called when the execution has completed |
logCallback | callback that will receive logs |
statisticsCallback | callback that will receive statistics |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeAsync: | (NSString*) | command | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Starts an asynchronous FFmpeg execution for the given command. Space character is used to split the command into arguments. You can use single or double quote characters to specify arguments inside your command.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
command | FFmpeg command |
completeCallback | callback that will be called when the execution has completed |
logCallback | callback that will receive logs |
statisticsCallback | callback that will receive statistics |
queue | dispatch queue that will be used to run this asynchronous operation |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeWithArguments: | (NSArray*) | arguments |
Synchronously executes FFmpeg with arguments provided.
arguments | FFmpeg command options/arguments as string array |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
Starts an asynchronous FFmpeg execution with arguments provided.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
arguments | FFmpeg command options/arguments as string array |
completeCallback | callback that will be called when the execution has completed |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Starts an asynchronous FFmpeg execution with arguments provided.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
arguments | FFmpeg command options/arguments as string array |
completeCallback | callback that will be called when the execution has completed |
queue | dispatch queue that will be used to run this asynchronous operation |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
Starts an asynchronous FFmpeg execution with arguments provided.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
arguments | FFmpeg command options/arguments as string array |
completeCallback | callback that will be called when the execution has completed |
logCallback | callback that will receive logs |
statisticsCallback | callback that will receive statistics |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
withCompleteCallback: | (FFmpegSessionCompleteCallback) | completeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Starts an asynchronous FFmpeg execution with arguments provided.
Note that this method returns immediately and does not wait the execution to complete. You must use an FFmpegSessionCompleteCallback if you want to be notified about the result.
arguments | FFmpeg command options/arguments as string array |
completeCallback | callback that will be called when the execution has completed |
logCallback | callback that will receive logs |
statisticsCallback | callback that will receive statistics |
queue | dispatch queue that will be used to run this asynchronous operation |
Definition at line 1 of file FFmpegKit.m.
|
implementation |
Definition at line 1 of file FFmpegKit.m.
+ (NSArray *) listSessions |
Lists all FFmpeg sessions in the session history.
Definition at line 1 of file FFmpegKit.m.