LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
7.01k stars 309 forks source link

Video processing error, "magick2vips: libMagick error: improper image header" #1277

Open HMKnapp opened 6 months ago

HMKnapp commented 6 months ago

πŸ› Bug Report

πŸ“ Description of issue:

Video processing fails after upload.

proxy           | 192.168.0.190 - - [18/May/2024:23:13:02 +0000] "POST /api/upload/complete/ HTTP/1.1" 200 2 "-" "UhuruPhotos/0.0.220 Dalvik/2.1.0 (Linux; U; Android 10; Nokia 7 plus Build/QKQ1.190828.002)"
backend         | 23:13:02 [Q] INFO Process-b10f0aa75e764e3d812732e0ded9e67e processing west-mountain-golf-blossom 'api.directory_watcher.rescan_image'
backend         | INFO:ownphotos:Could not handle /data/hk/uploads/web/VID_20210924_200341.mp4, because unable to call thumbnail
backend         |   magick2vips: libMagick error: improper image header `/data/hk/uploads/web/VID_20210924_200341.mp4' @ error/tga.c/ReadTGAImage/224
backend         | magick2vips: unable to read file "/data/hk/uploads/web/VID_20210924_200341.mp4"

πŸ” How can we reproduce it:

If you want I can send the video to you.

This issue might be related to #1276 because these two issues (throwing exception and libmagick error) alternate between the videos of that same phone.

Please provide additional information:

derneuere commented 2 months ago

Your image is out of date, can you update it and report if the issue still occurs?