Announcement

  •  » Extensions
  •  » how to play mp4-files? videoJS not compatible to actual PIWIGO version

#1 2021-02-01 17:58:17

Jakeelee
Member
2021-01-31
6

how to play mp4-files? videoJS not compatible to actual PIWIGO version

Hello,

how can I make PIWIGO to play my mp4-files. VideoJS-plugin says it is not compatible to the actual PIWIGO version.

Piwigo 11.2.0
Betriebssystem: Linux
PHP: 7.4.14-he.0 (Info anzeigen) [2021-02-01 17:55:14]
MySQL: 5.7.32-35-log [2021-02-01 17:55:14]
Grafikbibliothek: GD bundled (2.1.0 compatible)

Piwigo URL: http://www.kynos.guru/piwigo

Offline

 

#2 2021-02-01 18:02:52

Jakeelee
Member
2021-01-31
6

Re: how to play mp4-files? videoJS not compatible to actual PIWIGO version

>> The media could not be loaded, either because the server or network failed or because the format is not supported <<

Offline

 

#3 2021-02-01 18:52:43

erAck
Only trying to help
2015-09-06
2026

Re: how to play mp4-files? videoJS not compatible to actual PIWIGO version

VideoJS is the most fragile thing I ever encountered in Piwigo. It gave up on half of my videos already long time ago before the upgrade (specifically older files and rotated video), and after the upgrade still works on the other half. Did you try to reactivate the plugin? Even if it doesn't have the explicit compatibility flag it continues to work, it seems..


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2021-02-01 19:25:13

Jakeelee
Member
2021-01-31
6

Re: how to play mp4-files? videoJS not compatible to actual PIWIGO version

Hi,
is there any other solution to run MP4-videos?

Offline

 

#5 2021-02-01 19:53:27

Zentalquabula
Member
2014-05-10
217

Re: how to play mp4-files? videoJS not compatible to actual PIWIGO version

Works for me. I use the native player option, though, as the JS player has the really nasty "feature" of blowing up the dimensions above actual size. Detah penalty on such things.

Offline

 

#6 2021-02-02 00:15:32

hgregg
Member
2020-05-25
12

Re: how to play mp4-files? videoJS not compatible to actual PIWIGO version

erAck - thanks for confirming that "VideoJS is the most fragile thing I ever encountered in Piwigo." I've been working to get videos to work consistently and well, with only mixed success and plenty of frustration.

With VideoJS issues, I tried disabling it and using the extension Charlies content. For .mp4, it simply sends the file to a browser using html5 <video ...> tags. This worked well for my newer .mp4, but for some reason, didn't work with older .mp4 files (10+ years old, but these files if opened directly in a browser with file:///... and did display properly).

So I tried VideoJS's native player option (as Zentalquabula uses), and both new and old .mp4 files now play. I can't explain why Charlies content "native" (as all it has) and VideoJS "native" act differently, but they do.

Another advantage of using VideoJS native player option seems to be that if the poster/pwg_representative image isn't an exact match for the .mp4, it still works.

Jakeelee - you may wish to try the extension Charlies content; it seems simpler that VideoJS, but clearly isn't perfect for all .mp4 files.

Note that neither VideoJS or Charlies content are "approved" for piwigo 11.2.0, but both seem to work for me.

It should also be noted that for large .mp4 files, they should be "Web optimized" (Handbrake) or otherwise ensure that the moov atom is at the beginning (ffmpeg "-movflags faststart" option) otherwise the server may time out while sending the video. Jakeelee - if small .mp4s work for you but large ones don't, this may be the cause.

Offline

 

#7 2021-02-02 15:00:07

erAck
Only trying to help
2015-09-06
2026

Re: how to play mp4-files? videoJS not compatible to actual PIWIGO version

I have it on Video.js v5 and the subset that plays is the same as Native Browser HTML5 video tags, the default size fits slightly better. Video.js v6 creates a marginally too large frame with an inner scrollbar for nothing and v7 doesn't play anything at all.


Running Piwigo at https://erack.net/gallery/

Offline

 
  •  » Extensions
  •  » how to play mp4-files? videoJS not compatible to actual PIWIGO version

Board footer

Powered by FluxBB

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