Announcement

#1 2024-02-14 17:20:06

fabien35235
Member
2024-01-13
3

Piwigo NG Android app does not play Video, but VideoJS does.

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

 

Board footer

Powered by FluxBB

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