Pages: 1
Hi piwigo.
I have mp4 video on my piwigo site.
They are generated with ffmpeg:
ffmpeg -i input input.mp4 \
-loglevel error \
-movflags +faststart \
-c:v libx264 \
-profile:v high \
-c:a aac \
-pix_fmt yuvj420p \
-metadata author="Author name" \
-metadata copyright="(C) author 2024" \
-metadata comment="Some comment" \
output.mp4
(see https://ffmpeg.org/ffmpeg-formats.html fragmentation for movflags)
Video files have a jpg pwg_representative which has thumbnails.
Video files play correctly with the videoJs plugin running on firefox and chrome, on PC and on Android
(excepted that, on Android, firefox does not play the audio)
Video files are correctly understood as video by the android app ("film" logo, play button).
Playing the video hangs the app.
JPG files works perfectly , on any browser PC and on Android, and on the Android app.
Any hint on what could be wrong, or appropriate ffmpeg flags to try?
(changing audio codec to libfdk_aac, the audio bitrate and sampling frequency, the AVC profile to 'main' does not improve the behavior)
Thanks for your help
Config:
piwigo 14.1.0 with videoJS, running on synology NAS
piwigo NG 2.2.3 Android running on Android 11, 8GB RAM.
Fabien.
Last edited by fabien35235 (2024-02-15 15:06:52)
Offline
Hello,
I have the exact same issue. It was working well (playing videos on Piwigo NG), I recently passed my Piwigo on https.
Is there is any impact on reading video via Piwigo NG ?
I noticed 2/3 messages telling this type of issue could come from URL builder in Piwigo NG. Some were resolved by using a DNS and certificate (with let's encrypt). Actually, I have an auto-certificates in order to run https with my fixed IP address.
Videos are working well on the web app but on the Piwigo NG (Android app), when I clicked in order to launch the video player, I have an endlessly spinning wait symbol.
I tried to look at the server logs : I noticed a new line when I play a video on the web app :
"[DEBUG] [i.php] convert "/path.png" -crop 1080x1080+0+420! -filter Lanczos -resize 120x120! -strip -quality 95 -interlace line -sampling-factor 4:2:2 "/path.png" 2>&1"
but nothing when I click Play into the Android Piwigo NG app..
I also tried on my android browser and the video is playing well (video & sound). Video format is MP4.
Did any one could provide any advice ?
---------------------
Piwigo 15.5.0 Dernière version
Système d'exploitation: Linux
PHP: 8.4.6 (Montrer les informations) [2025-04-22 10:19:14]
MySQL: 10.5.28-MariaDB-0+deb11u1 [2025-04-22 10:19:14]
Bibliothèque graphique: External ImageMagick 6.9.11-60
Piwigo NG 2.3.1
Last edited by Chavounet (2025-04-22 16:43:26)
Offline
After updating my old DS211j to DSM 7, and still with HTTPS and a SSL certificate from Let's Encrypt,
everything is fine.
It's not clear to me why.
Offline
Thanks for you answer.
It might come from the fact I don't use a DNS.
I found someone got the same issue and opened a bug into the Piwigo NG Github : [Github] piwigo-flutter-app issue #208
Let's see what comes further ;)
Offline
If you have a fixed IP address, you can simply use ****
a free DNS, something like my-server-name.publicvm.com, no cost, no problem so far, and I do not see the issue about having a domain name.
You can even use that with a dynamic IP address, you will simply have to setup a script that forwards the new IP address to publicvm. Trivial on Linux.
Offline
Pages: 1