Skip to content

Instantly share code, notes, and snippets.

@jpetrich
Created September 26, 2017 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpetrich/cceb1d2eb74d5163e08088230c28ea81 to your computer and use it in GitHub Desktop.
Save jpetrich/cceb1d2eb74d5163e08088230c28ea81 to your computer and use it in GitHub Desktop.
Setting up an AVAssetWriterInput with HEVC encoding
avAssetWriterInput = AVAssetWriterInput(mediaType: AVMediaType.video, outputSettings: [AVVideoCodecKey:AVVideoCodecType.hevc, AVVideoHeightKey:720, AVVideoWidthKey:1280])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment