#1 2014-06-24 15:56:44

captenaj
Member
2014-06-24
9

Getting Videos to Play (m4v, mp4, mpg, wmv, mov)

Hello All,
I am new to Piwigo (my old stand by, Gallery, has just pulled the plug) and just trying to get things started.  Uploading photos via FTP has not been a problem but videos are another issue.  Using FTP, I upload the videos to the 'galleries' folder without a problem. But when I sync (Administration Home> Quick Local Synchronisation), only one file (an .mpg file) would sync.  But it wouldn't play.  Then I installed piwigo-videojs and hit the sync button again.  The .mp4 files synced this time but nothing else.

When I try to play the .mpg file I get this:

Notice: Undefined index: mpg in /home/pamwoman/carefree.elliottsnest.net/piwigoTest/plugins/piwigo-videojs/main.inc.php on line 359

Warning: Cannot modify header information - headers already sent by (output started at /home/pamwoman/carefree.elliottsnest.net/piwigoTest/plugins/piwigo-videojs/main.inc.php:359) in /home/pamwoman/carefree.elliottsnest.net/piwigoTest/include/page_header.php on line 101

When I try to play the m4v and mp4 files, they will play but I get this:
Warning: strpos() [function.strpos]: Offset not contained in string in /home/pamwoman/carefree.elliottsnest.net/piwigoTest/include/functions_url.inc.php on line 765

Warning: Cannot modify header information - headers already sent by (output started at /home/pamwoman/carefree.elliottsnest.net/piwigoTest/include/functions_url.inc.php:765) in /home/pamwoman/carefree.elliottsnest.net/piwigoTest/include/page_header.php on line 101


Is there a way to sync wmv and mov files?  Is there a way to get those and mpg these files to play?  What about other video formats?  Some of these videos are huge and I cannot (and really don't want to) upload them to YouTube and play them that way.

Thank you for any help.

Piwigo version: 2.6.2
PHP version: 5.3.27
MySQL version: 5.1.56
Piwigo URL: http://www.carefree.elliottsnest.net/piwigoTest/

Offline

 

#2 2014-06-24 16:39:55

paul105
Member
2012-08-17
132

Re: Getting Videos to Play (m4v, mp4, mpg, wmv, mov)

Hi,

Take a look at the 'charlies content' plugin

http://piwigo.org/ext/extension_view.php?eid=119

Also a how to guide :-

http://piwigo.org/forum/viewtopic.php?id=15229

Hope that helps

Offline

 

#3 2014-06-25 22:28:25

benhup
Member
Netherlands
2014-06-25
31

Re: Getting Videos to Play (m4v, mp4, mpg, wmv, mov)

Hi captenaj,

I tried several players. So far jplayer does the trick for me.
It's also html5, so no flash things needed.

When you have mp4 files, the file might load completely before playing. very annoying.
Try QTIndexSwapper (see Google). You need Windows and Adobe Air to run it.
QTIndexSwapper takes the index of an mp4 file and puts it at the beginnig of a file.
Result: video starts playing immediately! Great stuff!

To bad we don't have a jwplayer for Piwigo yet, that would play really a lot of files! And supports many devices.

Best regards,
Ben

Offline

 

#4 2014-06-26 05:38:58

captenaj
Member
2014-06-24
9

Re: Getting Videos to Play (m4v, mp4, mpg, wmv, mov)

Paul105, thanks for the heads up about Charlies.  I have installed the plug in and all my files except the wmv file will sync.  When I try to play them I get this error:

Notice: Undefined index: mpg in /home/pamwoman/carefree.elliottsnest.net/piwigoTest/plugins/piwigo-videojs/main.inc.php on line 359

Fatal error: Cannot redeclare class getID3 in /home/pamwoman/carefree.elliottsnest.net/piwigoTest/plugins/charlies_content/getid3/getid3/getid3.php on line 19

So I disabled the videojs plug in and tried to sync again.  I got this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, ... and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any suggestions?  Thanks.

benhup - thanks for the suggestion about jplayer. I'll look into that, too.

Offline

 

#5 2014-07-23 11:58:54

xbgmsharp
Member
1970-01-01
215

Re: Getting Videos to Play (m4v, mp4, mpg, wmv, mov)

getID3 is use to read video metadata.
Your casse is more likely a conflit between jplayer and videojs.

I will removed it the next release.
getID3 is very buggy and does not offer all the info i require.
As there is no good PHP LIbrairy to access video, the plugin require MediaInfo.

Offline

 

#6 2019-09-18 02:58:04

stevensegui
Member
2019-09-18
1

Re: Getting Videos to Play (m4v, mp4, mpg, wmv, mov)

I usually use iDealshare VideoGo to convert various video formats to play the videos anywhere.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact