Sunday, September 29, 2013

iPhone FFmpeg video playback is not smooth

Brother built a dedicated thread to catch the video source on the web video, this video thread each grasping a sleep (1.0/50);
The captured video saved to NSMutableArray * saveImage, the other caught 50 pictures is to build a TIMER to display these images, TIMER per (1/30) seconds to perform a show saveImage front of a picture, and then [ saveImage removeObjectAtIndex: 0]

Adopt such a way to play catch pictures

The effect is not very satisfactory, when playing obviously do not feel smooth, no FLASH player video source is good, ask the home usually are how to solve it?
There is a good way to do

Reply:
Use Proxy Pattern, until then loaded into the display area, and always maintain the thumbnail in memory
Reply:
Your idea is wrong, you get hold of the received frame decoder thrown inside better.

No comments:

Post a Comment