Hello/Hi/Greetings,
We are running latest version of piwigo with php7.4.33
We are trying to upload large size videos more than 6 GB through web browser but the upload fails.
If we do ftp on the server we are copying files in galleries folder. But when we to Tools-Synchronize nothing happens.
When we upload any new photos/videos everything is saved in upload folder.
Can anyone guide to exactly how to upload large videos through ftp and showing them properly in respective album category through website.
Pl. help.
Sunita
Offline
I can confirm this. My large video also cant be synchronised after uploading via ftp/smb
Offline
Anyone know how solve this problem?
Piwigo 15.5.0 Sprawdź aktualizacje
Zainstalowane 26 listopad 2024, 5 miesiące/miesięcy 2 tygodnie 4 dni temu
System operacyjny: Linux
PHP: 8.3.8 (Pokaż informacje) [2025-05-15 09:46:30]
MySQL: 5.5.62 [2025-05-15 09:46:30]
Biblioteki Graficzne: External ImageMagick 7.1.1-33
Wielkość pamięci podręcznej 6301.11 Mo obliczone 2 dni temu Odśwież
Offline
I have been able to successfully import MP4 files using the FTP+synchronize feature of Piwigo 15.5. I did not use FTP to upload the files as the MP4 files were on the same file system as Piwigo "galleries" and I could just use a "cp" command.
My Piwigo server is running on an Ubuntu 22 system. Per the Piwigo documentation I created a directory under "galleries" taking care to ensure that the new directory "galleries/xfer" was owned by "www-data" as this is the ID that the apache2 server is running as. File and directory ownership is key to synchronization.
I copied the MP4 files into "galleries/xfer" and made sure that the files are also owned by "www-data". I then went to "Administration / Tools / Synchronize" on the Piwigo GUI, making sure that "directories + files" was checked, "Simulation" unchecked, and then hit the "synchronize" button.
At this point I am able to see the "xfer" album and all the MP4 videos indicating a successful synchronization.
The problem is that their are no thumbnails associated with the MP4 files. If you upload small MP4 files using the Piwigo GUI, the thumbnails are automatically created and all is well. Using FTP one must create a "pwg_representative" directory within "xfer" and copy a "jpg" file with the same same. Hence you would have:
galleries/xfer/test.mp4
galleries/xfer/pwg_representative/test.jpg
Make sure that www-data owns all the files and directories before hitting the "synchronize" button again.
Offline
In my sever all files have rwx permissions for all (I know this is dangerous).
But smaller files (in same folder and rwx permissions) are successfully synchronised and bigger files/videos looks like there not visible for Piwigo because theres no any error messages after synchronisation.
Offline
Since the problem you are seeing is size dependent at what file size does the import fail?
I don't know if the video playback plugin matters on import but I am using VideoJS.
Offline
No. Everything looks okay but big video files looks like be invisible for Piwigo and Videojs plugin.
I don't know unfortunately why ?
Offline
So how big does the video file need to be before it becomes invisible to Piwigo?
Offline
It looks like up to 2 GB video file can be synchronised.
Because video with 1,97GB and 14:55 length is available in my gallery.
Next bigger video with 2,40GB and 20:29 length is not visible.
Of course I have few more videos over this limit...
My biggest video have 10,95GB(mp4) or 23,60 GB but in m2ts format.
Offline
When you FTP the <2GB file to the /galleries/SomeFolderName which is then seen by Piwigo, do you also see a thumb nail associated with the file? I noticed that thumbnails are NOT being generated during the synchronization process and if you are seeing thumbnails then Piwigo is doing some process, which may be subject to a size limitation, that is missing from my synchronization process.
Offline
No. In folder with videos I have also "pwg_representative" folder with generated thumbs, but to bigger than 2GB videos I don't have any thumbnails or other files.
Offline
Likely some code (be it a plugin, Piwigo, or anything else) in the chain uses an int32 variable to process file size, that would exactly hit the 2147483648 bytes (2GB) maximum limit.
Offline
okay, but how solve it ?
maybe we can somehow bypass it?
Offline