MPlayerThumbs

Video Apps

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

5
7.3
Description:

MPlayerThumbs is a video thumbnail generator for KDE file managers (Konqueror, Dolphin, ...) , now available also for KDE 4.
It needs mplayer (of course) to generate thumbnails, and it contains no linking to any library, so in a x86_64 system you can freely use the 32bit mplayer binary with win32codecs by configuring the application launching the mplayerthumbsconfig helper application.
It catches a random frame from 15% to 70%, checking also how contrasted is the image, and dropping bad frames.
Last changelog:

12 years ago

2009-02-11 MPlayerThumbs 1.2
* Fixed build with kde 4.2 (thanks Pino Toscano)

2008-07-18 MPlayerThumbs 1.1
* Re-adding strips, and making them dynamically configurable
* Adding option to clear cache in mplayerthumbsconfig
* Optimizing the code to use an unique directory to store thumbs, to avoid
confusing thumbs for different files

2008-06-20 MPlayerThumbs 1.0
* First stable release
* Porting to KDE 4
* Refactoring code, for more stability and speed
* Also KDE 4 adds for us a free feature, random thumbnail generation on
the preview on the information toolbar on each mouseover ;)

2006-07-10 MPlayerThumbs 0.5b
* Fixed thumbnail generation when files have not an extension.
2006-07-01 MPlayerThumbs 0.5
* Adding -ao null option instead of -nosound
* Adding custom arguments configuration to mplayerthumbsconfig
* Cleaning code, removing check for local/remote files, and threating
all them as local, since kio already provides us a good support for
remote files.
* Option to add "blacklisted" extensions with mplayerthumbsconfig

kriko

12 years ago

Mplayerthumbs 0.3 now works, it is because this line in my ~/.mplayer/config file
#cache = 45000

I use it to void jerky playback on some dvds. Now it works fine. Is it possible to pass:
cache = 0
from your library to mplayer, so I can keep this settings?

Report

C

RockMan81

12 years ago

wtf? it truncated my comment?
i said.. just add "-nocache" to the args QStringList.
Also, if you can contact me i'd need someone to test the newer version before releasing.

Report

kriko

12 years ago

I can test it, just give me the url to dl it.

Report

C

RockMan81

12 years ago

It seems you can't get my emails.. so here is it:
http://xoomer.virgilio.it/rockman81/mplayerthumbs-0.4-pre1.tar.bz2

Report

C

RockMan81

12 years ago

weird.. i didn't expected something like that! :P
Well.. just add a

Report

gohanz

12 years ago

I have installed it. But i don't see any Thoumbs from Konqueror.

Kde 3.4.2 SlackWare 10.2

Report

C

RockMan81

12 years ago

try opening a console in your home directory and running
tail -f .xsession-errors | grep videopreview

Also, what URL? a local one? at this time MPlayerThumbs don't support remote urls (but i'm working on it)

Report

gohanz

12 years ago

This is my log


stderr is not a tty - where are you?
xset: bad font path element (#158), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
kbuildsycoca running...
kdecore (KLibLoader): WARNING: KLibrary: /opt/kde/lib/kde3/kcm_kdnssd.so: undefined symbol: init_kdnssd
opera: [java] Disabling java due to potential problems. If you know
what you are doing, you can set the environment variable
OPERA_FORCE_JAVA_ENABLED to '1' to override this.
Start Opera with '-debugjava' argument for more information.

opera: spellcheck.so: cannot open shared object file: No such file or directory
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KLauncher): ERROR: SlavePool: No communication with slave.
kio (KLauncher): ERROR: SlavePool: No communication with slave.
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KLauncher): ERROR: SlavePool: No communication with slave.
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KLauncher): ERROR: SlavePool: No communication with slave.
kmail: ERROR: : couldn't create slave : Impossibile creare un io-slave:
klauncher ha detto: Protocollo "cid" sconosciuto.
kmail:
kmail: ERROR: : couldn't create slave : Impossibile creare un io-slave:
klauncher ha detto: Protocollo "cid" sconosciuto.
kmail:
gmplayer: error while loading shared libraries: libmpcdec.so.3: cannot open shared object file: No such file or directory
gmplayer: error while loading shared libraries: libmpcdec.so.3: cannot open shared object file: No such file or directory
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x2e01069
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x2e00bc6
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x2e00bc6
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x2e00bc6
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x2e00bc6
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x2600005
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 7
Minor opcode: 0
Resource id: 0x2000005
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 6
Minor opcode: 0
Resource id: 0x2000005
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 7
Minor opcode: 0
Resource id: 0x220000b
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 6
Minor opcode: 0
Resource id: 0x220000b
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 7
Minor opcode: 0
Resource id: 0x2400017
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 6
Minor opcode: 0
Resource id: 0x2400017
WARNING: deleting stale lockfile /root/.kde/share/config/kdeglobals.lock
WARNING: deleting stale lockfile /root/.kde/share/config/kdeglobals.lock
startkde: Shutting down...
klauncher: Exiting on signal 1
KWrited - Ascolto il dispositivo /dev/pts/0
startkde: Running shutdown scripts...
startkde: Done.

Report

C

RockMan81

12 years ago

Oh.. well... i didn't noticed that, but konqueror automatically provides remote support with kioslave :D

Report

kriko

12 years ago

