R – iPhone short animation: video or image sequence

iphoneobjective cperformanceuiimageviewvideo

I have read several post on both matters but I haven't seen anyone comparing so far.

Suppose I just want full screen animation without any transparency etc, just a couple of seconds animation (1''-2'') when an app starts. Does anyone know how "video" compares to "sequence of images" (320×480 @ 30) on the iPhone, regarding performance etc?

Best Answer

I think there are a few points to think about here.

  1. Size of animation as pointed out above. You could try a framerate of 15 images per second so that could be 45 images for 3s. That is quite a lot data.
  2. The video would be compressed as mentioned before in H.264 (Baseline Profile Level 3.0) format or MPEG-4 Part 2 video (Simple Profile) format. Which means its going to be reasonably small.

I think you will need to go for video because, 1. 45 full screen PNG images is going to require a lot of ram. I don't think this is going to work that well.

Lastly you will need to ad the Media Player Framework which will have to be loaded into memory and this going to increase your load times.

MY ADVICE: Sounds like the animation is a bit superfluous to the app, I hate apps that take ages to load and this is only going to increase you app startup times. If you can avoid doing this, then dont do it. Make you app fast. If you could do this at some other time after load then that is cool.

Related Topic