Browse Source

提高合成后视频的质量

i2edu 5 năm trước cách đây
mục cha
commit
429f19046a
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      ios/Classes/DubbingComposer.swift
  2. 1 1
      ios/Classes/VideoComposer.swift

+ 1 - 1
ios/Classes/DubbingComposer.swift

@@ -72,7 +72,7 @@ class DubbingComposer {
 //        }
         
         //输出到文件
-        if let assetExport = AVAssetExportSession(asset: composition, presetName: AVAssetExportPresetMediumQuality) {
+        if let assetExport = AVAssetExportSession(asset: composition, presetName: AVAssetExportPresetHighestQuality) {
             assetExport.outputFileType = AVFileType.mp4
             assetExport.outputURL = output
             assetExport.shouldOptimizeForNetworkUse = true

+ 1 - 1
ios/Classes/VideoComposer.swift

@@ -61,7 +61,7 @@ class VideoComposer {
         }
         
         //输出到文件
-        if let assetExport = AVAssetExportSession(asset: composition, presetName: AVAssetExportPresetMediumQuality) {
+        if let assetExport = AVAssetExportSession(asset: composition, presetName: AVAssetExportPresetHighestQuality) {
             assetExport.outputFileType = AVFileType.mp4
             assetExport.outputURL = output
             assetExport.shouldOptimizeForNetworkUse = true