Giter Site home page Giter Site logo

piwigo / piwigo-videojs Goto Github PK

View Code? Open in Web Editor NEW
61.0 16.0 43.0 7.24 MB

Videojs port for piwigo. Play your videos on your web gallery!

Home Page: http://piwigo.org/ext/extension_view.php?eid=610

License: GNU General Public License v3.0

PHP 1.49% Smarty 0.17% CSS 2.03% HTML 0.07% JavaScript 96.05% Less 0.20%

piwigo-videojs's Introduction

piwigo-videojs

Extend Piwigo with video support. Videojs port for piwigo. Play your videos in the HTML5 video tag on your web gallery!

Piwigo-videojs is a plugin for the Piwigo web gallery that allows you to render various video files within your piwigo install.

Installation

Upload this in your-gallery/plugins/ directory.

  • download the archive from github

      wget -O piwigo-videojs.zip https://github.com/xbgmsharp/piwigo-videojs/archive/master.zip
    
      unzip piwigo-videojs.zip
      
      mv piwigo-videojs-master piwigo-videojs
    
  • or clone the project

      git clone git://github.com/xbgmsharp/piwigo-videojs.git
    

Then, go to the admin site, in the plugin section and activate it.

Requirement

Piwigo-videojs require those 2 programs to be install on your system:

Please refer to the wiki for additional information.

Supported formats

Videos

  • webm,webmv
  • ogg,ogv
  • mp4,m4v

Usage

Basically, medias will be inserted in a same way as standard pictures.

Please refer to the wiki for additional information.

Support

To get support, please create new issue

Help me improve the plugin, rate my plugin, and if possible please send a greeting message to me ;)

Thanks

Licence

The piwigo-videojs plugin for Piwigo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See http://www.gnu.org/licenses/gpl.html.

piwigo-videojs's People

Contributors

bitdeli-chef avatar carlwo avatar erack avatar monadh avatar norbusan avatar osworx avatar piwigo-translationteam avatar plegall avatar tontonitch avatar tsmig avatar xbgmsharp avatar xyaren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

piwigo-videojs's Issues

piwigo-videojs on windows (7) now it works

After my comment on #42 I have more hours spent ty trying why I can't upload on Windows videos as normal photos. My explanations in the old comments are not quite right. The right solution I have found and want to explain it here. I hope that it will be useful to the Piwigo developers and give notes for her updates.

The declaration refers to piwigo 2.7.3 with VideoJS 2.7.a.

In /plugins/piwigo-videojs/include/functions_sync2.php must the single quotes in front of and behind the file/pathnames changed to double quotes.
Which is important for Windows when a blank is in the pathname.
All 4 lines in the source, where ffmpeg is called must be corrected to:

$ffmpeg = $sync_options['ffmpeg'] . " -itsoffset -" . $sync_options['postersec'] . " -i "" . $in . "" -vcodec mjpeg -vframes 1 -an -f rawvideo -y "" . $out . '"';

