差異

2017-07-04 50 views
1

我壓縮視頻,所以我所遇到下列導出預設差異

AVAssetExportPresetLowQuality 
AVAssetExportPresetMediumQuality 
AVAssetExportPresetHighestQuality 

AVAssetExportPreset640x480 
AVAssetExportPreset960x540 
AVAssetExportPreset1280x720 
AVAssetExportPreset1920x1080 
AVAssetExportPreset3840x2160 

我看了一下他們都在蘋果的文件,發現在給定的固定尺寸的第二個列表壓縮,但沒有發現任何有關第一個列表,我很困惑,爲什麼它有兩個列表,一個低,中,高質量和其他固定大小,哪一個更好用?

回答

2

AVAssetExportPreset包含以下可用預設名稱。

1. Export Preset Names for Device-Appropriate QuickTime Files

AVAssetExportPresetLowQuality - Specifies a low quality QuickTime file. 
AVAssetExportPresetMediumQuality - Specifies a medium quality QuickTime file. 
AVAssetExportPresetHighestQuality - Specifies a high quality QuickTime file. 

使用這些導出選項,以生產具有 適合當前設備的視頻大小的QuickTime傳送文件。

2. Export Preset Names for QuickTime Files of a Given Size

AVAssetExportPreset640x480 
AVAssetExportPreset960x540 
AVAssetExportPreset1280x720 
AVAssetExportPreset1920x1080 
AVAssetExportPreset3840x2160 

使用這些導出選項,以產生與指定的視頻大小的QuickTime傳送文件。

3. Export Preset Name for iTunes Audio

AVAssetExportPresetAppleM4A 

您可以使用此導出選項,以產生具有適當的iTunes的無縫播放數據僅音頻.m4a的文件。

4. Export Preset Name for Pass-Through

AVAssetExportPresetPassthrough 

您可以使用此導出選項,讓所有曲目通過through.This選項不會在 allExportPresets() 和 exportPresets(compatibleWith :) 方法顯示出來。

+0

哪一個最推薦使用,壓縮視頻,允許上傳和下載速度更快,質量好? – khushboo

+0

@khushboo我認爲中等質量對於更快的過程和質量來說也是最好的。 –