Bug 442164 - ffmpeg plugin fails to create thumbnails [NEEDINFO]
Summary: ffmpeg plugin fails to create thumbnails
Alias: None
Product: Fedora
Classification: Fedora
Component: gallery2
Version: 8
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: John Berninger
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-04-12 09:07 UTC by David Woodhouse
Modified: 2009-01-09 06:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-01-09 06:22:39 UTC
gwync: needinfo? (dwmw2)

Attachments (Terms of Use)
debug output (14.03 KB, text/html)
2008-04-12 09:07 UTC, David Woodhouse
no flags Details

Description David Woodhouse 2008-04-12 09:07:04 UTC
See the last item at 
http://gallery.infradead.org/main.php?g2_itemId=3206&g2_page=8 (the others were
uploaded before installing gallery2-ffmpeg)

It has a broken image for a thumbnail.

I click on it and 'edit movie' and use the thumbnail tab (from the thumbpage
plugin). I can change the time offset and it doesn't seem to fix anything.

ffmpeg is installed, and if invoked manually (ffmpeg -i cimg1069.avi -ss 0 -f
mjpeg -t 0.001 -y foo.tmp) generates a sane-looking JPEG.

Comment 1 David Woodhouse 2008-04-12 09:07:04 UTC
Created attachment 302200 [details]
debug output

Comment 2 David Woodhouse 2008-04-12 09:09:36 UTC
You'll see this in the debug output:

Must supply at least one output file
Status: 1 (expected 0)

That's expected, and the code looks like it should handle it appropriately.

Comment 3 John Berninger 2008-04-12 14:38:17 UTC
First, the simple stuff:  does this apply?  (from Gallery2 Codex)  "If you have
the Thumbnail Manager plugin installed, then check "Site admin" -> "Thumbnails"
and ensure that you remove the default thumbnail for the video mimetypes.
Failure to do this will cause the FFmpeg module to never be called to generate a

I don't have any movies to test this with, can you provide a short clip that I
can retrieve somehow to upload to a test server?

Comment 4 David Woodhouse 2008-04-12 15:00:32 UTC
That seems to fix it for new movies; thanks. I removed and re-added
cimg1069.avi, and now I can even use the thumbpage module to change the time
from which the snapshot is taken.

I can't seem to fix the thumbnail for existing movies though -- I go through the
same steps (except removing and re-adding them, of course), and I still get the
broken image. Is there a way to remove the thumbnail completely and make it
start again, without reuploading the movies?

A sample movie is at http://bombadil.infradead.org/~dwmw2/cimg1055.avi -- and
there's a bunch more in the gallery I referred to above.

Comment 5 David Woodhouse 2008-04-12 15:19:41 UTC
I've reuploaded those movies, since I have them to hand. But I have others which
aren't so easy to reupload -- such as at

I note the movie size isn't set correctly on the older movies, but setting it
manually doesn't seem to help. Is there a way to remove all the auto-generated
metadata (including the old thumbnail) associated with these movies?

Comment 6 John Berninger 2008-04-12 15:35:29 UTC
There is an option under "Maintenance" in the admin panel to regenerate
thumbnails - log in as a site admin, go to "Site Admin", then "Maintenance", and
run the "Build all thumbnails/resizes" task.  This should rebuild all thumbnails
- other metadata can be cleared through the other tasks in the Maintenance panel.

Comment 7 David Woodhouse 2008-04-12 16:26:31 UTC
I tried the 'Build all thumbnails/resizes' maintenance task, and got the
following debug output (and lots more, but this was the interesting bit):


Error (ERROR_UNSUPPORTED_OPERATION) : thumbnail video/x-msvideo in
modules/core/classes/GalleryDerivative.class at line 427
in modules/core/classes/GalleryDerivative.class at line 275
in modules/core/classes/GalleryDerivativeImage.class at line
153 (GalleryDerivative::rebuildCache) 
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 839 (GalleryDerivativeImage::rebuildCache) 
in modules/core/classes/GalleryCoreApi.class at line 914
modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at
line 49 (GalleryCoreApi::rebuildDerivativeCache) 
in modules/core/classes/GalleryCoreApi.class at line 901
in modules/core/classes/BuildDerivativesTask.class at line
99 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent) 
in modules/core/AdminMaintenance.inc at line 90
in ??? at line 0 (AdminMaintenanceController::runTask) 
in modules/core/classes/GalleryTemplateAdapter.class at line
at line 69 (GalleryTemplateAdapter::trailer) 
in lib/smarty/Smarty.class.php at line 1258
in modules/core/classes/GallerySmarty.class at line 61
in modules/core/classes/GalleryTemplate.class at line 209
in main.php at line 480 (GalleryTemplate::display) 
in main.php at line 94
in main.php at line 83

getParameter permissions.file for core plugin
getParameter permissions.directory for core plugin
Loading plugin thumbnail
Class not defined, trying to include it.
thumbnail plugin successfully instantiated
Loading plugin thumbpage
Class not defined, trying to include it.
thumbpage plugin successfully instantiated
Loading plugin core
core plugin successfully instantiated

Comment 9 Bug Zapper 2008-11-26 10:28:43 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 10 Gwyn Ciesla 2008-12-18 18:36:17 UTC
Can you confirm whether this is still broken on the new version (2.3), and possibly on a more current release?

Comment 11 Bug Zapper 2009-01-09 06:22:39 UTC
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.