For videos without exif-data must the source-part, that the MySql-table updated, corrected to:
isset($sync_options['batch_manager']) ? $infos[] = $filename . ' metadata: ' . implode(",", array_keys($exif)) : '';
$sync_arr['metadata'] = count($exif) . " " . implode(",", array_keys($exif));
if ($sync_options['metadata'] and ! $sync_options['simulate']) {
$dbfields = explode(",", "filesize,width,height,latitude,longitude,date_creation,rotation");
$dbset = vjs_dbSet($dbfields, $exif);
$dbset = ($dbset !== FALSE && $dbset != '') ? ($dbset . ',') : '';
$query = "UPDATE " . IMAGES_TABLE . " SET " . $dbset . " date_metadata_update=CURDATE() WHERE id=" . $row['id'] . ";"; //print $query;
pwg_query($query);

In /plugins/piwigo-videojs/include/mediainfo.php must the mediainfo-call corrected to double-quotes (like the ffmpeg call):
$output = shell_exec($sync_options['mediainfo'] . " --Full --Output=XML --Language=raw "" . $filename . """);

In /admin/include/functions_upload.inc.php I have changed the function pwg_image_infos($path).
This is necessary because getimagesize() on php on windows no width and height for mp4 files returns. To determine the sizes, I use ffmpeg if getimiagesize() does not work:
(I use the newest ffmpeg version N-69060-gcd960c8 Copyright (c) 2000-2015 the FFmpeg developers built on Jan 14 2015 22:13:45 with gcc 4.9.2 (GCC))

function pwg_image_infos($path) {
global $conf;
$size = getimagesize($path);
if (($size === FALSE || $size == 0) && isset($conf['vjs_sync'])) { //use ffmpeg
$ffmpeg = unserialize($conf['vjs_sync']);
$ffmpeg_return = shell_exec($ffmpeg['ffmpeg'] . ' -i "' . $path . '" -vstats 2>&1');
$regex_sizes = "/\s([0-9]{1,4})x([0-9]{1,4})\s/";
preg_match($regex_sizes, $ffmpeg_return, $regs);
$size = explode('x', $regs[0]);
}
$filesize = floor(filesize($path) / 1024);
list($width, $height) = $size;
return array(
'width' => $width,
'height' => $height,
'filesize' => $filesize,
);
}

With these changes VideoJS an Piwigo works perfectly on my windows server.
I have another piwigo installation on a Qnap system (any Linux version).
There VideoJS works without all these changes, but I do not know why
because I have very little knowledge of linux.
I hope I could help many windows-users.

Photonensammler

Thumbnail creation: use overlay (or similar)

This plugin is just great. I use it for some weeks now and it really is what I was looking for 👍

There is just one minor thing came into my mind that would make this plugin even better:
It would be great if the generated thumbnails could use an overlay (or watermark or whatever you want to call it), which indicates that the thumbnail is used for a movie.
The first overlay that came into my mind is a movie-stripe, but maybe it would also be possible to have such an overlay configurable (so one can include a copyright note).

Right now I can only guess by name if a picture or movie is opened when I click onto an image in an piwigo album...

Use max_width as min_width ( or min_height ) ?

I have old videos like 640x480, it would be great if when choising 720p (1280 width) as max_width , the player would display it with a 720 height , thus 960x720

Would mean using Max_Width also as a Min_width ( or could be min_height )

this would enable all videos of a gallery , small or big to be displayed with the same height ( height is more important than width nowadays)

Warning: strpos(): Offset not contained in string in functions_url.inc.php on line 750

Hi

When I open a video file, I get the following warning:
Warning: strpos(): Offset not contained in string in /domain/piwigo/include/functions_url.inc.php on line 750

The video plays without issues but there is always a warning on the site (for videos only).

Apache Log:
PHP Warning: strpos(): Offset not contained in string in /domain/online/httpdocs/piwigo/include/functions_url.inc.php on line 750, referer: https://domain.com/piwigo/index.php?/category/3

Any ideas?

avconv support on debian jessie

ffmpeg is not available for debisn jessie, it instead has been replaced by avconv.

I have configured piwigo to use avconv, however posters do not work properly. Presumably the syntax is not similar enough between ffmpeg and avconv.

PHP warning when creating thumbnails for short movied

For some of my movies I get a php warning on thumbnail creation:

For some of my movies I get a php warning:

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 56 Warning: imagecreatefromjpeg(): './galleries/2012/2012-07-21/pwg_representative/00015.jpg' is not a valid JPEG file in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 56 Warning: imagesx() expects parameter 1 to be resource, boolean given in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 70 Warning: imagesy() expects parameter 1 to be resource, boolean given in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 71 Warning: imagecreatetruecolor(): Invalid image dimensions in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 76 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 78 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 79 Warning: imagecopy() expects parameter 1 to be resource, boolean given in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 98 Warning: imagejpeg() expects parameter 1 to be resource, boolean given in /media/Niko/www/piwigo/plugins/piwigo-videojs/include/function_frame.php on line 105

I guess this is because the movie which causes the error is only 1 second on length, but thumbnail creation should use image at second 2. Maybe a fallback would be great here (take last image if movie is not as long as needed).

Thumbnails are not rotate when video and poster are.

The thumbnails are not rotate when video and poster are.
You can reproduce the issue.

  • Take a portrait video.
  • Import in PWG and sync.
  • Enable rotation videojs plugin
  • go the video page, you see the video is rotate as expected as well as the poster.

Error poster running ffmpeg

Hello,
have done an update to Piwigo 2.7.1 and now I have a problem to create the poster for any *.mp4.
Have also an issue with the mediainfo.

When trying to create the poster
Got the following error:
Mediainfo error reading file: './BilderGalerie/Ausfluege_und_Events/2014/10_19_GutHixholz/2014_10_19_14_51_12_PA191178.mp4'
Error poster running ffmpeg, try it manually: ffmpeg -itsoffset -4 -i './BilderGalerie/Ausfluege_und_Events/2014/10_19_GutHixholz/2014_10_19_14_51_12_PA191178.mp4' -vcodec mjpeg -vframes 1 -an -f rawvideo -y './BilderGalerie/Ausfluege_und_Events/2014/10_19_GutHixholz/pwg_representative/2014_10_19_14_51_12_PA191178.jpg'

When running the ffmpeg manually, I get the error message that the file dos not exists.
'./BilderGalerie/Ausfluege_und_Events/2014/10_19_GutHixholz/2014_10_19_14_51_12_PA191178.mp4': No such file or directory

But it does

Please keep in mind that ./BilderGalerie is a softlink on Windows to a diffrent drive (f:).
With Piwigo 2.6.3 everytghing was fine. I have more than 26k photos and 1k *.mp4.

Using V2.7.a.
ffmpeg.exe (N-50911-g9efcfbe) is installed in c:\piwigo
mediainfo.dll and mediainfo.exe (0.7.70) ) are also installed in c:\piwigo
Checking the "synchronitazion screen" for this plugin shows me 2 green checkmarks for ffmpeg and mediainfo, so it seems that the plugin has found this tools.

