Bug 162024 - Show animated previews of videos (inside information panel)
Summary: Show animated previews of videos (inside information panel)
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Mandriva RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 157742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-13 08:46 UTC by Viktor Engelmann
Modified: 2009-04-13 12:23 UTC (History)
5 users (show)

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


Attachments
Examples of media preview in dolphin (93.47 KB, image/jpeg)
2008-05-13 12:22 UTC, FiNeX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Engelmann 2008-05-13 08:46:32 UTC
Version:            (using KDE 3.5.9)
Installed from:    Mandriva RPMs
OS:                Linux

undoubtful sooner or later filebrowsers will show animated previews of all videos in the current directory... why not have konqeror (or dolphin) be the first one?
Comment 1 FiNeX 2008-05-13 11:29:17 UTC
@Peter: what do you think about this?
Comment 2 Peter Penz 2008-05-13 11:41:41 UTC
> @Peter: what do you think about this?

If somebody spends me some weeks of time, I'm fine with this ;-) Seriously: some questions need to be clarified first:

- Should the preview be shown for all movies inside a directory as soon as the directory is open? Or should only the focused movie be shown as preview? I see no sense showing animated previews for all movies at once...

- Or should the preview be only shown in the information bar?

- How long should the preview be shown?

- What should happen if the preview has been shown? Should it get restarted?

The answers to those questions have huge impact on the implementation, which will require quite some effort anyhow. Generally speaking the philosophy of Dolphin was always to make file management easy, but to let the applications itself handle all interaction with the files. E. g a movieplayer might be the better application than Dolphin to show previews...

Comment 3 FiNeX 2008-05-13 12:20:53 UTC
From my point of view, the preview could be enabled on the information panel. The simplest thing to do should be to embed a small media player with the basic button like "play", "stop" and a slider for the position.

This could be extended not only for video files, but for audio files too.

An alternative should be to display this buttons directly on the icon (when focused).
Comment 4 FiNeX 2008-05-13 12:22:19 UTC
Created attachment 24747 [details]
Examples of media preview in dolphin
Comment 5 Peter Penz 2008-05-13 12:39:57 UTC
Thanks for the mockup! From the implementation point of view embedding a player inside the information panel would be possible without big problems.

Displaying the slider on icons would only work with a quite large icon size and also would be very tricky to implement; I'm also not sure whether it makes any sense showing a video preview inside a 48 x 48 pixel area...

So if this bug-report is about "preview inside information panel", I think we can set this request to "NEW" and I'd give it a try for KDE 4.2... :-)
Comment 6 FiNeX 2008-05-13 13:26:42 UTC
I agree with embedding the preview on the information panel.

I've changed the product to dolphin, ok?
Comment 7 Peter Penz 2008-05-13 13:29:07 UTC
> I've changed the product to dolphin, ok? 

Sure, thanks :-)
Comment 8 Viktor Engelmann 2008-05-13 13:29:35 UTC
I'd imagine it to play all currently visible video files when you open the directory (ok, i have my previews at maximum size + sidebar = maximum of 20 files at once ^^)

> Should the preview be shown for all movies inside a directory as soon as the
> directory is open? Or should only the focused movie be shown as preview? I
> see no sense showing animated previews for all movies at once...

I got the idea because the preview pictures of the files in my simpsons directories are all the same (blue sky with white clouds) - i think e.g. for media centers this would be very convenient...

> How long should the preview be shown?

I guess showing the complete file would be easiest to implement - maybe just embed mplayer instances... (i also see no sense in limiting the timeframe, except maybe you want to cache the previews in ~/tmp or so and want to limit the filesize)

> What should happen if the preview has been shown? Should it get restarted?

I'd say so...

you know, i think all mainstream filebrowsers will have this functionality someday... maybe the processing power is too weak yet, but in 1-3 years i think it will be possible and it would be nice to have this feature first ^^

i think the best (most convenient) way of doing this would be an option
fixed count of preview frames <-> framerate, so

selecting option 1 and setting it to 5 frames would create 5 preview images: start, 25% through, 50% through, 75% through, end
selecting option 2 and setting it to 0.33 fps would show an image of every third second (this should not be cached imo...)

the user could increase the value in option 2 over time according to growing processing power - and if he sets it to 24fps someday, he'd have the functionality I requested...

setting option 1 to 1 frame would equal the current behaviour...
Comment 9 FiNeX 2008-05-13 14:00:41 UTC
Initially it could be hardcoded using your first "option": 5 small preview images for each video file. Maybe when you enter on the directory you see only the first frame. If you hover the icon you could see the sequence of the frames looping... It is not bad this idea too :-)
Comment 10 Viktor Engelmann 2008-05-13 14:22:34 UTC
I agree with FiNeX - this would be the same behaviour redtube.com has (which is quite convenient either)- *ahem* of course that's only what I heared from... friends... ;-)
Comment 11 FiNeX 2008-05-17 10:28:55 UTC
Of course Viktor... of course.
Comment 12 Frank Reininghaus 2008-10-04 11:36:05 UTC
*** Bug 157742 has been marked as a duplicate of this bug. ***
Comment 13 Augusto Leite 2008-10-04 16:27:11 UTC
Actually, this bug is a duplicate of Bug 157742 (Since 157742 is older) ... :D

But here we have more details! More comments!! Even a mockup!! That's great!

> I guess showing the complete file would be easiest to implement - maybe just embed mplayer instances... (i also see no sense in limiting the timeframe, except maybe you want to cache the previews in ~/tmp or so and want to limit the filesize) 

Well, I think it should use phonon instead of an "embedded mplayer instance", so we do not have to depend on gstreamer, mplayer, vlc , xine or whatever.

On KDE 4.2 SVN we have a video preview "mode" on open/save dialog (Just mark show preview on configuration, "focus" a video file with your mouse cursor and a video preview like the one in the mockup is shown). Maybe this code could be used to implement this feature.

Sorry for my English... learning...

Keep up the excellent work guys!
Comment 14 Stephan Sokolow 2009-02-09 21:53:25 UTC
I'm voting on this in the hope of getting a successor to MPlayerThumbs for my Konqueror 4.x. (I don't use Dolphin because I'm addicted to using Konqueror as a generic tabbed file viewer/navigator)

With that in mind, it's probably best to (either randomly or heuristically) pick a frame from somewhere within the file for the icon preview. That's what MPlayerThumbs and Nautilus do and, in my experience, it results in a much more useful image than a simple black square (which, for my videos, the first frame usually is)
Comment 15 FiNeX 2009-04-03 11:37:26 UTC
*** Bug 188680 has been marked as a duplicate of this bug. ***
Comment 16 Peter Penz 2009-04-12 21:03:27 UTC
The Information Panel allows to play videos since today :-) Some finetuning is still necessary until KDE 4.3 gets released, but it works quite well already.
Comment 17 FiNeX 2009-04-13 12:23:39 UTC
Great news :-)