Getting this error:
PHPVideoToolkit Error: Execute error. Output for file "/sites/default/files/public/videos/original/77.AVI" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | getFFmpegInfo.txt | 202.02 KB | anglo |
Comments
Comment #1
anglo commentedAttached data generated by getFFmpegInfo()
Comment #2
hpk commentedSame configuration and same error. I tried ffmpeg from command line and its working fine. Further, I chmoded all files directories to 777 but still the same issue.
Comment #3
hpk commentedHere's apache's error log:
Comment #4
maldo81 commentedI get similar error to hpk, the wierd thing is that the first time it goes through just fine, thumbnails get uploaded, lets me choose which one I want to use. Te second time I try to I get this message on a pop up window:
An AJAX HTTP request terminated abnormally.
Debugging Information follows.
Path:
/file/ajax/field_video/und/0/form-eUOjss_Dv97qh7AACjkQa_ijUZHSW21m78WBpOouI8Y
StatusText: n/a
ResponseText:
Fatal error: Call to a member function toGDImage() on a non-object in home/wavbange/public_html/profiles/octopus/modules/contrib/video/transcoders/TranscodersAbstractionFactoryFfmpeg.inc on line 145
ReadyState: Undefined.
If I go to the video folder the first one that worked is there and the subsequent attempts that fail the files are there including original, thumbnails, and converted files.
Comment #5
xenyo commentedRunning into this one too on a new install and looking into it.
Comment #6
ericopter commentedFor whatever reason the FFmpeg-php ffmpeg_movie::getFrame() method is not returning and object, therefore the toGDImage() method is failing. I will try to figure this out more, but for now have forced it to not use FFmpeg-php by changin line 134 in TranscodesAbstractionFactoryFfmpeg.inc from "if (class_exists('ffmpeg_movie')) {" to "if (false ) {".
This is causing it to use PHPVideoToolkit instead and seems to be working for now, however is throwing some "Strict" level errors.
I will update if I get FFmpeg-php to work.
Comment #7
ericopter commentedOk, I figured it out, at least if we are all having the same problem. It seems that it was only erring out on the last thumbnail. So..
The math on line 127 with the comment about adding the minus 1 to keep it from going past the last frame isn't enough. Method getFrame() is returning a null object because it tried to get the frame from past the end. I changed the value to 10 but have gotten it to work with 2. This keeps it grabbing for a frame that is still in the proper range.
I have further devised to reduce the number of frames by the number of depth in the loop, this seems to work
TranscoderAbstractionFactoryFfmpeg.inc Line 127:
$seek = ($duration / $no_of_thumbnails) * $i - $i;
Now it will knock of the number of frames from the end equal to the number of thumbnails requested.
Good luck!
Comment #8
sah62 commentedI don't know if this is the same problem or not, but I'm trying to get the video module working for the first time and am running into the same 'Fatal error: Call to a member function toGDImage() on a non-object in /home/user/public_html/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc on line 145' error when uploading a wmv file and "Number of thumbnails" = 1. I'm using ffmpeg 6.1. Any thoughts?
Comment #9
Jorrit commentedFixed in 7.x-2.x, for errors that were caused by the thumbnail formula.