Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2012-06-24 16:14:06

pewe
Member
Registered: 2012-03-16
Posts: 361

New 'piwigo-videojs' Plugin

I have just installed this (in V2.4) and cannot seem to get it to work.

I ftp'd an mp4 to the 'galleries' directory putting it in a sub-diectory called 'videos'.

I ran a 'Database synchronization with files' and album 'Videos' was added - howe ver it was empty.

The configuration options for the plugin only allow a change of 'Skin' so apart from the instructions on the plugin page (which are not very many) I am at a loss.

Does anyone have any other information about how to get this plugin to work, and what it should actually be doing??

Last edited by pewe (2012-06-24 16:21:38)

Offline

#2 2012-06-24 19:20:19

ddtddt
Piwigo Team
Location: Quetigny - France
Registered: 2007-07-27
Posts: 6075

Re: New 'piwigo-videojs' Plugin

what browser ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

#3 2012-06-24 20:22:07

pewe
Member
Registered: 2012-03-16
Posts: 361

Re: New 'piwigo-videojs' Plugin

I had a problem with both FF13 and IE 9.

After various attempts to sychronize, and following various errors I now have th 'video' album showing (but no thumbnail), but when I try to play the video the following error appears

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 2270 is not allowed to access /tmp owned by uid 0 in /home/domain.com/piwigo/plugins/piwigo-videojs/include/getid3/getid3.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at /home/domain.com/piwigo/plugins/piwigo-videojs/include/getid3/getid3.php:22) in /home/domain.com/piwigo/include/page_header.php on line 105

However, Safe mode is definately 'OFF' on the server.

ALSO, the video plays when clicked in IE9 (BUT there are no player controls so no way to pause, stop, or replay), but NOT in FF13 - the screen stays blank.

Last edited by pewe (2012-06-24 20:25:58)

Offline

#4 2012-06-25 10:01:05

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

Hello,

Thanks for the feedback.

The first release of the plugin was badly package in a result of non installable.
It is fixed it, however the version is still show 0.1 in the admin panel.
I will change it to 0.3 when I go the thunbnail working.
However I am missing documentation on how to use the new system.
Specially they are now generate, which is more complex from a video.

I will also try to add the translation for the admin menu even if there is not too much.

To ensure you video is correct you might want to check on a separate page. See videojs.com for details

Last but not least, getid3 is use to video information.

I will improve documentation.

Offline

#5 2012-06-25 12:04:31

pewe
Member
Registered: 2012-03-16
Posts: 361

Re: New 'piwigo-videojs' Plugin

Thanks xbg.

I have now somehow got over most of my problems.

When I upload a mp4, and run 'synchronise' most of the time the video is added. I had to make dure there is no 'white space' in the name othewise the import to the album does not work.

I also discovered that the skin setting in 'preferences' has to be 'tubecss' otherwise the player controls do not appear on playback.

I do still have a problem with playback.
I have imported 3 mp4 videos. One plays OK in both FF and IE, the other two play in FF but not IE. The problem videos are downloaded from youtube and are 360p video.

In FF, the 'play' button has to be clicked twice to start playback, and in IE clicking 'play' has no effecr no matter how many times it is clicked.

Two questions
1. How are thumbnails created

2. Is the plugin capable of playing HD video or high-res mp4 (ie 1920x1080). If not, will it be possible to play these in the future.

Offline

#6 2012-06-25 14:01:21

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

hello,

Test your video using this builder http://videojs.com/tag-builder/

I have updated the extensions page with a TODO if anyone wants to help.
http://piwigo.org/ext/extension_view.php?eid=610

I am currently improving the documentation, here is a preview.
* The vdieo clip must be a support format and must contain no space or special carater.
* The poster must have the same size of the video and must be in thumbnail directory and call 'TN-NAMEOFTHEVIDEO.YOUREXTENSION' it can '.png' or '.jpg'. Will change in next version however.
* The orignal video size is keep as long as it is below 720px width.
If the video is HDReady (1280*720) or FullHD (1920*1080), the video will be scale via an impressive math formula (divide by 2).
The display resolution will for HDReady will be 640*360 and for FullHD 960*540.

Independant note from the plugin or piwigo:

* Ensure your server is using the correct mime-types. Firefox will NOT play the Ogg video if the mime-type is wrong. Place these lines in your .htaccess file to send the correct mime-types to browsers

AddType video/ogg  .ogv
AddType video/mp4  .mp4
AddType video/webm .webm

* Some web hosts, in trying to save bandwidth, gzip everything by default—including video files! In Firefox and Opera, seeking will not be possible or the video may not play at all if a video file is gzipped. If this is occurring to you please check your server / hosts and disable the gzipping of Ogg and other media files. You can switch off gzipping for video files in your .htaccess file by adding this line:

