Thaks for that. The latest FFMPEG is in fact set up on my server (a VPS with InMotion Hosting), and all of the PHP settings in your first link have been made. Please re-read my original post and see if it offers any clues.
Thanks,
Vince
Thaks for that. The latest FFMPEG is in fact set up on my server (a VPS with InMotion Hosting), and all of the PHP settings in your first link have been made. Please re-read my original post and see if it offers any clues.
Thanks,
Vince
vincebodie
Hi
i checked your site and can see the error : http://prntscr.com/jhyln2
FFMPED is not converting the videos on your server, kindly ask the hosting provider to look on the FFMPEG install on your server and the error log of it,
Also the PHP values are still same on your server.
Like : max_execution_time 30
Regards
I asked InMotion to look into this further, and this was their reply:
Hello Vince,
Thank you for contacting us.
The issues encountered appear to be related to the site software as when the command provided in the error is run directly from the command line the operation completes without issue.
root@vps15082 [~]# /usr/local/bin/ffmpeg -y -i /home/quinnguitar/public_html/images/video/originalvideos/705/gn1Ut2myneh.mp4 -vcodec libx264 -acodec aac -ab 64k -strict -2 -crf 23 -vf "scale=640:-2" /home/quinnguitar/public_html/images/video/videos/705/LpbslJad3Qn.mp4
ffmpeg version N-91046-g974eb4a 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 --enable-openssl --libdir=/usr/lib64 --pkg-config-flags=--static --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 19.101 / 58. 19.101
libavformat 58. 13.102 / 58. 13.102
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 22.100 / 7. 22.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/quinnguitar/public_html/images/video/originalvideos/705/gn1Ut2myneh.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp42avc1
creation_time : 2016-12-11T06:47:34.000000Z
Duration: 00:01:00.53, start: 0.000000, bitrate: 3503 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
Metadata:
creation_time : 2016-12-11T06:47:34.000000Z
handler_name : Apple Sound Media Handler
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1398x1048, 1596 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc (default)
Metadata:
creation_time : 2016-12-11T06:47:34.000000Z
handler_name : Apple Video Media Handler
Stream #0:2(eng): Data: none (rtp / 0x20707472), 1636 kb/s
Metadata:
creation_time : 2016-12-11T06:47:34.000000Z
handler_name : hint media handler
Stream #0:3(eng): Data: none (rtp / 0x20707472), 133 kb/s
Metadata:
creation_time : 2016-12-11T06:47:34.000000Z
handler_name : hint media handler
Stream mapping:
Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x179c0c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x179c0c0] profile High, level 3.0
[libx264 @ 0x179c0c0] 264 - core 155 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=15 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/quinnguitar/public_html/images/video/videos/705/LpbslJad3Qn.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp42avc1
encoder : Lavf58.13.102
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x480, q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc (default)
Metadata:
creation_time : 2016-12-11T06:47:34.000000Z
handler_name : Apple Video Media Handler
encoder : Lavc58.19.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
Metadata:
creation_time : 2016-12-11T06:47:34.000000Z
handler_name : Apple Sound Media Handler
encoder : Lavc58.19.101 aac
frame= 1814 fps=125 q=-1.0 Lsize= 8784kB time=00:01:00.53 bitrate=1188.7kbits/s speed=4.18x
video:8242kB audio:476kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.750084%
[libx264 @ 0x179c0c0] frame I:13 Avg QP:21.54 size: 12788
[libx264 @ 0x179c0c0] frame P:468 Avg QP:23.22 size: 7942
[libx264 @ 0x179c0c0] frame B:1333 Avg QP:25.52 size: 3418
[libx264 @ 0x179c0c0] consecutive B-frames: 1.5% 1.0% 1.8% 95.7%
[libx264 @ 0x179c0c0] mb I I16..4: 26.7% 55.0% 18.2%
[libx264 @ 0x179c0c0] mb P I16..4: 18.6% 29.1% 5.8% P16..4: 17.9% 6.8% 3.1% 0.0% 0.0% skip:18.7%
[libx264 @ 0x179c0c0] mb B I16..4: 1.3% 2.0% 0.7% B16..8: 24.1% 8.9% 2.5% direct:23.5% skip:37.1% L0:47.6% L1:48.2% BI: 4.2%
[libx264 @ 0x179c0c0] 8x8 transform intra:53.9% inter:70.0%
[libx264 @ 0x179c0c0] coded y,uvDC,uvAC intra: 34.9% 80.1% 60.8% inter: 10.8% 38.3% 9.0%
[libx264 @ 0x179c0c0] i16 v,h,dc,p: 49% 45% 3% 3%
[libx264 @ 0x179c0c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 38% 19% 3% 4% 3% 5% 2% 5%
[libx264 @ 0x179c0c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 43% 14% 2% 4% 3% 5% 2% 3%
[libx264 @ 0x179c0c0] i8c dc,h,v,p: 45% 40% 6% 9%
[libx264 @ 0x179c0c0] Weighted P-Frames: Y:1.1% UV:0.6%
[libx264 @ 0x179c0c0] ref P L0: 66.2% 9.6% 16.4% 7.8% 0.0%
[libx264 @ 0x179c0c0] ref B L0: 91.6% 6.7% 1.6%
[libx264 @ 0x179c0c0] ref B L1: 97.1% 2.9%
[libx264 @ 0x179c0c0] kb/s:1115.43
[aac @ 0x179a1c0] Qavg: 145.937
So, this appears to rule out any PHP settings as you mentioned. The server is able to do the conversion, just not through the cron link to JomSocial. Please look into this further, as this function is the sole reason we installed JomSocial in the first place.
Hello? I really need to get this working. One more bit of info to add to the mix, from an email from InMotion support:
The path to FFmpeg is /usr/local/bin/ffmpeg and the ffmpeg-php module is installed and available for all PHP versions on the server as shown in your phpinfo page. https://isurfedthere.com/phpinfo.php
root@vps15082 [~]# which ffmpeg
/usr/local/bin/ffmpeg
root@vps15082 [~]# ffmpeg
ffmpeg version N-91046-g974eb4a 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 --enable-openssl --libdir=/usr/lib64 --pkg-config-flags=--static --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 19.101 / 58. 19.101
libavformat 58. 13.102 / 58. 13.102
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 22.100 / 7. 22.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Hyper fast Audio and Video encoder
Based on the above I have the path to FFMPEG set to '/usr/local/bin/ffmpeg' in the JomSocial configuration.
More clues... after logging into the front end to check the status of a test video I uploaded, I found this in the 'pending videos' window:
When I click 'Play' the video shows up and plays just fine:
As another test I uploaded another video today. It also shows in Pending Videos, but unlike the other one it doesn't play. I can only assume that the other one was processed when InMotion ran their command line test, which leads me to believe that FFMPEG is working, but something is preventing the cron script from working.
It may also be noted that thumbnails have not been generated for either video. I believe this is part of FFMPEG's functionality, yeah?
vincebodie
Hi
I checked the issue with dev and its due to older version of FFMPEG is installed on your server/.
Kindly check http://ffmpeg.org/
If the video is not converted and cron is run you, it cam not pick thumbnail as the process is incomplete.
Kindly upgrade it to latest version and check.
Regards
I asked InMotion about this and they say they have installed the latest version:
Hello Vince,
Thank you for contacting us. I've re-installed ffmpeg using the rpmfusion packages for RHEL listed on ffmpeg.org/download.html. Are you still having problems? Can you have your JomSocial developer advise what version is required?
root@vps15082 [~]# ffmpeg -version
ffmpeg version 0.10.16
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
I am still getting the same response from the cron when I turn on email notifications:
Looking up quinnguitar.com
Making HTTPS connection to quinnguitar.comlynx: Can't access startfile https://quinnguitar.com/index.php?option=com_community&task=cron
When I acces the cron URL manually I now get the response shown in the attached screen shot.
vincebodie
Hi
I shared the details with dev team to look on this issue, Kindly allow us to check it,as its sunday and Team not present.
Thanks for your patience.
Update :
The ffmpeg location has been changed to /usr/bin/ffmpeg
but the version still using old version, ffmpeg version 0.10.16. for mp4 video need minimum ffmpeg version 2.1 or 2.2.
Kindly ask hosting provider to update it latest version so video got converted.
Video are converted by the FFMPEG and once they fully converted Jomsocial run the cron to fetch them.
Regards
OK, InMotion has reinstalled FFMPEG, here is their message to me:
Hello Vince,
I've recompiled FFMPEG to version 3.4.2. This should be good enough for what you need.
Here is the version output :
ffmpeg version 3.4.2 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 --libdir=/usr/lib64 --pkg-config-flags=--static --enable-nonfree --enable-shared --prefix=/usr
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
However, videos are still not being processed. I have tried running the cron command manually and I always get this:
[upl-image-preview url=https://member.joomlart.com/forums/assets/files/2018-05-22/1527024253-529799-screenshot-2018-05-22-at-22318-pm.png]
I have tried:
Ugh. What now?
Hi
Our developer checking the issue on site
It look some permission issue on Centos server.
if correct make sure following this instruction:
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
it can be permission issue.
Can you try to execute this commang from SSH terminal:
/usr/bin/ffmpeg -y -i /home/quinnguitar/public_html/images/videotest/originalvideos/706/FmhAArGn65h.mp4 -vcodec libx264 -acodec aac -ab 64k -strict -2 -crf 23 -s 640x360 /home/quinnguitar/public_html/images/videotest/videos/706/ovGD5e4VZG8.mp4
Also if still you have this issue We need SSH access to execute the comment, kindly edit details in first post and submit the details for staff.
Regards
OK, I successfully executed the terminal command. The output is pasted below. Please let me know if you need further SSH access.
Thanks,
Vince
ffmpeg version 3.4.2 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 --libdir=/usr/lib64 --pkg-config-flags=--static --enable-nonfree --enable-shared --prefix=/usr
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/quinnguitar/public_html/images/videotest/originalvideos/706/FmhAArGn65h.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2010-03-20T21:29:11.000000Z
encoder : HandBrake 0.9.4 2009112300
Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
encoder : JVT/AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x216b420] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x216b420] profile High, level 3.0
[libx264 @ 0x216b420] 264 - core 155 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/quinnguitar/public_html/images/videotest/videos/706/ovGD5e4VZG8.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
encoder : Lavf57.83.100
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x360, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
encoder : Lavc57.107.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 64 kb/s (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
encoder : Lavc57.107.100 aac
frame= 113 fps=0.0 q=29.0 size= 0kB time=00:00:04.22 bitrate= 0.1kbits/s speed=8.45frame= 166 fps=0.0 q=-1.0 Lsize= 208kB time=00:00:05.56 bitrate= 305.5kbits/s speed=6.35x
video:157kB audio:44kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.614840%
[libx264 @ 0x216b420] frame I:1 Avg QP:21.16 size: 19989
[libx264 @ 0x216b420] frame P:44 Avg QP:21.40 size: 2098
[libx264 @ 0x216b420] frame B:121 Avg QP:25.56 size: 392
[libx264 @ 0x216b420] consecutive B-frames: 1.2% 3.6% 3.6% 91.6%
[libx264 @ 0x216b420] mb I I16..4: 45.8% 28.7% 25.5%
[libx264 @ 0x216b420] mb P I16..4: 1.8% 0.5% 0.1% P16..4: 36.8% 7.4% 5.6% 0.0% 0.0% skip:47.8%
[libx264 @ 0x216b420] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 21.5% 1.2% 0.2% direct: 0.4% skip:76.6% L0:44.1% L1:53.0% BI: 2.9%
[libx264 @ 0x216b420] 8x8 transform intra:26.6% inter:69.2%
[libx264 @ 0x216b420] coded y,uvDC,uvAC intra: 29.2% 62.7% 31.7% inter: 3.0% 8.7% 1.2%
[libx264 @ 0x216b420] i16 v,h,dc,p: 0% 26% 1% 73%
[libx264 @ 0x216b420] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 31% 16% 5% 5% 4% 13% 3% 8%
[libx264 @ 0x216b420] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 31% 10% 5% 8% 6% 13% 4% 7%
[libx264 @ 0x216b420] i8c dc,h,v,p: 46% 39% 9% 6%
[libx264 @ 0x216b420] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x216b420] ref P L0: 62.9% 4.6% 21.6% 10.9%
[libx264 @ 0x216b420] ref B L0: 84.4% 10.8% 4.8%
[libx264 @ 0x216b420] ref B L1: 93.6% 6.4%
[libx264 @ 0x216b420] kb/s:230.99
[aac @ 0x2213140] Qavg: 113.492
Hi,
i am jomsocial developer. seem there is permisison issue with ffmpeg it self. your server using Centos?
could you please provide me SSH and Cpanel access detail? to tackle this issue more faster, I need to check by my self.
Regards,
Albert
albertusputra
OK, will do. First I have to get SSH properly set up with my hosting company. Do you need root access to the server or just for the cpanel acct for quinnguitar.com?
vincebodie
Hi,
for SSH i need root access. just in case if I need to re-install the FFMPEG. and please make sure non root user able to execute the FFMPEG
for cpanel I need to check at site settings, maybe any security module installed.
Regards,
Albert
Hello, I want to give you the login info, but the fields at the top of the page are not suitable for this type of information. How can I give you the info directly?
Thanks,
Vince
Hi did you get my email?
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