Closed (fixed)
Project:
Video
Version:
7.x-2.x-dev
Component:
Amazon S3
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Dec 2011 at 17:43 UTC
Updated:
11 May 2012 at 15:40 UTC
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
Comment #1
Jorrit commentedFor now, change the "Upload destination" field setting to "Public files". It only applies to the storage of the original file anyway.
Comment #2
dlumberg commentedI 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.
Comment #3
Jorrit commentedThat 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.
Comment #4
dlumberg commentedI 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.
Comment #5
Jorrit commentedI 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.
Comment #6
Jorrit commentedI 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.
Comment #7
Jorrit commented