|
FFmpegKit iOS / macOS / tvOS API
4.4
|
Main class to run FFprobe commands. Supports executing commands both synchronously and asynchronously.
FFprobeSession *session = [FFprobeKit execute:"-hide_banner -v error -show_entries format=size -of default=noprint_wrappers=1 file1.mp4"]; FFprobeSession *asyncSession = [FFprobeKit executeAsync:"-hide_banner -v error -show_entries format=size -of default=noprint_wrappers=1 file1.mp4" withExecuteCallback:executeCallback];
Provides overloaded execute methods to define session specific callbacks.
FFprobeSession *session = [FFprobeKit executeAsync:"-hide_banner -v error -show_entries format=size -of default=noprint_wrappers=1 file1.mp4" withExecuteCallback:executeCallback withLogCallback:logCallback];
It can extract media information for a file or a url, using getMediaInformation method.
MediaInformationSession *session = [FFprobeKit getMediaInformation:"file1.mp4"];
Definition at line 46 of file FFprobeKit.h.
| + (FFprobeSession *) execute: | (NSString*) | command |
Synchronously executes FFprobe 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 | FFprobe command |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeAsync: | (NSString*) | command | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
Asynchronously executes FFprobe 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 | FFprobe command |
| executeCallback | callback that will be called when the execution is completed |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeAsync: | (NSString*) | command | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously executes FFprobe 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 | FFprobe 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 FFprobeKit.m.
| + (FFprobeSession *) executeAsync: | (NSString*) | command | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
Asynchronously executes FFprobe 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 | FFprobe command |
| executeCallback | callback that will be notified when execution is completed |
| logCallback | callback that will receive logs |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeAsync: | (NSString*) | command | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously executes FFprobe 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 | FFprobe command |
| executeCallback | callback that will be called when the execution is completed |
| logCallback | callback that will receive logs |
| queue | dispatch queue that will be used to run this asynchronous operation |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeWithArguments: | (NSArray*) | arguments |
Synchronously executes FFprobe with arguments provided.
| arguments | FFprobe command options/arguments as string array |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
Asynchronously executes FFprobe with arguments provided.
| arguments | FFprobe command options/arguments as string array |
| executeCallback | callback that will be called when the execution is completed |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously executes FFprobe with arguments provided.
| arguments | FFprobe 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 FFprobeKit.m.
| + (FFprobeSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
Asynchronously executes FFprobe with arguments provided.
| arguments | FFprobe command options/arguments as string array |
| executeCallback | callback that will be notified when execution is completed |
| logCallback | callback that will receive logs |
Definition at line 1 of file FFprobeKit.m.
| + (FFprobeSession *) executeWithArgumentsAsync: | (NSArray*) | arguments | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
Asynchronously executes FFprobe with arguments provided.
| arguments | FFprobe command options/arguments as string array |
| executeCallback | callback that will be notified when execution is completed |
| logCallback | callback that will receive logs |
| queue | dispatch queue that will be used to run this asynchronous operation |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformation: | (NSString*) | path |
Extracts media information for the file specified with path.
| path | path or uri of a media file |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformation: | (NSString*) | path | |
| withTimeout: | (int) | waitTimeout | |
Extracts media information for the file specified with path.
| path | path or uri of a media file |
| waitTimeout | max time to wait until media information is transmitted |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformationAsync: | (NSString*) | path | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
Extracts media information for the file specified with path asynchronously.
| path | path or uri of a media file |
| executeCallback | callback that will be called when the execution is completed |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformationAsync: | (NSString*) | path | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
Extracts media information for the file specified with path asynchronously.
| path | path or uri of a media file |
| 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 FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformationAsync: | (NSString*) | path | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
| withTimeout: | (int) | waitTimeout | |
Extracts media information for the file specified with path asynchronously.
| path | path or uri of a media file |
| executeCallback | callback that will be notified when execution is completed |
| logCallback | callback that will receive logs |
| queue | dispatch queue that will be used to run this asynchronous operation |
| waitTimeout | max time to wait until media information is transmitted |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformationAsync: | (NSString*) | path | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
| withTimeout: | (int) | waitTimeout | |
Extracts media information for the file specified with path asynchronously.
| path | path or uri of a media file |
| executeCallback | callback that will be notified when execution is completed |
| logCallback | callback that will receive logs |
| waitTimeout | max time to wait until media information is transmitted |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession *) getMediaInformationFromCommand: | (NSString*) | command |
Extracts media information using the command provided asynchronously.
| command | FFprobe command that prints media information for a file in JSON format |
Definition at line 1 of file FFprobeKit.m.
|
implementation |
Definition at line 1 of file FFprobeKit.m.
| + (MediaInformationSession*) getMediaInformationFromCommandAsync: | (NSString *) | command | |
| withExecuteCallback: | (ExecuteCallback) | executeCallback | |
| withLogCallback: | (LogCallback) | logCallback | |
| onDispatchQueue: | (dispatch_queue_t) | queue | |
| withTimeout: | (int) | waitTimeout | |
Extracts media information using the command provided asynchronously.
| command | FFprobe command that prints media information for a file in JSON format |
| executeCallback | callback that will be notified when execution is completed |
| logCallback | callback that will receive logs |
| queue | dispatch queue that will be used to run this asynchronous operation |
| waitTimeout | max time to wait until media information is transmitted |
|
implementation |
Definition at line 1 of file FFprobeKit.m.
| + (NSArray *) listSessions |
Lists all FFprobe sessions in the session history.
Definition at line 1 of file FFprobeKit.m.