So I have the video module installed and "working" using Zencoder and S3, but the problem is even after my videos are done being transcoded, Drupal does not update and publish the actual node.
This install article (http://video.heidisoft.com/node/873) says to make http://mysite/postback/jobs accessible to the public which it is. Currently the directory has full 777 permissions and I added an .htaccess file which allows directory indexes for that folder, but making an empty folder open to the public doesn't seem to make sense to me. This is the url that Zencoder sends data back to upon completion of transcoding, so shouldn't there be some sort of php handler at that address (http://mysite/postback/jobs) which receives a successful job and updates the necessary drupal tables, updating the video location to the converted file on S3, updating the thumbnail and publishing the node? The README in the [video module]/plugins/video_zencoder/includes folder says you must create an instance of ZencoderOutputNotification and then write my own code to update the DB and publish the node. Does this code exist somewhere in the module already? Should that folder (/postback/jobs) actually be a symlink to a file in the video module folder? I have exhausted lots of time searching or an answer to this and found nothing, but surely other people must have this problem too? Once again all actions with regards to Amazon and Zencoder are working, but the actual notification back from Zencoder is not being received by anything on my Drupal install.
Thank you for any help with this problem. I apologize if this is a dumb oversight on my part, but I really have looked through any and all documentation I can find and read through the install instructions (http://video.heidisoft.com/documentation/welcome-video-module-documentation) several times.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 1033144_12.patch | 1.14 KB | hypertext200 |
Comments
Comment #1
hypertext200Hmm, this is a post back receives from the Zencoder, this is the main power of Drupal videos. Cause it will post back all the data to us once it completed.
Postback is already done and post back will send us some data to the /postback/jobs URL. We do not need to have directory or do not do any hardcore on it. It is just an URL call back. Revert the all changes u made to the .htaccess since it should not hack, again there should not be any directory.
Comment #2
unfrgivn commentedOk the request handler is now working. I'm not sure how that directory was created in the first place, perhaps another developer made it an attempt to fix the original problem.
Thank you.
Comment #3
Modern Smith commentedI have the same problem. I have the video module installed and "working" using Zencoder and S3, but the problem is even after my videos are done being transcoded and uploaded to S3, Drupal does not update and publish the actual node. Zencoder gives following notification data:
Notification Sent:
{"job":{"state":"finished","id":1584892},"output":{"state":"finished","label":"VIDEO_hq_flash_20","id":2001290,"url":"http://mybucket.s3.amazonaws.com/sites/default/files/videos/converted/my..."}}
Response Received:
HTTP/1.1 400 Bad Request
Bad Request400 Bad Request
Your browser sent a request that this server could not understand.
Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
What should I do? I´m grateful for any help.
Comment #4
hypertext200As far as I can see I cannot access http://www.goodrules.net/drupal4/postback/jobs URL, where u have installed the site? inside the drupal4 sub-folder?.
When u go to post back URL you should see "its working" message on a white page.
Comment #5
Modern Smith commentedYes, the site is installed inside the drupal4 folder. The Video module is installed in
/public_html/drupal4/sites/all/modules/video. (But I can´t see any /postback/jobs folder under http://www.goodrules.net/drupal4. However, I understood there should not be any either)
How can I provide access to http://www.goodrules.net/drupal4/postback/jobs?
Comment #6
hypertext200@Modern Smith, check u have any menu overridden default permission set
Comment #7
jhrizz commentedI too am getting nothing back in my node (all of the transcodes and file migrations are happening fine between Zencoder and AmazonS3).
When I access the "https://www.mysite/media/postback/jobs" URL I get:
working something else
Any ideas?
Thank you!
Best,
- Josh
Comment #8
hypertext200@jhrizz, to get Zencoder pistback u should have public IP, your site should be able to access from public using IP or domain name.
Please check the Zencoder jobs on Zencoder site, and check for Notifications.
It is a Debug message and if your getting that message, you have correctly configured the post back URL.
Comment #9
Modern Smith commentedThanks, I got it working. I had saved content access rights for anonymous users ok, but without expected effect. However, when repeatedly saved, it started working. Don´t know what happened.
Comment #10
jhrizz commentedHeshan,
Yep, I have a static IP and the site is publicly available, though access to these video node / content is restricted.
My site is secured with SSL and again does not have anonymous access to the nodes, would either of these be an issue?
Note, it was working, and I recently upgraded from:
video.module,v 1.69.4.17.2.7.2.50 2010/08/29
to
video.module,v 1.69.4.17.2.7.2.71 2011/01/27
Any thoughts?
Thank you for your help!
Comment #11
jhrizz commentedSo after doing a bit of digging, I found that Zencoder is defiantly posting to " https://www.wexlerpost.com/media/postback/jobs " URL, but is erroring out:
-----
HTTP/1.1 403 Forbidden
Access denied | Website
-----
Again, I have not changes permissions on the site, and this was working before.
Any guesses?
Thanks!
- Josh
Comment #12
hypertext200Please apply the patch and in user permissions enable anonymous access to the
zencoder postbackComment #13
jhrizz commentedJust got back on this project- I will give that a shot! Thank you as always!
Comment #14
jhrizz commentedApplied patch, Allowed "anonymous" for "zencoder postback", uploaded video, and no go.
https://www.wexlerpost.com/media/postback/jobs
If you click the link, you can see the same thing that Zencoder sees.
Ideas?
Comment #15
bennos commentedsubscribing here
have the same problem, with a project.
accessing content is only allowed for registerd users.
will try out the patch.
Comment #16
bennos commentedpatch does not work.
the new permission appears and is set.
need to give guest access to all published content.
then it works. when I remove the permission, it stopped working.
Comment #17
adamgerthel commentedI'm getting "working something else" when going to /postback/jobs as a non-authenticated user, but Zencoder is getting:
The site's logs entries say "Postback received from the Zencoder Transcoding servers.s:0:"";" but the node doesn't get published and the video isn't being displayed. The conversion works as intended though, and the videos have landed on S3
Comment #18
hypertext200@AdamGerthel , make sure u have correct poastback URL set it up with video module. The patch working fine for many.
Comment #19
adamgerthel commentedWe've managed to get it working now. The only thing missing is that no thumbnails gets picked when the node is published after zencoder is done
Comment #20
hypertext200Please check the watchdog for further debuggin
Comment #21
kenwen commentedJust spotted this thread
I'm getting a 404 error but the postback url is definitely there and set up. tried accessing direct and got the working on something else message
site is www.klfit.co.uk
postback is http://www.klfit.co.uk/postback/jobs
Comment #22
fugazi commentedsubscribe
Comment #23
mlconnor commentedI can see that the data is coming back and is stored in the video_zencoder table in a field called data. I do not see any way to actually get the list of converted videos out so that I can do something useful with them. Anyone have any thoughts or insights?
Comment #24
Jorrit commentedYou should unserialize the data field. The result is a list of converted videos.
I have removed the access check from /postback/jobs, it was quite pointless to have a permission that has to be enabled for all roles when it is possible to remove the access check altogether.
Comment #25
mlconnor commentedThanks Jorrit. The more I look at these APIs, the more convinced I am that the Zencoder converted file information needs to be crammed into the video_zencoder or video_files table. Here are a few reasons.
Comment #26
Jorrit commentedI will only add the features you need after I have fixed all the bugs. I agree that the data model should be enhanced such that each converted video has its own item in the database with all metadata.
Comment #27
mlconnor commentedThis code is not generic but will enable you to add the converted video files to a node if you are using Zencoder. The files are helplessly locked in the data field in the video_zencoder table but this will enable you to get them back out and show them as either authenticated or unauthenticated.
Comment #29
Antonio01 commentedHi mlconner,
Could you please give more detail and explain where we can setup this Code. I' m new in drupal and I would like to know where i need to put your code to display the video uploaded on my video node.
I configured the video module as it' s explained on the http://video.heidisoft.com/documentation/. When I upload a video it's encoded perfectly by Zendcoder and stored in S3.
When I look on my database in table video_zendcoder, i can see the postback url of ZendCoder :
O:8:"stdClass":1:{s:8:"27933340";O:8:"stdClass":3:{s:2:"id";i:27933340;s:5:"label";s:10:"VIDEO_10_2";s:3:"url";s:103:"http://videos.MYSITE.com.s3.amazonaws.com/sites/default/files/videos/con...";}}
If i understand now, the only way to show the video on the node it's copying the fragment of code you give us. I don't understand why it's no integrated on the module yet, but I really would like understand and show the video on the node :=) Actually i have the message "This video is currently being processed. Please wait."
Thanks in advance,
Antoine
Comment #30
Jorrit commentedThe video should display in the node. You are replying to a very old issue and its contents are no longer relevant. Please open a new issue and describe your problem. Also, give the version of the module that you are using and list the errors in the Drupal error log, if there are any.