Issue creating thumbnails on videos


#1

Hello,

I’m facing some weird bug while importing through CsvImport (Omeka 2.5.1 / CsvImport 2.0.4) at thumbnail creation time. And this is happening only when importing mp4 videos, no problem with PDF :

  • If using Omeka_File_Derivative_Strategy_ExternalImageMagick
convert: delegate failed `"ffmpeg" -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1310.
convert: unable to open image `/tmp/magick-5449q9ljxCpLSzw3.pam': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no images defined `/tmp/fullsize_0ee44cc59484ad28f017171a005b3f01.jpg' @ error/convert.c/ConvertImageCommand/3210.

2019-02-14T11:26:26+01:00 ERR (3): ImageMagick failed with status code 1.
  • When using Omeka_File_Derivative_Strategy_Imagick
2019-02-14T10:50:08+01:00 ERR (3): Imagick failed to open the file. Details:
exception 'ImagickException' with message 'unable to open image `/tmp/magick-3999IPH-F-df2aAu.pam': No such file or directory @ error/blob.c/OpenBlob/2712' in /var/www/omeka.bsf-intranet.org/application/libra
ries/Omeka/File/Derivative/Strategy/Imagick.php:38
Stack trace:
#0 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/File/Derivative/Strategy/Imagick.php(38): Imagick->__construct('/tmp/7384a98b47...')
#1 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_Imagick->createImage('/tmp/7384a98b47...', '/tmp/fullsize_7...', 'fullsize', 800, 'video/mp4')
#2 /var/www/omeka.bsf-intranet.org/application/models/File.php(356): Omeka_File_Derivative_Creator->create('/tmp/7384a98b47...', '7384a98b475f01e...', 'video/mp4')
#3 /var/www/omeka.bsf-intranet.org/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#6 /var/www/omeka.bsf-intranet.org/application/models/File.php(203): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#7 [internal function]: File->afterSave(Array)
#8 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#9 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#10 /var/www/omeka.bsf-intranet.org/application/models/Item.php(337): Omeka_Record_AbstractRecord->save()
#11 /var/www/omeka.bsf-intranet.org/application/models/Builder/Item.php(204): Item->saveFiles()
#12 /var/www/omeka.bsf-intranet.org/application/libraries/globals.php(567): Builder_Item->addFiles('Url', 'http://omeka-da...', Array)
#13 /var/www/omeka.bsf-intranet.org/plugins/CsvImport/models/CsvImport/Import.php(720): insert_files_for_item(Object(Item), 'Url', 'http://omeka-da...', Array)
#14 /var/www/omeka.bsf-intranet.org/plugins/CsvImport/models/CsvImport/Import.php(588): CsvImport_Import->_addItemFromRow(Array)
#15 /var/www/omeka.bsf-intranet.org/plugins/CsvImport/models/CsvImport/Import.php(336): CsvImport_Import->_importLoop(0)
#16 [internal function]: CsvImport_Import->start()
#17 /var/www/omeka.bsf-intranet.org/plugins/CsvImport/models/CsvImport/ImportTask.php(39): call_user_func(Array)
#18 /var/www/omeka.bsf-intranet.org/application/libraries/Omeka/Job/Process/Wrapper.php(29): CsvImport_ImportTask->perform()
#19 /var/www/omeka.bsf-intranet.org/application/scripts/background.php(61): Omeka_Job_Process_Wrapper->run(Array)
#20 {main}

Obviously, in both cases these files are absent from /tmp, what’s there :

# ls -l /tmp/
total 428
-rw-r--r-- 1 www-data www-data  3392 Feb 14 11:01 16e759924544de2fd3b48270f477e0f8
-rw-r--r-- 1 www-data www-data 74825 Feb 14 10:37 2a969446ba23603c086e8bae08b8f732
-rw-r--r-- 1 www-data www-data 74825 Feb 14 11:25 2aa6fa047d766ca4f60c05532e8c3199
-rw-r--r-- 1 www-data www-data  3392 Feb 14 11:03 42e2cadb1c32a137b652592bcd347d2d
-rw-r--r-- 1 www-data www-data   334 Feb 14 10:41 596317055bed633759bdbd9c925bfbfc.pdf
-rw-r--r-- 1 www-data www-data   334 Feb 14 11:26 641db4de12788cb1d75cbce11dd37630.pdf
-rw-r--r-- 1 www-data www-data  3392 Feb 14 11:07 77fa54b1662b2d9fd9f505c1f3e8c2dc
-rw-r--r-- 1 www-data www-data 74825 Feb 14 10:39 7d685ddb43bf04a2025579a9e3e5a888
-rw-r--r-- 1 www-data www-data  3392 Feb 14 11:26 838551e9248015137f5bbe970d3e80ef
-rw-r--r-- 1 www-data www-data 74825 Feb 14 11:19 c1adf31c763686ced26d32e5a2d5f087
-rw-r--r-- 1 www-data www-data   334 Feb 14 11:19 e4d2e0fff9877316bfd8f69d4b2f67e0.pdf
-rw-r--r-- 1 www-data www-data  3392 Feb 14 10:49 ebebc520659dc93f1c5538b414520e1b
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_am_
-rw------- 1 www-data www-data   121 Feb 14 11:17 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_date_gregorian_long
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_date_gregorian_medium
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_datetime_gregorian_short
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_decimalnumber_
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_month_gregorian_format_abbreviated_2
-rw------- 1 www-data www-data   120 Feb 14 11:17 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_month_gregorian_format_wide_2
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_pm_
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleC_en_scientificnumber_
-rw------- 1 www-data www-data   121 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_LocaleL_en_symbols_
-rw------- 1 www-data www-data   124 Feb 14 11:03 omeka_i18n_cache---internal-metadatas---Zend_Translate_Gettext_Options
-rw------- 1 www-data www-data    16 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_am_
-rw------- 1 www-data www-data    24 Feb 14 11:17 omeka_i18n_cache---Zend_LocaleC_en_date_gregorian_long
-rw------- 1 www-data www-data    23 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_date_gregorian_medium
-rw------- 1 www-data www-data    30 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_datetime_gregorian_short
-rw------- 1 www-data www-data    24 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_decimalnumber_
-rw------- 1 www-data www-data    18 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_month_gregorian_format_abbreviated_2
-rw------- 1 www-data www-data    23 Feb 14 11:17 omeka_i18n_cache---Zend_LocaleC_en_month_gregorian_format_wide_2
-rw------- 1 www-data www-data    16 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_pm_
-rw------- 1 www-data www-data    18 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleC_en_scientificnumber_
-rw------- 1 www-data www-data   228 Feb 14 11:03 omeka_i18n_cache---Zend_LocaleL_en_symbols_
-rw------- 1 www-data www-data   353 Feb 14 11:03 omeka_i18n_cache---Zend_Translate_Gettext_Options

Looks to me like a configuration problem, but I just can’t figure it out. Thank you for any help.
In case it is useful :

Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-05-18 http://www.imagemagick.org

#2

Well… I can’t reproduce this anymore. I don’t think I’ve changed anything . :blush:
I’ll give some follow up if I see this again. Sorry!