GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

GPUImageMovieWriter truncates audio

Open valvoline opened this issue 14 years ago • 1 comments

Hi Brad,

And many thanks for your constant work (and help) on the project. This time I'm experiencing some problems related to GPUImageMovieWriter audio/video.

I started from the SimpleFilterVideo example and I modified it to use a 1280x720 video session presets (the test device is an iPhone4).

The used filter is a chain like the following:

Brightness -> Saturation -> Pixelate

However, the resulting m4v has some audio problem. The audio is truncated at the middle of the video.

I've conducted some tests and I found that the more the filter is CPU expensive, the more the audio is truncated.

Switching to 640x480 video presets gives me a resulting video without any issue (only a little glitch between audio and video at the end).

The second stage of test that I've conducted is based on iPhone4S.

This device can handle without problem the filter chain:

Brightness -> Saturation -> Pixelate

Using a 1920x1080 video preset.

However, changing the filter chain to something more cpu intensive like the following:

Brightness -> Saturation -> Contrast -> TiltShift

produces the same issue of the iPhone4. The audio is truncated near the end of the movie.

All this facts, conduct me to think about a sync/cpu related problem during the writing of the video.

Have you some suggestions?

Thanks in advance

c.

valvoline avatar Aug 01 '12 22:08 valvoline

Given that this is the same issue as in issue #67, I'm closing this one and using that as the canonical issue.

BradLarson avatar Aug 02 '12 20:08 BradLarson