Error building video thumbnails AFTER removing settings from thumbnail manager

Austin519

Joined: 2005-09-26
Posts: 22
Posted: Thu, 2010-02-11 22:44

Hi,
So I received an error while trying to build thumbnails for my video files. The error I receive is:

mysqli): UPDATE g2_EventLogMap SET g_userId=6, g_type='Image Error',
g_summary='Unable to build image', g_details='Error
(ERROR_UNSUPPORTED_OPERATION) : thumbnail video/mpeg <b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 428

Now here's the catch. Originally I had thumbnail manager enabled when I uploaded all of my files, and it was handling my video files. I read the thread about disabling it to actually call ffmpeg and build thumbnails for all of my videos, which I did. Now this error has shown up, and none of my video thumbnails are being built. I have tried to delete the cache and rebuild the thumbnails under /gallery/lib/support/index.php, to no avail. What's more, uploading new video files properly creates thumbnails. So what it looks like to me is, because the thumbnails were previously handled by thumbnail manager when they were uploaded, something has happened in the database that has screwed up making thumbnails for already-uploaded videos. Any thoughts on this? Any other way for me to fix this other than laboriously going through and deleting/reuploading 400 videos? Thanks!

Austin519

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Thu, 2010-02-11 22:59

It seems that this person had a similar error fyi: http://gallery.menalto.com/node/38699

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-02-11 23:01

try bumping the thumbnail manager de-activate/re-activate
if you added the ffmpeg toolkit it may not have registered as the handler.

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

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Thu, 2010-02-11 23:18

Yep, I tried that. I've now completely uninstalled the thumbnail manager (hoping that will clean up any errant data) and will try rebuilding the database. FFMPEG has registered as a handler because uploading a new video shows the proper thumbnail. Only previously added videos (while the thumbnail manager was activated to show the generic video thumbnail) are affected. Any other thoughts?

Austin519

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Thu, 2010-02-11 23:57

No dice...even completely uninstalling the thumbnail manager does not fix this issue. The only thing I can think of, is that something thumbnail manager has done/added to the uploaded video entries is causing the thumbnail building process to fail. Since I don't know what all the thumbnail manager adds to the file structure or database when it puts a generic thumbnail image in for a video file, I have no way of debugging this beyond what I've done. Any help would be much appreciated.

Austin519

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-02-12 01:27

Edit one of these failed movies and see if the custom thumbnail field is present.

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

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Fri, 2010-02-12 16:11

suprsidr:
There is a tab on all the broken movies which asks "Select the time offset to use for this item's thumbnail." Is that what you mean?

Austin519

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-02-12 16:21

As long as it does not have 0.00 for max time, that means ffmpeg and the thumbnail manager are working.
That is for setting the thumb to a frame of your choice within the movie.

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

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Fri, 2010-02-12 16:46

suprsidr:
No, it doesn't have 0.00, so it is working. But I already knew that FFMPEG was working because, as I said up top, uploading a *new* video creates the thumbnail just fine. It is *only* the previously uploaded videos, done while thumbnail manager was still active and handling video files, that I'm having trouble building thumbnails for. That is still the issue here.

Austin519

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-02-12 16:53

Did you try setting the offset for one of these videos? Does it build the thumb?
can you rebuild all thumbs for a single album at once? Instead of trying to rebuild your whole gallery?

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

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Fri, 2010-02-12 21:02

I did try to set the offset and it did not build the thumb. Where is the option for rebuilding the thumbs for a single album?

Austin519

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-02-12 21:33

edit album -> Set new thumb size -> Apply settings to existing items -> Apply album setting to thumbnails -> Build thumbnails too

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

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Fri, 2010-02-12 22:03

Forgive me for not understanding...on the edit album page, I see the default thumbnail size of 150. I can change that and save it. I do not see anywhere on that page (edit album->general tab) where to apply settings to existing items, apply album settings to thumbnails, build thumbnails too, or anywhere else.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-02-12 22:13
 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Mon, 2010-02-15 01:30

No dice...didn't change anything. Still getting the same error.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-02-15 17:18
Quote:
(ERROR_UNSUPPORTED_OPERATION) : thumbnail video/mpeg

ffmpeg should register this operation.
uninstall ffmpeg and thumbnail manager
reinstall ffmpeg then TM

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

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Mon, 2010-02-15 20:49

Yep, already did that as well. Did it again just to be sure. Same error:

(mysqli): UPDATE g2_EventLogMap SET g_userId=6, g_type='Image Error',
g_summary='Unable to build image', g_details='Error
(ERROR_UNSUPPORTED_OPERATION) : thumbnail video/mpeg <b>in</b>

I'm pretty sure of it - when you have thumbnail manager active and handling thumbnails, then you later add ffmpeg, clear the cache, and rebuild the thumbnails trying to have ffmpeg do it, thumbnail manager does something that keeps that from happening.

Austin519