Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DataObjectManager Code Examples

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4 5 6 7 8 9 10 11
Go to End
Author Topic: 20560 Views
  • robotlon
    Avatar
    Community Member
    6 Posts

    Re: DataObjectManager Code Examples Link to this post

    Why in DataObjectManager_media_examples createThumbnail function don`t work property? My template display default_thumbnail only. Who can help advice?

  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager Code Examples Link to this post

    Have you confirmed that FFMPEG is installed?

  • robotlon
    Avatar
    Community Member
    6 Posts

    Re: DataObjectManager Code Examples Link to this post

    Yes. I can see message "FFMPEG is installed on your server and working properly. Code: 1"
    But thumbnail don`t work, only default_thumbnail.

  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager Code Examples Link to this post

    You can look in dataobject_manager/code/flv/ffmpeg_log.txt to see what FFMPEG commands are running. I believe the thumbnail gen commands start with "ffmpeg -i -y" or something like that. You might want to try running those shell commands and see what kind of result you get. Also, make sure the proc_open() function is made available to you by your hosting provider.

  • robotlon
    Avatar
    Community Member
    6 Posts

    Re: DataObjectManager Code Examples Link to this post

    Thanks for good advice. All works

  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager Code Examples Link to this post

    Easiest thing to do is write a little script .. maybe in your config.php that uses proc_open(). You should get an error saying you don't have access to that method. If it doesn't work, try using exec() and shell_exec() and let me know if those are open to you..

    It's becoming more of an issue that users' hosting environments are restricting the video functions. I need to rethink some of this for the next release.

    Also, you'll find the set_ffmpeg_root() function is useful. Some users have had to use an absolute path to the ffmpeg executable to get it to run, e.g.

    _config.php

    FLV::set_ffmpeg_root("/var/usr/bin/ffmpeg/");

    Or wherever it lives on your sever. You might have to ask your hosting provider, or there might be a unix command like "locate ffmpeg" you can use to find it. A lot of times, the server isn't set up right for calling "ffmpeg" just anywhere. It returns command not found without an absolute path.

  • robotlon
    Avatar
    Community Member
    6 Posts

    Re: DataObjectManager Code Examples Link to this post

    Thanks for all.    can you help me in another question? How I can change video player. I want to open video from my site using my player.
    thank again.

  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager Code Examples Link to this post

    This is a feature that I have in my plans, but is not implemented yet. In forthcoming versions, you'll be able to create plugins for specific players.

    20560 Views
Page: 1 2 3 4 5 6 7 8 9 10 11
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.