|
@@ -322,7 +322,7 @@ public class BFRecordExport {
|
|
|
if itemModell.voiceStickers.count == 0 && synthesisAll {
|
|
|
modelDuraion += 2
|
|
|
}else {
|
|
|
- modelDuraion = itemModell.materialDuraion
|
|
|
+ modelDuraion = itemModell.materialDuraion
|
|
|
}
|
|
|
}else if itemModell.mediaType == .VIDEO{
|
|
|
modelDuraion = itemModell.dealedDurationRanges.reduce(0.0) { partialResult, srange in
|
|
@@ -378,8 +378,8 @@ public class BFRecordExport {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- BFLog(1, message: "导出设置的码率为:\(Double(orgeBitRate)/1024.0/1024.0)M")
|
|
|
- let preSize = Double(orgeBitRate) * totalDuration / (1024*1024)
|
|
|
+ BFLog(1, message: "导出设置的码率为:\(Double(orgeBitRate)/1024.0/1024.0)Mb")
|
|
|
+ let preSize = Double(orgeBitRate) * totalDuration / (1024*1024*8)
|
|
|
let freeSize = PQBridgeObject.getPhoneDiskFreeSize()
|
|
|
if preSize + 100.0 > freeSize { // 存储完后磁盘剩余至少100M
|
|
|
let error = NSError(domain: "err", code: ExportError.DiskNoSpace.rawValue, userInfo: ["msg":"磁盘空间不足"])
|