ffmpegthumbnailer vs totem-video-thumbnailer
Posted by Jakh Daven | Filed under ffmpegthumbnailer, video, benchmarks, totem
Benchmarking the above thumbnailers
I recorded the time taken to thumbnail a set of 26 videos of nearly 200 mb each.Tested on Ubuntu Lucid with Totem 2.30.1 and ffmpegthumbnailer 2.0.0
Uname output:
Linux atlantis 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux
The following code was used:
ffmpegthumbnailer:
time (IFS=$(echo -en "\n\b"); for file in `ls`; do /usr/bin/time -o $file.ffmpeg.txt ffmpegthumbnailer -f -i $file -o $file.ffmpeg.png; done;)
totem-video-thumbnailer:
time (IFS=$(echo -en "\n\b"); for file in `ls`; do /usr/bin/time -o $file.totem.txt totem-video-thumbnailer $file $file.totem.png; done;)
The following is the list of videos used:
182160 The Suite Life of Zack and Cody - 1x01 - Hotel Hangout.avi 209648 The Suite Life of Zack and Cody - 1x02 - The Fairest of Them All.avi 184552 The Suite Life of Zack and Cody - 1x03 - Maddie Checks in.avi 187544 The Suite Life of Zack and Cody - 1x04 - Hotel Inspector.avi 215064 The Suite Life of Zack and Cody - 1x05 - Grounded on the 23rd Floor.avi 186704 The Suite Life of Zack and Cody - 1x06 - The Prince & The Plunger.avi 183936 The Suite Life of Zack and Cody - 1x07 - Footloser.avi 192968 The Suite Life of Zack and Cody - 1x08 - A Prom Story.avi 186240 The Suite Life of Zack and Cody - 1x09 - Band in Boston.avi 182632 The Suite Life of Zack and Cody - 1x10 - Cody Goes to Camp.avi 216512 The Suite Life of Zack and Cody - 1x11 - To Catch A Theif.avi 216152 The Suite Life of Zack and Cody - 1x12 - It'S A Mad, Mad, Mad Hotel.avi 247712 The Suite Life of Zack and Cody - 1x13 - Poor Little Rich Girl.avi 247584 The Suite Life of Zack and Cody - 1x14 - Cookin' With Romeo and Juliet.avi 216360 The Suite Life of Zack and Cody - 1x15 - Rumors.avi 189728 The Suite Life Of Zack and Cody - 1x16- Big hair and Baseball.avi 228736 The Suite Life of Zack and Cody - 1x17 - Rock Star In The House.avi 179056 The Suite Life of Zack and Cody - 1x18 - Smart & Smarter [Baliztik].avi 185216 The Suite Life of Zack and Cody - 1x19 - The Ghost in Suite 613.avi 375616 The Suite Life of Zack and Cody - 1x20 - Dads Back.avi 258928 The Suite Life of Zack and Cody - 1x21 - Christmas at the Tipton.avi 311768 The Suite Life of Zack and Cody - 1x22 - Kisses and Basketball.avi 313360 The Suite Life of Zack and Cody - 1x23 - Pilot Your Own Life.avi 250640 The Suite Life of Zack and Cody - 1x24 - Crushed.avi 358416 The Suite Life of Zack and Cody - 1x25 - Commercial Breaks.avi 167832 The Suite Life of Zack and Cody - 1x26 - Boston Holiday.avi
Results:
ffmpegthumbnailer:
real 0m2.205s
user 0m1.360s
sys 0m0.480s
generated thumbnails
and
time taken for each file
totem-video-thumbnailer
real 0m28.842s
user 0m25.330s
sys 0m1.530s
generated thumbnails
and
time taken for each file
ffmpegthumbnailer is almost 15x faster than totem-video-thumbnailer!
How to replace totem video thumbnailer with ffmpegthumbnailer
Install ffmpegthumbnailer:
sudo apt-get install ffmpegthumbnailer
Update: Fix for files with spaces in paths
Jillian's wrapper script fixes the thumbnailer to work with files that have spaces in their path. Download it and move it to
/usr/local/binUse the new gconf thumbnailers section Proceed by importing it into gconf. (You can place the script anywhere as long as you update the same path in the xml file)
Download the modified gconf thumbnailers section
Import it into gconf by doing:
gconftool-2 --load thumbnailers.xml
Purge your existing thumbnails (~/.thumbnails) and see them created in a jiffy.
If you want to revert back to totem thumbnailer, just delete ~/.gconf/desktop/gnome/thumbnailers/ and relogin.
What do you think? Previous Post Next Post