Digikam 5 not able to play video files or show thumbnail

I have installed Digikam 5 from kde:extras but found that it cannot determine what will play a .MOV video file or display a thumbnail image from it Digikam 5 uses gstreamer and Qt5Multimedia both of which I have installed, however the mailing list for Digikam is saying that I am missing the relevant codecs for .MOV files. In other distros there are non-free codecs available however I am unable to find anything appropriate and VLC and other media players play these videos just fine. Anyone any ideas please?

Stuart

You have read the sticky threads at the top of this Multimedia forum with inviting titles like: Multimedia in One Click?

Yes and I thought I had installed everything appropriate. I still cannot find anything in that thread which applies to what I am trying to do here. What digikam outputs when trying to handle .MOV files is:-


digikam.general: Event is dispatched to desktop notifier through DBUS
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov: The file contains data of an unknown image type
digikam.dimg: "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MOV"
digikam.general: Cannot create thumbnail for  "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"
digikam.general: Thumbnail is null for  "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"
digikam.general: Cannot get video thumb for  "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  /home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov: The file contains data of an unknown image type
digikam.dimg: "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "MOV"
digikam.general: Cannot create thumbnail for  "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"
digikam.general: Thumbnail is null for  "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"
digikam.general: Cannot get video thumb for  "/home/stuart/Work/Graphics1/Pentax-K500/2016/06/IMGP8470.mov"
digikam.general: Video support is not available

so has anyone any more ideas please?

Stuart

That does not sound very reasuring I am afraid.

Many people here do not even start to analyze problems of the type “player A can not play file of the type X” before the OP does make it 100% sure that (s)he has done a 1000% correct “switch to Packman”.

You saying that you “think” you installed everything appropriate is only a vague statement and not a confirmation that you
a) added the Packman repo to your list of active repos and
b) that you then did the “switch”, either using YaST or

zypper dup --from <#|alias/|name>

(where of course <#|alias|name> is to be replaced by a proper identification iof the Packman repo.

So better post your repo list to prove a)

zypper lr -d

After that we can give you the exact zypper dup --from … statement (whne you are not sure about it).

Well I have done the zypper dup from packman and it did nothing except remove darktable and I still have the problem. I said I “thought” I had done everything needed because obviously as digikam did not work so I believed I might have missed something. Obviously I had done everything since I still have the issue following the zypper dup.

So where do we go from here?

Stuart

The problem is that digikam is built without QtMultimedia support, because this is disabled by default (upstream).

I will see if we can enable it, libqt5-qtmultimedia-devel is already listed as part of the build requires of the package, just the necessary build option is not enabled explicitly.

Thanks very much for your help on this.

Stuart

For reference I am told the full list of dependencies are at http://quickgit.kde.org/?p=digikam-software-compilation.git&a=blob&f=DEPENDENCIES

Stuart

Thanks, though we do know about the dependencies, and as indicated the dependencies are/were not the problem.
We do have Qt::Multimedia (and Qt::MultimediaWidgets) as build dependency.

But the mediaplayer feature is disabled by default, even if the necessary build requirements are there.
You need to explicitly pass the option “-DENABLE_MEDIAPLAYER=ON” to cmake when building digikam to enable, and this was missing.

I submitted a request to change that though:

This should work now in the new package in KDE:Extra, so update your system.

And FYI, it will take a bit longer than anticipated before digikam 5.0 will be in Tumbleweed’s main repo though.
It turned out that there is absolutely no migration of the config and (more importantly) possible problems with using the database from the KDE4 version (4.x), this is still being worked on.

So we decided to wait with submitting it to Factory/Tumbleweed until this is fixed.

A mail from the main digikam developer:

Hi,

There is 2 know problems reported after beta stage.

  • the settings files from KDE4 to KF5 are not copied. The place has changed. We have
    not yet implemented the copy in digiKam because we found a problem with KDE
    settings which crash violently digiKam. Use a fresh settings always work.

364258 – 4.x application configuration rc files are ignored [patch]

  • The collection path is badly encoded sometimes.

