Bug 178051

Summary: Digikam loses rating video from 0.9 to 0.10
Product: [Applications] digikam Reporter: zeusOne <vaudano>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, marcel.wiesweg, vaudano
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.0
Sentry Crash Report:

Description zeusOne 2008-12-18 11:51:54 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

I passed from Digikam 0.9.x to the Digikam 0.10. Everything works well, except I lose my video rating (instead the pictures rating are fine). Is it related with the different DB schema? Can I retrieve my ratings?
Comment 1 caulier.gilles 2008-12-18 12:02:40 UTC
It's certainly relevant of Database migration code. The new schema don't care file format to assign rate. It's nust not be a problem.

Marcel can give you more info about...

Gilles Caulier
Comment 2 Marcel Wiesweg 2008-12-18 18:58:42 UTC
Yes it is a problem with ImageScanner, which does not know how to scan videos.
We should see to get that fixed after beta7, and find out from where in KDE API we can get meta information about videos.

Did you already use your digikam for work? If not I would suggest to wait till beta8 and convert then again to get your video ratings back. Else we will have to do SQL magic.
Comment 3 zeusOne 2008-12-18 22:20:58 UTC
Thanks for the quick feedback.
I will wait the beta8 and after the ImageScanner fixing I will port my video rating from digikam3 to digikam4 via sql.




Comment 4 Marcel Wiesweg 2008-12-19 10:52:45 UTC
KFileMetaInfo gives me such enormously interesting information like the file name, the suffix and the modification date, but nothing like video format or length, for the .mov file I am testing with. No strigi support for such files?

Can someone send me an .avi created by a camera?
Comment 5 caulier.gilles 2008-12-19 11:15:11 UTC
Marcel,

For me KFileMetaInfo for KDE4 is a regression and do not be used in digiKam.
KFileMetaInfo only support audio file: no image, no video.

With Exiv2 0.19, support for video files is planed. Advantage : we use the same metadata framework everywhere. It's definitively better...

To found video file generated by camera, it's easy. Go to :

http://www.dpreview.com/

... and use Search engine with "video mode preview" in camera test database.

ex. of result : http://www.dpreview.com/reviews/SonyH2/page7.asp

...where 2 video samples are available to download.

Gilles
Comment 6 Marcel Wiesweg 2008-12-21 22:12:33 UTC
SVN commit 899917 by mwiesweg:

Implement most basic scanning for video and audio, so that we can at least assign ratings.
No useful metadata information is extracted so far.

CCBUG: 178051

 M  +160 -3    database/imagescanner.cpp  
 M  +5 -0      database/imagescanner.h  
 M  +1 -1      dimg/dimg.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=899917
Comment 7 Marcel Wiesweg 2008-12-21 22:17:29 UTC
I mark this as fixed now. While we have not much support to extract metadata information from video and audio files (and we are a photo application, so focus is images), we can at least assign tags now, which was missing before. If you remove your digikam4.db and convert again, your ratings should now be kept untouched. If not please report back.
Comment 8 zeusOne 2008-12-22 23:49:22 UTC
Great, it's work! Thanks