Closed Christilut closed 1 year ago
Here is my basic code:
FFmpegKit.executeAsync(ffmpegCommand) { session in
guard let session = session else {
print("!! Invalid session")
return
}
guard let returnCode = session.getReturnCode() else {
print("!! Invalid return code")
return
}
print("FFmpeg process exited with state \(FFmpegKitConfig.sessionState(toString: session.getState()) ?? "Unknown") and rc \(returnCode).\(session.getFailStackTrace() ?? "Unknown")")
} withLogCallback: { logs in
guard logs != nil else { return }
print(logs)
} withStatisticsCallback: { stats in
guard stats != nil else { return }
}
I'm segmenting audio with ffmpeg with a command like this
-i <input> -loglevel verbose -muxdelay 0 -map_metadata -1 -f segment -segment_time 10 <output>
The command works in both sync and async calls. But when running it sync, I get output like this:
When I use the executeAsync command, with the
withLogCallback
then the above output is not there. Some basic streaming info output is there but nothing more.Is the loglevel being ignored for the async command or is something else going on? How do I get all the log output?