BradLarson / GPUImage3

GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal.
BSD 3-Clause "New" or "Revised" License
2.68k stars 331 forks source link

memory leaks when mixing camera and movie #75

Closed nikolayzhuk closed 4 years ago

nikolayzhuk commented 4 years ago

I tried to mix the camera and movie but it crashes cause of memory leaks in few sec. do { camera = try Camera(sessionPreset: .photo) movie = try MovieInput(url:movieURL, playAtActualSpeed:true) filter = ChromaKeyBlend() camera --> filter movie --> filter filter --> renderView movie.runBenchmark = true movie.start() camera.startCapture() } catch { print("Couldn't process movie with error: (error)") }

Please help me

jiangao070112 commented 4 years ago

I tried to mix the camera and movie but it crashes cause of memory leaks in few sec. do { camera = try Camera(sessionPreset: .photo) movie = try MovieInput(url:movieURL, playAtActualSpeed:true) filter = ChromaKeyBlend() camera --> filter movie --> filter filter --> renderView movie.runBenchmark = true movie.start() camera.startCapture() } catch { print("Couldn't process movie with error: (error)") }

Please help me

It is the same to me. Only you use movieInput, the memory leaks huge.

sbelmeha commented 4 years ago

for me it just crashes after playing a few seconds of hd video cause of memory issue