video 7.x-2.x-dev
amazons3 7.x-1.x-dev
zencoder

Thumbnails aren't getting generated locally for the automatic generation due to drupal_realpath returning false (from the amazons3 stream wrapper) in TransoderAbstractionFactoryZencoder.inc. I had to hard code the public:// schema in extractFrames() on line 82 and in processPostBack on line 396 to get it to work properly:

-    $schema_thumb_path = file_uri_scheme($this->settings['input']['uri']) . '://' . variable_get('video_thumbnail_path', 'videos/thumbnails') . '/' . $this->settings['input']['fid'];

+    $schema_thumb_path = 'public://' . variable_get('video_thumbnail_path', 'videos/thumbnails') . '/' . $this->settings['input']['fid'];

I feel like there should be a setting on the field instance page that selects where you want to store the local thumbnails for the upload form ie: public:// vs private://

or figure out a way to get those thumbs served from s3.

Comments

Jorrit’s picture

For now, change the "Upload destination" field setting to "Public files". It only applies to the storage of the original file anyway.

dlumberg’s picture

I updated to the latest release (7.2) and I changed the setting to Public files. Then I started getting WSOD again from fopen in S3, so I had to go in and hard code it again.

Jorrit’s picture

Assigned: Unassigned » Jorrit
Status: Active » Postponed (maintainer needs more info)

That is very odd. It has probably got to do with the fact that it goes wrong for files uploaded previously. You would help my by undoing your change (temporarily) and uploading a new video. I am interested if you get a WSOD even then.

dlumberg’s picture

I would love to help, unfortunately it's a production site. I'm pretty sure that it is a case of videos that were uploaded before I made the switch and the edit form was never hit so the thumbs weren't downloaded.

When I tested the whole workflow after I made the change, it worked flawlessly.

Thanks.

Jorrit’s picture

I am working on a setting that allows you to select to which location (scheme) the thumbnails will be saved independent of the videos. This will solve your problem. For now, your hardcoded fix is sufficient.

Jorrit’s picture

I have implemented this in 7.x-2.x. Be careful when updating to this new version because it contains a lot of changes. Read the release notes and the change record before you update.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.