Search code examples
iosobjective-cvideocompressiongpuimage

How do I compress a video with GPUImage


I'm using GPUImage to crop existing videos with the GPUImage crop filter. A 5 second video is currently exporting with with a size of 3.5MB @ 320x320. I need to get this below 1MB, but I'm not sure how to use GPUImage to compress the video.


Solution

  • I found this update: https://github.com/BradLarson/GPUImage/pull/310

    There is an initializer which accepts output settings dictionary

    - (id)initWithMovieURL:(NSURL *)newMovieURL size:(CGSize)newSize fileType:(NSString *)newFileType outputSettings:(NSMutableDictionary *)outputSettings;