Dolphin 7.2.0 - Youtube Embed Issue

I just upgraded from Dolphin 7.1.6 to 7.2.0

 

When I try to embed Youtube video in the Video section
...videos/albums/my/add_objects/NewFolder/owner/admin 

I tried to embed this video to a newly created folder called "NewFolder"

https://www.youtube.com/watch?v=YE-YXe3na9o

 

I got an error -"File upload failed".

 

-----------------------------

 

Then I tried this fix.

https://github.com/boonex/dolphin.pro/commit/e4f1037d0471dc8ae2a0046fefc5563b2aba709f

 

 

Still no change.

 

Any suggestion will be appreciated.

 

Thanks

 

 

 

Quote · 15 Oct 2015

I have the same problem running 7.2.1.  Did you find a solution?

Quote · 3 Nov 2015

I have the same problem running 7.2.1. ???

Quote · 3 Nov 2015

I think it's because you're using the wrong URL - try this: https://youtu.be/YE-YXe3na9o 

 

Works on mine (see attached)

Capture.PNG · 141.1K · 364 views
Quote · 3 Nov 2015

I take that back - I tried your version of the link and it worked fine on mine as well.  Disregard.

Quote · 3 Nov 2015

This does not work either.

https://youtu.be/YE-YXe3na9o 


Asked Dolphin support and no useful answer.

Paid a Dolphin developer to troubleshoot.

 

I contacted Hostgator and now just waiting.

 

He told me this.

-------------------------------

The problem with video uploading is in ffmpeg utility, for some reason it doesn't work correctly on your server. And I'm unable to fix this because this is a purely server-side problem. I suggest you to:
1) either contact your hosting support (Hostgator) and ask them whether there is a built-in ffmpeg utility on your server and if there is then what is the proper path to that executable so we can try it instead
2) and/or contact boonex support with the error report given below and ask them for a fix or updated version of an ffmpeg utility.

Output log:

...flash/modules/global/app/ffmpeg.exe -y -i ...flash/modules/video/files/2378_temp.jpg -vf crop=out_w=in_h -s 240x240 -ss 0 -vframes 1 -an -f image2 ...flash/modules/video/files/2378_temp_small.jpg

ffmpeg version 2.7.1-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2015 the FFmpeg developers

  built with gcc 4.9.2 (Debian 4.9.2-21)
  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect
 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis
 --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray
 --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr
 --cc=gcc-4.9
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, image2, from '/home/............../flash/modules/video/files/2378_temp.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 4999 kb/s
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 480x360 [SAR 1:1 DAR 4:3], 25 tbr
, 25 tbn, 25 tbc
[AVFilterGraph @ 0xafdbd80] Error initializing threading.
[AVFilterGraph @ 0xafdbd80] Error creating filter 'crop'
Error opening filters!



Quote · 3 Nov 2015

There is a limitation of your hosting account, there is a limit on the threads user can have. You need to contact your hosting to raise or remove this limit for you.

You can try to run the following command to see the limit:

ulimit -u

 

[AVFilterGraph @ 0xafdbd80] Error initializing threading.
[AVFilterGraph @ 0xafdbd80] Error creating filter 'crop'
Error opening filters!

 

Rules → http://www.boonex.com/terms
Quote · 4 Nov 2015

I had this issue on 7.21 and changed permissions to 777 for the file /flash/modules/global/app/ffmpeg.exe

Quote · 4 Nov 2015

pacifik...mine was already at 777.

 

AlexT, where do I try the command?..as in do I need ssh access?
ulimit -u
 

Quote · 4 Nov 2015

Ok I had a completely different issue after upgrading.  AlexT in another thread just helped me fix that issue.  Fixing this issue inadvertently also fixed my video upload issue.  The problem is that after upgrading you must be running PHP 5.4 or higher which you all know and probably already are.  However your cron job must also be updated.  For example. My cron path was /usr/local/php5/bin/php /home/www/mysite.com/periodic/cron.php when as of now with 7.2+ I have to make sure my cron referenced the file path to php5.5 or 5.4 depending on what you use and its file path location.  Yours will most likely be different than mine. I simply had to update my cron file path to php like this /usr/local/php5.5/bin/php /home/www/mysite.com/periodic/cron.php

 

