7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Problem with video
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 1488 Views |
-
Problem with video

17 October 2009 at 3:32am
Hi,
I've been trying to fix this problem the whole afternoon, but without success.
I hope anyone out here is able to help me.I'm using the DataObjectManager to handle video files.
Uploading of PDF-, doc- and other files is no problem.
But when I try to upload one of the video files (flv, avi), I get the following error:An error occurred in the upload. Try again later. ..and..
There was a problem in the upload. The server did not accept it.The last lines of the SWF debug window are as follows:
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 500.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -200, File name: video.flv, File size: 216278, Message: 500Some facts:
- Server has FFMPEG installed and is working without problems (passes the SilverStripe-test).
- The file size does not matter. Huge PDF's are uploading correct, very small FLV-files are not.
- The movie files are uploaded to the correct assets-folder and the Files-table in the database is updated.
- The movie files are not displayed in DOM in the CMS.Can anyone please, please help me?...
Thanks a lot in advance!!
-
Re: Problem with video

18 October 2009 at 5:47am
Anyone, please...? UncleCheese...?
Maybe it has something to do with the handling of video files within the DOM (some sort of FLV-class).
It is possible to process FLV-files the same way as DOC- of PDF-files? I don't need a thumbnail of other special functionality. I just want the FLV-file to be uploaded and displayed in the manager.Thanks a lot!
-
Re: Problem with video

18 October 2009 at 9:18am
Follow the steps on troubleshooting here:
http://doc.silverstripe.org/doku.php?id=modules:swfuploadfield
Since you're not going to get verbose errors with Flash, the best you can do is find out the line of the code that is throwing the error. If you can figure that out, post it here. My guess is it's coming from within the FLV class because you're able to upload other file types without a problem.
-
Re: Problem with video

18 October 2009 at 9:34am
Thanks! I'm gonna give that a try.
Is it possible to treat FLV-files (and other video files) as normal files (doc, pdf, etc.)?
So that DOM won't use the FLV-class for those files?Thanks again!
-
Re: Problem with video

18 October 2009 at 10:30am
Sorry..
FileDataObjectManager::$upgrade_video = false;
-
Re: Problem with video

19 October 2009 at 2:37am
I've found the line which makes the script fail.
I found it using the debug method described in the docs (by moving die('hello') through the code).It's line 73 in code/flv/FLV.php: $process = proc_open($cmd, $descriptorspec, $pipes);
Do you have an idea why the script fails at that line?
Does it have something to do with server settings or folder locations?
And is there a way to make it work anyway?Thanks in advance!
-
Re: Problem with video

19 October 2009 at 4:29am
The next step is to obtain the values for those three variables.
die("cmd = $cmd, descriptorspec = $descriptorspec, and pipes = $pipes");
Then, in your _config.php, run:
proc_open("each","value","here");
die();See if you can get a nice PHP error.
| 1488 Views | ||
| Go to Top | Next > |

