Quicktime VR upload error

Hello, fabulous Omeka team!

Help?

Ever since I upgraded to 1.5, I haven't been able to upload any of my quicktime objectVR files. I've tried uploading them individually as new items, I've tried putting them in the dropbox and uploading from there, and I've tried uploading via CSVimport - none of those work for uploading these files. The error I'm getting makes me think it's running into trouble when it tries to make derivative images - but it shouldn't even be trying to do that, right? Because it's a video format? So, can anyone recommend a solution?

Here's the error log from one of my attempts:


2012-05-05T20:13:51-04:00 WARN (4): Omeka_Storage_Adapter_Filesystem: Tried to delete missing file 'files/ff74e500f612277cd0c092e3dfbca80b.mov'.
2012-05-05T20:13:51-04:00 ERR (3): exception 'Omeka_File_Derivative_Exception' with message 'Something went wrong with image creation. Please notify an administrator.' in /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/File/Derivative/Image.php:189
Stack trace:
#0 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/File/Derivative/Image.php(113): Omeka_File_Derivative_Image::createImage('/tmp/ff74e500f6...', '600', 'fullsize')
#1 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/File/Derivative/Image.php(222): Omeka_File_Derivative_Image::createDerivativeImages('/tmp/ff74e500f6...')
#2 /home/maslaats/vcomeka.com/vccc/application/models/File.php(248): Omeka_File_Derivative_Image::createAll('/tmp/ff74e500f6...', 'video/quicktime')
#3 /home/maslaats/vcomeka.com/vccc/application/models/File/ProcessUploadJob.php(24): File->createDerivatives()
#4 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): File_ProcessUploadJob->perform()
#5 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Job/Dispatcher/Default.php(95): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"F...', Array)
#6 /home/maslaats/vcomeka.com/vccc/application/models/File.php(70): Omeka_Job_Dispatcher_Default->send('File_ProcessUpl...', Array)
#7 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Record.php(282): File->afterInsert()
#8 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Record.php(561): Omeka_Record->runCallbacks(Array, Array)
#9 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Record.php(581): Omeka_Record->save('afterInsert')
#10 /home/maslaats/vcomeka.com/vccc/application/models/Item.php(303): Omeka_Record->forceSave()
#11 /home/maslaats/vcomeka.com/vccc/application/models/ItemBuilder.php(213): Item->saveFiles()
#12 /home/maslaats/vcomeka.com/vccc/application/libraries/globals.php(505): ItemBuilder->addFiles()
#13 /home/maslaats/vcomeka.com/vccc/application/models/Item.php(286): insert_files_for_item()
#14 /home/maslaats/vcomeka.com/vccc/application/models/Item.php(153): Item->_uploadFiles('Upload', 'file', Array)
#15 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Record.php(282): Item->beforeSaveForm(Object(Item), 'Upload', 'file', Array)
#16 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Record.php(803): Omeka_Record->runCallbacks()
#17 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Controller/Action.php(482): Omeka_Record->saveForm(Object(ArrayObject))
#18 /home/maslaats/vcomeka.com/vccc/application/controllers/ItemsController.php(99): Omeka_Controller_Action->editAction(Array, Array)
#19 /home/maslaats/vcomeka.com/vccc/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction('beforeSaveForm', Object(ArrayObject))
#20 /home/maslaats/vcomeka.com/vccc/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch(Array)
#21 /home/maslaats/vcomeka.com/vccc/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
#22 /home/maslaats/vcomeka.com/vccc/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#23 /home/maslaats/vcomeka.com/vccc/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run('editAction')
#24 /home/maslaats/vcomeka.com/vccc/application/libraries/Omeka/Core.php(165): Zend_Application->run(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#25 /home/maslaats/vcomeka.com/vccc/admin/index.php(44): Omeka_Core->run()
#26 {main}

and attempts using Dropbox or the csvimport plugin have a very similar error log

I wonder if my problem is similar to what's discussed in this thread:
http://omeka.org/forums/topic/upgraded-but-unable-to-upload-flim-clips#post-5575

if so, I'm hoping someone can give me some very clear instructions of what settings to look at for my server (hosted with Dreamhost), how to check them, etc.

As always, thanks so much for any advice you can offer!

Gratefully,

Arden

Hmm. What seems to be happening here is that PHP is detecting your QTVR files as images (or as containing images) but ImageMagick is understandably unable to work with them.

We have a blacklist defined for some corner cases that PHP often detects as an image incorrectly (or that ImageMagick often has trouble with), but "video/quicktime" hasn't needed to be on that list in the past.

If you're comfortable editing code, you can add "video/quicktime" to that blacklist. It's line 254 in application/libraries/Omeka/File/Derivative/Image.php, and it normally looks like:

$blackListMimeTypes = array('application/x-shockwave-flash', 'image/jp2');

Adding the quicktime mime type should stop Omeka from wrongly trying to create thumbnails from these files:

$blackListMimeTypes = array('application/x-shockwave-flash', 'image/jp2', 'video/quicktime');

It's somewhat strange that an Omeka upgrade would cause you to have this problem, since that particular code has been basically the same for a pretty long time. A PHP upgrade or some other server environment change could explain why those videos are now being seen as images.

Thank you so much, John! I made the change you suggested, and immediately uploaded something that was already in my Dropbox - problem solved in a matter of minutes!

Greetings from the future! I hope this thread hasn't been retired.

I was having the same problem uploading .mov files, and the blacklist trick worked--for most of them. There are a few files that upload from Dropbox successfully (no errors), but when I try to view them they are either blanks--which I can "play" (click on the play button and the slider runs across the bottom of the viewer) but there isn't anything there--or I get a Quicktime Q that hangs there for awhile before changing into a Q-with-question mark. Examples:

http://lib2.skidmore.edu/ComidaLatina/items/show/263

http://lib2.skidmore.edu/ComidaLatina/items/show/123

Any ideas?

I'm going to go ahead and post this as a new thread.