Bug 398868

Summary: Video upside down in Preview (Thumbnail ok)
Product: [Applications] digikam Reporter: benjcmin <benjcmin>
Component: Preview-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 6.1.0
Sentry Crash Report:
Attachments: DigiKam6 Video upside down
Screenshot File Properties
XMP info

Description benjcmin 2018-09-20 11:05:24 UTC
Created attachment 115117 [details]
DigiKam6 Video upside down

Hi
in DigiKam beta1 running macOS 10.13.6 I came across the situation that the Thumbnail of a Video was in correct orientation but when switching/watching in preview it's upside down.
Video recorded with an iPhone6s so filetype a MOV (Quicktime). 
Further information in DigiKam 5.9.0 both Thumbnail and Video are upside down, for the same file.
I added a screenshot from 6.0
Comment 1 Maik Qualmann 2018-09-20 11:23:28 UTC
I think the video will be too big to make it available. Can you take a screenshot of this video of the XMP metadata sidebar? As info only, you can rotate the video with the right mouse button during playback.

Maik
Comment 2 benjcmin 2018-09-20 19:08:12 UTC
Created attachment 115130 [details]
Screenshot File Properties
Comment 3 benjcmin 2018-09-20 19:11:16 UTC
Sorry missed to paste the comment to the screenshot.
XMP info is basically empty just creation date. 

I shortend the video and provide it here
https://www.dropbox.com/s/26yjzmo25pox7cc/DigiKamTestVideo.mov?dl=0

Rotating via Keyboard short cuts, just rotates the thumbnail and not the playing video (btw richt mouse click/button does nothing on macos in this case)
Comment 4 Maik Qualmann 2018-09-20 19:36:31 UTC
Thanks for the video sample. Thumbnail and video is correct in the orientation here. Did you set the filter of the XMP metadata view correctly? Your video sample has XMP data with orientation.

Dateiname: DigiKamTestVideo.mov (XMP-Schema)

>>> Adobe Photoshop <<<

Date Created : 2018-09-20T20:59:41

>>> audio <<<

Audio Channel Type : Mono
Audio Codec : aac
Audio Codec Description : AAC (Advanced Audio Coding)
Audio Format : fltp
Audio Sample Rate : 44100
Audio Sample Type : 32Float
Audio Track Create Date : 3620318381
Handler Description : Core Media Data Handler
Track Language : und

>>> Basis-Schema <<<

Create Date : 2018-09-20T20:59:41
Metadata Date : 2018-09-20T20:59:41
Modify Date : 2018-09-20T20:59:41

>>> Dynamische Medien <<<

Audio Channel Type : Mono
Audio Sample Rate : 44100
Audio Sample Type : 32Float
Camera Model : iPhone 6s
Duration : 2291
Shot Date : Do. Sep. 20 20:59:41 2018
Shot Location : +48.1113+011.5756+535.477/
Video Color Space : CCIR-709
Video Frame Rate : Other
Video Frame Size : w:1920, h:1080, unit:pixels
Video Pixel Aspect Ratio : 1920/1080
Video Pixel Depth : 8Int

>>> Exif-spezifische Eigenschaften <<<

Date and Time Digitized : 2018-09-20T20:59:41
Date and Time Original : 2018:09:20 20:59:41
GPS Altitude : 2677385/5000
GPS Altitude Reference : Above sea level
GPS Latitude : 48,6.67800000N
GPS Longitude : 11,34.53600000E
GPS Map Datum : WGS-84
GPS Version ID : 2.0.0.0
GPSLatitudeRef : N
GPSLongitudeRef : E
Pixel X Dimension : 1920
Pixel Y Dimension : 1080

>>> TIFF-Eigenschaften <<<

Date and Time : 2018-09-20T20:59:41
Image Length : 1080
Image Width : 1920
Orientation : bottom, right

>>> video <<<

AspectRatio : 1920/1080
BitDepth : 24
Codec : h264
CodecDescription : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
ColorMode : bt709
ColorSpace : CCIR-709
CompatibleBrands : qt
DateTimeDigitized : 2018-09-20T20:59:41
DateTimeOriginal : 2018-09-20T20:59:41, 2018-09-20T18:59:41.000000Z
DateUTC : 2018-09-20T20:59:41
duration : 2291
FileName : DigiKamTestVideo.mov
FileSize : 6
FileType : mov
Format : yuv420p
FrameHeight : 1080
FrameRate : 57
FrameSize : w:1920, h:1080, unit:pixels
FrameWidth : 1920
GPSAltitude : 2677385/5000
GPSCoordinates : +48.1113+011.5756+535.477/
GPSLatitude : 48,6.67800000N
GPSLongitude : 11,34.53600000E
GPSMapDatum : WGS-84
GPSVersionID : 2.0.0.0
HandlerDescription : Core Media Data Handler
Height : 1080
Language : und
MajorBrand : qt
Make : Apple
MaxBitRate : 25094382
MimeType : video/quicktime
MinorVersion : 0
Model : iPhone 6s
ModificationDate : 2018-09-20T20:59:41
Orientation : 3
SoftwareVersion : 11.2.1
SourceImageHeight : 1080
SourceImageWidth : 1920
StreamCount : 4
TrackCreateDate : 3620318381
Width : 1920


Maik
Comment 5 Maik Qualmann 2018-09-20 19:39:37 UTC
And right-click over the video image does not rotate the video output under OS X?

Maik
Comment 6 benjcmin 2018-09-28 11:58:28 UTC
Created attachment 115296 [details]
XMP info

1. yes right click on macOS does nothing to the video playing in preview
2. XMP info panel in Digikam for the file is empty besides create date (attachment)
3. rotating does nothing to the preview playback, but it changes the orienation of the thumbnail only. 
4. additionall just found out video won't play at all in full screen mode.
Comment 7 caulier.gilles 2019-03-09 04:51:42 UTC
benjcmin,

Can you reproduce the dysfunction using 6.1.0 pre-release package for MacOSX available here :

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 8 benjcmin 2019-03-09 18:54:44 UTC
(In reply to caulier.gilles from comment #7)
> benjcmin,
> 
> Can you reproduce the dysfunction using 6.1.0 pre-release package for MacOSX
> available here :
> 
> https://files.kde.org/digikam/
> 
> Thanks in advance
> 
> Gilles Caulier

Hi Gilles,

no I can't, all vidoes incl. thumbnaisl I checked are in the right orientation with 6.1.0 release.
Thx.


Benjamin