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

Video plugin for Elgg. Supports addition of both on-server and off-server videos.

Last updated
Recommended Releases
Elgg Release Download Date Links
4.34.3.0 (774.69 kB)2024-Mar-10
4.24.0.0 (774.63 kB)2024-Mar-10
4.14.0.0 (774.63 kB)2024-Mar-10
4.04.0.0 (774.63 kB)2024-Mar-10
3.33.3.2 (705.3 kB)2020-Sep-01
3.23.0.1 (699.92 kB)2020-Aug-23
3.13.0.1 (699.92 kB)2020-Aug-23
3.03.0.1 (699.92 kB)2020-Aug-23
2.32.3.7 (698.73 kB)2020-Aug-18
2.22.0.1 (1.39 MB)2016-Aug-09
2.12.0.1 (1.39 MB)2016-Aug-09
2.02.0.1 (1.39 MB)2016-Aug-09
1.121.10.9 (530 kB)2017-Feb-19
1.111.10.9 (530 kB)2017-Feb-19
1.101.10.9 (530 kB)2017-Feb-19
Show all releases

Attention please: not yet working on PHP 8!!! Working on PHP 7 only so far!!!

Video plugin for Elgg. Supports addition of both on-server and off-server videos.

This version of the iZAP Videos plugin is based on version 3.71b of the original iZAP Videos plugin for Elgg 1.7 developed and released by iZAP Web Solutions. This present version of the iZAP Videos plugin works independently of an external feed server. Compatibility with an original version 3.X of the official iZAP Videos plugin should exist. If switching from an original version 4.X of the official iZAP Videos plugin also works has NOT been tested. It might work or not. If the Widget Manager plugin is installed, a Latest videos plugin for the index page is available. With Elggx Fivestar plugin installed users can rate the videos.

You need to have the curl, pdo and sqlite php extensions installed and working on your server.

There are three video options available in this present version of the iZAP Videos plugin:

1. Off-server videos:

This option allows to embed videos for specific sites by providing the videos' url from the original site. For this option to work cURL has to be installed on the server to allow for connecting to the original site. The feed is not processed by any external feed server but still the original site the video is hosted on has of course to be contacted. This option is currently available for videos of

  • Dailymotion.com,
  • Vimeo.com and
  • Youtube.com (requires an Google API key for Youtube Data API v3)

2. On-server videos:

This option allows uploading of videos directly to the server the Elgg site is hosted on. There are some additional requirements to be able to use this video option:

  • for Linux servers only (it might work on Windows servers but this is untested),
  • FFMPEG must be installed and working,
  • PDO-sqlite php extension must be installed, enabled and working,
  • Supported video formats: avi, flv, 3gp, mp4, wmv, mpg and mpeg (other formats might works, i.e. are supported by FFMPEG, but this hasn't been tested and therefore such other formats are currently declined on upload),
  • Maximum file size for uploads possible depend on server settings of upload_max_filesize, post_max_size, max_input_time, max_execution_time, memory_limit and by how much webspace you can provide. For support of uploading of larger videos you have to increase the variables to suitable values,
  • All uploaded video files are converted to MP4 format with support of HTML5 video playback by Video.js. As long as the users have a moderately modern browser installed they should be able to view the videos (no Flash or other plugin required on client side),
  • Conversion of uploaded videos is triggered by a cronjob and you must have configured the Elgg cronjob for the interval selected in iZAP Videos plugin settings.

3. Adding videos by Embed-code:

Theoretically, this option allows embedding of videos from any site by providing a (working) embed code. But usage of this option is RISKY and the htmlawed plugin bundled with Elgg will therefore filter out any such embed code. If you would disable the htmlawed plugin, the embed-code video option will work. But I can't recommend doing this because it would allow for embedding any code - and possibly also malicious code. Therefore, I ask you to use this option only within a safe environment (with only trusted users on your Elgg site) where you would be able to disable the htmlawed plugin safely. Otherwise, it's better to keep the embed-code video option disabled.

Installation

  1. Make sure that curl, pdo and sqlite PHP extensions are installed and working on your server,
  2. If any older version of the iZAP Videos plugin is installed, disable it on your site and remove the old plugin folder from the mod directory,
  3. Copy the izap_videos folder in your mod directory,
  4. Enable the iZAP Videos plugin on your site,
  5. Check the plugin settings ("Administer" - "Utilities" - "iZAP Videos") for a pending iZAP Videos-specific upgrade and configure the settings according to your likings. If you want to allow for on-server videos you need to have the necessary additional requirements described above fulfilled. For adding of Youtube off-server videos to work you need to register a Google API key.

Upgrading from a version older than 2.3.4

See also the iZAP Videos HTML5 Migration plugin at https://elgg.org/plugins/2802341.

With version 2.3.4 of iZAP Videos an old upgrade script was removed that was only necessary if you ever used the original iZAP Videos plugin (version 3.71b or older) and then moved over to my fork of iZAP Videos. If you have used and version of my fork of iZAP Videos starting from version 1.8.0 to 2.3.3 this upgrade script already. And if you started with iZAP Videos directly with any version between 1.8.0 and 2.3.3 the upgrade script was not needed anyway. So, if you are in doubt if you need this script, first upgrade to version 2.3.3, check if an "Upgrade" button is displayed on the plugin settings page and run it and only then upgrade to version 2.3.4.

With version 2.3.4 the iZAP Videos plugin makes use of the HTML5 video functionality. This means that the Flash plugin is no longer required. If you already have on-server videos on your site that were uploaded with a version older than 2.3.4 you need to install the iZAP Videos HTML5 Migration plugin to convert these existing videos to MP4 format. You also very likely need to adjust the ffmpeg conversion command for the conversion of new uploaded videos to work correctly. Mainly the audio codec to be used would have to be changed. If you have a conversion command in use that does not set the audio codec like

/usr/bin/ffmpeg -y -i [inputVideoPath] [outputVideoPath]

you should at least add the parameter -acodec aac so the command should be

/usr/bin/ffmpeg -y -i [inputVideoPath] -acodec acc [outputVideoPath]

If you used the optimized command

/usr/bin/ffmpeg -y -i [inputVideoPath] -vcodec libx264 -preset medium -b:v 330k -s 480x360 -acodec libmp3lame -ar 22050 -ab 48k [outputVideoPath]

change it to

/usr/bin/ffmpeg -y -i [inputVideoPath] -vcodec libx264 -preset medium -b:v 330k -s 480x360 -acodec aac -ar 22050 -ab 48k [outputVideoPath]

Of course, you can make other adjustments in the command as you like. But please make sure that the results of the video conversion works for you before using the iZAP Videos HTML5 Migration plugin to update all your existing on-server videos. I would suggest to test it on a separate Elgg test installation first.

Stats

  • Category: Media
  • License: GNU General Public License (GPL) version 2
  • Updated: 2024-3-12
  • Downloads: 10713
  • Recommendations: 19

Other Projects

View iionly's plugins