NextLevel / NextLevelSessionExporter

šŸ”„ Export and transcode media in Swift
http://nextlevel.engineering
MIT License
262 stars 49 forks source link

Problem with output format #8

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, Iā€™m experiencing some problem with differents video resolutions during the exporting process. Could you please explain me if on iOS only certain resolutions are supported or if is this a library bug?

Thanks in advance.

piemonte commented 6 years ago

hey @capitan91, you can ask a device what it supports like this:

    AVAssetExportSession.allExportPresets()

If you have specific presets, then you can check if they are compatible like this:

   AVAssetExportSession.exportPresets(compatibleWith asset: AVAsset) -> [String]

šŸ“Ž https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390567-exportpresets