<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>216491</bug_id>
          
          <creation_ts>2009-11-28 11:56:00 +0000</creation_ts>
          <short_desc>camera interface view does not work to preview movies</short_desc>
          <delta_ts>2017-08-16 06:12:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Import-Gphoto2</component>
          <version>3.0.0</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe ROUBACH">philippe.roubach</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>philippe.roubach</cc>
    
    <cc>wazery</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>3.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>869840</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-11-28 11:56:00 +0000</bug_when>
    <thetext>Version:           inconnu (using 4.3.77 (KDE 4.3.77 (KDE 4.4 &gt;= 20091123)), Mandriva Linux release 2010.1 (Cooker) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.6-desktop-1mnb

digikam 1.0.0b6
kipi-plugins 0.8

go to import/cameras

photos and movies  icons are displayed
then
select a movie
then
click on &quot;view&quot; button
then
you have an error message :

failed to load image
100_0555.mov</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869850</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2009-11-28 12:07:44 +0000</bug_when>
    <thetext>Install mplayerthumbs package and all will be fine...

Video thumbs generation is delegate to KDE framework.

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869852</commentid>
    <comment_count>2</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2009-11-28 12:11:21 +0000</bug_when>
    <thetext>View option only play with image, using editor. It doesn&apos;t play movies for the moment, using Phonon...

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869900</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-11-28 13:44:16 +0000</bug_when>
    <thetext>1. ok thanks i made this report because
in digikam if you select a movie then click &quot;view&quot; button then this launch the movie player

thus
i was expected same feature in kameraklient

it&apos;s inconsistent

2. i installed mplayerthumbs and mplayer and win32 codecs

then
in dolphin now i have a preview thumbnail in the right panel
but no preview thumbnail icon for the file in dolphin or in kameraclient
just the standard movie icon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869953</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-11-28 15:25:30 +0000</bug_when>
    <thetext>ok now i understand your principles

is it possible to open a film editor if one is installed ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870054</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-11-28 17:23:16 +0000</bug_when>
    <thetext>ok

now i have preview icon for movie everywhere
- in dolphin the file list and in the right panel
- in digikam in window showing album contents

but not in camera gui
 is it a kde camera protocol pb or a digikam pb ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870058</commentid>
    <comment_count>6</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2009-11-28 17:37:03 +0000</bug_when>
    <thetext>How do you have fixed movies icons preview with maplyersthumbs. With new Mandriva 2010.0, no thumbs are generated for video in icon view ?

About cameragui, it can be relevant of your camera driver : Gphoto do not support video thumb extraction. With UMS camera and digiKam driver, no problem.

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>870066</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-11-28 17:55:55 +0000</bug_when>
    <thetext>ok thanks for explanation

for complete activation of preview icon for movie

http://forum.mandriva.com/viewtopic.php?t=121288

sorry it&apos;s in french</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874390</commentid>
    <comment_count>8</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-12-06 11:36:39 +0000</bug_when>
    <thetext>i complete the pb definition (see description)

the default filter is &quot;all images&quot; it must be &quot;all images and movies&quot;

you can select movie by typing *.* as default filter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>887114</commentid>
    <comment_count>9</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-12-26 20:37:59 +0000</bug_when>
    <thetext>digikam 1.0.0
kipi-pluigins 1.0.0

pb still there

you cannot select a movie due to filter &quot;all images&quot;
and
when you use *.* filter you can select a movie
but there is no preview for movie (yes there is preview in dolphin)

for no movie preview in dolphin selector i assume this is a dolphin pb not a digikam one


see comment #8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>887132</commentid>
    <comment_count>10</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2009-12-26 21:38:19 +0000</bug_when>
    <thetext>ignore my comment #8 and 9
it&apos;s about another bug

digikam 1.0.0
kipi-plugins 1.0.0

pb still there : for a movie an image application is launched instead of a movie editor</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>946829</commentid>
    <comment_count>11</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2010-04-08 14:02:42 +0000</bug_when>
    <thetext>digikam 1.2
kipi-plugins 1.2

pb still there : for a movie an image application is launched instead of a
movie editor or a movie viewer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1149399</commentid>
    <comment_count>12</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2011-08-03 14:52:39 +0000</bug_when>
    <thetext>*** Bug 225151 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290204</commentid>
    <comment_count>13</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-23 03:13:47 +0000</bug_when>
    <thetext>Git commit 593806836c8c26a9df718394ffc39fd3cb639d37 by Islam Wazery.
Committed on 23/08/2012 at 04:42.
Pushed by wazery into branch &apos;development/3.0.0&apos;.

Added mediaplayer view to import interface

M  +1    -0    utilities/importui/CMakeLists.txt
M  +4    -11   utilities/importui/views/importiconview.cpp
M  +1    -3    utilities/importui/views/importiconview_p.h
M  +28   -34   utilities/importui/views/importstackedview.cpp
M  +2    -2    utilities/importui/views/importstackedview.h
M  +1    -1    utilities/importui/views/importview.cpp
A  +306  -0    utilities/importui/views/mediaplayerview.cpp     [License: GPL (v2+)]
A  +107  -0    utilities/importui/views/mediaplayerview.h     [License: GPL (v2+)]

http://commits.kde.org/digikam/593806836c8c26a9df718394ffc39fd3cb639d37</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290205</commentid>
    <comment_count>14</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-23 03:14:52 +0000</bug_when>
    <thetext>I implemented a mediaplayer preview for import tool, I will fix the issue of movies thumbnail loading ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290234</commentid>
    <comment_count>15</comment_count>
    <who name="Philippe ROUBACH">philippe.roubach</who>
    <bug_when>2012-08-23 07:19:18 +0000</bug_when>
    <thetext>thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290239</commentid>
    <comment_count>16</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2012-08-23 08:04:20 +0000</bug_when>
    <thetext>Islam,

I take a look to your ImportUI mediaplayerview implementation and a lots of code are redondant with AlbumGUI mediaplayerview.

We need to factorize this code. The difference is that ImportUI use CameraInfo where AlbumGUI use ImageInfo containers.

But the code to wrap Phonon widget to host GUI is the same.

What do you think about ?

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290285</commentid>
    <comment_count>17</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2012-08-23 10:56:00 +0000</bug_when>
    <thetext>Git commit d38b2e188ddde0e04b5526847829889ba463ab09 by Gilles Caulier.
Committed on 23/08/2012 at 12:54.
Pushed by cgilles into branch &apos;development/3.0.0&apos;.

base MediaPlayer class on KUrl, not ImageInfo or CameraImageInfo, for future factoring

M  +4    -6    digikam/views/mediaplayerview.cpp
M  +3    -8    digikam/views/mediaplayerview.h
M  +3    -3    digikam/views/stackedview.cpp
M  +3    -3    utilities/importui/views/importstackedview.cpp
M  +4    -6    utilities/importui/views/mediaplayerview.cpp
M  +3    -7    utilities/importui/views/mediaplayerview.h

http://commits.kde.org/digikam/d38b2e188ddde0e04b5526847829889ba463ab09</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290297</commentid>
    <comment_count>18</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-23 11:29:02 +0000</bug_when>
    <thetext>Thanks Gilles for factorizing it, I reused albumgui mediaplayerview now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290300</commentid>
    <comment_count>19</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2012-08-23 11:44:22 +0000</bug_when>
    <thetext>Islam,

I think a similar factoring can be done with ImagePreviewView and ImportPreviewView.

If you are agree, i can take a look...

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290304</commentid>
    <comment_count>20</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-23 11:58:04 +0000</bug_when>
    <thetext>Sure Gilles, If you have more important thing to do I can handle it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290309</commentid>
    <comment_count>21</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2012-08-23 12:06:03 +0000</bug_when>
    <thetext>I will review it both classes. there is always code to check and polish. I will give you a feedback accordingly...

Gilles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290312</commentid>
    <comment_count>22</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2012-08-23 12:25:14 +0000</bug_when>
    <thetext>Both class can be factored. Not sure that all methods can be considerated as common, like with mediaplayer classes. This depend of which features can be implemented in ImportUI as AlbumGUI, as face tag for ex.

At least, i recommend to factorize all that you can in a common and parents class, and just implement necessary code to childrens classes.

Question : what&apos;s about image rotation in ImportUI ? It have a sense to rotate item as well in Import icon--iew and preview mode, as it will done automatically at download time ? Also, to rotate item using FileActionMngr with GPhoto2 camera will not work (excepted if you download it previously and upload back to camera (:=))))

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290603</commentid>
    <comment_count>23</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-24 14:19:58 +0000</bug_when>
    <thetext>Git commit bb09c7272caa0dddb7556ce8d96ecad8ffd27f6e by Islam Wazery.
