an
groups-icon

Generating Video Thumbnails – Information

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Robert Loszewski
    0 points
    Beginner

    So I’ve invested a ton of time and a good chunk of money working with two different companies to solve the problem of thumbnails not being generated upon uploading .flv and .mp4 videos. I finally have everything working now and thought I’d share the information here for others that may be experiencing the same issues.

    The problem is that my server, a CentOS 6 is running the latest version of PHP, 5.4.22 to be exact. The video responsive theme requires ffmpeg with ffmpeg-php. The problem is that ffmpeg-php is about 6 years old and no longer under development. It will not compile with newer versions of ffmpeg, so as a result, you have to use an older version of ffmpeg.

    The company I worked with did the following:

    We have installed ffmpeg-php we had to adjust the source code of the module so it would compile with php 5.4

    We also created the following symlink at /var/lib64

    ln -s libx264.so.107 libx264.so.68

    root@server2 [/usr/lib64]# ls -la /usr/lib64/ | grep libx264
    -rw-r–r– 1 root root 790042 Nov 12 2010 libx264.a
    lrwxrwxrwx 1 root root 13 Nov 22 14:49 libx264.so -> libx264.so.68*
    -rwxr-xr-x 1 root root 3091954 Dec 4 2010 libx264.so.107*
    lrwxrwxrwx 1 root root 14 Dec 13 14:55 libx264.so.68 ->libx264.so.107*

    The module wanted to load from libx264.so which pointed to libx264.so.68* , libx264.so.68 didn’t exist so we linked it to libx264.so.107

    The module is now being properly recognized by php and it will show on a phpinfo file :

    root@server2 [/usr/lib64]# php -i | grep -i ffmpeg
    ffmpeg
    ffmpeg-php version => 0.6.0-svn
    ffmpeg-php built on => Dec 13 2013 14:31:42
    ffmpeg-php gd support => enabled
    ffmpeg libavcodec version => Lavc52.20.1
    ffmpeg libavformat version => Lavf52.31.0
    ffmpeg swscaler version => SwS0.7.1
    ffmpeg.allow_persistent => 0 => 0
    ffmpeg.show_warnings => 0 => 0
    ———————————————————–

    That worked for .flv video uploads, but not .mp4 videos. They updated ffmpeg from 0.5.2-2 to 0.6.5-1 and now thumbnails are generated for .mp4 video uploads.

    Hopefully, this information will save others a lot of the headaches I went through.

    December 13, 2013 at 11:34 pm
  • Robert Loszewski
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    December 14, 2013 at 2:14 am

795

Views

1

Replies