Closed (works as designed)
Project:
Video
Version:
7.x-2.x-dev
Component:
Zencoder
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2011 at 16:41 UTC
Updated:
26 Feb 2012 at 15:14 UTC
I tried to run my first test through the Video module and got the above error. I've got it configured to use Zencoder (and have upgraded my account to pay-as-you-go), MP4 preset, and have the Output File Base set to FTP back to my server. One odd thing I noticed there is that the information always resets to ftp://[user]:[password]@[ftp.url] no matter what I enter in that box. Is it possible it's simply not saving my FTP login information?
Thanks in advance!
Comments
Comment #1
Saoirse1916 commentedI just checked and it looks like the job never got to my Zencoder account (no successful/failed jobs), so I'm assuming the FTP issue isn't the problem -- at least not yet.
Comment #2
Saoirse1916 commentedTried again, got the same error but with an extra one this time:
Zencoder reports some errors. Thumbnail base url could not be parsed
I checked my Zencoder account and on the Encoding tab it shows 0 failed jobs; however, on the API tab it shows 2 submitted, 2 failed. So evidently they are getting to Zencoder but it's erroring out somewhere along the line. Anyone have any suggestions? Does anyone monitor this queue?
Comment #3
Saoirse1916 commentedI went through the process of configuring the Amazon S3 service into the Video module and I get the same error. I'm assuming that rules out FTP as the culprit.
Anyone have any ideas?
Comment #4
Saoirse1916 commentedI contacted Zencoder directly and gave them my ID for the failed job. Their response was "It looks like it's breaking on the URLs because they contain [user]:[password] for the username and password. If that's your actual username and password you need to escape the brackets. Check out https://app.zencoder.com/docs/guides/getting-started/special-characters-... for documentation on this."
That tells me that what I noticed in my original post is correct -- the base URL in admin/config/media/video/transcoders is simply not saving. Anyone have any ideas why this might be?
Comment #5
Saoirse1916 commentedSOLVED: the problem is indeed the fact that the base URL does not save. My solution is to hard-code my FTP information in every instance of variable_get('video_zencoder_base_url', 'ftp://[user]:[password]@[ftp.url]') in the file /sites/all/modules/video/transcoders/TranscoderAbstractionFactoryZencoder.inc. Keep in mind that you'll need to percent encode any special characters per Zencoder's suggestion (https://app.zencoder.com/docs/guides/getting-started/special-characters-...).
I'm hoping that someone with a better understanding of module building and Form API than I have will be able to drop a patch that will actually save what's entered in the Base URL box, but for now this solves the problem. Quite frankly, I'm surprised that this hasn't come up yet since I don't see how anyone could use Zencoder with Video 7 without hardcoding the URL.
Comment #6
Saoirse1916 commentedComment #7
dippers commentedThe problem is likely to be that you have mod_security enabled in apache and that is rejecting any page with 'http://' or 'ftp://' in input fields. Turning off mod_security is not a good idea. I have explicitly set the variables using /devel/php box using:
The transcoder page does need to be modified so that the protocol identifier can be entered using radio boxes rather than directly in an input field if it is to work with mod_security.
Comment #8
Jorrit commentedI assume that Dippers is right and the problem is not with the module.