iZAP-Videos, Full featured videos plugin v3.62b

Release Notes

Release 3.62b

This release is more concerned to the bugs we are getting requests to get resolve. I would request to all of you to get involve in this testing.

Enhancement

  1. New flash player for on server videos.
  2. Queue reset option from admin panel.
  3. Compatible with elgg (1.5.1, 1.6.2 and 1.7.1).

Fixes

  1. View counting issue.
  2. Better pdo_sqlite drivers loading.
  3. Now there should be no Warning, Notice in error.log by izap_videos. Let us know if you could find something regarding that.
  4. We worked to suppress even deprecation messages due to newer elgg versions. System will make function calls according to the version of elgg.

Release 3.61b

Cool enhancement

  1. We decided to removed "izap_videos" from URL. now you can enjoy urls like "www.xyz.com/pg/videos/xxxxx". Complete branding for you :).

Fixes

  1. Small fix in video play page for elgg 1.6.1 and elgg 1.5

Release 3.6b

In the previous release we added the support to monitor the actual ffmpeg process to be sure about if queue is running or not. But that was behaving different on different server configurations (dual core, cord core). Number of cores effect on the number of threads of ffmpeg and hence background processes. So that's why it was behaving differently on different flavor of servers. To over come this, we stop this monitoring and start to see the queue status via sqlite db. And i tested it alot here, and it's working perfectly and now we also restored windows support. WAMP is tested with this version.

Release 3.55b:

In the previous release, We got so many queries regarding intense database load of background process. And even some shared hosting providers having ffmpeg support banned some accounts because of eating of lots of database resources by the background processes. Reason of this was obvious, Queue is working in background and we were saving all queue elements as elgg object in database. And used elgg framework, we all know. Database is the thing where we need to take it seriously. And more over izap_videos plugin need to be optimized according to the demanding feature in almost every social networking site. So we solved this by using Sqlite queue management. To see result you can just try http://elgg.izap.in

How do we planned stability in this version:

In this version we have removed complex video conversion preset command and use simple ffmpeg command "ffmpeg -y -i [inputfile] [outputfile]". I setup a testing lenny instance of a server. than simply install ffmpeg using lenny package manager. And setup elgg with izap_videos. And it was working perfectly there was not any issue. Please post your feedback. And if it works for you. than post your server environment and give us one recommendation. As we will reach to the recommendation of 20. We will change this beta release to stable one.

  1. You can control plugin setting either you want to keep original video file after conversion
  2. Sqlite implementation to cut down all background processing.
  3. More control in queue management.
  4. Implemented Trash, This will just put videos in trash having any issue. it could be ffmpeg supporting libraries. Admin can delete them or can restore them after fix.
  5. Cron implementation to re-trigger queue in case of sudden interruption in the queue. You can manage cron timing according to your need.

Upgrading from previous release:

  1. Backup your database and izap_videos folder.
  2. Disable izap_videos plugin from your admin panel.
  3. Download and unzip izap_videos version 3.5 and place it in mod directory.
  4. Re-enable this new izap_videos plugin from you admin panel.
  5. You may need to re-enable ON-SERVER support from setting tab of izap_videos plugin settings.
  6. Clear simple cache.

New installation:

  1. Download and unzip the plugin in your mod dir.
  2. Enable it from admin panel.
  3. Clear simple cache.

ONSERVER Prerequisites:

  1. PDO sqlite drivers must be installed. This release and all future release will support queue management using PDO sqlite.
  2. ffmpeg and all supporting libraries.

Optional Prerequisites:

  1. notifications p lugin
  2. crontrigger plugin
  3. messages plugin

Optional plugins will give you better control over izap_videos plugin. These optional plugins are only required for ONSERVER support. If you leave them, izap_videos will yet to work with its basic functionality.

Bug fixes:

  1. Access control of uploaded video.
  2. Cutdown elgg-db communications to save resources
  3. Delete video entity will also delete all related media.

Compatiblility:

  1. Elgg 1.5
  2. Elgg 1.6
  3. Elgg 1.7a
  4. Elgg 1.7

Operating system compatiblity:

  1. *nix (confirmed)
  2. Windows (working perfectly tested with WAMP)

We are releasing beta release so we could collect feedback from all of you. Post your tickets at https://izapvideos.googlecode.com

I am twitting on: http://www.twitter.com/the_izap

I am blogging at: http://www.tarunjangra.com

Follow below our group discussion:

