By Marcus Palmer on Wednesday, 02 March 2016
Posted in General Issues
Replies 47
Likes 0
Views 1.1K
Votes 0
Hi i'm having problems with the video upload feature of EasySocial, i've installed ffmpeg on my server and confirmed codecs and version. I've Input the path for ffmpeg in EasySocial Backend but i still get "Encoding 0%" on stream for all users.

Checked video upload size against file upload file and all is fine so I'm slightly confused on how to get this feature working correctly.

Can someone help

Thanks
Hi Marcus,

The login credentials doesn't seem to work for me. Can you please advise?
see snapshot: http://screencast.com/t/3vo8ivAjE
·
Wednesday, 02 March 2016 20:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Please use the details i sent, for some reason i removed you from Super Admin User Group. I have now re-added to super admin group..

Sorry about that!

·
Thursday, 03 March 2016 16:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marcus,

I am really sorry for the delay of this reply.

I've checked your video settings and it seems like EasySocial are not able to detect the correct path for your ffmpeg executable file. If the path is correctly detected, additional menu under the encoding menu will appear and allow you to modify the settings there. Refer my screenshot here, http://screencast.com/t/32zGDyaM9i .

Can you specify the correct ffmpeg path there and see how it goes?
·
Thursday, 03 March 2016 17:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I'll confirm look now....
·
Thursday, 03 March 2016 18:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marcus,

Keep us updated and see how it goes.
·
Thursday, 03 March 2016 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
ok checked path and i have set it to numerous ones as none seem to work

i have gone into cmd and confirmed
·
Thursday, 03 March 2016 18:35
·
0 Likes
·
0 Votes
·
0 Comments
·
And reset path to opt/local/bin/


Directory for ffmpeg is Drive/Plesk/VHOSTS/Domain/httpdocs/opt/local/bin/ffmpeg.exe
·
Thursday, 03 March 2016 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

We are still investigate on this issue, is it possible provide us with your SSH access?

You can put your SSH access into your first post, click on edit button and put in optional information field.
·
Thursday, 03 March 2016 20:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Updated!
·
Thursday, 03 March 2016 20:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Any joy on this?
·
Friday, 04 March 2016 18:18
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Marcus,

I am really sorry for the delay of this reply,

I've tried to connect with your SSH through the WinSCP but it seems like you provided that login credentials is not SSH access. Can you check again?

By the way, I have consult with my colleague regarding this, can you check my colleague reply on another post thread -> http://stackideas.com/forums/ffmpeg-plz-help , is it similar with this issue?

Because my colleague figured another customer who hitting this issue is because :

After some vigorous test on your site, it seems like the issue was caused by the ffmpeg returning the error 'unrecognized option crf' where it does not have 'libx264' installed. Refer below for the full output of the error.
ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.7 (Debian 4.7.2-5)
configuration: --disable-yasm
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
Unrecognized option 'crf'.
Error splitting the argument list: Option not found


Can you consult with your hosting provider and ask them to recompile the ffmpeg along with the command to enable the libx264 and see how it goes after that?


Can you consult with your webhosting provider regarding this as well?
·
Friday, 04 March 2016 20:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for the delay in my reply...


I confirm my hosting has installed FFMPEG but encoding video still does not work
·
Tuesday, 12 April 2016 21:07
·
0 Likes
·
0 Votes
·
0 Comments
·
ffmpeg output


Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>ffmpeg -version
ffmpeg version N-79277-g0c90b2e Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutl
s --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-li
bilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libo
pus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-li
bvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-li
bxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 20.100 / 55. 20.100
libavcodec 57. 34.100 / 57. 34.100
libavformat 57. 32.100 / 57. 32.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 41.100 / 6. 41.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
·
Tuesday, 12 April 2016 23:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marcus,

Not a problem . However it seems like the provided FTP access is no longer work for us and we did not see any SSH access details in this post.

Can you edit the main post above and re-provide us with your SSH access so we can check on the issue directly?
·
Wednesday, 13 April 2016 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Locating and providing now 5 mins
·
Wednesday, 13 April 2016 17:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Updated original ticket... "my server is Windows just so you know"
·
Wednesday, 13 April 2016 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Did you login to the site?
·
Thursday, 14 April 2016 05:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

