Skip to content

Migrating From ReactNativeFFmpeg

Taner Şener edited this page Oct 5, 2021 · 5 revisions

The following table shows how react-native-ffmpeg API methods can be migrated to FFmpegKit.

Please note that FFmpegKit provides multiple methods for the some of the react-native-ffmpeg functions.

1. RNFFmpeg

FFmpegKit FFmpegKitConfig Session
execute executeAsync asyncFFmpegExecute
executeWithArguments executeWithArgumentsAsync asyncFFmpegExecute
executeAsync executeAsync asyncFFmpegExecute
executeAsyncWithArguments executeWithArgumentsAsync asyncFFmpegExecute
cancel cancel
cancelExecution cancel cancel
listExecutions listSessions getSessions
getSession
getSessionsByState
parseArguments parseArguments

2. RNFFprobe

FFprobeKit FFmpegKitConfig
execute executeAsync asyncFFprobeExecute
executeWithArguments executeWithArgumentsAsync asyncFFprobeExecute
getMediaInformation getMediaInformationAsync asyncGetMediaInformationExecute

3. RNFFmpegConfig

FFmpegKitConfig Session FFmpegSession
enableRedirection enableRedirection
disableRedirection disableRedirection
getLogLevel getLogLevel
setLogLevel setLogLevel
enableLogCallback enableLogCallback
enableStatisticsCallback enableStatisticsCallback
getLastReceivedStatistics getLastSession
getLastCompletedSession
getLastReceivedStatistics
getStatistics
getAllStatistics
resetStatistics
setFontconfigConfigurationPath setFontconfigConfigurationPath
setFontDirectory setFontDirectory
setFontDirectoryList
getPackageName
getExternalLibraries
registerNewFFmpegPipe registerNewFFmpegPipe
closeFFmpegPipe closeFFmpegPipe
getSupportedCameraIds getSupportedCameraIds
getFFmpegVersion getFFmpegVersion
getVersion getVersion
isLTSBuild isLTSBuild
getBuildDate getBuildDate
getLastReturnCode getLastSession
getLastCompletedSession
getReturnCode
getLastCommandOutput getLastSession
getLastCompletedSession
getOutput
getLogs
getAllLogsAsString
printLastCommandOutput
setEnvironmentVariable setEnvironmentVariable
ignoreSignal ignoreSignal
Clone this wiki locally