GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Movie size

Open balabs opened this issue 14 years ago • 2 comments

What are parameters that someone can set up in GPUImage configuration to make recorded movie smaller?

My movie recorded for 90 seconds has about 40 MB.

What are parameters that can be configurable and that influent in final movie file size?

balabs avatar Nov 20 '12 14:11 balabs

You would need to set things like the record quality to lower the final file size;

http://developer.apple.com/library/ios/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html#//apple_ref/c/tdef/UIImagePickerControllerQualityType

dansinclair25 avatar Nov 22 '12 11:11 dansinclair25

Hi @dansinclair25 ,

Thanks for your help, but there is already similar topic to this one.

https://github.com/BradLarson/GPUImage/issues/351

I found this after I've posted my question.

As user 2energycell had described in that thread:

"I have uncommented creation of videoCleanApertureSettings, videoAspectRatioSettings, compressionProperties and have seted the AVVideoAverageBitRateKey to 500000 value in "GPUImageMovieWriter.m". And the file size now are significantly smaller."

The same thing helped me to reduce file size. The 90 secs video is now only 7-8 MB.

I set AVVideoAverageBitRateKey to 256 * 1024; But to improve the video quality a little bit I'll set it to 384*1024;

Thank you @dansinclair25 for taking your time to help.

Great thanks to @BradLarson for great job once again.

balabs avatar Nov 22 '12 12:11 balabs