I am sorry for the delay of this reply,

We still can't connect with your SSH server, I believe Windows server also have their own SSH server.

It would be best if you can consult with your webhosting provider how can we access this? Since you can connect this using Window command prompt, I believe that have a way to connect this from other computer.
·
Thursday, 14 April 2016 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
My remote server details is this what you require so you can access CMD?
·
Thursday, 14 April 2016 21:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I've updated original ticket
·
Thursday, 14 April 2016 21:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

I can connect with your desktop now.

I tried to manually run this command into your cmd, it seems like it shown me permission denied.

ffmpeg -y -i D:\Plesk\VHOSTS\educationalnetworkplatform.co.uk\httpdocs/media/com_easysocial/videos/33/b18d2f8490627d1a34b078a908fbafb3 -strict -2 -acodec aac -vcodec libx264 -crf 23 -ab 64k -vf "scale=-2:'min(ih,720)'" D:\Plesk\VHOSTS\educationalnetworkplatform.co.uk\httpdocs/media/com_easysocial/videos/33/update.mp4


You can take a look of your desktop and my attached screenshot.

Can you check your file permission from your server and keep us update?
·
Friday, 15 April 2016 17:30
·
0 Likes
·
0 Votes
·
0 Comments
·
2 mins
·
Friday, 15 April 2016 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
I've set the permission for you in plesk, please confirm you can now execute command
·
Friday, 15 April 2016 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
I ran command fine

·
Friday, 15 April 2016 17:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it fine, now hitting these following error :

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.


I suspect all of your current Joomla root folder directory is not set to writable permission, you can check my second attached screenshot below.

Can you temporary change all the folder permission to writable (without configuration.php file)?

By the way, when I save setting from your Joomla backend global configuration page, I also hitting the same error.
·
Friday, 15 April 2016 18:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Guess setting your permissions has thrown others off 1 sec
·
Friday, 15 April 2016 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Permissions have now been reset and can be confirmed via System Information...

Did you notice my update to original ticket?
·
Friday, 15 April 2016 18:36
·
0 Likes
·
0 Votes
·
0 Comments
·
PHP ERROR:


[15-Apr-2016 10:42:46 UTC] PHP Warning: fopen(D:\Plesk\VHOSTS\domain\httpdocs/media/com_easysocial/videos/40/d645920e395fedad7bbbed0eca3fe2e0.log): failed to open stream: No such file or directory in D:\Plesk\VHOSTS\domain\httpdocs\libraries\joomla\filesystem\file.php on line 330


[15-Apr-2016 10:42:46 UTC] PHP Warning: Division by zero in D:\Plesk\VHOSTS\domain\httpdocs\administrator\components\com_easysocial\includes\video\video.php on line 1785
·
Friday, 15 April 2016 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
These warning php error is just because the log file is not exist, hence fopen are not able to read it and this warning error is not related that main upload video issue.

By the way, I tried again execute this following command into your cmd, i still hitting the permission issue, can you check?


C:\FFmpeg\ffmpeg-20160409-git-0c90b2e-win64-static\bin\ffmpeg.exe -y -i D:\Plesk\VHOSTS\educationalnetworkplatform.co.uk\httpdocs/media/com_easysocial/videos/44/b18d2f8490627d1a34b078a908fbafb3 -strict -2 -acodec aac -vcodec libx264 -crf 23 -ab 64k -vf "scale=-2:'min(ih,720)'" D:\Plesk\VHOSTS\educationalnetworkplatform.co.uk\httpdocs/media/com_easysocial/videos/44/439edbd6.mp4
·
Friday, 15 April 2016 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
executed command fine
·
Friday, 15 April 2016 19:16
·
0 Likes
·
0 Votes
·
0 Comments
·
So strange, I execute again, I still hitting permission error.
·
Friday, 15 April 2016 19:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Check permission issue now please
·
Friday, 15 April 2016 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
I've executed the same command and left it on screen;) simply login to view the result
·
Friday, 15 April 2016 21:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

