|
@@ -212,7 +212,7 @@ public class BFRecordExport {
|
|
|
}
|
|
|
|
|
|
BFLog(message: "导出设置的码率为:\(orgeBitRate)")
|
|
|
-
|
|
|
+ let tempBeginExport = Date().timeIntervalSince1970
|
|
|
if exporter!.prepare(videoSize: outputSize, videoAverageBitRate: orgeBitRate) {
|
|
|
exporter!.start(playeTimeRange: CMTimeRange(start: CMTime.zero, end: synthesisAll ? CMTime(seconds: totalDuration, preferredTimescale: 100) : composition.duration))
|
|
|
}
|
|
@@ -228,7 +228,10 @@ public class BFRecordExport {
|
|
|
if let url = url {
|
|
|
let outSeconds = CMTimeGetSeconds(AVAsset(url: url).duration)
|
|
|
|
|
|
- BFLog(1, message: "无水印的视频导出完成: \(String(describing: url)) 生成视频时长为:\(outSeconds)")
|
|
|
+ let exportEndTime = Date().timeIntervalSince1970
|
|
|
+ BFLog(1, message: "视频导出完成: \(String(describing: url)) 生成视频时长为:\(outSeconds) 总用时:\(exportEndTime - tempBeginExport)")
|
|
|
+
|
|
|
+
|
|
|
cShowHUB(superView: nil, msg: (outSeconds == 0) ? "合成失败请重试。" : "合成成功")
|
|
|
self?.exportCompletion?(nil, url)
|
|
|
|