ffmpeg rebuilding thumbnails on existing movie files

nitehawk337

Joined: 2006-06-26
Posts: 8
Posted: Wed, 2009-05-27 20:22

I did a search, but can't find the exact problem...
I have several existing video files already on the gallery that were originally set up to use the default thumbnail. I finally spent the time to read the instructions on how to use ffmpeg to create the thumbs dynamically (really, gallery has "just worked" so well over the last several years, that I never thought to look!!), and set it up to do so.

This works fine for new videos I upload.

Unfortunately, I cannot get the pre-existing videos to rebuild a thumb correctly. When I go to edit -> thumbnail -> save, it comes back with the broken icon.

I hesitate to do a rebuild all thumbnails, as it is a decent size gallery, and last time we did a rebuild, it was several hours.

Is this a known problem, or does someone have a starting place to look?

Tnx

Gallery URL = http://<redacted>.org/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache/1.3.37 (Unix) mod_throttle/3.1.2 FrontPage/5.0.2.2635 mod_ssl/2.8.28 OpenSSL/0.9.8b
Database = mysql 4.1.20-max-log, lock.system=database
Toolkits = ArchiveUpload, NetPBM, Thumbnail, Gd, Ffmpeg, SquareThumb, Exif
Acceleration = partial/900, partial/900
Operating system = Linux web258.opentransfer.com 2.6.18-92.1.10.el5PAE #1 SMP Tue Aug 5 08:14:05 EDT 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042700 SUSE/3.0.10-3.1 Firefox/3.0.10
Rows in GalleryAccessMap table = 2444
Rows in GalleryAccessSubscriberMap table = 6576
Rows in GalleryUser table = 6
Rows in GalleryItem table = 6571
Rows in GalleryAlbumItem table = 182
Rows in GalleryCacheMap table = 66867

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 2646
Posted: Thu, 2009-05-28 00:05

When you edit these older movies does the thumbnail tab appear?
Can you pick a specific timeframe to set the thumb?

Under edit Movie -> General -> Thumbnail

Quote:
Set the size of the thumbnail. The largest side of the thumbnail will be no larger than this value. Leave this field blank if you don't want a thumbnail.

Does changing the size help?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

Login or register to post comments
nitehawk337

Joined: 2006-06-26
Posts: 8
Posted: Thu, 2009-05-28 03:01

Yup - I get the thumbnail tab, I've tried going a second or two into it to get the thumb, and I've tried to change the size...

Still nada :-(

Login or register to post comments
castor166

Joined: 2009-07-04
Posts: 5
Posted: Sat, 2009-07-04 04:19

Anything new on this? I have three sites sharing the same G2 installation, two sites are building the movie thumbnails and one site does not. I've spent hours trying to debug this.

Login or register to post comments
nitehawk337

Joined: 2006-06-26
Posts: 8
Posted: Sat, 2009-07-04 12:47

Sorry - no.
It works fine for new uploads, but I cannot get existing files to rebuild the thumbnails - I have to re-upload them.

Login or register to post comments
castor166

Joined: 2009-07-04
Posts: 5
Posted: Sat, 2009-07-04 13:06

For me, even newly added movies won't get their thumbnails.

Login or register to post comments
nstocke

Joined: 2009-09-01
Posts: 3
Posted: Thu, 2009-09-10 22:13

Anything new on this? I just stood up my site and discovered the same thing. New uploads get thumbnails but the old ones don't seem to get generated.

Login or register to post comments
castor166

Joined: 2009-07-04
Posts: 5
Posted: Thu, 2009-09-10 22:31

Nothing new from my side. If you find a magic solution, please let us know here.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9025
Posted: Thu, 2009-09-10 23:18

So going to Site Admin > Maintenance and rebuilding the thumbs doesn't work?

What about going to www.example.com/gallery2/lib/support and deleting the thumbnail cache?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
castor166

Joined: 2009-07-04
Posts: 5
Posted: Thu, 2009-09-10 23:36

Having a multi-site installation, what can I do to delete the thumbnail cache of the one site that's causing problem?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9025
Posted: Thu, 2009-09-10 23:43

I believe each multi-site should have that lib directory, if not, I believe you can simply copy that lib directory into each multi-site install.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
nitehawk337

Joined: 2006-06-26
Posts: 8
Posted: Fri, 2009-09-11 00:18

I've still never gotten pre-existing to rebuild correctly.
Im curious if a Bulk Rebuild would work (as I mentioned, my site is waaay too big to rebuild them all on a whim). Pls let us know if it works

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 2646
Posted: Fri, 2009-09-11 00:44

try this on a small album:
edit album -> album tab -> change default thumb size -> check the two boxes: Apply album setting to thumbnails & Build thumbnails too -> save

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

Login or register to post comments
castor166

Joined: 2009-07-04
Posts: 5
Posted: Fri, 2009-09-11 01:37

Muchas Gracias suprsidr!! That worked!

For the records, I note that I had copied in directories images/ lib/ locale/ modules/ themes/ into my multi-site instance prior to trying your solution. I'm not sure if that had any impact.

Login or register to post comments