I've tried manually execute command from your server, it seems work fine.

But when I try troubleshoot again and upload a new video from your site, I noticed this log file shown up this error message. (/httpdocs/media/com_easysocial/videos/52/9a1158154dfa42caddbd0694a4e9bdc8.log)

Access is denied.


Do you familiar with this error message for Windows machine?

Also may i know if one of the component execute the ffmpeg command, which Windows server user permission it look for? Or is there a way to configure which user permission should refer for any time 3rd party execute this ffmpeg command?

- system
- users
- administrator
- other specific user

Perhaps you can try temporary set above all user permission to have full access (ffmpeg.exe file) then restart your server again and see how it goes?
·
Sunday, 17 April 2016 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Inspecting now;)
·
Sunday, 17 April 2016 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Response from hosting company

I have amended the permissions for all users regarding the FFMpeg folder, could the developer please try again?
·
Sunday, 17 April 2016 21:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

I've tested again, it seems like it still hitting the "Access is denied." error when the system trying to execute that ffmpeg command.

Okay, let's try following last 2 method :

Method 1 :
1. May i know your hosting company got reboot the server yet after adjusted all the user permission from these ffmpeg folder/files? If no, can you try reboot your server? Because I've checked again, it seems not all the user can able to access, especially execution permission, you can refer on my attached screenshot below.

Method 2 :
If above method already tried and still hitting the same issue.
May i know is it possible move this FFmpeg folder into your Joomla root folder (D:\Plesk\VHOSTS\educationalnetworkplatform.co.uk\httpdocs) and keep us update, I will do some testing there.
·
Monday, 18 April 2016 13:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Rebooting now
·
Monday, 18 April 2016 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok so permission set and still issue persists (check permission your end)

I'n now requesting a move of FFmpeg folder to dir requested...

Hope this works
·
Monday, 18 April 2016 19:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Ya, hopefully can work. Remember put inside the Joomla root folder ya.

Keep us updated then.
·
Monday, 18 April 2016 22:41
·
0 Likes
·
0 Votes
·
0 Comments
·
FFMPEG path moved....
Server rebooted

Path changed in easysocial to both D:\ and / nothing works
·
Tuesday, 19 April 2016 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
In fact just changed path to D:/ and i now see additional settings....

But still not encoding happening on front end
·
Tuesday, 19 April 2016 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Going to try to delete all the videos that are waiting to be encoded that did not previously work and see how i get on
·
Tuesday, 19 April 2016 01:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok i now get this error on frontend while trying to upload a video:

Step 1: Drag video into easysocial upload box
Step 2: nothing happens so i click share


Error: No video detected. Please upload a video or embed a video link to proceed.
·
Tuesday, 19 April 2016 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

I am sorry for the delay of this reply,

Ok i now get this error on frontend while trying to upload a video:

Step 1: Drag video into easysocial upload box
Step 2: nothing happens so i click share


Error: No video detected. Please upload a video or embed a video link to proceed.

I've tested this in your site, I unable to replicate this, because it detected what video I drag in the video form but it still hitting the same upload issue.

Then I checked back the log file from /httpdocs/media/com_easysocial/videos/68/a3f390d88e4c41f2747bfa2f1b5f87db.log , it still detected "Access is denied."

This log file is generate from this file php function -> JoomlaFolder\administrator\components\com_easysocial\includes\ffmpeg\adapter.php LINE 575 , When the system try to pass the command to your ffmpeg to execute, between the process then hitting the "Access is denied".

I've checked again from your remote desktop "ffmpeg.exe" user permission, it seems like 'easysocialmedia' user do not have full access, especially the execute permission. But I am not familiar with the Windows server user permission regarding the 'special permissions', is it when I allow this 'special permission' so that user should have full control? Perhaps you can consult with your webhosting provider to temporary change this user have full control permission (include Read & execute) then reboot server again.

If after you done, it still can't able to upload video, I would recommend you to switch your server to use Linux server.
·
Tuesday, 19 April 2016 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Investigating now
·
Tuesday, 19 April 2016 16:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Keep us update then.
·
Tuesday, 19 April 2016 19:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post