Bug 197393 - mplayerthumbs doesn't show movie file previews in dolphin or konqueror
Summary: mplayerthumbs doesn't show movie file previews in dolphin or konqueror
Status: RESOLVED FIXED
Alias: None
Product: kdemultimedia
Classification: Unmaintained
Component: mplayerthumbs (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Gulino
URL:
Keywords:
: 205455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-21 15:58 UTC by Eduardo Romero
Modified: 2009-10-13 11:52 UTC (History)
10 users (show)

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


Attachments
xsession-errors with kde lines (22.95 KB, text/plain)
2009-06-22 14:23 UTC, Eduardo Romero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Romero 2009-06-21 15:58:04 UTC
Version:           kdemultimedia-mplayerthumbs 4.2.92svn984151 (using Devel)
Compiler:          gcc 4.4 
OS:                Linux
Installed from:    Compiled sources

In Arch Linux we have a repository using the latest svn snapshot from kde 4.3 branch. We are using 4.2.92svn984151 at the moment. The application kdemultimedia-mplayerthumbs, which worked before when it was not part of kde, in kde 4.2, is not showing movie file previews in dolphin or konqueror. I have tried with different sizes of movies, with different file types of movies and none of them show the preview, they just show the preview in the right sidebar when you press play before opening the file.
Comment 1 Dario Andres 2009-06-21 22:29:58 UTC
Hi Eduardo :)
Adding the maintainer of mplayerthumbs
Comment 2 Marco Gulino 2009-06-21 23:40:33 UTC
I know it may sound trivial, but.. are video thumbnails enabled? Iirc they're disabled by default, you may enable them in dolphin configuration dialog (general -> previews, select "Video Files (mplayerthumbs)"
Comment 3 Eduardo Romero 2009-06-22 02:31:37 UTC
Sure, they are enabled, I should have mentioned that in the first post. Sorry. I have enabled them, I have clean all .kde4 .thumbnails and all related to kde and recreate them like if it were a new install and no luck.
Comment 4 Marco Gulino 2009-06-22 09:17:59 UTC
can you provide some log from .xsession-errors? probably filtering with "grep -i video" would be a nice idea..
Comment 5 Eduardo Romero 2009-06-22 14:23:19 UTC
Created attachment 34733 [details]
xsession-errors with kde lines

xsession-errors file with only the kde lines, because there is no video lines.
Comment 6 Eduardo Romero 2009-06-25 14:53:35 UTC
Updated to kde 4.2.95 which is 4.3RC1, still the same problem, I started with a fresh home and still the same.
Comment 7 missive 2009-07-03 15:27:29 UTC
I have the same problem (KDE 4.3 >= 20090617 compiled with kdesvn-build on Ubuntu).

Interestingly, there _are_ previews of the videos on the "folder previews" of the folders that contain videos. So, the previews are available, but for some reason Dolphin is not showing them in the actual folder view.
Comment 8 Juan Ponce R 2009-07-12 15:42:32 UTC
Same problem here with archlinux and kde 4.3 rc2 from [kde-unstable] repository
Comment 9 Ritesh Raj Sarraf 2009-07-15 19:52:05 UTC
I'm running 4.2.96 (RC2) and see similar problems.
kio_thumbnail is crashing.

Here's a link to the coredump
http://www.researchut.com/~rrs/tmp/core.6513
Comment 10 Dario Andres 2009-07-15 20:02:17 UTC
@Ritesh Raj Sarraf: kio_thumb crashing is being tracked at bug 199840.
Please, let's continue the discussion there.
Thanks.
Comment 11 Marco Gulino 2009-07-15 20:04:09 UTC
Sorry for the delay, personal stuff.
Anyway, i'm running out of ideas.. if as you say the previewer is actually
working, maybe there's not too much i can do.. the problem may be in the
"thumbnailer manager" which is calling mplayerthumbs.
Anyway, i'll do some more tests to see where the problem may be.
Also, can you try compiling mplayerthumbs AND kdelibs with debug support,
enable everything on kdebugdialog and collect logging again?
Comment 12 Juan Ponce R 2009-08-06 13:48:26 UTC
kde 4.3.0 and ahchlinux and problems with video thumb continue...
Comment 13 Thomas Sauer 2009-08-07 13:27:32 UTC
Hi, 
on my LFS I had the same problem (KDE-4.3.0, libjpeg7)and fixed it by compiling mplayer with jpeg-support ("--enable-jpeg").
By default mplayer should autodetect jpeg-support. Maybe because of libjpeg7 the autodetection fails.

