Quick Look Mountain Lion Flicker and Jitter on H.264 Videos

Originator:jon
Number:rdar://12313705 Date Originated:
Status:Open Resolved:
Product:Mac OS X Product Version:10.8.1 (12B19)
Classification:Performance Reproducible:Always
 
==========================
Summary:
==========================
Mac OS X Mountain Lion's Quick Look feature has introduced a severe performance behavior problem with this latest OS X release (Mountain Lion). H.264 encoded videos that are opened with Quick Look now (1) flicker, and (2) have poor rendering performance [i.e. jittery] on some hardware.

These problems seem to plague all H.264 video, whether they were created by a DSLR camera, movies downloaded from the iTunes store, or self made videos from scratch. Third party applications that provide their own decoding algorithms such as VLC do not exhibit these same problems using the same source files.

Additionally, I have been able to reproduce this problem 100% of the time on both a mid-2010 iMac, and a mid-2007 MacBook Pro. Both of these devices exhibit the flickering issue. Surprisingly however, the poor rendering performance is significantly worse on the newer quad core iMac, and not so apparent on the older MacBook Pro. On both pieces of hardware, playing the exact same source files in a third party video player such as VLC results in near perfect rendering.


==========================
Steps to Reproduce:
==========================
Get a computer with Mountain Lion on it and simply open an H.264 encoded video in Quick Look. 


==========================
Expected Results:
==========================
I expect videos to play without flicker unless those flickers are part of the video itself, and I expect videos to play smoothly and without jitter.


==========================
Actual Results:
==========================
Videos are rendered with frequent flickers, as though one of the frames or a small sequence of frames are black, or of significantly lower exposure. Additionally, the videos render with poorer quality than third party decoders. Videos opened with Quick Look have a slight jittery appearance and is more severe on some hardware that is NOT a result of underlying hardware performance potential. This is clearly demonstrated with an older MBP rendering video more smoothly than a newer quad core iMac, as well as smooth rendering by third party applications that do not rely on OS X decoding.

See the attached files for examples of this problem exhibiting itself on both pieces of hardware. I've organized the videos by source file.

SOURCE: STAR TREK (downloaded from iTunes Store)
------------------------------------------------

[file1] Source played on iMac and QuickLook. Notice the flicker in the beginning, and the jitter on the fly over scene.

[file2] Source played on iMac and VLC with near perfect rendering. Notice how smooth the fly over scene is compared to [file1].

[file3] Source played on MBP and QuickLook. Notice flicker as character stands up on the surface of the planet. Also notice that the fly over scene is less jittery than the QuickLook render on the iMac, but still more jittery than the VLC render [file4]. You can see this especially with the character moving into the lower right of the frame on the fly over scene.

[file4] Source played on MBP and VLC. Notice smooth render.


SOURCE: Bolt (encoded with Handbrake from DVD)
----------------------------------------------

[file5] Source played on MBP and QuickLook. Notice the flicker around the time the Pigeons appear. Slight jitter compared to smooth VLC render [file6]

[file6] Source played on MBP and VLC. Notice the near perfect rendering compared to [file5].


As the videos demonstrate, it is only the video itself that is flickering. It is not the entire screen that is flickering. The flicker appears to occur randomly and at different time points. The severity of the flicker also varies from play to play of the same source material.


==========================
Regression:
==========================
This issue was introduced with OS X Mountain Lion. I redownloaded the Mountain Lion Installer and reinstalled, and this issue still persists on 10.8 and 10.8.1. Thus, it was not a corrupt installation, or an update gone bad.


==========================
Notes:
==========================

[link1] http://www.videolan.org

[file1] imac_star_trek_quicklook.mp4
[file2] imac_star_trek_vlc.mp4
[file3] mbp_star_trek_quicklook.mp4
[file4] mbp_star_trek_vlc.mp4

[file5] mbp_bolt_quicklook.mp4
[file6] mbp_bolt_vlc.mp4
[file7] imac.spx
[file8] mbp.spx

Comments

Still Reproducible on OS X 10.8.2

19-Sep-2012 07:07 PM Jon Stacey: I have upgraded to OS 10.8.2 which was released earlier today and can still reproduce this bug.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!