PDA

View Full Version : Nails of video files in nautilus FC9


vlav
17th November 2008, 06:47 PM
Older version of FC it was fine.
But I install FC9 on two differen computers and both the same effect - no nails (pictures as film frame ) of avi files in nautilus?
totem-video-thumbnailer installed and runs with no errors from command line.
Thank you.

vlav
18th November 2008, 04:19 PM
Nobody knows?
FC9 users - can you see nails of video files in nautilus?

ryptyde
19th November 2008, 12:57 PM

Nobody knows?
FC9 users - can you see nails of video files in nautilus?

Just checked some .mov and .flv video files and they have thumbnails using F9 Gnome. :)

vlav
19th November 2008, 02:31 PM
Just checked some .mov and .flv video files and they have thumbnails using F9 Gnome. :)

You are lacky cause I have no films icons on 2 different mashines with fc9 installed.
The same files display icons under FC8 on the same computer.
Can somebody help?

ryptyde
19th November 2008, 07:51 PM
You are lacky cause I have no films icons on 2 different mashines with fc9 installed.
The same files display icons under FC8 on the same computer.
Can somebody help?

Checked my F10 preview install and no video thumbnails there so I followed the advice at this post VideoThumbnails (http://www.fedoraforum.org/forum/showthread.php?p=467169&mode=threaded) and now thumbnails are available in F10. :)

moosetooth
19th November 2008, 09:34 PM
I use mplayer to create my thumbnails because I dislike the totem thumbnailer.

(make sure you have mplayer installed before using the following)

If you're interested I attached two scripts to this post in a tar file. Put mplayer-video-thumb.sh in your $HOME/bin directory. Then run gconf.sh to update your gnome settings to use the new thumbnailer. (You may want to delete your .thumbnails directory now so all failed thumbnails will be forgotten)

Okay apparently it's not letting me attach anything. I'll cut and paste both scripts below:
mplayer-video-thumb.sh

#!/bin/bash

if [ ! -x "/usr/bin/mplayer" ] || [ ! -x "/usr/bin/convert" ]; then
exit 1
fi

PREFIX=mvideothumb
TMP=$(mktemp -d /tmp/$PREFIX.XXXXXX)
SIZE=128
FILE="$1"
OFILE="$2"

if (($# != 2)); then
echo "$0 <in-file> <out-file>"
exit
fi

#FILE="${FILE//\%/ }"
FILE=$(echo -e "${FILE//\%/\\x}")

eval $(/usr/bin/mplayer \
-really-quiet \
-nojoystick \
-nolirc \
-nocache \
-nortc \
-noautosub \
-vo null \
-nosound \
-frames 1 \
-identify "$FILE" \
| grep "^ID_LENGTH")

ID_LENGTH=${ID_LENGTH%%.*}
ID_LENGTH=$((ID_LENGTH/3))

# sometimes mplayer reports the video length longer than what is actually
# available. If this is true will cut the frame number by a third each time
# hopefully until we actually capture a thumbnail. We'll only try 5 times.
thumb_done=0
cnt=0
while ((!thumb_done)); do
/usr/bin/mplayer \
-ss "$ID_LENGTH" \
-really-quiet \
-nojoystick \
-nolirc \
-nocache \
-nortc \
-noautosub \
-vf scale \
-vo jpeg:outdir=$TMP:quality=100 \
-nosound \
-frames 2 \
-zoom \
-xy "$SIZE" \
-slave "$FILE"


if /usr/bin/convert $TMP/00000001.jpg -thumbnail 128x96 png:"$OFILE" || \
((cnt > 4)); then
thumb_done=1
fi

ID_LENGTH=$((ID_LENGTH/3))
((cnt++))
done
rm -rf $TMP


gconf.sh

#!/bin/bash
script_location=$HOME/bin/mplayer-video-thumb.sh

if [ -e "$script_location" ]; then
chmod +x "$script_location"
for i in $(gconftool-2 --all-dirs "/desktop/gnome/thumbnailers" \
| grep "/video") \
/desktop/gnome/thumbnailers/application@ogg \
/desktop/gnome/thumbnailers/application@smil \
/desktop/gnome/thumbnailers/application@vnd.rn-realmedia \
/desktop/gnome/thumbnailers/application@vnd.rn-realvideo \
/desktop/gnome/thumbnailers/application@x-extension-m4a \
/desktop/gnome/thumbnailers/application@x-extension-mp4 \
/desktop/gnome/thumbnailers/application@x-flash-video \
/desktop/gnome/thumbnailers/application@x-matroska \
/desktop/gnome/thumbnailers/application@x-ms-asf \
/desktop/gnome/thumbnailers/application@x-ogg \
/desktop/gnome/thumbnailers/application@x-quicktime-media-link \
/desktop/gnome/thumbnailers/application@x-shockwave-flash \
/desktop/gnome/thumbnailers/application@x-shorten \
/desktop/gnome/thumbnailers/application@x-smil \
/desktop/gnome/thumbnailers/application@xspf@xml \
/desktop/gnome/thumbnailers/audio@x-pn-realaudio \
/desktop/gnome/thumbnailers/image@vnd.rn-realpix \
/desktop/gnome/thumbnailers/image@vnd.rn-realpix \
/desktop/gnome/thumbnailers/misc@ultravox; do

echo "Seting Key for ${i##*/}"
/usr/bin/gconftool-2 -s "$i"/command -t string "$script_location %u %o"
/usr/bin/gconftool-2 -s "$i"/enable -t boolean 'true'
done
else
echo "Unable to find: $script_location"
echo "setup not complete"
exit 1
fi
echo "SUCCESS!"

pwalden
7th February 2011, 12:54 AM
There is a newer way to solve this problem. Here is what I did (http://forums.fedoraforum.org/showpost.php?p=1441797&postcount=12).