vincebodie
Hi
if its sent developer would get it, please allow us sometime, on weekend there is holiday and dev team is not present.
I appreciate you patience on this matter.
Regards
vincebodie
Hi
if its sent developer would get it, please allow us sometime, on weekend there is holiday and dev team is not present.
I appreciate you patience on this matter.
Regards
Hi,
sorry i unable to connect to your SSH by using private key. there is no respond from server. got time out message.
maybe any IP blocker?
here my IP 182.253.152.133
or any manual instruction about how to connect the SSH by using private key at your server?
Regards
Hi,
your sever using Centos, and its really complex. especially with permission access.
by using SSH the video able to converted by using FFMPEG, but when the FFMPEG executed by using PHP command. Centos not allowing it.
please asking your server support to re-configure the FFMPEG. maybe this topic can help:
https://superuser.com/questions/491047/ffmpeg-working-when-ssh-but-not-when-php-exec
I cannot make any changes at your server things, because I only provide support for JomSocial (not server support).
I hope you understand with this.
and one more thing, when execute "ffmpeg" at SSH terminal you can see warning message "WARNING: library configuration mismatch"
seem you need to reinstall the FFMPEG:
http://trac.ffmpeg.org/wiki/CompilationGuide/Centos
Regards
I sent InMotion another message requesting that they look into the "library configuration mismatch" issue, and here was their reply:
With regards to the permission issue, Apachec is running suphp and suexec, which runs processes under the user of the website account:
CT-15082-bash-4.1# /usr/local/cpanel/bin/rebuild_phpconf --current
Available handlers: suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installedIf the process is being called via PHP scripts or via CGI, then it should not have any permission issues reading or writing to the file directory whatsoever. Also, I have disabled an old repo called "nux-desktop" which installed a version of ffmpeg and supporting libraries, removed the installed version from the repo, installed the current one from RPM Fusion, as well as recompiled the ffmpeg and libraries:
quinnguitar@quinnguitar.com [~]# ffmpeg
ffmpeg version 0.10.16 Copyright (c) 2000-2015 the FFmpeg developers
built on Aug 26 2016 13:01:36 with gcc 4.4.7 20120313 (Red Hat 4.4.7-17)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...Use -h to get full help or, even better, run 'man ffmpeg'
When I use the cron URL, I see the following:
<messages><message>Could not convert video</message><message>No temporary videos to delete.</message><message>No files to transfer.</message><message>No Videos to transfer.</message><message>No avatars or cover of users needed to be transferred</message><message>No avatars or cover of groups needed to be transferred</message><message>No avatars or cover of events needed to be transferred</message><message>Removed Pending Invitation for Past Event</message></messages>
So as you can see, the cron still returns "<message>Could not convert video</message>".
MORE NOTES:
JomSocial is set up to store videos in "images/video". This directory currently holds a number of .mp4 files that were there before I installed JomSocial.
When I'm logged into the front end and I try a video upload, the formats that are acceptable are .mp4, .m4v, and .3gp. All other types of video files are grayed out.
When looking at the file structure on the server I see hundreds of .mp4 files with the file size of 0 bytes in this directory: "images/video/videos/705/" (my user ID is 705).
If I got to My Pending Videos there are two videos waiting for processing:
https://quinnguitar.com/student-area/705slimy/videos/video/25-vince-s-only-win
https://quinnguitar.com/student-area/705slimy/videos/video/24-always-somewhere
I have to say that I'm running out of patience with this. Why is it that I can install All Video Share on another site and have no issues with video uploads, and without having to deal with all of this FFMPEG command line stuff which is beyond the scope of many users such as myself?
There has to be a simple answer to this. I have been dealing with this issue for three weeks now, and the site owner is getting impatient. PLEASE MAKE THIS WORK.
Thanks!
Hi,
your ffmpeg version reverted to old one (ffmpeg version 0.10.16), please using at least version 2.2
you need to upgrade it, please using the source from http://ffmpeg.org/
video convert depending with ffmpeg and server it self. jomsocial only send the execute command to server by using php function (passthru or exec or shell_exec or system)
here the doc about Centos issue for FFMPEG:
https://www.dropbox.com/s/daaaax3ihsiu7xp/FFMPEGonaCentos6X.pdf?dl=0
or maybe you can try with other server that using Ubuntu, you can put staging site and try it. Ubuntu not too hard like Centos.
Regards
Hello again,
Here is InMotion's latest response:
I have removed the older ffmpeg version from the server and confirmed that the most recent version is currently installed. I have created a test folder with a test php script in your public_html which can be called from a browser to show that the program is installed and can be executed via PHP without error.
When I run the cron command manually I still get this:
<message>Could not convert video</message>
What now? Will this ever work?
Hi,
http://isurfedthere.com/ffmpeg_test/test_ffmpeg.php
that ffmpeg for PHP module. that module bring lot of problem for big video size.
jomsocial only using this http://ffmpeg.org/ that running under operating system (not as PHP module).
please login into your SSH and type, "which ffmpeg" to find ffmpeg location and put that location path at jomsocial video settings.
and to have a look ffmpeg version from SSH, you using this command "ffmpeg -v". for mp4 you need to using ffmpeg version greater than 2.0
Regards
It's still not working.
<message>Could not convert video</message>
Here is the output via SSH:
root@vps15082 [~]# which ffmpeg
/usr/local/bin/ffmpeg
root@vps15082 [~]# ffmpeg -v
ffmpeg version N-91208-ge50a5c9 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
configuration: --enable-gpl --enable-shared --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libass --extra-libs=-lpthread --libdir=/usr/lib64 --pkg-config-flags=--static --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 19.105 / 58. 19.105
libavformat 58. 17.100 / 58. 17.100
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 25.100 / 7. 25.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Missing argument for option 'v'.
Error splitting the argument list: Invalid argument
vincebodie
Hi
Its something from your server that does not convert the video well with FFMPEG, Jomsocial only fetech the video after conversion.
I suggest you to check the suggestion given by Albertus
our ffmpeg version reverted to old one (ffmpeg version 0.10.16), please using at least version 2.2
you need to upgrade it, please using the source from http://ffmpeg.org/
video convert depending with ffmpeg and server it self. jomsocial only send the execute command to server by using php function (passthru or exec or shell_exec or system)
here the doc about Centos issue for FFMPEG:
https://www.dropbox.com/s/daaaax3ihsiu7xp/FFMPEGonaCentos6X.pdf?dl=0
Its something very hard to detect the issue from server, Maybe you need ask the hosting provider to look on this doc as Centos has permission issue with FFMPEG.
Regards
I don't understand. Here is the version information I provided in my previous post:
ffmpeg version N-91208-ge50a5c9 Copyright (c) 2000-2018 the FFmpeg developers
Are you saying this version is not new enough to do the job?
albertus said:
"your ffmpeg version reverted to old one (ffmpeg version 0.10.16), please using at least version 2.2"
Pardon me, but I don't see anything like 0.10.16 or 2.2 anywhere in the terminal output. I do see "Copyright (c) 2000-2018" which makes me think it's a new enough version.
And what about this?
Missing argument for option 'v'.
Error splitting the argument list: Invalid argument
Please reply clearly as I don't understand these things easily.
Thanks
video convert depending with ffmpeg and server it self. jomsocial only send the execute command to server by using php function (passthru or exec or shell_exec or system)
here the doc about Centos issue for FFMPEG:
https://www.dropbox.com/s/daaaax3ihsiu7xp/FFMPEGonaCentos6X.pdf?dl=0
or maybe you can try with other server that using Ubuntu, you can put staging site and try it. Ubuntu not too hard like Centos.
Hi
The version was showing on the PHP file link you shared, For the Centos there is issue with FFMPEG this something that could not be fixed via Jomsocial as video were not converted on server, Could you try to ask hosting provider to look on the doc and change the server on Ubuntu that support FFMPEG fine.
Regards
Changing to a Ubuntu server is out of the question. I have many years of hosting and dozens of websites tied to this server, and the last thing I want to do is reconfigure it from scratch.
After reading up on the differences between CentOS and Ubuntu as web servers, CentOS is highly regarded for business use due to its higher levels of security. The ease of making changes to Ubuntu servers comes at a price of lesser security.
There must be others running FFMPEG and JS successfully on CentOS servers. It would also seem to me that a high level company such as yours would have someone in your staff with the ability to fix this issue. I have given you root SSH access, what else would you need? It's not like CentOS is that rare, in fact it has a very large install base.
And here's another thought... I did some research and this issue of video processing seems fairly prevalent among JS users. Is there not a way you could offer a paid service to process videos for your clients? It seems fairly simple to set up a portal that could do such a thing, and taking the hassle away from your clients is surely something that many of us would pay a little extra for.
Sorry, but I'm really disappointed by this situation. My client needs this functionality for his livelihood.
vincebodie
Hi
I totally understand your frustration of video not running on server, but its something on the server.
In start of discussion here in few posts i can see your server team installed the latest version but after that its again reverted.
There is no version listed with N
And the link you shared here is showing old version.
I also discussed with developer on it, its something need to be done on server side.
I suggest you to ask the hosting team,because conversion is not on server that result this issue.
Or you can try the zendecoder option in jomsocial Video settings.
Regards
Hi,
You mentioned that the link I shared shows the old version, but it says:
ffmpeg-php version string: 0.7.0
ffmpeg-php build date string: May 10 2018 21:56:54
So this version from one month ago is already too old? I'm sorry, I don't understand how this works.
I don't see any option for zendecoder, can you tell me where it is?
Last of all, as I mentioned before I have installed All Video Share on other Joomla sites and it works great. Why can something this simple not be used for JS?
Thanks
vincebodie
Hi
In 3rd party video module that process is different and handled via flash player. Jomsocial use the standard method to upload and convert videos. The version showing is not the FFMPEG. Please ask the hosting provider to look on this issue, because there is no Such version listed on FFMPEG site.
Regards
Thank you, I will inquire about why the version number is not showing correctly.
Here is InMotion's reply to my latest inquiry:
Thank you for contacting us. I am happy to assist you. From reviewing the notes and testing ffmpeg, in my estimation this issue is a coding issue. The reason for this is that we have confirmed the following:
- ffmpeg from the commandline converts the videos: this means this is not an issue with the ffmpeg version
- PHP exec /usr/local/bin/ffmpeg works from php: this means that PHP scripts can execute ffmpeg directly as seen here: https://quinnguitar.com/ffmpegtest.php
This indicates that the code is not calling ffmpeg correctly or trying to convert files that do not exist.
Hope this helps!
Vince
Hi,
seem your server support not understand how to tackle FFMPEG issue. I cannot make any changes at your server things. because jomsocial not provide server support.
at instalation steps, $HOME value very important, because when you install FFMPEG as root user the $HOME value by default is a "/root" so the FFMPEG only execute able for root user not PHP user.
so you need to changing it to '/usr/local' first before doing any installation steps for FFMPEG
ref:
https://superuser.com/questions/491047/ffmpeg-working-when-ssh-but-not-when-php-exec
I've had a similar issue and Yaroslav's answer helped me a lot to solve it. I happened to install ffmpeg with 'root' user to $HOME ('/root/') via http://trac.ffmpeg.org/wiki/CompilationGuide/Centos, which left ffpmeg not shared to the PHP user. I solved it reinstalling following the same guide but changing '$HOME' for '/usr/local', i.e., installing in a shared path. 'Magically' PHP can execute it too, now.
Your error "ffmpeg: error while loading shared libraries: libvpx.so.1: failed to map segment from shared object: Permission denied " seems pretty similar to me. I guess your libvpx may be installed with root permissions only. Although you could successfully execute your command in SSH terminal, PHP may not be able to execute it because it is run by a different user, as @Ярослав Рахматуллин has very well explained.
here the steps for FFMPEG instalation at Red Hat or Centos:
http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat
I checked your FFMPEG build location located at /root/ffmpeg_build and /root/ffmpeg_source.
Regards
Hi,
forget something, make sure your FFMPEG using version: 2.1 or greater.
Regards
Thank you, thank you, thank you. This sounds like the kind of answer we've been looking for all along. I will forward the info to them and report back here after.
Vince