Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
GPUImageMovieWriter cuts off prematurely for short videos #1403
I've noticed an issue where trying to write a movie with a duration of anything < 0.5 seconds causes the writer to output a blank and possibly corrupted file.
(I've also noticed that around 0.5 seconds is cut off from the end of any long video as well.)
I'm using the same exact code as from the SimpleVideoFileFilter to write the movie.
Changing the completion block from:
solves this issue, but is only a hacky workaround. Any idea what the underlying problem is?
Actually, figure it's worth seeing if it's hardware related as other people should be seeing this and it's pretty easy to repro. I've seen the .5 seconds cut off on both an iPhone 4s and an iPhone 5s... only recently have noticed the .5 second file corruption, but that was due to the first time using a .5 second long file.