Can't generate screen shots for uploaded videos - image resize failed

5 replies [Last post]
Joined: 04/03/2011
Points: 18

Fresh install of Kaltura CE 4.0 on CentOS 5.6 x64. All uploaded videos have black squares where screen shots should be. This error shows up in api log:

130783972439.12, Jun 11 17:48:44 symfony [info] Executing: "convert" "/opt/kaltura/web//content/entry/bigthumbnail/4/267/0_4ozba43c_100002.jpg[0]" -scale 100%x100% -resize 410x364 "/opt/kaltura/web//content/entry/tempthumb/4/267/0_4ozba43c_410_364_1__ffffff_0_0_0_0_0_-1_-1_-1_2_100002.jpg"
130783972439.12, Jun 11 17:48:44 symfony [debug] Returned value: '127'
130783972439.12, Jun 11 17:48:44 symfony [err] exiting on error 17 - image resize failed

Why would this happen? Did I forget to install some image processing package?

Joined: 04/03/2011
Points: 18

There is also an error during video uploads (if watching with tail kaltura_api_v3.log -f):

2011-06-11 19:18:46 [192.168.1.1] [930709061] [API] [myFileConverter::captureFrame] NOTICE: ffmpeg cmd [/opt/kaltura/bin/ffmpeg -ss 3 -i "/opt/kaltura/web/content/uploads/19c801fe62899a1dd6019b2f9a37326d_55c7652f344a704040946882b9743b3d.wmv_.wmv" -an -y -r 1 -vframes 1 -f "image2" -ss 0.01 "/opt/kaltura/web/content/uploads/thumbnail/thumb_19c801fe62899a1dd6019b2f9a37326d_55c7652f344a704040946882b9743b3d.wmv_.jpg" 2>&1]

However, /opt/kaltura/web/content/uploads/thumbnail/thumb_19c801fe62899a1dd6019b2f9a37326d_55c7652f344a704040946882b9743b3d.wmv_.jpg is created and is definitely from the uploaded video. So it can create images but fails to resize them?

Joined: 02/15/2011
Points: 0

One of CE4 prerequisite is ImageMagick. Did you install it?
You need to install it to run the 'convert' command.

Joined: 04/03/2011
Points: 18

Yup that did it. yum install ImageMagick.x86_64 and all was well. Thanks!

Joined: 04/17/2012
Points: 10

Fresh install of Kaltura CE 5.0 on CentOS 5.6 x64. All videos have black squares after successful upload .It's status is 'Ready'.

Joined: 01/20/2012
Points: 85

Any other clue, other than ImageMagick.x86_64 ?