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
Posts: 22
It seems that this person had a similar error fyi: http://gallery.menalto.com/node/38699
Posts: 8339
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
Posts: 22
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
Posts: 22
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
Posts: 8339
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
Posts: 22
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
Posts: 8339
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
Posts: 22
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
Posts: 8339
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
Posts: 22
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
Posts: 8339
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
Posts: 22
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.
Posts: 8339
Album tab
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 22
No dice...didn't change anything. Still getting the same error.
Posts: 8339
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
Posts: 22
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