Greetings
Comment 14 Ritesh Raj Sarraf 2009-08-07 14:09:32 UTC
(In reply to comment #13)
> Hi, 
> on my LFS I had the same problem (KDE-4.3.0, libjpeg7)and fixed it by compiling
> mplayer with jpeg-support ("--enable-jpeg").
> By default mplayer should autodetect jpeg-support. Maybe because of libjpeg7
> the autodetection fails.
> 
> Greetings

I just checked it on my box and mplayer is built with jpeg support.

rrs@champaran:~$ ldd `which mplayer` | grep -i jpeg
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6a92000)
Comment 15 Eduardo Romero 2009-08-07 14:29:15 UTC
Guys, if I tell you how to fix it, promise me you ain't going to kill me for such an obvious way.

And here it is: run mplayerthumbsconfig and choose mplayer as the backend there.

I was trying a hack when I saw an Arch Linux user "lucke" already figured it out.
Comment 16 Jonathan Thomas 2009-08-07 14:32:53 UTC
That's not a fix, just a workaround. This should be done by default. That being said, now that we know the cause of the problem it shouldn't be too hard to fix.
Comment 17 Jonathan Thomas 2009-08-07 14:34:27 UTC
...except that this just means that the Phonon backend for mplayerthumbs is busted, which isn't all that helpful.
Comment 18 Ritesh Raj Sarraf 2009-08-07 15:25:47 UTC
(In reply to comment #15)

> And here it is: run mplayerthumbsconfig and choose mplayer as the backend
> there.

It was always there selected. But that still doesn't solve the problem.
Comment 19 Ritesh Raj Sarraf 2009-08-07 15:27:52 UTC
(In reply to comment #18)
> It was always there selected. But that still doesn't solve the problem.

Please ignore comment 18
Comment 20 Juan Ponce R 2009-08-07 17:24:22 UTC
"run mplayerthumbsconfig and choose mplayer as the backend
> there."

this solve my problem now, now i can see the video thumbs in dolphin :)

but now i use kde 4.3.0 in archlinux
Comment 21 aapgorilla 2009-08-30 23:27:10 UTC
*** Bug 205455 has been marked as a duplicate of this bug. ***
Comment 22 Marco Gulino 2009-08-31 00:07:21 UTC
SVN commit 1017562 by gulino:

Make it faster, removing unuseful (and slow) mplayer options.
BUG: 197393
Make mplayer the default backend if phonon one doesn't exist.
Please confirm by removing mplayerthumbs config file (<kde-config-directory>/share/config/mplayerthumbs), deleting existing thumbnails (~/.thumbnails) and opening file manager.


 M  +6 -2      mplayervideobackend.cpp  
 M  +7 -4      servicesfactory.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1017562
Comment 23 aapgorilla 2009-08-31 00:10:09 UTC
(In reply to comment #22)
> SVN commit 1017562 by gulino:
> 
> Make it faster, removing unuseful (and slow) mplayer options.
> BUG: 197393
> Make mplayer the default backend if phonon one doesn't exist.
> Please confirm by removing mplayerthumbs config file
> (<kde-config-directory>/share/config/mplayerthumbs), deleting existing
> thumbnails (~/.thumbnails) and opening file manager.
> 
> 
>  M  +6 -2      mplayervideobackend.cpp  
>  M  +7 -4      servicesfactory.cpp  
> 
> 
> WebSVN link: http://websvn.kde.org/?view=rev&revision=1017562

but this will leave the phonon backend broken, no?
Comment 24 Marco Gulino 2009-08-31 00:16:36 UTC
Last time i checked it wasn't broken, but it couldn't be included in kde 4.3 just because phonon new api's weren't yet released.
I wasn't too much on my workstation since i was in vacation, so i may have missed something important, anyway i'll give a look soon.
Next important todo is to fix performance issues (maybe making thumbnail generation serialized).
Anyway, for other problems (like phonon backend, or performance issue) i'd suggest reporting a new bug.
Please just confirm if this one is fixed.
Thanks :)
Comment 25 Nicolas L. 2009-08-31 23:40:36 UTC
the phonon support doesn't build with latest stable Qt :

/home/neoclust/rpm/BUILD/kdemultimedia-4.3.0/mplayerthumbs/src/phononbackend.cpp: In member function 'virtual Thumbnail* PhononBackend::preview(FrameSelector*)':
/home/neoclust/rpm/BUILD/kdemultimedia-4.3.0/mplayerthumbs/src/phononbackend.cpp:54: error: 'class Phonon::VideoWidget' has no member named 'snapshot'
make[2]: *** [mplayerthumbs/src/CMakeFiles/videopreview.dir/phononbackend.o] Error 1
make[1]: *** [mplayerthumbs/src/CMakeFiles/videopreview.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 26 Marco Gulino 2009-08-31 23:42:46 UTC
you need kde phonon, not Qt one.
Anyway, again, this is not the place, if this still doesn't compile with kde phonon, file another bug.
Comment 27 Nicolas L. 2009-09-01 10:41:51 UTC
yes but it requires phonon from trunk and iirc kdebindings 4.3.x doesn' build correctly against it.