Piwigo / piwigo-videojs

Videojs port for piwigo. Play your videos on your web gallery!
http://piwigo.org/ext/extension_view.php?eid=610
GNU General Public License v3.0
64 stars 45 forks source link

Manually add poster #104

Open Stromausfall85 opened 7 years ago

Stromausfall85 commented 7 years ago

Hi, I try to set a Poster for my Video Manually like descripted

•Create a new album (MyVideoClip) via the admin panel or directly in your galleries directory. •Upload your video into the new album (eg: galleries/MyVideoClip/video1.mp4). ◦You can use the PWG upload feature or use FTP/SSH.

•Create a directory in your new album call pwg_representative
•Upload the poster image into the pwg_representative directory (eg: galleries/MyVideoClip/pwg_representative/video1.jpg). •Synchronize as usual using only the Piwigo sync, 'Administration' -> 'Tools' -> 'Synchronization'

but it will not work, I make everything from the troubleshoot list. Size, Name, etc. But the poster will not Pop up. I can see the Video und in the 'pwg_representative' folder I see the poster Picture. What can I do ?

I'm not root and I can not install FFmpeg. Maybe I Forget something ?

Thanks for your help.

CJuette commented 5 years ago

Hey! I'm having a similar problem. I can also not install any programs. I have uploaded my pictures and videos using the web-uploader and now want to manually add posters for the videos.

I tried uploading pwg_representative folders in a load of places and synchronizing, but nothing happens. Can anyone tell me how to add posters for videos uploaded with the upload-tool?

georg90 commented 4 years ago

This issue is still occuring when thumbs are manually added. Using sync they will not show up. any hints?

georg90 commented 4 years ago

I worked around this using an external API which receives the uploaded video file and returns the thumbnail; the script the updates the database manually to enable the thumbnail

Have a look here (improvements are welcomed!) https://gist.github.com/georg90/9f653c090afd54f67d1ad70f03c6e0bb

clement-analogue commented 4 years ago

Hi, I had similar issue. Some poster were not created. In my case, I can be root, so I'm not answering exactly the OP's question, but it might help someone.

The idea is to run the following script, an adaptation of georg90 ffmpeg.sh, on the remote server. In my case, my db server is not on the same the server as Piwigo. To make it work, in addition to the first variable at the beginning of the file, you need to arrange the root path lines 14 and 15. You also might need to create the folders manually if not there yet (which was my case). After running the script, I strongly advice a chown -R www-data:www-data /path/to/piwigo/ https://gist.github.com/clement-analogue/24b67f8e1381ec2595a8faae82b25ea0

Line 17, I set the time at 4s, it can be changed.