Ok before I begin this is kind of a nasty hack, and by that I mean I associate thumbnailing for the application/octet-stream mimetype to pull this off. Meaning this will use mplayer to general *attempt* to make thumbnails from any file with that mimetype. Which can have interesting side effects to say the least... Examples below.
Unfinished rar files for a movie from a torrent:
Random SMC snes roms:
If you're ok with this and don't care, go ahead and read on. (or just remove this section and only install thumbnailing for RM videos)
First I have to thank minio for his HowTo on OpenOffice thumbnails http://ubuntuforums.org/showthread.php?t=76566, which showed me exactly what I needed to know to get this started.
And me2030581 for his mplayer thumbnailing script. Since gnome uses totem i believe (or xine depending on your setup) to create video thumbnails, thumbnailing bin files (and possibly RM files but i'm not sure on this one) isn't supported since it can't play these file types.
Dependencies
make sure you have these installed (you probably should, but just incase) or this will fail worse than a flying sheep.mplayer
mogrify
gconf-editor
Here goes:
now that the mplayer thumbnailer script is installed we start with the gconf-editor side of thingsCode:cd ~ wget http://me2030581.googlepages.com/mplayer-video-thumb-0.1beta.tar.bz2 tar -xvjf mplayer-video-thumb-0.1beta.tar.bz2 cd mplayer-video-thumb-0.1beta/ chmod 755 mplayer-video-thum.sh sudo mv mplayer-video-thum.sh /usr/bin sudo mkdir /usr/share/apps/videothumbnail/ sudo mv *.png /usr/share/apps/videothumbnail/
once gedit is opened you will need to paste the following:Code:sudo gedit /usr/share/gconf/schemas/bin-rm_thumb.schemas
I havn't as you can see changed the owner string from the template I made out of minio's information from ooo2-thumb, but I don't believe this causes any horrible conflict.Code:<gconfschemafile> <schemalist> <schema> <key>/schemas/desktop/gnome/thumbnailers/application@octet-stream/enable</key> <applyto>/desktop/gnome/thumbnailers/application@octet-stream/enable</applyto> <owner>ooo2-thumb</owner> <type>bool</type> <default>true</default> <locale name="C"> <short></short> <long></long> </locale> </schema> <schema> <key>/schemas/desktop/gnome/thumbnailers/application@octet-stream/command</key> <applyto>/desktop/gnome/thumbnailers/application@octet-stream/command</applyto> <owner>ooo2-thumb</owner> <type>string</type> <default>/usr/bin/mplayer-video-thum.sh -s %s %u %o</default> <locale name="C"> <short></short> <long></long> </locale> </schema> <schema> <key>/schemas/desktop/gnome/thumbnailers/application@vnd.rn-realmedia/enable</key> <applyto>/desktop/gnome/thumbnailers/application@vnd.rn-realmedia/enable</applyto> <owner>ooo2-thumb</owner> <type>bool</type> <default>true</default> <locale name="C"> <short></short> <long></long> </locale> </schema> <schema> <key>/schemas/desktop/gnome/thumbnailers/application@vnd.rn-realmedia/command</key> <applyto>/desktop/gnome/thumbnailers/application@vnd.rn-realmedia/command</applyto> <owner>ooo2-thumb</owner> <type>string</type> <default>/usr/bin/mplayer-video-thum.sh -s %s %u %o</default> <locale name="C"> <short></short> <long></long> </locale> </schema> </schemalist> </gconfschemafile>
Save the file and get your happy butt back to that terminal.
With that done you should be able after nautilus restarts, goto the folder(s) where you keep you BIN vcds and or RM video files and see them being thumbnailed. You may need to hit F5 to refresh the window for the change to take effect. In a couple cases I needed to rename a file to the process started, but I'm guessing that has something to do with the nautilus caches it's thumbnails.Code:gconftool-2 --install-schema-file /usr/share/gconf/schemas/bin-rm_thumb.schemas killall -9 nautilus
Hopefully this works for anyone interested. If there are any problems, please let me know so I can update this howto.
--Aaron
all references to canada, cows, billy corgan, polar bears, ect.; living or dead are purely coincidential. also random fits of confusion, anger, loss of purpose, and/or canada; may be blamed on you...in which case you will be killed in the slowest possible way while watching the sexual organs of any of your close friends be unwillingly fed to large satanic carebears. all comments dealing with the non-existance of god are to be taken as fact unless otherwise proven by written notice/birth certificate. you may be castrated in the state of neveda for molesting small children. throwing lit candles at large bulls may be hazardous to your health, unless of course you are dead....then the proceeding statement is null and void.
Bookmarks