Skip to main content
sinious
Legend
June 16, 2012
Question

AIR for iOS.. best strategy to play 100MB+ MP4 videos?

  • June 16, 2012
  • 8 replies
  • 2925 views

Hey all,

Is anyone able to play a 100MB+ MP4 on iPad1? Whether StageVideo, StageWebView, etc? StageVideo starts to bog to death at about half way (netStatus reports buffer empties and it never regains). Trying to URLLoader download crashes the app (trying to play it local). StageWebView crashes outright. Standard NC/NS/Viideo classes fail to even start playing.

100MB just too tall of an order for iPad1?

Even loading the mp4 directly in safari on 50mbit inet/wifi N can't keep up. iPad2/3 works perfectly.

I used Madagascar 3 trailer recompressed to 1024x576 @ 23.976 MainConcept MP4 to test.

Does your iPad1 load and play this smoothly in safari?

http://www.filehorde.com/o/1.mp4

Thanks for tips.

Note: What isn't working is buffer events. If I check buffer length its always 0. I do get an empty event but unlike a PC where I can throw up a buffering message and pause playback, iOS just goes unresponsive. I can't recover.

This topic has been closed for replies.

8 replies

June 21, 2012

Hi sinious,

If your video is H264 - you could play it only with StageVideo from local storage (packaged in ipa or maybe from device) . I wasn't be able to play video with StageVideo from remote http server.

I suggest to convert it to h263 if you want to play it from server. I guess other option with FMS4 wouldn't fit your project :-). Read more http://forums.adobe.com/message/4258373

Stan

sinious
siniousAuthor
Legend
June 21, 2012

Thanks for trying it.

That particular MP4 was encoded using a trial version of Adobe Media Encoder CS6. I don't have CS6 or access to it at the moment but I always otherwise use Sorenson Squeeze (8.5 atm). It encodes MP4s using MainConcept H.264 and AAC audio.

AME6 encoded that test video I have linked with H.264 as well (not sure who's codec) and AAC at a data rate of 6Mb/s. That's a very aggressive movie but that's what I wanted, to test the max limits.

Anyhow point is, it plays just fine on the iPad1 up until about half way using StageVideo. So yes, you can play H.264 over HTTP, it doesn't need to be local.

Unfortunately all I've been able to do to solve my problems is use smaller resolution video and compress it a ton more. It's amazing how I almost can't break the iPad2 (forget 3) but the iPad1 breaks every time even with a tiny 40MB video.

Mark.fromOP
Inspiring
June 26, 2012

Upload it to YouTube make it unlisted and link to that via stageWebView? This will also cut down on total app size.

June 16, 2012

More than the size of the video in bytes, I feel the resolution is extremely high for an iPad 1. I can't recall the source but the recommended resolution for an iPad is 768 * 576. I am just recalling this from what I read somewhere.

sinious
siniousAuthor
Legend
June 17, 2012

I agree, people mistake the ipad1 as a computer. I'm looking for the bare max limits.