So to be sure to not lost data from database, make a backup in all cases

Gilles Caulier

I have installed that and indeed it does show the thumbnails however when you select the image to preview it does not work as it should which could well be a digikam bug. I’ll ask on the mailing list and see what they say and come back on this thread when I have their answer.

Stuart

And in what way does it not work as it should?
I.e. what are you doing exactly, what happens, and what do you expect

If I click on a video file here, I get a subwindow where the video is played.
IOW, it seems to work as I think it should here.
I only tried with an AVI video now though.

Edit: I converted an AVI to MOV, and that was played too.
So I cannot see a problem here.

Well instead of the video playing all I get is the preview window with the row of thumbnails along the top AND the same thumbnails in the preview window plus I can hear he sound of the video playing but no video. I can play the videos in kaffeine, VLC dragon and totem outside of digikam, or if I right click on the thumbnail and select Open it will open it in kaffeine although the kaffeine window does not come to the front. So nothing shows the video only audio. I tried running digikam from a console to see if there were any related error messages but nothing showed up.

Stuart
PS. I’ve not had any reply from the mailing list so far.

As you say you see “thumbnails” in the player window while it plays, it may be a problem with displaying the graphics, not playing the video in itself.
May be a “graphics driver issue” (or some incompatibility).

Though if totem can play the videos, it should work in digikam too, as totem uses gstreamer as well.

No idea then, as I wrote it works perfectly here…
Sorry.

When you said earlier it opens a subwindow to play the video do you mean a completely new window or do you mean the video plays in part of the digikam main window? One strange thing I found last night was that this does not work in Leap with digikam 4.14 either, and that does not use QT5Multimedia and gstreamer. The thumbnail shows OK but slightly differently in Leap as it has what look like the sprocket holes down both sides of the thumbnail where in TW and digikam 5 it has only sprocket holes on the left side of the thumbnail - no idea if this is significant or not.

Stuart

It plays in a (newly opened) part of the main window, and you can resize that part via “splitters”.

One strange thing I found last night was that this does not work in Leap with digikam 4.14 either, and that does not use QT5Multimedia and gstreamer.

digikam 4.14 uses Phonon, so it may use gstreamer or vlc, depending on what phonon-backend you have installed/configured.

Maybe try with vlc and see whether it works then?
Would suggest that the problem is indeed with gstreamer (with the video output, not the decoding). Would still be strange that it works with totem then though.

The thumbnail shows OK but slightly differently in Leap as it has what look like the sprocket holes down both sides of the thumbnail where in TW and digikam 5 it has only sprocket holes on the left side of the thumbnail - no idea if this is significant or not.

No. That’s how it looks here too.
Probably a change in the thumbnailer.

Thanks. I’ll do some more digging and see what happens.

Stuart

I do have one other idea what to try:
There is a vaapi plugin for gstreamer, which has caused problems with video playback on some systems in the past.
So try to uninstall gstreamer-plugins-vaapi if it is installed.

Depending on what graphics card/driver you use, VAAPI might not be a good idea anyway.

Though again, this should also affect totem then I suppose, not just digikam/phonon/QtMultimedia.

Thanks for the suggestion. However I only had the dummy driver installed. Just to test I uninstalled the dummy driver and installed the plugin for gstreamer, same problem in digikam and Totem still works fine.

Stuart

You mean vaapi-dummy-driver?
Don’t confuse things here, that’s completely unrelated to gstreamer. It’s not “one or the other”.

gstreamer-plugins-vaapi allows gstreamer to use VAAPI hardware video decoding.
That is done via libva.

vaapi-dummy-driver is one driver for libva (that doesn’t do anything), but normally VAAPI is only supported by the intel driver AFAIK.

Although there is also vdpau-video that redirects it to nvidia’s VDPAU. If you then also have libvdpau_va_gl1 installed, which redirects VDPAU to VAAPI, you have a perfect endless loop resulting in playback of video getting stuck/frozen similar to what you describe… :wink:

But this would affect all players (that use VDPAU or VAAPI).