Any hint is welcome.

Need update for Piwigo 2.7

When trying to activate on 2.7 :

Fatal error: Cannot redeclare deltree() (previously declared in /home/www/clients/client1/web7/web/admin/include/functions.php:2682) in /home/www/clients/client1/web7/web/plugins/piwigo-videojs/maintain.inc.php on line 157

Height / width seems to ba always divided /2 regardless of the settings

v1.0.1

I've been settin gthe max_width=FullHD (was on HD) and after resynchronising the folder the video (hd720) is still resized down ( width="640" height="360") so :

  • setting does not seem to apply
  • even on hd setting the video should not be resized as it shoud when height>720

Isn't this because width is use to be compared instead of height ? HD -> height 720 , fullHD -> height 1080

How to install with these two files required? MediaInfo and FFmpeg

I am confused. I am not currently a programmer, but familiar with information of where to put programs to make the main programs work. I have piwigo installed on my host machine with Globat which I believe uses the linux system. Works GREAT! I wanted to have videos work and found this newly updated VIDEOJS plugin and installed and activated. Then was informed need MediaInfo and FFmpeg. I downloaded these two files and ready to install and activate. But how to install and where? I tried to find instructions how and where to install them and no luck. I am using piwigo version 2.7.0.

I need step by step instructions how and where to install MediaInfo and FFmpeg.

Looking forward to any answers to this request.

Thanks,
Gary
gkroush (at) gmail.com

PS If need to see it, it is www.gkroush.com/piwigo/ I have only one video uploaded and will upload more when I am able to successfully see the video working when clicked on to play.

binary path

How must look a binary path. Give me please a sample.
Program Dependencies
• Mediainfo binary path
'MediaInfo' must be install to allow video metadata parsing.
• FFmpeg binary path
'FFmpeg' must be install to allow video thumbnail and poster generation.

my_video_1 width =0

I don't know why, but {$WIDTH} parameter at vjs-player.tpl file has value = 0 during runtime. It makes window to shrink to 0 size. There is no problem with {$HEIGHT}. It has default value of 480px.
I have hard-coded width = 720px in these 2 lines:

Videos must be manually synchronized

I can't get the plugin to auto synchronize the media I upload. Does it need another plugins to do this? I have the batch manager, at least.

I should also point out that I get errors when telling it to sync, however it still seems to go through and complete the request anyway. I have both ffmpeg and mediainfo installed and functioning.

This is the error I get:
Error poster running ffmpeg, try it manually:
/usr/local/bin/ffmpeg -itsoffset -1 -i './upload/2014/12/19/20141219234854-fb9c24ef.webm' -vcodec mjpeg -vframes 1 -an -f rawvideo -y './upload/2014/12/19/pwg_representative/20141219234854-fb9c24ef.jpg'

But also I get this saying it seemed to go fine:
./upload/2014/12/19/20141219234854-fb9c24ef.webm metadata: format,type,filesize,duration,playtime_seconds,bitrate,width,height,display_aspect_ratio,frame_rate
./upload/2014/12/19/20141219234854-fb9c24ef.webm poster: ./upload/2014/12/19/pwg_representative/20141219234854-fb9c24ef.jpg

Videos (I'm doing WebMs) do not appear and are not viewable until I manually run the sync.

Changing icon of non-supported videos

With videojs deactivated i have nice video icons for my AVI files. When videojs is activated, icon is changed to unknown file.

Icons are from /themes/default/icon/mimetypes/.

avi
unknown

No Recorded_Date in the meta information of the video files

From http://piwigo.org/forum/viewtopic.php?pid=158021#p158021

Hi,
my Galaxy S4 has no Recorded_Date in the meta information of the video files. I have to add the following lines in include/mediainfo.php, Row 126:

if (isset($general->Encoded_Date))
{
    $exif['date_creation'] = date( 'Y-m-d H:i:s', strtotime((string)$general->Encoded_Date));
}

With this, my videos has now also a creation date, one of the most important meta information for me.

Maybe you add these lines to the plugin also.

Best regards
Steve

PHP timeout on long video while creating thumbnails

Thanks to @photonensammler for reporting this issue.

PHP timeout on long video while creating thumbnails.

http://php.net/manual/en/function.set-time-limit.php

The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running. This is not true on Windows where the measured time is real.

Seen to be more a windows problem more than a Linux one.

This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

No access to mediainfo or ffmpeg

I use piwigo through a hosting company, and since it's shared hosting I apparently don't have access to mediainfo or ffmpeg. I have therefore created my poster images manually as your wiki describes, and I do see the image, but it is squished into a square rather than remaining the full size of the image and movie. Is that on purpose or can I change it? I also had to manually edit the main.inc.php file to create a fake default width and height, since it was erroring out on a divide-by-zero traceback since both width and height are reading incorrectly as 0.

Also, the thumbnails piwigo creates are just a default image of a film reel - is there any way I can manually create those as well, so that I can see what my movies are from the thumbnail rather than having to click on every movie to see what it is?

I'm thinking that this whole plugin isn't going to be worth trying to use without those two pieces of software, but I want to try every angle before giving up!

Thanks!

Option to configure the location of the binaries

@L-B
It would be very useful to be able to configure the location of the binaries.
Eg, in my case, on Solaris, it is /opt/csw/bin/ffmpeg. Modifying the source is not very convenient, whereas adding a field to enter it in the videojs configuration would be user-friendly without adding complexity to the plugin.

From #15 (comment)
Add an input text box to allow custom binaries path location
Also maybe find the binaries path by default.

Use height instead of width

From Issue #8

I just tested and I think it would be better to scale by the height instead of the width.

For a 640x480 video and a 720p Max setting , you get a 1280x960 displayed wich is because to fit a 4:3 into a 16:9 canvas, you have to use the height as a reference.

For 16;9 video I agree that the current code would work.

So maybe something like :

$MAX_HEIGHT = intval( 9 * ($MAX_WIDTH/ 16 ));
$width = intval($MAX_HEIGHT * ( $width / $height ));
$height = $MAX_HEIGHT;

Thanks for your hard work.

Integration with Modus theme

Hello.

First of all, many thanks for this plugin. I like piwigo-videojs because it enables me to create albums with both photos and videos and it's very easy to use.

I use and love the Modus theme as I find it is elegant and responsive. There is a demo here if you want to see by yourself: http://www.modusoptimus.com/pwg/

I haven't found how to integrate both Modus and piwigo-videojs. Thumbnails page displays fine but videos are always full sized on the picture page and located at the bottom right hand corner.

Is there any way to adapt the video frame to the browser size ? Maybe via some custom CSS ?

It would great to have a play button on the thumbnail page or in diaporama mode.

What do you think ?

Issues with swf files

I realize this plugin doe not have support for swf files, but there seems to be something causing an incompatibility with them.

I'm using the 'charlies content' plugin, which supports swf files, but if I run videojs alongside it then problems happen.. The error I'm seeing is:

Notice: Undefined index: swf in /var/www/clients/client1/web3/web/plugins/piwigo-videojs/main.inc.php on line 359

If I disable videojs, everything seems to work fine.. So I'm wondering, why is videojs attempting to read the swf files despite them not being supported with it? Is there a way to get around this? I'm not entirely sure where videojs is being told to parse the swf files.. But I may end up digging into this myself if nobody has any tips for me!

Unable to create thumbnails

When selecting three freshly uploaded and synced movies and trying to create posters for them I get the error in the attached image. Using commit 3e517e4

It doesn't matter if I uncheck any of the checkboxes.

screenshot_26
screenshot_27

srcnotfound - Bad path with piwigo in subdir

My piwigo installation is in foto subdir. Full path is www.some.com/foto/.

When i uploaded mp4 video, i see thumbnail and i am able to download mp4 file. But player shows srcnotfound error message even after synchronization. In apache i found this error:

File does not exist: /data/www/www.some.com/upload

... with missing /foto/ directory. I created symlink:

/data/www/www.some.com/upload -> foto/upload

and it works. Probably there is a bug in path selection.

طنز

فیلم های طنز و کمدی

Error when creating thumbnails for webm-movies

I get a error-message when i try to make thumbnails for webm-movies. If I try with a mp4-movie it works fine.

I have upgraded the server with all possible updates but I still get the same error.

Is it a bug in the plugin or is it a ffmpeg/webm problem ?

Error running ffmpeg, try it manually:
ffmpeg -itsoffset -1 -i ./galleries/Filmer-Video/Video/Holliday/00111.webm -vcodec mjpeg -vframes 1 -an -f rawvideo -y ./galleries/Filmer-Video/Video/Holliday/pwg_representative/00111.jpg
Error running ffmpeg, try it manually:
ffmpeg -itsoffset -1 -i ./galleries/Filmer-Video/Video/Holliday/00125.webm -vcodec mjpeg -vframes 1 -an -f rawvideo -y ./galleries/Filmer-Video/Video/Holliday/pwg_representative/00125.jpg

[Feature] try to create thumbnail directory if it does not exists

When trying to synchronize an old piwigo gallery ( with old thumbnail dir) using the piwigo-videojs plugin , you get an error :

Directory ./galleries/Manel/videos/pwg_representative/ doesn't exist or wrong permission

Maybe the plugin could try to create the directory.

Can't see videos in the gallery

I have installed plugin and was able to upload videos using "synchronization". But my gallery still shows only photos. VideoJS also shows "0" videos at statistics tab. The issue may be connected to nginx server I am using. But it gets correct mime type if I query it using your guide.
Where can be the problem?
----- The output of wget ---
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: nginx/1.4.7
Date: Fri, 25 Apr 2014 07:02:07 GMT
Content-Type: video/mp4
Content-Length: 6577053
Last-Modified: Mon, 27 May 2013 13:06:21 GMT
Connection: keep-alive
ETag: "51a35a4d-645b9d"
Accept-Ranges: bytes
Length: 6577053 (6.3M) [video/mp4]
Saving to: `/dev/null'

Support for white space in files and folders

Is there any way I can customize the plugin so that it supports white spaces in files and folders, or can one of the developers add this? I have thousands of photos and directories that have white spaces, and I do not want to change it. I like the readability and the clarity. I was able to get Piwigo proper to support white space and a couple of other special characters by using the Local Files Editor Plugin, and adding the following line to the local/config/config.inc.php file:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. &,]+$/';

I have tested the sync from piwigo-videojs plugin, and it works fine when my folder and file had no white space (I ran a quick test), so I know that my ubuntu server is configured correctly. Any help would be greatly appreciated! Thanks again, and keep up the amazing work.

Support Multiple sources

Support one or more sources like videoJs can do it :

<video id="my_video_1" class="video-js vjs-default-skin" controls
  preload="auto" width="640" height="264" poster="my_video_poster.png"
  data-setup="{}">
  <source src="my_video.mp4" type='video/mp4'>
  <source src="my_video.webm" type='video/webm'>
</video>

this would allow to upload both files webm and mp4 ( but synchronizing might generate duplicates )

thumbnail images over the progress bar : not generated with the correct name while using virtual album

Hello,

I'm using piwigo 2.7.1 and all albums are virtualized and videoJs 2.7a.
Representative for the video are well generated using the virtual filename
ex: upload/2014/11/02/pwg_representative/20141102154529-b78d5000.jpg

The problem is for the thumbnail images to be displayed over the progress bar.
They are generated using the original name :
ex: upload/2014/11/02/pwg_representative/IMG_20141019_105450-th_0.jpg

So while playing the video, the thumbnails are not located and not displayed over the progress bar.
I've manually renamed the thumbnails and it works ... so i would guess the issue is while generating the thumbnails.

Thanks for your help

Behind a virtual host -Video files are not found.

I am not sure if this is the problem but I cannot get this plugin to find the files on the server.

I am running piwigo as a virtual host so http://locahost/piwigo does not work but rather piwigo.mysite.com.

I am not sure that this is the problem but I am curious if this can cause the issue described above.
All the files are arranged in the directories as described in the documentation and the permissions are correct. Thanks

FLASH : srcnotfound

Before using the plugin, I installed it in local and everything worked perfectly.
After that, I've installed it on my web host (shared hosting), but I can't play any video.
A cross appear in the middle of the player and I've this message on bottom :

FLASH : srcnotfound

on Firefox and Opera, and this one :

The video could not be loaded, either because the server or network failed or because the format is not supported.

on Chromium.
Same problem on Windows or Linux.
I'm using Piwigo 2.7.1

Posters broken if piwigo is installed in a subdirectory

Poster URL is incorrect if piwigo is installed in subdirectory of the domain. Here is the generated HTML code for the poster if piwigo is located in www.example.com/piwigo:

      </div><div class="vjs-poster" tabindex="-1" style="background-image: url(http://www.example.com/piwigo//piwigo/galleries/Videos/pwg_representative/DSCN1015.jpg);"></div>

while it should have been

      </div><div class="vjs-poster" tabindex="-1" style="background-image: url(http://www.example.com/piwigo/galleries/Videos/pwg_representative/DSCN1015.jpg);"></div>

[request] is there a way to use MediaInfo, ffmpeg without installing it inside the hosting system

Hi,

my hsoting provider refusre to install ffmpeg, and MediaInfo (my provider is : Hostinger).

then, if I let the parameter from stock, in videoJS,;
I have an error when I try to sync.
I have to uncheck all feature like synchronise meta date, or create the thumbnails.

is there a way to copy the MediaInfo software, in some part of my web site, and link it to the php by hand (instead of place it in system, usr, bin or ????)

thanks
Olivier

Warning: strpos(): Offset not contained in string in ...

Hi
I'm using this great plugin to play videos in my piwigo gallery but the video still not rotating to portrait and I got this warning
Warning: strpos(): Offset not contained in string in /var/www/html/photos/include/functions_url.inc.php on line 765

Any Ideas?

thanks

Thumbnile only for short named videos

Thumbnile and other sized pictures aren't generated but only videos with short name like "test.webm" have (from pwg_resource image)

Where can be problem?
Thanks

Prepare .mp4 with mp4file

I spent lots of time to understand why my MP4 video wasn't played by the plugin and why the player remained black.
In fact, Firefox + VideoJS was prefetching all my video file to get the index which was at the end.

By using mp4file on the .mp4, it solves this problem : now, the player starts the video immediately. So, could you add a message in the plugin documentation about this case ?

On Linux Debian, mp4file is provided by mp4v2-utils package (I don't know if there is the same tool for Windows). And the command is :
mp4file --optimize <video.mp4>

Problem with Mediainfo Version

Hi,

Using debian Wheezy, I was stuck with Mediainfo 0.7.58.

I then had the warning to use Mediainfo 0.7.64 when syncing videos.

So I went on the site of Mediainfo (http://mediaarea.net/fr/MediaInfo/Download/Debian), and the version was 0.7.65 : I thought as it was > 0.7.64, it would be OK, but Video.js still gives me an error :
Please use MediaInfo version 0.7.64 vs 0.7.65

I suppose that modifying mediainfo.php to allow a version >= 0.7.64 would be better than only allowing only this specific version...

Regards

Memory leak with Firefox 30

The problem can be tested with this video :
http://www.fredcoiffier.net/piwigo/index.php?/category/91
When I play the video, Firefox eat all my 16GB of RAM. If I stop the video, the memory leak stops. All the memory is released when I close the tab.

Firstly, I would like to know if someone reproduce this problem.
I get it with Firefox 30.0 on Linux Gentoo 64-bits.

I can't confirm if it's a related to piwigo-videojs bug, VideoJS or Firefox.
I updated VideoJS to 4.6.3 but it doesn't solve the problem.

error when selecting video file to play

i followed the setup guide and i can see my video file (mp4) within piwigo gallery.
when i click on it, it will not play and i see an error message on a top of an empty page:

Warning: strpos(): Offset not contained in string in /var/www/piwigo/include/functions_url.inc.php on line 765 Fatal error: Cannot redeclare class getid3_exception in /var/www/piwigo/plugins/piwigo-jplayer/include/getid3/getid3.php on line 1776

is there anything to do with it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.