http://community.elgg.org/pg/groups/forum/340718

  • Hello.
    My version of Elgg is 1.7.1.
    Previously I had a problem with izap_videos as reflected in the logs of the system as a loop of calls, apparently was the subject of the tail. Wait for the new version of izap_videos and now as I enable the plugin again izap_videos manifest the same problem in the system logs.
    I tried to do an upgrade to the upgrade.php of izap_videos but I get error:

    "Fatal error: Call to undefined function datalist_get() in .../mod/izap_videos/upgrade.php on line 32"

    I suppose in some way is found in any database instance that makes the plugin izap_videos be misconfigured or something.
    This happens even though I have unchecked the option of video on the server.
    And just does not happen when you disable izap_videos.

    Any ideas or help with this?
    Sorry for my English.
    Greetings.

  • Maybe some new info regarding the problem that uploaded videos don't get converted, i.e. it's shown in the queue but not processed:

    Until last week I managed to get onserver videos running both in Elgg 1.6.2 and Elgg 1.7.1 with izap_videos 3.62b. It was not easy to get it running (as my former postings when I tried to explain what to do to gastre, ikpoho, elHayaze, Trajan showed...).

    Okay... onserver video support worked fine...

    This week I upgraded my test server linux installation and now the onserver videos don't work anymore - neither in Elgg 1.6.2 nor in Elgg 1.7.1. It's the same problem as described by others, i.e. the entry is shown in the queue, but it isn't processed. Uploading of FLV videos still works, ffmpeg also works from command line.

    Therefore, I believe the problem is caused by an incompatibility of izap_videos with some of the new server software. I'm just not sure which

    • Apache is 2.2.13 (hasn't changed).
    • Mysql is now 5.1.48 (was 5.0.?? before).
    • Php is now 5.3.3 (I believe it was 5.3.2 before).
    • Apache is configured with mod_php (was also used before).
    • Curl is 7.20.1 (I don't know if it has changed).

    There are two errors appearing in the server log:

    "trim() expects parameter 1 to be string, array given" in file <...>/engine/lib/database.php (line 615)

    and

    "curl_setopt() expects parameter 2 to be long, string given" in file <...>/mod/izap_videos/lib/curl.php (line 143)

    These errors might indicate that izap_videos has a problem with the server software that results in video conversion to fail.

    @IZAP:

    Could you please investigate this issue?

    @everyone:

    What are your server specifications, both in installations that work and installations that don't work? Maybe we can figure out which program / which version of a program is responsible by comparing out servers specifications.

  • @IZAP:

    You might want to take a look at this discussion thread about the pagination issue in Elgg 1.7 with izap_videos:

    http://community.elgg.org/mod/groups/topicposts.php?topic=538975&group_guid=340718

    Additionally, it would be nice to give us a bit more insight on the server requirements needed for onserver videos. The problem with the queue hanging might be due to some wrong settings. What versions of apache, mysql, sqlite, ffmpeg, pdo, php do you use for development and testing respectively? Could the problem be caused by more strict permission handling in newer versions of these software packages?

    As the upload works with all kind of videos, flv videos that bypass the queue work fine while the conversion doesn't even start with other videos at least in some installations it might be not a problem with Elgg or izap_videos but with some other server settings.

  • Possible solution for the hanging queue problem (it worked for me...)!!!

    The mysql socket file in my linux installation is now at /var/lib/mysql/mysql.sock, while php seems to look at /var/run/mysql/mysql.sock (you can check with phpinfo() what's up in your installation). Maybe there was a symbolic link in /var/run/mysql/ in my earlier installation pointing to /var/lib/mysql/mysql.sock - you can try to add such a link and maybe that's already enough.

    The other possibility is to define the location of the socket file in php.ini. I did it both in /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini (I don't know if it's necessary to add the information to this file, too).

    Search the php.ini file for "socket" and "port" (in my case the default port is 3306). You might also want to check my.cnf for the location of the mysql.sock file and your default port.

    After my system upgrade I had already added the information to the sections

    [MySQL]

    mysql.default_port = 3306

    mysql.default_socket = "/var/lib/mysql/mysql.sock"

    and

    [MySQLi]

    mysqli.default_port = 3306

    mysqli.default_socket = "/var/lib/mysql/mysql.sock"

    Before I made these changes I wasn't able to access my Elgg installations at all - mysql connection not working.

    As izap_videos uses PDO/sqlite additionally I suspected that there might be another conflict after my system upgrade.

    In php.ini there's also the section

    [Pdo_mysql]

    pdo_mysql.default_socket= "/var/lib/mysql/mysql.sock"

    This last change did it. Izap_videos onserver support / video conversion works again!

  • @All:
    Following is our road map of the next version of izap_videos having some bug fixes, some new features and code re-factorization.

    Upload status message.
    My favorite videos.
    Testing if the file are being removed on deletion.
    Pagination issue
    Forms re-writing
    Over all code re-factorization.
    Rating of videos.
    We are expecting to release it in this week. And from the next release we are going to stop commenting over elgg community. You will have to comment on http://izapvideos.googlecode.com issue tracker.
    Thanks for all your Feedback.

  • For some reason, this does NOT work great with my Elgg v. 1.7.1

    There's a conflict with any Tinymce I use. No one can save their profile as it looks in the preview window. Picture and such are not added when they click "save". It is ONLY a problem when this plugin is active.

    The profile that users has designed, simply turns into text. Not good.

  • I have tested it further. It's not a problem when users only design their profile with text

    but as soon at they via any TinyMCE adds a pic, then all text is transformed into what appears as notepad and have not got that picture added (though it was seen in the preview frame before hitting Save)

  • @Chrisstoffer:

    The problem you describe is caused by the izap_videos plugin defining (unnecessarily ?) stricter rules for htmlawed than core Elgg. Look at my posting above how to fix it.

  • I've problem in uploading QuickTime Movie(mov) files. it doesn't supported by izap_videos 3.62b.but ffmpeg working fine on this format.cld anyway to make this file format supported by the plugin.

  • I'm running it under 1.5 and the only problem I have is that the uploading video bar will not appear while a file is uploading.

     

    Oh and occasionally it will not capture a thumbnail from the video for some reason.

  • i ca tell this is going to take me awhile to setup on my test server.

  • The pain-in-the-butt part is installing ffmpeg on your server...

  • I found a solution to support extension "mov" files.

    add the 'mov' value in ..\lib\settings.php file following line then it's working.

    $IZAPSETTINGS->allowedExtensions = array('avi', 'flv', '3gp', 'mp4', 'wmv', 'mpg', 'mpeg');

  • looking very much forward to the update. :D go team go! :D

  • Hi,
    As always, many thanks for the pluggin.

    Is anybody else experiencing long delays in between uploading a video and the conversation taking place?
    Queue status: Not running is shown for a long time after upload.
    After approx 2 hours, the file is converted.

    Do you think my servers settings or .htaccess file need looking at?
    Thanks

  • That happens to some of my subscribers.. for no apparent reason the file will fail conversion.

  • your work is great, i love it really , but i was hope to see the new Youtube Upload API in the next release. any idea if this could be happen ??

  • .htaccess

    Hi, I have altered the .htaccess file of my site to allow bigger files to be uploaded and less exectution time.
    However, whenever I run the server analysis on Izap, the original settings are shown.
    It would, therefore, appear that the .htaccess amendments are not accepted.

    Has anybody else encountered this?

    Thanks

    upload_max_filesize 100MB The maximum size of files that PHP will accept uploads. Keep it bigger for big files.
    post_max_size 8MB Needs to be a small amount bigger or same, than upload_max_filesize for a file upload to work. Keep it bigger for big files.
    max_input_time 300 Determines how much time PHP will wait to receive file data. Keep it "0" for bigger file.
    max_execution_time 300 This sets the maximum time in seconds a script is allowed to run before it is terminated. Keep it "0" for bigger files.
    memory_limit 64M This is php main memory limit and it needs to be bigger enough for your bigger file need to process via ffmpeg
    upload_max_filesize 100MB The maximum size of files that PHP will accept uploads. Keep it bigger for big files.
    post_max_size 8MB Needs to be a small amount bigger or same, than upload_max_filesize for a file upload to work. Keep it bigger for big files.
    max_input_time 300 Determines how much time PHP will wait to receive file data. Keep it "0" for bigger file.
    max_execution_time 300 This sets the maximum time in seconds a script is allowed to run before it is terminated. Keep it "0" for bigger files.
    memory_limit 64M This is php main memory limit and it needs to be bigger enough for your bigger file need to process via ffmpeg
    upload_max_filesize 100MB The maximum size of files that PHP will accept uploads. Keep it bigger for big files.
    post_max_size 8MB Needs to be a small amount bigger or same, than upload_max_filesize for a file upload to work. Keep it bigger for big files.
    max_input_time 300 Determines how much time PHP will wait to receive file data. Keep it "0" for bigger file.
    max_execution_time 300 This sets the maximum time in seconds a script is allowed to run before it is terminated. Keep it "0" for bigger files.
    memory_limit 64M This is php main memory limit and it needs to be bigger enough for your bigger file need to process via ffmpeg
  • @elggfan:

    If Apache on your server uses suphp the php settings done via .htaccess are not used. You will have to adjust any settings in php.ini directly.

  • hi iionly,

    Many thanks for your reply.

    Apologies if I sound silly, but how do i adjust settings in php.ini ?
    I have found where the file is using phpinfo.php ( /usr/local/lib/php.ini ), but I am unable to get to it from my FTP software.
    There is no lib folder that I can see :(

  • @elggfan:

    It depends on your server configuration. Local or webserver? On a local server you should find the php.ini below /etc/php5/, for example /etc/php5/apache2. On a webserver it depends on what kind of access you have. As far as I know you can only see the current settings in php.ini via CPanel but not change them. If you have WHM access you can change the settings via  Main >> Service Configuration >> PHP Configuration Editor. Another possibility is to create a php.ini file in your Elgg root directory and define the php variables in this file. I haven't tried the latter option so far myself, so I don't know if this php.ini file will also work for php scripts called from subdirectories.

    If in doubt, ask your support. They should be able to tell you where to make the settings.

iZAP

We are leading elgg providers. We have implemented complex combination of applications like "elgg + elasticsearch + cloud infrastructure + comet server for active pages"

Stats

  • Category: Media
  • License: GNU General Public License (GPL) version 2
  • Updated: 2015-3-13
  • Downloads: 57822
  • Recommendations: 103

Other Projects

View iZAP's plugins