Closed arlovip closed 3 years ago
Description
I install mobile-ffmpeg-min via CocoaPods in my swift project. I want to convert mkv format video to mp4 video and then save to photo library.
mobile-ffmpeg-min
CocoaPods
Installing mobile-ffmpeg-min (4.3.1)
code snippets:
let mkvPath = NSHomeDirectory() + "/Documents/recordvideo.mkv" let outputMp4 = NSHomeDirectory() + "/Documents/recordvideo.mp4" if FileManager.default.fileExists(atPath: mkvPath) { MobileFFmpeg.execute("-i \(mkvPath) -codec copy \(outputMp4)") }
Expected behavior Convert mkv to mp4 as expected.
Current behavior App Crash when converting video.
Screenshots
Logs
See screenshot.
Environment
Description
I install
mobile-ffmpeg-min
viaCocoaPods
in my swift project. I want to convert mkv format video to mp4 video and then save to photo library.code snippets:
Expected behavior Convert mkv to mp4 as expected.
Current behavior App Crash when converting video.
Screenshots
Logs
See screenshot.
Environment