I have this problem too, 0.2 worked fine, in 0.3 I don't have thumbs at all.
I don't get any errors with:
tail -f .xsession-errors | grep videopreview

Kde logo in konqueror is spinning, but no thumbails are created.

Report

C

RockMan81

12 years ago

try with ./configure --enable-debug=full
then recompile, and look again for .xsession-errors

Report

kriko

12 years ago

Check this out:

libkonq: WARNING: Could not load wallpaper /opt/kde3/share/apps/konqueror/tiles/
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)


MPlayer interrupted by signal 13 in module: enable_cache
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug

Mplayer is crashing, don't know why - maybe because of seeking? However, those movies are seekable and works fine.

Report

C

RockMan81

12 years ago

it should give you also the full command line..
You'll see something like -vo jpeg:outdir=SOMETHING
replace that something with another dir (in tmp) empty, and launch manually that command..

Report

kriko

12 years ago

Hi! I get this error compiling with
/configure --prefix=`kde-config --prefix` --with-mplayer=/usr/local/bin/mplayer
What is wrong? I have SuSe 10.1 with manually compiled & installed mplayer.

make[2]: Entering directory `/home/kriko/Download/mplayerthumbs-0.2/src'
if /bin/sh ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -MT videopreview.lo -MD -MP -MF ".deps/videopreview.Tpo" -c -o videopreview.lo videopreview.cpp; \
then mv -f ".deps/videopreview.Tpo" ".deps/videopreview.Plo"; else rm -f ".deps/videopreview.Tpo"; exit 1; fi
videopreview.cpp: In member function 'virtual bool VideoPreview::create(const QString&, int, int, QImage&)':
videopreview.cpp:73: error: 'removeDir' is not a member of 'KTempDir'
make[2]: *** [videopreview.lo] Error 1

Report

C

RockMan81

12 years ago

kde version?

Report

C

RockMan81

12 years ago

oh.. don't mind..
It's a method introduced in kde 3.5.2, i didn't noticed it.
Next version will have this fixed.. hope to release it in 1/2 days

Report

kriko

12 years ago

Thank you, workaround works.

Report

kriko

12 years ago

KDE 3.5.1

Report

C

RockMan81

12 years ago

temporary workaround: replace the line

KTempDir::removeDir( tmpdir.name() );

with

tmpdir.unlink();

Report

ATAHUALPA

12 years ago

ciao RockMan81, how can I use this apps? :)

Report

C

RockMan81

12 years ago

It's not an application, it's a library.
You have to install it (and remove the original xine-artsplugin, perhaps.. but this is not mandatory afaik), kill every kio_thumbnail process (this isn't mandatory too, but otherwise you need to restart kde or wait before the process die by itself before konqueror will use it).
After this konqueror will use my plugin instead of the original xine-arts one to generate video thumbnails (if not, in the "View" menu select "Preview", and check "Video Files").

Report

josep

12 years ago

I think that a better idea is that the video thumbnails are taken from a random frame like this: (which use the Xine backend)

http://www.kde-apps.org/content/show.php?content=40015

On download you can download the source code.

Also I would love to see that the video thumbnails have the film holes, like that Xine thumbnailer.

It's seems to me that mplayer is faster and shows more video thumbnails than with xine.

Report

C

RockMan81

12 years ago

Now i'm taking the thumbs seeking to 20seconds, and then taking the fourth frame. It drops down to the first frame only if the source can't seek.
For a lot of files it seems to fit well in my system, however let's see some other comments and we'll see.
Actually it's faster, because the xine backend can't seek at all, and it plays some seconds (4 or 5, as i can read from sources), and also has to scale manually the images (while mplayer can scale by itself)
About the film holes.. i'll work on it, but at this time a priority is to get it work first on non-local files, imho

Report

maudib

12 years ago

cool...thanks..

I am kinda looking for the same thing but for RAW images.
I haven't had any luck using rawimage. It could be done your way using ufraw (ufraw-batch) to generate the thumbnails..

Report

C

RockMan81

12 years ago

Could you send me any raw image? I don't have anything in my local system.

Report

12 years ago

2009-02-11 MPlayerThumbs 1.2
* Fixed build with kde 4.2 (thanks Pino Toscano)

2008-07-18 MPlayerThumbs 1.1
* Re-adding strips, and making them dynamically configurable
* Adding option to clear cache in mplayerthumbsconfig
* Optimizing the code to use an unique directory to store thumbs, to avoid
confusing thumbs for different files

2008-06-20 MPlayerThumbs 1.0
* First stable release
* Porting to KDE 4
* Refactoring code, for more stability and speed
* Also KDE 4 adds for us a free feature, random thumbnail generation on
the preview on the information toolbar on each mouseover ;)

2006-07-10 MPlayerThumbs 0.5b
* Fixed thumbnail generation when files have not an extension.
2006-07-01 MPlayerThumbs 0.5
* Adding -ao null option instead of -nosound
* Adding custom arguments configuration to mplayerthumbsconfig
* Cleaning code, removing check for local/remote files, and threating
all them as local, since kio already provides us a good support for
remote files.
* Option to add "blacklisted" extensions with mplayerthumbsconfig

12345678910
product-maker Count:301 Rating: 7.28
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.2
updated Feb 11 2009
added Jun 20 2006
downloads today
0
page views today 13
System Tags app software