Committed on 24/08/2012 at 16:18.
Pushed by wazery into branch &apos;development/3.0.0&apos;.

Removed view item option (alternate is preview mode) and fixed thumbnail issue for files other than images.
Now all files other than images have an icon representing their types,
the video files with thumbnails &quot;THM files&quot; are loaded correctly.
Is that enough for this B.K.O?

M  +6    -60   utilities/importui/backend/cameracontroller.cpp
M  +1    -3    utilities/importui/backend/cameracontroller.h
M  +29   -29   utilities/importui/items/importdelegate.cpp
M  +1    -32   utilities/importui/main/cameraui.cpp
M  +0    -3    utilities/importui/main/cameraui.h
M  +0    -1    utilities/importui/main/cameraui.rc
M  +0    -2    utilities/importui/main/cameraui_p.h
M  +0    -1    utilities/importui/views/importiconview.cpp
M  +0    -1    utilities/importui/views/importpreviewview.cpp
M  +1    -1    utilities/importui/views/importstackedview.cpp

http://commits.kde.org/digikam/bb09c7272caa0dddb7556ce8d96ecad8ffd27f6e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291398</commentid>
    <comment_count>24</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-24 16:38:16 +0000</bug_when>
    <thetext>Philippe can you test the new import tool from development/3.0.0 branch and tell me if this report is still valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1293159</commentid>
    <comment_count>25</comment_count>
    <who name="Islam Wazery">wazery</who>
    <bug_when>2012-08-31 01:54:17 +0000</bug_when>
    <thetext>I think this report can be closed now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>