Choppy video playback issue only on iPad Pro

Hi Apple,


We are having issues playing our custom encoded h264 video on iPad Pro. The issue we refer is video playback is choppy. Attached one such sample which exhibit such behaviour. This video plays perfectly fine on iPad and iPad Air 2, but with any iPad Pro model the playback is choppy. Let me know if you cannot open this video. Please find the zipped video file in the Link.


Additionally, I also tried to do extra processing, but got "Cannot Decode" error from AVAssetExportSession on iPad Pro. However, on the other normal iPad or iPad Air I don't see any problem.


The sample code for playing video is very simple:

AVPlayer *videoPlayer = [AVPlayer playerWithURL:[NSURL fileURLWithPath:filePath]];

AVPlayerViewController *playerViewController = [[AVPlayerViewController alloc] init];

playerViewController.player = videoPlayer;

playerViewController.showsPlaybackControls = YES;

playerViewController.videoGravity = AVLayerVideoGravityResizeAspect;

playerViewController.view.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds));



Thank you.

I have also tried AVAssetReaderOutput to use copyNextSampleBuffer to get frame by frame. However in some frames I got this error

Error Domain=AVFoundationErrorDomain Code=-11829 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media may be damaged., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x2809589f0 {Error Domain=NSOSStatusErrorDomain Code=-12137 "(null)"}}

This error will only happen in iPad Pro. I think this problem is most likely in the hardware decoder of iPad Pro. I have verified in many places (iPad, Macbook, Windows and Linux, with both software and hardware decoder) the video (not only one but many) works while only in iPad Pro it fails.

Choppy video playback issue only on iPad Pro
 
 
Q