Bug 414572

Summary: Playing video stuttering in fullscreen mode / slideshow
Product: [Applications] digikam Reporter: ismir.schlecht42
Component: Plugin-Generic-SlideShowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 6.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
See Also: https://bugs.kde.org/show_bug.cgi?id=382582
Latest Commit: Version Fixed In: 8.2.0
Sentry Crash Report:

Description ismir.schlecht42 2019-11-27 13:19:44 UTC
Video replay stutters, when shown in slide show. This stutter is _not_ present in preview (double click on thumbnail in catalogue view).


STEPS TO REPRODUCE
1. observed on .mov and mp4 files (Canon generated, don't know the exact codec spec)
2. screen resolution 3840x2160, 60 Hz refresh rate
3. found on two different machines (Ryzen 2700X/Radeon RX560 & AMD 7850K/Nvidia GTX1060
4. has been observed from Digikam 6.0 to 6.4 in every release

OBSERVED RESULT
I observe stutter of video, when it is played within a slideshow. When the same video plays in preview (after double click on thumbnail in catalogue), no stutter can be noticed. It looks as if the video frame rate is too slow compared to audio. The stutter then is caused by the video suddenly being sped up by synchronization to audio (about every half second). 

EXPECTED RESULT
no stutter of video in slideshow

SOFTWARE/OS VERSIONS
Windows: Windows 10, 1903 and 1909 


ADDITIONAL INFORMATION

exemplary driver data of one machine

Radeon Softwareversion - 19.10.16
Radeon Software Edition - Adrenalin
Grafik-Chipsatz - Radeon RX 560 Series
Speichergröße - 4096 MB
Speichertyp - GDDR5
Systemtaktrate - 1300 MHz
Windows-Version - Windows 10 (64 bit)
Systemspeicher - 32 GB
CPU-Typ - AMD Ryzen 7 2700X Eight-Core Processor


Version der Radeon Einstellungen - 2018.0303.2240.40774
Treiber-Paketversion - 19.10.16-190514a-343170C-Channel
Anbieter - Advanced Micro Devices, Inc.
2D-Treiberversion - 8.1.1.1634
Direct3D® Version - 9.14.10.01394
OpenGL® Version - 26.20.11000.13558
OpenCL™ Version - 10.0.2841.5
AMD Mantle-Version - 9.1.10.0313
AMD Mantle API-Version - 102400
AMD Audio-Treiberversion - 10.0.1.10
Vulkan™ Driver Version - 2.0.87
Vulkan™ API Version - 1.1.106

Grafikkarten-Hersteller - Powered by AMD
Grafik-Chipsatz - Radeon RX 560 Series
Geräte-ID - 67FF
Anbieter-ID - 1002
Subsystem-ID - E348
Subsystem-Anbieter-ID - 1DA2
Revisions-ID - CF
Bustyp - PCI Express 3.0
Aktuelle Buseinstellungen - PCI Express 3.0 x8
BIOS-Version - 015.050.002.001
BIOS-Teilenummer - 113-13483HM-U01
BIOS-Datum - 2017/07/28 02:17
Speichergröße - 4096 MB
Speichertyp - GDDR5
Speichertaktfrequenz - 1750 MHz
Systemtaktrate - 1300 MHz
Gesamte Speicherbandbreite - 112 GByte/s
Speicherbitrate - 7.00 Gbps
2D-Treiberpfad - /REGISTRY/MACHINE/SYSTEM/ControlSet001/Control/Class/{4d36e968-e325-11ce-bfc1-08002be10318}/0000
Comment 1 Maik Qualmann 2019-11-27 21:37:30 UTC
If you play a video in the slideshow and switch the properties off/on with the F4 key, does the sound stop stuttering?

Maik
Comment 2 ismir.schlecht42 2019-11-28 10:53:13 UTC
There is no change in stutter, but also no change in information displayed in slideshow.

Remark: In my version/installation F4 does not toggle any properties display in slideshow, but STRG+RETURN. I tried all commands in the shortcut menu containing 'properties' but did not observe any change, neither in stutter nor in displayed information.

I add codec information of stuttering videos:
Video-Codec: h265, 25 fps, video resolution 1920x1080
Audio-Bitrate: 48.000
Audio-Coded: AAC (stereo)

Thanks for looking into this!

André
Comment 3 Maik Qualmann 2019-11-28 18:18:14 UTC
Git commit 40f4745254025487b8f2ee98f7dd2786b6e82791 by Maik Qualmann.
Committed on 28/11/2019 at 18:17.
Pushed by mqualmann into branch 'master'.

cache the DInfoMap

M  +11   -8    core/utilities/slideshow/slideproperties.cpp

https://invent.kde.org/kde/digikam/commit/40f4745254025487b8f2ee98f7dd2786b6e82791
Comment 4 caulier.gilles 2020-01-11 17:33:47 UTC
There is a patch applied to QtAV for this problem in current implementation from git/master :

https://github.com/wang-bin/QtAV/pull/1268

So, i will take a look to integrate this change in Windows installer.

Gilles Caulier
Comment 5 caulier.gilles 2020-01-12 06:10:48 UTC
Git commit d6d8862514d023c1f362bdd1f561aade29dc1ecb by Gilles Caulier.
Committed on 12/01/2020 at 06:08.
Pushed by cgilles into branch 'master'.

build qtav from master at digiKam bundle updates, as it contains important fixes
Related: bug 382582, bug 386522

M  +0    -3    project/bundles/3rdparty/ext_qtav/CMakeLists.txt
M  +0    -2    project/bundles/appimage/01-build-host.sh
M  +1    -0    project/bundles/appimage/03-build-digikam.sh
M  +0    -1    project/bundles/macports/01-build-macports.sh
M  +1    -0    project/bundles/macports/03-build-digikam.sh
M  +0    -1    project/bundles/mxe/01-build-mxe.sh
M  +1    -0    project/bundles/mxe/03-build-digikam.sh

https://invent.kde.org/kde/digikam/commit/d6d8862514d023c1f362bdd1f561aade29dc1ecb
Comment 6 caulier.gilles 2020-08-01 13:28:28 UTC
digiKam 7.0.0 stable release is now published and now available as FlatPak:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 7 Maik Qualmann 2021-09-11 13:35:38 UTC
Git commit 450d93baf8a059d9e4e0214539bf3810912e0a72 by Maik Qualmann.
Committed on 11/09/2021 at 13:33.
Pushed by mqualmann into branch 'master'.

Use QtAV video output to use hardware acceleration if supported
and use libAVFIlter to rotate the video
Related: bug 382582, bug 435660, bug 430873

M  +44   -44   core/libs/video/player/mediaplayerview.cpp

https://invent.kde.org/graphics/digikam/commit/450d93baf8a059d9e4e0214539bf3810912e0a72
Comment 8 Maik Qualmann 2021-09-11 14:49:48 UTC
Git commit 701855c5455c495bf68b61298344e80828404311 by Maik Qualmann.
Committed on 11/09/2021 at 14:48.
Pushed by mqualmann into branch 'master'.

Use QtAV video output also for the slideshow
Related: bug 382582, bug 435660, bug 430873

M  +42   -41   core/libs/video/player/slidevideo.cpp
M  +0    -1    core/libs/video/player/slidevideo.h

https://invent.kde.org/graphics/digikam/commit/701855c5455c495bf68b61298344e80828404311
Comment 9 caulier.gilles 2023-05-01 07:29:10 UTC
@ismir

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 10 caulier.gilles 2023-11-21 10:37:19 UTC
With last Windows installer 8.2.0 pre-release, digiKam build with VCPKG+MSVC+Qt6.6.0, the video playback under Windows 10 (mov, mkv, avi, mp4) run fluently (preview and slideshow). We use Qt6Multimedia+ffmpeg codecs instead QtAv now.

I close this file now.

Gilles Caulier