Marginal / QLVideo

This package allows macOS Finder to display thumbnails, static QuickLook previews, cover art and metadata for most types of video files.
GNU General Public License v2.0
2.54k stars 88 forks source link

_clampImageAlphaTo01 & _updateContentForLayerUsingIOSurface error and no playable preview for some video files #60

Closed gkertai closed 5 years ago

gkertai commented 5 years ago

Certain video files only show a static image preview. For these videos the diagnostic log includes the following error:

$ qlmanage -p -d1 BigBuckBunny_2000hevc.mp4 
[DEBUG] Preview test for BigBuckBunny_2000hevc.mp4 -- file:///Volumes/…/. Content type UTI: public.mpeg-4
[DEBUG] Previewing file:///Volumes/…/BigBuckBunny_2000hevc.mp4. Content type UTI: public.mpeg-4. Generator used: <QLGenerator /Library/QuickLook/Video.qlgenerator>
[DEBUG] Loading <QLGenerator /Library/QuickLook/Video.qlgenerator>
[DEBUG] Previewing file:///Volumes/…/BigBuckBunny_2000hevc.mp4 finished
qlmanage[29574:377321] +[IKImageContentView _clampImageAlphaTo01:colorSpace:] no CIImage passed in
qlmanage[29574:377321] IKImageView2 _updateContentForLayerUsingIOSurface Error: source rect and destination rect of tile being drawn are not the same

For example the BigBuckBunny_2000hevc.mp4 (H.265 4K) file from the x265.com samples produces this error, but the BigBuckBunny_2000h264.mp4 (H.264 4K) file plays back fine. The Tractor_500kbps_x265.mp4 (H.265 HD) also plays back fine. So it's not only about the codec, but some property of the compression or container that invokes the error.

Renaming the file from .mp4 to .m4v as described in the Limitations section does not help.

ffmpeg does not reveal any significant codec differences (see failing video on right), other than frame rate and dimensions. Note however that the sample_ascpect_ratio and display_aspect_ratio fields seem to be messed up: 0:1.

diff

macOS High Sierra 10.13.6 (17G4015), QLVideo 1.91 (installed via Homebrew)

Duartede commented 5 years ago

I have this problem:

Before installing QL Video the HEVC files would play well when I click on the space bar on finder but the files had no thumbnail. After installing QL Video the files have a thumbnail (although it takes sometime to load) but they won't play when I click the space bar in finder. They just open a still image like this I'm attaching. I'm running High Sierra (10.13.6). The files I have problems were recorded with the Mavic Pro 2 . Can someone please help fix this? Thanks!

screen shot 2019-01-27 at 22 08 43