[Elgg 1.8-1.12 & 2.X: iZAP Videos - revised edition by iionly] v1.9.1

Release Notes

Same changes as in version 1.8.1 to work on Elgg 1.9:

  • Fixed a previous "fix" with handling of deletion of videos within the delete method of the IzapVideos class to correctly call the parent's class (ElggFile) delete method.
  • Made the lightbox popup in the river "nicer" by setting a max-width to not fill the whole width of the screen if not necessary.
  • Hi @ionly ,

    Thanks for the Plugin . 

    I enabled the plugin to my Elgg version 1.8.19 and it seems that everything works but is converting to no avail.

    FFmpeg installed with sucess and working: but with a error PHP Interpreter:

    exec()   Required to execute the commands.
    cURL support   Required for fetching the remote feed.
    PDO_SQLITE Support   Required to manage queue by sqlite database.
    PHP interpreter test Fail PHP interpreter not found.
    (Make sure the path in the "Path for the PHP interpreter" input field on the "Settings" tab is correct)
    FFmpeg   FFmpeg 0.6.5libavutil 50.15. 1 / 50.15. 1libavcodec 52.72. 2 / 52.72. 2libavformat 52.64. 2 / 52.64. 2libavdevice 52. 2. 0 / 52. 2. 0libavfilter 1.19. 0 / 1.19. 0libswscale 0.11. 0 / 0.11. 0libpostproc 51. 2. 0 / 51. 2. 0
    Simple command  
    Tested with avi format only.
    upload_max_filesize 25MB The maximum size of files that PHP will accept for uploads. Increase in .htaccess if necessary for larger files.
    post_max_size 15MB Needs to be at least as large as upload_max_filesize. Better set it a bit larger than upload_max_filesize in .htaccess to be able to handle a slight overhead that might occur.
    max_input_time 60 The time in seconds PHP will wait when receiving file data/uploads. Set it large enough in .htaccess. Setting it to "0" means no limit.
    max_execution_time 30 The maximum time in seconds a script is allowed to run before it is terminated. Set it large enough in .htaccess. Setting it to "0" means no limit.
    memory_limit 520M Memory limit for a PHP thread. Set the limit high enough in .htaccess to allow processing of the largest to be expected files by ffmpeg.

     

    The video uploaded stand in line, I  configured a value of 5 minutes but does not convert:

    Queue status: Not running (1)

    hallbook_com_br_izap_videos_1413818093_ATIVA.mp4
    hallbook_com_br_izap_videos_1413818093_ATIVA_c.flv

     

    Please, Can You Help me ?

    Thanks a lot .

    1.56 MB
    0 B

     

    Ple

     

  • @juniorhallak Are the other lines apart from PHP green? If not, you would need to install the corresponding packages on the server.

    I guess FFMPEG is installed as it shows the version information. Though this version of FFMPEG is very, very old. If possible I would suggest to install a more recent version. Example of version output on my test server for FFMPEG:

    ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developersbuilt on Oct 6 2014 10:05:27 with gcc 4.8 (SUSE Linux)configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutlslibavutil 52. 92.100 / 52. 92.100libavcodec 55. 69.100 / 55. 69.100libavformat 55. 48.100 / 55. 48.100libavdevice 55. 13.102 / 55. 13.102libavfilter 4. 11.100 / 4. 11.100libavresample 1. 3. 0 / 1. 3. 0libswscale 2. 6.100 / 2. 6.100libswresample 0. 19.100 / 0. 19.100libpostproc 52. 3.100 / 52. 3.100

    Not everything showing up here is necessary. Important would be having libx264 installed for being able to use the optimized command given as example on the settings tab

    Now to the PHP problem. We can assume that PHP is installed on your server (otherwise Elgg wouldn't work at all...). Therefore the reason for the fail is most likely a wrong path to the PHP interpreter given on the settings tab. "/usr/bin/php" is just a default path that is not necessarily correct on all servers. You could try for example "/usr/local/bin/php" instead. Or you might want to ask your webhoster support where PHP is installed. Re-try, when no errors are shown anymore.

    You should also increase post_max_size (currently 15M) in Elgg's .htaccess. It's smaller than upload_max_filesize (currently 25M). The variable upload_max_filesize is the maximum filesize PHP will allow for uploads and post_max_size must be at least the same size (better set it a bit larger, e.g. 10M more). Depending on the which filesize you want to allow at maximum, you might also have to increase max_input_time and max_execution_time. Best would be to do some testing to figure out what might be necessary.

  • Thanks very Much, @iionly

    The problems was same with PHP interpreter .

    Now is working fine but with low quality video.

    Regards :)

    Great Work.

  • @juniorhallak It's quite impossible to give parameters for ffmpeg conversion that work for everyone. It's a matter of video quality and resolution vs. file size of the converted video. Additionally, the ffmpeg parameters depend on the version of ffmpeg installed on your server.

    The simple command should work in any case but won't give high quality results. The optimized command displayed below the Video converting command input field on the settings tab sets the bitrate (-b) and video resolution (-s) of the converted video to some mid-range quality settings. Though the video resolution and bitrate might be too low for watching a video in fullscreen. The preset (-preset medium) is also a parameter you could play with.

    I would suggest to play with the settings to find the best compromise for your site. Documentation of ffmpeg is at https://www.ffmpeg.org/documentation.html.

  • I can't use this plugin.

    I always get this error:

    Fatal error: Call to undefined function elgg_namespace_plugin_private_setting() in /home/milocker/public_html/nine/engine/classes/ElggPlugin.php on line 357

    PHP version:

    5.4.27

     

    I use elgg 1.9.2 Version - 2014050600

     

     

  • Strange.

    Found the issue. Turns out that Izap Videos doesn't seem to like PHP version 5.4.27. After I changed to PHP 5.3 worked as expected.

    Under PHP 5.4.27 everything was broken. Even the language file was not detected and the Izap settings page showed me a "invalid admin section"

    Can anyone else confirm whether or not this plugin is compatible with PHP 5.4.27?

  • Great plugin, is it possible to have the same statistics/links as the tidypics plugin (the right column)?

  • Shouldn't there be a link/title to the video when someone comment on?

  • @RJ (Arvixe) and who else might come across the error

    Fatal error: Call to undefined function elgg_namespace_plugin_private_setting() in /home/milocker/public_html/nine/engine/classes/ElggPlugin.php on line 357

    when enabling the plugin:

    This is not a php issue but due to a bug in Elgg core (in 1.9). The error occurs only on Elgg 1.9 if there has been a previous version of the official izap_videos plugin installed. I've already reported the bug (https://github.com/Elgg/Elgg/issues/7335) and hopefully it will be fixed in Elgg 1.9.5. For now I suggest to fix the problem on your own. It's easy as you only have to rename the function name "elgg_namespace_plugin_private_setting" to "_elgg_namespace_plugin_private_setting" in engine/classes/ElggPlugin.php in lines 357 and 358. Afterwards you should disable/re-enable izap_videos again to get the fix take effect. Then you might have to adjust the plugin settings again.

    summary of river entries when commented on a video is indeed wrong. I'll have it fixed in the next release. Thanks for reporting.

    @Jocke Static pages like in Tidypics (most viewed, most commented, etc.) is indeed my plan. I might not have it added in the next version but I will work on it for sure.

  • @iionly great to hear. Thank you

  • The error occurs only on Elgg 1.9 if there has been a previous version of the official izap_videos plugin installed.

    It was on a clean elgg 1.9.2 install. Just core plugins and Izap_Videos.

    I just don't feel comfortable changing core files. However why if using php 5.3 the plugin has no errors?

     

  • @RJ (Arvixe) The error is in the Elgg core function elgg_unset_all_plugin_settings() where it has been forgotten to change the name of a function used when the name of this function was changed everywhere else in Elgg 1.9.

    The function elgg_unset_all_plugin_settings() is used by izap_videos only in activate.php which is only executed when enabling the plugin. Additionally, this part of code in activate.php should only get executed when a older version of izap_videos had been installed before, so I don't know why the error should occur for you when this has not been the case.

    Php version is not relevant. I'm using php 5.4 myself. As I said the error only occurs when enabling the plugin but later on it works fine.

  • Hi iionly, does this plugin allow me to link / embed videos from youtube without havin to need ffmpeg installed etc..? i only want to be able to link videos from other sites and have them play through mine.

  • @Vextah Yes. That's possible. You can add "off-server" videos from Youtube, Dailymotion and Vimeo without ffmpeg installed.

  • Hmm i activated this and site went white, address bar reads 'mysite.co.uk/action/admin/plugins/activate?plugin_guids[0]=5068&__elgg_ts=1414988928&__elgg_token=21f81a8c3b4f6775ef45decc868707a0'

    Click 'back and says activated. Goto activity, click video and it says

    • videos
    • Vex
    •  

     

    izap_videos:notfound

  • Running 1.9.3 with Magazine theme.

  • @Vextah The white screen on enabling the plugin is due to a bug in Elgg core as I already explained above. In Elgg 1.9.5 the bug will be fixed. I hope it will get released soon.

    I'm not sure what you exactly mean with the activity page issue but I assume it doesn't load correctly on your site anymore after enabling iZAP Videos. Right? If that's the case, have you already tested if any other 3rd party plugin used on your site causes the problem with iZAP Videos enabled? Does the problem also occur with no other 3rd party plugins in use temporarily?

  • On the activity page, or anywhere where u can 'upload' a video, if you click to add a video, the following screen says the above. Tried with all other plugins disabled. The issue all stems from the core bug u mentioned, when activating this plugin, it only half starts it, hence white screen and error.

    • videos
    • Vex
    •  

     

    izap_videos:notfound

  • @Vextah The core bug should only be relevant on activating the plugin because the core function containing the bug is only used in activate.php of iZAP Videos. You could flush the cache to see if this might solve the issue with the uploading page not being displayed correctly. On plugin activation/deactivation the cache would normally get flushed automatically but maybe this doesn't happen due to the bug.

    In case you had any previous version of iZAP Videos installed you also must delete the old version from the mod directory before installing the new version. Otherwise it could happen that any files from the old version that are no longer included in the new version result in problems.

    Let's hope that Elgg 1.9.5 gets released soon. I've a new version of iZAP Videos waiting to be released since last week anyway but I don't want to make the situation even more confusing by releasing it before Elgg 1.9.5 is out.

Stats

  • Category: Media
  • License: GNU General Public License (GPL) version 2
  • Updated: 2019-2-26
  • Downloads: 5853
  • Recommendations: 19

Other Projects

View iionly's plugins