Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Problem with video

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1668 Views
  • ardjan
    Avatar
    Community Member
    9 Posts

    Problem with video Link to this post

    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: 500

    Some 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!!

  • ardjan
    Avatar
    Community Member
    9 Posts

    Re: Problem with video Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with video Link to this post

    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.

  • ardjan
    Avatar
    Community Member
    9 Posts

    Re: Problem with video Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with video Link to this post

    Yup.

    DataObjectManager::$upgrade_video = false;

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with video Link to this post

    Sorry..

    FileDataObjectManager::$upgrade_video = false;

  • ardjan
    Avatar
    Community Member
    9 Posts

    Re: Problem with video Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with video Link to this post

    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.

    1668 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.