I am using the latest 5x dev version. 90% of the time my videos upload with no problem. However I randomly will upload a video (the same exact video file used for all the successful tries) and I get an error message.
At the top I get a "Something went wrong with your video conversion. Please check your recent log entries for further debugging." in a red box.
Then were the video is supposed to be I get this:
"The video conversion process has failed. You might want to submit a simpler video format like mpeg or divx avi.
If the problem persists please contact website administrators."
When I look at the logs I get several problems as you can see in the attachment.
First I get a php error with the message:
"mysql_real_escape_string() expects parameter 1 to be string, array given in /home2/utprepco/public_html/utprep/includes/database.mysql.inc on line 330."
Then I get a Zencoder error saying:
"Zencoder reports errors while converting fox13-1.mp4:
Width must be a positive integer.
Height must be a positive integer.
Height must be greater than 16.
Width must be greater than 16.And then last I get another Zencoder error saying:
Failed to queue file sites/default/files/videos/original/fox13-1_1.mp4 to Zencoder.
It is just odd that it works, then it doesn't work, then it works... It happens more often when I create a fresh node rather than editing an existing node.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | report.png | 163.64 KB | utprep |
Comments
Comment #1
utprep commentedComment #2
Jorrit commentedAre there any errors before the mysql error?
Can you post a screenshot of the job page for this job in the Zencoder control panel? Or is this job not visible in Zencoder?
Comment #3
utprep commentedThe php error is the first thing that comes up before anything. In Zencoder it appears there are no visible jobs for this video.
Comment #4
Jorrit commentedIt is very hard to find out what the source of that MySQL error is, because there is no stack trace. I have a solution for this, but that requires the Logging and Alerts module (http://drupal.org/project/logging_alerts). Using that module, you receive an e-mail every time an error occurs, optionally with a stack trace. Is it possible for you to install this module and wait for an error to occur?
Also, when you edit a node that has a failed video, what value is selected as the video transcode dimension? Is it the first one in the drop down?
Comment #5
utprep commentedI went ahead and installed the alert module, and tried like seven times with my admin account to upload a video and every single one was successful (I never thought I would be mad about something working). So I logged in with an authenticated user account and I finally got the error when uploading.
Here is the email related to that php/mysql error:
Here is the first Zendoder error message:
Followed by the second Zencoder error:
As far as the dimensions in the videos, I used the first of the dropdown list, however it's a customized value of 425x350 I entered in manually (basically the size of a YouTube video)
Comment #6
Jorrit commentedThanks for your quick response! Logging & Alerts is a very useful module, I use if for all my Drupal sites.
I think I've found the problem. Could it be that the authenticated user does not have the
override player dimensionspermission?In any case, I've fixed the bug in 6.x-5.x-dev.
Comment #7
utprep commentedThe problem with giving the user that permission is I don't want to allow the user to have the option to pick a custom size, I want every user to use the default. Will the new dev release allow me to keep users using the default and still avoid this problem?
Comment #8
Jorrit commentedI did not mean that you should give that permission, I mean to check if your setup is like I think it is.
The current dev release (2012-Feb-25) should allow you to keep your settings the same and not have this bug.
Comment #9
utprep commentedLooks like that did the trick! Thanks!
Comment #11
gjmokcb commentedI'm having exactly this problem with latest version and latest dev version. No problem with user 1, but authenticated user can only upload if the override dimensions permission is set to yes, which is not workable for my site.
Comment #12
Jorrit commentedIs this the error that you are receiving?
Warning: Division by zero in _video_aspect_ratio() (line 432 of /var/www/drupal6/sites/video5.drupal6.local/modules/video/video.module).Comment #13
Jorrit commentedI have found the problem and committed a fix. Can you try the next 6.x-5.x-dev release? It will be online within 12 hours.
Comment #14
Jorrit commentedClosed because of lack of response.