Video uploads work now.  No more failed error messages.  Here is the thread https://www.boonex.com/forums/topic/BxDolImageResize-php-errors-via-cron-after-upgrade.htm

 

Not even sure if it is related but I found it odd that video embed works now. Hope this helps someone.

Quote · 4 Nov 2015

Update:  I had 2 sites with this same problem with one small difference.  The site that now works used to pop up  a message saying file upload failed.  It appears fixing my cron line fixed this.  My other site was doing the same thing except for no error message was popping up.  Instead you simply clicked the button and nothing happens. I changed the 2nd faulty site from PHP 5.4 to 5.5 just so site #1  and site #2 are in the same environment.  I've updated the cron job path to recent php on the 2nd site, cleared the cache several times, and can not get it working.  If you look in "host tools" the site is already recognizing php 5.5 instead of 5.4.  I will wait till this evening to see if something still needs to propagate or something to work and I will try again.

Quote · 4 Nov 2015

Yes, type it in SSH, if web-server is running under the same user you are logging-in to SSH. But better to ask hosting support I think.

AlexT, where do I try the command?..as in do I need ssh access?
ulimit -u

 

Rules → http://www.boonex.com/terms
Quote · 5 Nov 2015

Sorry to keep posting but I finally figured this whole thing out.  I wanted to share because maybe it will help someone.  I run 2 dolphin pro 7.2.1 installs.  We will call them Site 1 and Site 2.  Both sites were not able to embed YouTube videos after updating to 7.2+. Both sites are running PHP 5.5.  The 5.4 environment reacts the same (I tried).

 

Site 1: Showed "file failed upload" error.

Site 2: Showed nothing. File simply would not upload.  After clicking the button nothing happens.

 

Site 1: Updated my cron path to php 5.5 and it started working.

Site 2: Updated cron path to php 5.5 and it changed nothing.  Embed continued to do nothing.

 

I then remembered that I had this issue a long time ago with "mod security" blocking video embeds. For those of you who run mod security on your server this might be your problem also. I had already applied a fix for this to Site 1 .htaccess file in the past so this is why it was working already after updating my cron and why Site 2 was not.

 

Before you get too deep into fixing this, you can first see if mod security is even the problem.  If you run mod security then you will most likely have an option in your hosting Cpanel that allows you to turn mod security on and off.  Turn it off for you domain and see if the video embed starts working again. If it starts working again then without a doubt a couple mod security rules are your problem.  If you do not have options to control your mod security options then contact your host and see if mod security is enabled for your domain.

 

Option 1:  You can just leave mod security off.  This option is acceptable but I prefer mod security any day if possible.

 

Option 2: To continue running mod security leave it turned on and add this code to the very top of your .htaccess file in the root of your site.  It must be at the very top of everything to work on most servers.

 

 

<IfModule mod_security2.c>
SecRuleRemoveById 340162
</IfModule>

<IfModule mod_security2.c>
SecRuleRemoveById 340163
</IfModule>

 

Save the .htaccess file and clear your cache in the admin panel.  Now make sure that mod security is turned on and try your video embed again.

Quote · 6 Nov 2015

An actual  EMBED code produces no desired results. Inserting a direct LINK (url) to n YouTube video works immediately. People usually prefer embed codes because you can specify that you DON'T want to see related video content after yours plays. However, inserting a LINK to video didn't happen to show other content afterward.

Quote · 14 Nov 2015

myhuntprofile,

 

Thanks for the suggestions.

I had my host (Hostgator) push PHP to 5.4
They changed the CRON to

*/22 * * * * cd /home/...../public_html/periodic; /opt/php54/bin/php-cgi -q cron.php

 

That did not work.
I will try your suggestion with mod_security now.

Thanks

vj 

Quote · 16 Nov 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.