SetEnvIfNoCase Request_URI \.(og[gv]|mp4|m4v|webm)$ no-gzip dont-vary

* More reading at http://camendesign.com/code/video_for_everybody

Offline

#7 2012-06-25 14:45:49

pewe
Member
Registered: 2012-03-16
Posts: 361

Re: New 'piwigo-videojs' Plugin

Thanks for all the information - very useful.

Unfortunately I know nothing about coding and am not a programmer or I would offer my help, but hopefully some of the experienced coders will pitch in.

I am still experiencing some issues with playback, but before commenting on them I will try some of the suggestions you have made and have a question.

The .htaccess file you refer to - should this be placed in the Piwigo root directory, or somewhere else such as the plugins directory or the piwigo-videojs directory.

Offline

#8 2012-06-26 16:23:20

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

the webser configuration can be done in the .htaccess or in the main configuration of Apache.
If using the .htaccess, it would need to be place in the root directory of Piwigo.

If the video works using the link i send you, then i have a bug.

Offline

#9 2012-06-26 18:16:50

pewe
Member
Registered: 2012-03-16
Posts: 361

Re: New 'piwigo-videojs' Plugin

Thanks.

I have uploaded 4 videos 3 of which are the same video but are 360/720/1080 formats.

They all work in FF, but in IE9 there are problems.
Sometimes they play in IE9, other times they will not.

I used the link you gave to test the videos using both FF and IE.
They work ok in FF, but will not load at all in IE9.

As they work in FF I conclude that the videos and your plugin are OK, and the problem is a lack of IE9 compatibility with HTML5.

Not sure where to go from here.

Offline

#10 2012-06-29 10:13:42

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

Could try this
http://stackoverflow.com/a/5021351
instead of type="video/mp4" I used type="video/x-m4v" and now it works in IE9 - silly!

Offline

#11 2012-06-29 12:17:55

pewe
Member
Registered: 2012-03-16
Posts: 361

Re: New 'piwigo-videojs' Plugin

I added the 'x-m4v' and the mp4 video now seems to work in IE9.

However I am confused because if the problem is on the server why does anothe html5 video player plugin play the videos perfectly in IE9 without the 'x-m4v' added to .htaccess.

Also, are there any plans to add the ability to play mp3 files to this plugin at some point?

Offline

#12 2012-06-29 17:55:34

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

Hello,

Good to know it woks.
There is other silly stuff about this plugin like, the data-setup attribute does not work if only one video.
It still young so it can be improve.
The videojs player does not support audio file.

Offline

#13 2012-06-29 18:31:45

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

New version release

- Removed: Windows CLR
- Changed: Tabulation layout in all files
- Improve: poster handling
- Added: mimetype support
- Added: Admin panel option for MAX_WIDTH and HTML5 video tags (Controls, Autoplay, Loop, preload)
- Added: translation support

Last edited by xbgmsharp (2012-06-29 19:59:56)

Offline

#14 2012-06-29 23:09:48

pewe
Member
Registered: 2012-03-16
Posts: 361

Re: New 'piwigo-videojs' Plugin

With the new release I get the following error when I go to 'Manage' the plugin in the Admin.

=======================
Notice: Undefined index: vjs_skin in /home/domain.com/piwigo/plugins/piwigo-videojs/admin.php on line 37

Notice: Undefined index: vjs_preload in /home/domain.com/piwigo/plugins/piwigo-videojs/admin.php on line 38

Notice: Undefined index: vjs_controls in /home/domain.com/piwigo/plugins/piwigo-videojs/admin.php on line 39

Notice: Undefined index: vjs_autoplay in /home/domain.com/piwigo/plugins/piwigo-videojs/admin.php on line 40

Notice: Undefined index: vjs_loop in /home/domain.com/piwigo/plugins/piwigo-videojs/admin.php on line 41

Notice: Undefined index: vjs_max_width in /home/domain.com/piwigo/plugins/piwigo-videojs/admin.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at/home/domain.com/piwigo/plugins/piwigo-videojs/admin.php:37) in /home/domain.com/piwigo/include/page_header.php on line 105

Offline

#15 2012-06-30 09:52:56

xbgmsharp
Member
Registered: 1970-01-01
Posts: 7

Re: New 'piwigo-videojs' Plugin

Humm interesting.
I don't have any warning.

I got it, it the first time you get to the admin panel and the new variable are not set.
I believe i need to do a plugin_activate() function to check the configuration.

Anyway to easyly solve the issue, unisntall and reinstall the plugin.

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013