I'm testing this module with Zencoder and S3 Amazon. Uploading video, being transcoded and I'm able to see that it's uploaded to S3 bucket. I setup my JWPlayer properly and it works. But then on the video node that has been created, it is trying to get the file from local server instead of from the full S3 URL.

Is this a bug or I'd missed out some configurations?

CommentFileSizeAuthor
#6 video-status.gif3.38 KBsadist
#6 video-fileconfig.gif7.93 KBsadist

Comments

hypertext200’s picture

Did u change the access permission to the Zencoder? You will have to change the access permission to Zencoder on bucket. See the last few lines of the Zencoder configuration page for more details.

Contact us using video.heidisoft.com/contact for further debugging with Zencoder.

sadist’s picture

Sorry, I don't get what you meant by Zencoder configuration page. Were you refering about the configuration page on my Drupal video.module, or at zencoder.com site? I don't see any other settings in either both though.

All conversions are working fine. My files got converted and transfered to my S3 bucket successfully. Even the thumbnails are all there. But it's just that on my node page, it's trying to play/fetch the video file locally instead of from my S3 server.

hypertext200’s picture

sadist’s picture

I guess I'd already did all that and I just went through it again. For the permission part, I did entered aws@zencoder.com as one of the Grantees (List - Upload/Delete), and it appears to be listed as zencodertv.

I'm not sure why you keep on asking me to check on the S3 permission since the files are converted and uploaded to my S3.amazon bucket successfully without problem. It's the embedding code that's giving me problem.

I also thought that it might just be the player. So I disabled my SWFTools and print Path to file instead, but nothing solved. It is pointing to my local server though the converted video and thumbnails are already in my S3 bucket.

hypertext200’s picture

@sadist, Did u set up post back on your server? are you receiving the post back to your server back once zencoder complete their job.

Is that working?

Check the video_zencoder table and is there any entries with status 10(completed)? .

In the video settings, file system tab, did u enable the S3?

sadist’s picture

StatusFileSize
new7.93 KB
new3.38 KB

Yes. I can see the 10/completed status (screen attached).
S3 is being enabled on the configuration page (screen attached).

I don't get what you mean by setting up the post back, is it the video/plugins/video_zencoder/inludes/zencoder.inc file? If it is, then yes I did that as instructed. Or any permission settings I must set for both directories?

hypertext200’s picture

@sadist , seems every things perfect. What are the format your final video has? what are the presets u enabled?

sadist’s picture

In my video/presets settings, I chose Flash and HTML5 MP4.

1) In my S3 Bucket converted folder, I saw both .mp4 and .flv files. I also saw all the 5 thumbnails in video_thumbs folder there. The original video (.wmv) is also there.

2) In my local server, I can see the original file, and all the 5 thumbnails.

3) When editing the node, the thumbnails that are listed in the upload form were fetched from the local server.

sadist’s picture

BTW. I don't really get this statement
150 $url = 'http://url/of/drupal/site/postback/jobs'; //this url must be accessible from the public location.

So even if it's S3.amazon configuration, we should set it to our Drupal site URL? E.g. http://www.mysite.com/postback/jobs? What's the purpose for the folders?

hypertext200’s picture

BTW. I don't really get this statement

This is how we handle post back, if your in a server which publicly accessible then there is no issue. Once trasncoder completed Zencoder will push some data about transcoding.

You can login to the Zencoder.com site and see how your notifications are working. If any isssue with Notifications you can see it there. But unless you get 10(SUCCESS) in your video_zencoder table files, there is no any issue.

sadist’s picture

so, it means it's confirmed that all my configurations are correct. but my video node is printing "sites/default/files/video-file.wmv" instead of the full URL "https://s3-ap-southeast-1.amazonaws.com/bucketfolder/sites/default/files..."

and in the first place, why was it trying to get the original .wmv file instead of the converted one (flv or mp4)? how/where do I choose which format it should be playing?

hypertext200’s picture

Which is the version of video module your using? I cannot see any issue here, can you please clear cache and see how its working. This is working out of the box.

Go to includes and go to line 69.

      $filesystem = new video_filesystem();
      $filesystem->load_file($video);
    }

print these values and see.

sadist’s picture

It's pointing to S3 server now.. I selected Path to URL just now, to troubleshoot it. And now when I put it back to Video, it works.

But then it's trying to play .mp4 file from my PC instead of flash. How can I let it detect to only play flv if it's on desktop and mp4 if it's on iPhone? Any documentation on that?

And I just created a new video node, it's still not published yet even after few crons (as usual, all converted files and thumbnails are already in S3 server).. :(

hypertext200’s picture

To compatible with iPhone you have to use HTML5 player.

And I just created a new video node, it's still not published yet even after few crons (as usual, all converted files and thumbnails are already in S3 server).. :(

Check your postback action is working? the first few lines in the post.

Meller’s picture

I have the same problem working with S3, cloud frond and FFMPEG encoder.

Files are uploaded to the S3 server (even deleted from the local server) but the url to the video still points the local server.

any idea why ?

hypertext200’s picture

1. Please check the cache. flush the cache and see.
2. How you try to load the video object, what is your workflow?

aze2010’s picture

subscribe

any solutions founded?

fugazi’s picture

subscribe

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Please try if version 6.x-4.6 beta 1 fixes this problem for you. In this version the Zencoder and S3 parts have been refactored and tested.

You can read about it at http://drupal.org/node/1346434

odegard’s picture

I'm using D7 but I've found out something that might shed some light on this issue. If I'm using dsm to print out $node, I see this that the uri is pointing to public://videos/original/video-blabla.mp4

However, if I check out the source of the node, the src in the video is correctly pointing to my S3 bucket.

So it could be just an misunderstanding.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Fixed

This issue is for D6 only, D7 works very differently. I am closing this issue because there are no reports that it has not been fixed in 4.6.

Status: Fixed » Closed (fixed)

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