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
>> The media could not be loaded, either because the server or network failed or because the format is not supported <<
Offline
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..
Offline
Hi,
is there any other solution to run MP4-videos?
Offline
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
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
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.
Offline