Installed piwigo-videojs in Piwigo 2.6, but I can only see the thumbnail. The video does not show.
I did this:
- install plugin
- upload galleries/video/video.webm + galleries/video/pwg_representatitve/video.png
- run tools/synchronize
- run plugins/videojs/synchronize
I can see the thumbnail, and when I click on it, the player appears with the rotating logo, but the video will not star to play.
Documentation is "rumentary", so I may have overlooked something - or what?
thx
geewee
Offline
Documentation is "rumentary"
Please specify what you wish to see in the documentation.
Does your Browser return the correct mime-type as the documentation specify.
https://github.com/xbgmsharp/piwigo-vid … -or-piwigo
Please output a 'wget' or 'curl' header output.
Do you get all details correctly display when you go on the photo-edit page of the video?
https://github.com/xbgmsharp/piwigo-vid … photo-edit
Can you reproduce the problem using this video (http://vjs.zencdn.net/v/oceans.webm) following the same sync process.
https://github.com/xbgmsharp/piwigo-vid … ronize-tab
It is more likely an encoding issue.
Browser are very tricky on this.
Offline
Believe it or not, but after the third try the video plays. However, there still seem to be issues:
Running "$ wget -Sv -O /dev/null http://myhost/galleries/videos/video.webm" resulted in the message: "SyntaxError: ; missing before statement", so I added this in .htaccess:
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm
SetEnvIfNoCase Request_URI \.(og[gv]|mp4|m4v|webm)$ no-gzip dont-vary
VideoJS sync returns error "You ask me to do nothing, are you sure?" and detailed info "file: ./galleries/videos/video.webm". I do not have mediainfo and ffmpeg installed on the webspace server, so I created the thumbnail manually.
VideoJS tab in Photo Edit shows errors:
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /mypath/myhost/plugins/piwigo-videojs/include/mediainfo.php:32 Stack trace: #0 /mypath/myhost/plugins/piwigo-videojs/include/mediainfo.php(32): SimpleXMLElement->__construct('') #1 /mypath/myhost/plugins/piwigo-videojs/admin/admin_photo.php(71): include_once('/mypath...') #2 /mypath/myhost/admin/plugin.php(56): include_once('/mypath...') #3 /mypath/myhost/admin.php(289): include('/mypath...') #4 {main} thrown in /mypath/myhost/plugins/piwigo-videojs/include/mediainfo.php on line 32
Hope I haven't forgotten any detail and this helps to narrow down the problem.
I have then taken your oceans.webm file and uploaded/synch'ed likewise with identical resuts: video plays, errors on properties tab.
Offline
I have same behavior like geewee wrote. But unfortunately no self healing after third try...
I'm testing it with oceans.webm.
Until now I have checked mime type with wget as suggested. It returns i.e. Length: 22074728 (21M) [video/webm].
Sync process create a thumbnail pict.
When I click on it player appears and only shows loading sign, no video.
Apache log shows:
client denied by server configuration: /srv/www/piwigo/galleries/Ausflug/1000_test/oceans.webm, referer: https://server.me/galerie/picture.php?/ … tegory/264
During sync process video is found, but player does not.
What is wrong?
Any help appreciated.
hk
Offline
You apache log explain you why.
hk wrote:
Apache log shows:
client denied by server configuration: /srv/www/piwigo/galleries/Ausflug/1000_test/oceans.webm, referer: https://server.me/galerie/picture.php?/ … tegory/264
Please refer to, http://wiki.apache.org/httpd/ClientDeni … figuration
Offline
Thanks for the update and sorry for the delay.
As you don't have mediainfo and ffmpeg installed, the message is expected.
There is nothing to be done. You have to do it manually.
mediainfo is used to read the video metadata and to import than PWG.
ffmpeg is used to create the thumbnail.
A normal PWG sync is enough as you do create the thumbnails manually and you don't want videos details information.
The VideoJS tab in Photo Edit use mediainfo, therefor the error is expected. I will add a check to avoid running it if not present.
geewee wrote:
Believe it or not, but after the third try the video plays. However, there still seem to be issues:
Running "$ wget -Sv -O /dev/null http://myhost/galleries/videos/video.webm" resulted in the message: "SyntaxError: ; missing before statement", so I added this in .htaccess:
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm
SetEnvIfNoCase Request_URI \.(og[gv]|mp4|m4v|webm)$ no-gzip dont-vary
VideoJS sync returns error "You ask me to do nothing, are you sure?" and detailed info "file: ./galleries/videos/video.webm". I do not have mediainfo and ffmpeg installed on the webspace server, so I created the thumbnail manually.
VideoJS tab in Photo Edit shows errors:
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /mypath/myhost/plugins/piwigo-videojs/include/mediainfo.php:32 Stack trace: #0 /mypath/myhost/plugins/piwigo-videojs/include/mediainfo.php(32): SimpleXMLElement->__construct('') #1 /mypath/myhost/plugins/piwigo-videojs/admin/admin_photo.php(71): include_once('/mypath...') #2 /mypath/myhost/admin/plugin.php(56): include_once('/mypath...') #3 /mypath/myhost/admin.php(289): include('/mypath...') #4 {main} thrown in /mypath/myhost/plugins/piwigo-videojs/include/mediainfo.php on line 32
Hope I haven't forgotten any detail and this helps to narrow down the problem.
I have then taken your oceans.webm file and uploaded/synch'ed likewise with identical resuts: video plays, errors on properties tab.
Offline
I'm having a somewhat similar issue but I'm unable to do anything with VideoJS. When I click submit the "Submit" button on the syncronize page to create my thumbnails and allow the HTLM5 video playback, I simply receive the error "You ask me to do nothing, are you sure?". And that's all. No matter what album I choose I get the same error. FFmpeg and mediainfo are installed so I'm unsure what is keeping piwigo from generating the thumbnails and playback options. I thought it may be due to PHP limitations but I've removed them (basedir is unlimited now). Anyone know what may be happening? There's nothing in the error log, unfortunately.
Janky Jay wrote:
I'm having a somewhat similar issue but I'm unable to do anything with VideoJS. When I click submit the "Submit" button on the syncronize page to create my thumbnails and allow the HTLM5 video playback, I simply receive the error "You ask me to do nothing, are you sure?". And that's all. No matter what album I choose I get the same error. FFmpeg and mediainfo are installed so I'm unsure what is keeping piwigo from generating the thumbnails and playback options. I thought it may be due to PHP limitations but I've removed them (basedir is unlimited now). Anyone know what may be happening? There's nothing in the error log, unfortunately.
Scratch this... I got the executables to be recognized (not sure what changed...) Anyhow, no matter what album I choose (even my "media" album which is all videos), it displays:
0 video(s) selected
0 video(s) with metadata added
0 poster(s) created
0 thumbnail(s) created
0 warnings during synchronization
0 errors during synchronization
I am unable to create thumbnails or playable videos in my media gallery. Anyone know why? I've tried numerous different options and I can't seem to figure out what I'm missing. Aside from this, piwigo seems to be a fantastic replacement for Gallery(Menalto)! Great work!
The message "You ask me to do nothing, are you sure?" appear if you the plugin could not find the require binary to do the job.
You don't need them, you can generate the all find manually if prefer.
To allow the sync from the plugin you need to allow the system PHP command.
Some Hosting company might prevent the use of external program call from PHP. This plugin use the PHP system() and shell_exec() call.
https://github.com/xbgmsharp/piwigo-vid … m-not-root
Did you add the video using PWG upload or sync first.
- run tools/synchronize
- run plugins/videojs/synchronize
If you see "0 video(s) selected" it is more likely because the video are not seen by PWG. It is a SQL query.
Offline
Hi xbgmsharp,
Thanks for the info! I'm thinking the problem may be that all the videos are not in a supported format. So, I'm currently converting them all (to mp4). I'll then try it again and let you know the outcome.
Fortunately, this is my own server so I have 100% control over the Apache/PHP access. Everything appears to be in order so I'm hoping the above resolves the issue. Thanks again!
I was able to get it all working after I converted the videos to mp4. Thanks again for the help and great work on Piwigo, guys!