I'm trying to use the Amazon S3 submodule and I'm a bit confused as to how it's supposed to be working. The documentation isn't quite sufficient to help me figure it out.

I seem to have it configured correctly, but videos are just never being transfered to the bucket. When exactly is this supposed to happen? It doesn't seem to be happening when the video is uploaded. Peeking at the code, it looked like it should be happening when cron runs, but that's not happening either.

Does it happen on transcode, maybe? Our site is completely bypassing transcoding.

Any other tips and advice to help troubleshoot S3 video uploading would be helpful.

Comments

hypertext200’s picture

Status: Active » Fixed

If your using latest version please disable the video_zencoder module, then upload file and run the cron.php file. When you create video filed you should not mark them as automatic conversion enabled, so you should uncheck that checkbox.

Garrett Albright’s picture

video_zencoder is not enabled, and the checkbox you mentioned is not checked.

Researching further, it appears that video_s3_video_insert() is not being called when a video is uploaded, but it should be, right? That appears to be what queues up the video to be uploaded when cron is run.

I'll keep experimenting.

Garrett Albright’s picture

Title: Amazon S3: How does it work? » hook_video_insert() never invoked?
Category: support » bug
Status: Fixed » Active

Experimenting further…

If I hack video_module_invoke() to log what hooks are being called, I can never get it to log "insert" or "update." Only "load" and "delete." So video_s3_video_insert() is indeed never being invoked.

Can anyone else replicate? I'll keep looking into this - we really need to get this working…

Garrett Albright’s picture

Further…

Through backtracing, I'm finding that, when uploadfield_widget_process() is called, $form_state['submitted'] is FALSE for some reason, so video_widget_process() is never called by that function. However, if I write my own simple module to check $form_state['submitted'] when a node form is submitted, it's always TRUE when it should be…

For my sanity, I'm going to give up on this for tonight.

hypertext200’s picture

Status: Active » Closed (works as designed)