Bug 496484 - (mov.) video playback distorted colors
Summary: (mov.) video playback distorted colors
Status: REOPENED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Video (show other bugs)
Version: 8.5.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-20 05:51 UTC by kasiaslopien
Modified: 2025-01-10 04:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.6.0
Sentry Crash Report:


Attachments
HEVC MOV. file (747.20 KB, video/mp4)
2024-12-15 04:58 UTC, kasiaslopien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kasiaslopien 2024-11-20 05:51:36 UTC
Even though Digikam is able to play Quicktime videos, the image colors are distorted in versions higher to 8.2.0. including the newest version. I have reinstalled ffmpeg but it didn't solve the issue. 

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2024-11-20 06:43:31 UTC
Even though Digikam is able to play Quicktime videos, the image colors are distorted in versions higher to 8.2.0. including the newest version. I have reinstalled ffmpeg but it didn't solve the issue.

Maik
Comment 2 Maik Qualmann 2024-11-20 06:45:23 UTC
My comment 1 was a copy/paste error.

A test of my MOV files shows no problem, both older and current MOV files from a Nikon Z camera.
We need a sample video with which the problem can be reproduced.

Maik
Comment 3 Maik Qualmann 2024-11-20 06:47:40 UTC
Even though Digikam is able to play Quicktime videos, the image colors are distorted in versions higher to 8.2.0. including the newest version. I have reinstalled ffmpeg but it didn't solve the issue. 

Maik
Comment 4 Maik Qualmann 2024-11-20 06:50:23 UTC
The comment 3 makes me suspicious now, I definitely posted the correct text...

Another question, since you have provided practically no information, is which digiKam version are you using exactly? Are you using the Qt5 or Qt6 digiKam version?

Maik
Comment 5 kasiaslopien 2024-11-21 05:57:36 UTC
(In reply to Maik Qualmann from comment #4)
> The comment 3 makes me suspicious now, I definitely posted the correct
> text...
> 
> Another question, since you have provided practically no information, is
> which digiKam version are you using exactly? Are you using the Qt5 or Qt6
> digiKam version?
> 
> Maik

I have been working with Digikam for 3 years now and always updating to the newest version. I noticed some issues with version on 8.4.0 and recently updated to 8.5.0 but the problem remained the same. So I have reverted back to version 8.2.0 yesterday since it doesn't have a problem with Quicktime videos. I will submit a picture of how the colours are displayed later, since I will need to install the newer version again.
Comment 6 Maik Qualmann 2024-11-21 06:52:09 UTC
Please answer the question whether you have installed the Qt5 or Qt6 version of digiKam? What is the exact name of the installer for digiKam-8.5.0? Or look at the component information in the digiKam Help menu.

Maik
Comment 7 kasiaslopien 2024-11-23 04:39:43 UTC
(In reply to Maik Qualmann from comment #6)
> Please answer the question whether you have installed the Qt5 or Qt6 version
> of digiKam? What is the exact name of the installer for digiKam-8.5.0? Or
> look at the component information in the digiKam Help menu.
> 
> Maik

Apologies, I didn't understand the question before. I have installed version Qt6
Comment 8 Maik Qualmann 2024-11-23 05:26:28 UTC
We probably need a MOV sample video from you.
Do you have an AMD graphics card? Please try to activate the option to fix AMD problems in the digiKam settings under Miscellaneous-> System. Restart digiKam and test whether the problem still exists.

Maik
Comment 9 Maik Qualmann 2024-11-23 07:42:33 UTC
Git commit cb0bd378009a9793afeb7ac804def1d7ad93942f by Maik Qualmann.
Committed on 23/11/2024 at 07:40.
Pushed by mqualmann into branch 'master'.

add option to disable video hardware acceleration
Related: bug 492922, bug 493988, bug 492060

M  +13   -4    core/app/main/main.cpp
M  +4    -14   core/utilities/setup/misc/systemsettings.cpp
M  +2    -7    core/utilities/setup/misc/systemsettings.h
M  +10   -28   core/utilities/setup/misc/systemsettingswidget.cpp

https://invent.kde.org/graphics/digikam/-/commit/cb0bd378009a9793afeb7ac804def1d7ad93942f
Comment 10 kasiaslopien 2024-12-07 04:14:12 UTC
Thanks, I've managed to solve the issue. I went to Miscellaneous-> System and changed decoding settings from ffmpg to WMF


(In reply to Maik Qualmann from comment #8)
> We probably need a MOV sample video from you.
> Do you have an AMD graphics card? Please try to activate the option to fix
> AMD problems in the digiKam settings under Miscellaneous-> System. Restart
> digiKam and test whether the problem still exists.
> 
> Maik
Comment 11 kasiaslopien 2024-12-15 04:58:08 UTC
Created attachment 176624 [details]
HEVC MOV. file
Comment 12 kasiaslopien 2024-12-15 05:00:11 UTC
(In reply to kasiaslopien from comment #11)
> Created attachment 176624 [details]
> HEVC MOV. file

Sorry, the problem is half solved actually, so I had to reopen the case. The HEVC Quicktime videos (taken with Iphone) seem to be problematic. I have changed the settings to WMF and the video plays OK, but if I want to fast forward "an error has occured"  pops up. And so I am unable to skip back or forth in the video. If I reset the setting to ffmpg I can fast forward but the picture is distorted.  I've updated a sample above. Would appreciate your help.
Comment 13 Maik Qualmann 2024-12-15 05:40:59 UTC
Sorry, but we can't do anything with a video filmed from the desktop, it's absolutely useless. We need the original video that causes the problem. With digiKam-8.6.0 there is the option to turn off hardware video acceleration and texture conversion. If you have tested these options and there are still incorrect colors, reopen the bug report with an original sample video.

Maik
Comment 14 kasiaslopien 2025-01-05 06:07:42 UTC
Sorry, I can't find a video that I would be able to upload without having to trim it, which then changes video's parameters. The problem lies in the colour mode of the video. In Digikam it is listed as Other. It seems that other Mov videos with same hevc codecs but with a specified CCIR-709 are displaying well.  Sorry if that's not helpful..
Comment 15 Maik Qualmann 2025-01-05 13:20:40 UTC
I can't find a sample video with an unknown color space.
MOV video files can be "hard" cut, so just copy a few MB from the beginning of the video into a new file and make that available.

Maik
Comment 16 kasiaslopien 2025-01-10 04:42:17 UTC
(In reply to Maik Qualmann from comment #15)
> I can't find a sample video with an unknown color space.
> MOV video files can be "hard" cut, so just copy a few MB from the beginning
> of the video into a new file and make that available.
> 
> Maik

Hi Maik, sorry not sure what you mean by "hard" cut and how to copy a few MB from the video. My OS is Windows by the way. If I want to edit a video I need to use Windows Movie Maker or other programme. Can you edit it in DigiKam?