BradLarson / GPUImage2

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

[MovieOutput] Audio buffer is written before video buffer. #165

Open hoangelec opened 7 years ago

hoangelec commented 7 years ago

When I tried recording with MovieOutput, there is occasionally some first black frames in my output video. I guess it's because the audio buffer is written before the video buffer, as mentioned here https://github.com/BradLarson/GPUImage/issues/1255 Looks like it was fix for GPUImage (Obj-C) but not for GPUImage2. Can you please suggest what I can do to avoid this problem?

ShivaHuang commented 7 years ago

I have patched this issue and created a PR. You can get the modification from https://github.com/BradLarson/GPUImage2/pull/161 or beg @BradLarson to merge.