Hello. I have been trying to solve a memory issue with AVAssetWriter for two weeks without luck.
The original question I posted to Stack Overflow has some images and maybe more details, but after thinking about it I will try to focus on the update 1 from the post.
This is the code I am running currently: https://gist.github.com/jontelang/8f01b895321d761cbb8cda9d7a5be3bd
So essentially I am creating a video from a lot of .jpg with AVAssetWriter and it balloons up to several hundreds megabytes, 300mb it shows in Xcode and 500mb is shows un Instruments.
The memory is not released until the very end of the processing, and it looks to be internal to the AVAssetWriter (looking at the memory graph in Xcode). Some of the things I see that make up the 500mb is:
Thank you
The original question I posted to Stack Overflow has some images and maybe more details, but after thinking about it I will try to focus on the update 1 from the post.
This is the code I am running currently: https://gist.github.com/jontelang/8f01b895321d761cbb8cda9d7a5be3bd
So essentially I am creating a video from a lot of .jpg with AVAssetWriter and it balloons up to several hundreds megabytes, 300mb it shows in Xcode and 500mb is shows un Instruments.
The memory is not released until the very end of the processing, and it looks to be internal to the AVAssetWriter (looking at the memory graph in Xcode). Some of the things I see that make up the 500mb is:
ConstructPixelFrame
InterpolationCacheNew
FrameMotionInfo
JVTLibComp
Thank you