Video conversion fails on CentOS 7 + PHP 7


#1

Hi guys,

Looking for your help here.

We’ve done a fresh install of CentOS 7 and PHP 7 + latest Clipbucket (clipbucket-4902.zip )
All modules are green in ClipBucket cb_mod_check.php
FFMPEG: Version 0.100
PHP CLI Version 7.2.3
Media Info Version 17.12
MP4Box Version 0.7.2
ImageMagick Version 6.7.8-9
FFProbe Version N-90268-g9fe61b6

FFMpeg coverts videos via CLI just fine:

ffmpeg

ffmpeg version N-90268-g9fe61b6 Copyright © 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=–static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread --extra-libs=-lm --bindir=/root/bin --enable-gpl --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-shared
libavutil 56. 8.100 / 56. 8.100
libavcodec 58. 14.100 / 58. 14.100
libavformat 58. 10.100 / 58. 10.100
libavdevice 58. 2.100 / 58. 2.100
libavfilter 7. 12.100 / 7. 12.100
libswscale 5. 0.102 / 5. 0.102
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Hyper fast Audio and Video encoder

All video conversions fail through Clipbucket with no meaningful messages. Last thing in the video conversion log is:
gen_240 : yes
gen_360 : yes
gen_480 : yes
gen_720 :
gen_1080 :

We’ve traced that script either hangs or halts at the line
$ffmpeg->ClipBucket();

in clipbucket/actions/video_convert.php

Any meaningful insight is highly welcome.

Thank you!


#2

Hello,

PHP version should be strictly 7.0, Kindly downgrade the PHP version.

Thank you.


#3

Thank you!

We’ve downgraded PHP to PHP 7.0.28 (cli).
Now we are facing a different problem. Videos are uploaded and then just disappear, nothing in the video manager.

We’ve drilled down into the code. Looks like utf8_encode is failing in functions.php in function isUTF8($string).

Would you recommend to fall back to php 5.6 altogether?


#4

For somebody who stumbles into this later, this function is provided by php-xml, so
yum install php-xml
and restart the webserver