MobileFFmpeg iOS / tvOS API  4.4
Instance Methods | Class Methods
MobileFFmpeg Class Reference

Instance Methods

(int- cancelRequested [implementation]
 
(void) - addExecution [implementation]
 
(void) - removeExecution [implementation]
 

Class Methods

(int+ executeWithArguments:
 
(int+ executeWithArgumentsAsync:withCallback:
 
(int+ executeWithArgumentsAsync:withCallback:andDispatchQueue:
 
(int+ execute:
 
(int+ executeAsync:withCallback:
 
(int+ executeAsync:withCallback:andDispatchQueue:
 
(int+ execute:delimiter:
 
(void) + cancel
 
(void) + cancel:
 
(NSArray *) + parseArguments:
 
(NSString *) + argumentsToString:
 
(NSArray *) + listExecutions
 
(void) + initialize [implementation]
 
(int+ executeWithId:andArguments: [implementation]
 
(int+ execute:delimiter: [implementation]
 

Detailed Description

Main class for FFmpeg operations.

Definition at line 31 of file MobileFFmpeg.h.

Method Documentation

◆ addExecution

- (void) addExecution (long)  executionId
implementation

◆ argumentsToString:

+ (NSString *) argumentsToString: (NSArray*)  arguments

Combines arguments into a string.

Parameters
argumentsarguments
Returns
string containing all arguments

Definition at line 48 of file MobileFFmpeg.m.

◆ cancel

+ (void) cancel

Cancels an ongoing operation.

This function does not wait for termination to complete and returns immediately.

Definition at line 48 of file MobileFFmpeg.m.

◆ cancel:

+ (void) cancel: (long)  executionId

Cancels an ongoing operation.

This function does not wait for termination to complete and returns immediately.

Parameters
executionIdexecution id

Definition at line 48 of file MobileFFmpeg.m.

◆ cancelRequested

- (int) cancelRequested (long)  executionId
implementation

◆ execute:

+ (int) execute: (NSString*)  command

Synchronously executes FFmpeg command provided. Space character is used to split command into arguments.

Parameters
commandFFmpeg command
Returns
zero on successful execution, 255 on user cancel and non-zero on error

Definition at line 48 of file MobileFFmpeg.m.

◆ execute:delimiter: [1/2]

+ (int) execute: (NSString*)  command
delimiter: (NSString*)  delimiter 
implementation

Synchronously executes FFmpeg command provided. Delimiter parameter is used to split command into arguments.

Parameters
commandFFmpeg command
delimiterarguments delimiter
Returns
zero on successful execution, 255 on user cancel and non-zero on error

Definition at line 48 of file MobileFFmpeg.m.

◆ execute:delimiter: [2/2]

+ (int) execute: (NSString *)  command
delimiter: ((deprecated))  __attribute__ 

Synchronously executes FFmpeg command provided. Delimiter parameter is used to split command into arguments.

Parameters
commandFFmpeg command
delimiterarguments delimiter
Returns
zero on successful execution, 255 on user cancel and non-zero on error

◆ executeAsync:withCallback:

+ (int) executeAsync: (NSString*)  command
withCallback: (id<ExecuteDelegate>)  delegate 

Asynchronously executes FFmpeg command provided. Space character is used to split command into arguments.

Parameters
commandFFmpeg command
delegatedelegate that will be notified when execution is completed
Returns
returns a unique id that represents this execution

Asynchronously executes FFmpeg command provided. Space character is used to split command into arguments.

Parameters
commandFFmpeg command
delegatedelegate that will be notified when execution is completed
Returns
a unique id that represents this execution

Definition at line 48 of file MobileFFmpeg.m.

◆ executeAsync:withCallback:andDispatchQueue:

+ (int) executeAsync: (NSString*)  command
withCallback: (id<ExecuteDelegate>)  delegate
andDispatchQueue: (dispatch_queue_t)  queue 

Asynchronously executes FFmpeg command provided. Space character is used to split command into arguments.

Parameters
commandFFmpeg command
delegatedelegate that will be notified when execution is completed
queuedispatch queue that will be used to run this asynchronous operation
Returns
returns a unique id that represents this execution

Asynchronously executes FFmpeg command provided. Space character is used to split command into arguments.

Parameters
commandFFmpeg command
delegatedelegate that will be notified when execution is completed
queuedispatch queue that will be used to run this asynchronous operation
Returns
a unique id that represents this execution

Definition at line 48 of file MobileFFmpeg.m.

◆ executeWithArguments:

+ (int) executeWithArguments: (NSArray*)  arguments

Synchronously executes FFmpeg with arguments provided.

Parameters
argumentsFFmpeg command options/arguments as string array
Returns
zero on successful execution, 255 on user cancel and non-zero on error

Definition at line 48 of file MobileFFmpeg.m.

◆ executeWithArgumentsAsync:withCallback:

+ (int) executeWithArgumentsAsync: (NSArray*)  arguments
withCallback: (id<ExecuteDelegate>)  delegate 

Asynchronously executes FFmpeg with arguments provided. Space character is used to split command into arguments.

Parameters
argumentsFFmpeg command options/arguments as string array
delegatedelegate that will be notified when execution is completed
Returns
returns a unique id that represents this execution

Asynchronously executes FFmpeg with arguments provided. Space character is used to split command into arguments.

Parameters
argumentsFFmpeg command options/arguments as string array
delegatedelegate that will be notified when execution is completed
Returns
a unique id that represents this execution

Definition at line 48 of file MobileFFmpeg.m.

◆ executeWithArgumentsAsync:withCallback:andDispatchQueue:

+ (int) executeWithArgumentsAsync: (NSArray*)  arguments
withCallback: (id<ExecuteDelegate>)  delegate
andDispatchQueue: (dispatch_queue_t)  queue 

Asynchronously executes FFmpeg with arguments provided. Space character is used to split command into arguments.

Parameters
argumentsFFmpeg command options/arguments as string array
delegatedelegate that will be notified when execution is completed
queuedispatch queue that will be used to run this asynchronous operation
Returns
returns a unique id that represents this execution

Asynchronously executes FFmpeg with arguments provided. Space character is used to split command into arguments.

Parameters
argumentsFFmpeg command options/arguments as string array
delegatedelegate that will be notified when execution is completed
queuedispatch queue that will be used to run this asynchronous operation
Returns
a unique id that represents this execution

Definition at line 48 of file MobileFFmpeg.m.

◆ executeWithId:andArguments:

+ (int) executeWithId: (long)  newExecutionId
andArguments: (NSArray*)  arguments 
implementation

Definition at line 48 of file MobileFFmpeg.m.

◆ initialize

+ (void) initialize
implementation

Definition at line 48 of file MobileFFmpeg.m.

◆ listExecutions

+ (NSArray *) listExecutions

Lists ongoing executions.

Returns
list of ongoing executions

Definition at line 48 of file MobileFFmpeg.m.

◆ parseArguments:

+ (NSArray *) parseArguments: (NSString*)  command

Parses the given command into arguments.

Parameters
commandstring command
Returns
array of arguments

Definition at line 48 of file MobileFFmpeg.m.

◆ removeExecution

- (void) removeExecution (long)  executionId
implementation

The documentation for this class was generated from the following files: