Announcement

  •  » Extensions
  •  » Videojs & Jplayer Videos -both have invalid argument errors. Help!!

#1 2014-04-22 03:06:11

tajanator
Member
2014-04-22
2

Videojs & Jplayer Videos -both have invalid argument errors. Help!!

Hi,

I tried VideoJS and Jplayer plugins for my videos.  I get the same errors with both players.  On three of my videos, not all of them, I get the following errors at the top of the page when viewed:

----------error-------------
Warning: Invalid argument supplied for foreach() in /home2/taja/public_html/Pix/plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 207

Warning: Invalid argument supplied for foreach() in /home2/taja/public_html/Pix/plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home2/taja/public_html/Pix/plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php:207) in /home2/taja/public_html/Pix/include/page_header.php on line 101
-----------/error------------

Here is the link to one of the videos with the error:  http://radtacular.com/Pix/picture.php?/1410/category/71

The videos still work, but I want to fix / remove the errors.  After using both video players, I prefer the jplayer plugin so that is the one I would like to fix.

Piwigo version:  Piwigo 2.6.2
PHP version:  PHP: 5.2.17
MySQL version:  MySQL: 5.5.33-31.1
Piwigo URL: http://radtacular.com/pix

jplayer version: 0.6
VideoJS: 2.6a

Offline

 

#2 2014-04-22 07:54:22

flop25
Piwigo Team
2006-07-06
6900

Re: Videojs & Jplayer Videos -both have invalid argument errors. Help!!

Hello
author notified


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2014-04-22 08:20:51

d-matt
Member
1970-01-01
21

Re: Videojs & Jplayer Videos -both have invalid argument errors. Help!!

This is a bug nicely reported, thank you for taking the time to do so.

It seems related to the lib getid3 (used in both plugins)

Piwigo-jplayer already relies on the last release of getid3 (1.9.7) but I will try to update to beta to see how your case will be handled.

Offline

 

#4 2014-04-22 09:12:17

tajanator
Member
2014-04-22
2

Re: Videojs & Jplayer Videos -both have invalid argument errors. Help!!

Great! Thank you. :)

Offline

 

#5 2014-04-24 15:10:22

d-matt
Member
1970-01-01
21

Re: Videojs & Jplayer Videos -both have invalid argument errors. Help!!

I tried to update the getid3 lib to the current beta and it seems that your problem is fixed with this version. I'm not going to update right now as it is still in beta but here are the instructions to patch your site if you want :

  - download the latest getid3 : https://github.com/JamesHeinrich/getID3 … master.zip

  -  unzip the file and replace the directory <piwigo_root>/plugins/piwigo-jplayer/include/getid3 with the getid3 dir included in the downloaded zip.

  -  And that should be all :-)

Last edited by d-matt (2014-04-24 15:10:54)

Offline

 

#6 2015-07-26 21:20:31

romancos
Member
1970-01-01
9

Re: Videojs & Jplayer Videos -both have invalid argument errors. Help!!

jplayer v0.6 generates errors on video without audio track in it:

Warning: Invalid argument supplied for foreach() in plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 207

Warning: Invalid argument supplied for foreach() inplugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php:207) in include/page_header.php on line 101

Piwigo 2.7.4

How do I generate video thumbnail?

Offline

 

#7 2015-07-28 17:08:50

xbgmsharp
Member
1970-01-01
215

Re: Videojs & Jplayer Videos -both have invalid argument errors. Help!!

jPlayer is only a player. For the thumbnail you need to create them yourself and upload them.
Alternative, you can use VideoJS. VideoJS does not use getid3 anymore and allow you to generate the thumbnail and more with the correct tools install.

Offline

 
  •  » Extensions
  •  » Videojs & Jplayer Videos -both have invalid argument errors. Help!!

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact