FFmpegKit iOS / macOS / tvOS API 4.5
|
#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" withExecuteCallback:executeCallback]; </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" withExecuteCallback:executeCallback withLogCallback:logCallback withStatisticsCallback:statisticsCallback];
Definition at line 44 of file FFmpegKit.h.
+ (void) cancel |
Cancels all running sessions.
This function 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 function 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 | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
Asynchronously 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 |
executeCallback | callback that will be called when the execution is completed |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeAsync: | (NSString*) | command | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously 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 |
executeCallback | callback that will be called when the execution is 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 | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
Asynchronously 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 |
executeCallback | callback that will be called when the execution is 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 | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously 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 |
executeCallback | callback that will be called when the execution is 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 | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
Asynchronously executes FFmpeg with arguments provided.
arguments | FFmpeg command options/arguments as string array |
executeCallback | callback that will be called when the execution is completed |
Definition at line 1 of file FFmpegKit.m.
+ (FFmpegSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously executes FFmpeg with arguments provided.
arguments | FFmpeg command options/arguments as string array |
executeCallback | callback that will be called when the execution is 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 | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
Asynchronously executes FFmpeg with arguments provided.
arguments | FFmpeg command options/arguments as string array |
executeCallback | callback that will be called when the execution is 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 | |
withExecuteCallback: | (ExecuteCallback) | executeCallback | |
withLogCallback: | (LogCallback) | logCallback | |
withStatisticsCallback: | (StatisticsCallback) | statisticsCallback | |
onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously executes FFmpeg with arguments provided.
arguments | FFmpeg command options/arguments as string array |
executeCallback | callback that will be called when the execution is 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.