Sfoglia il codice sorgente

提高合成后视频的质量

i2edu 5 anni fa
parent
commit
429f19046a
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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