|
@@ -420,7 +420,7 @@ extension PQStuckPointPublicController {
|
|
|
outPutMP4Path.append("video_\(String.qe.timestamp()).mp4")
|
|
|
let outPutMP4URL = URL(fileURLWithPath: outPutMP4Path)
|
|
|
BFLog(message: "导出视频地址 \(outPutMP4URL)")
|
|
|
- let inputAsset = AVURLAsset(url: URL(fileURLWithPath: documensDirectory + (audioMixModel?.localPath ?? "")), options: avAssertOptions)
|
|
|
+ let inputAsset = AVURLAsset(url: URL(fileURLWithPath: documensDirectory + (audioMixModel?.localPath ?? "")), options: nil)
|
|
|
// 每次初始化的时候设置初始值 为 nIl
|
|
|
exporter = PQCompositionExporter(asset: inputAsset, videoComposition: nil, audioMix: nil, filters: nil, stickers: mStickers, animationTool: nil, exportURL: outPutMP4URL)
|
|
|
exporter.showGaussianBlur = true
|
|
@@ -585,7 +585,7 @@ extension PQStuckPointPublicController {
|
|
|
PQBaseViewModel.updateProject(projectId: editProjectModel?.projectId ?? "", produceStatus: "5") { repseon, _ in
|
|
|
BFLog(message: "updateProject 结果 is \(String(describing: repseon))")
|
|
|
}
|
|
|
- let asset = AVURLAsset(url: exportLocalURL!, options: avAssertOptions)
|
|
|
+ let asset = AVURLAsset(url: exportLocalURL!, options: nil)
|
|
|
let tempUploadData = PQUploadModel()
|
|
|
tempUploadData.duration = CMTimeGetSeconds(asset.duration)
|
|
|
tempUploadData.localPath = exportLocalURL?.absoluteString
|