huo-ju / photoprism-freebsd-port

The photoprism port for FreeBSD
BSD 2-Clause "Simplified" License
69 stars 15 forks source link

libheif problem #57

Closed vanyolai closed 1 year ago

vanyolai commented 1 year ago

After compiling the latest version, I got a message: photoprism-g20230506: "/usr/ports/graphics/libheif>=1.14.2" non-existent -- dependency list incomplete Since this version, transcoding is not working, too libx264: failed transcoding and the filename. Am I missing something? Thanks

huo-ju commented 1 year ago

Yes, the new version depends on libheif, and the latest libheif is 1.16.1 https://www.freshports.org/graphics/libheif/ You may need to update the port tree if there are no libheif>=1.14.2

vanyolai commented 1 year ago

I did a portsnap fetch/extract/update and pkg search libheif result is libheif-1.16.1 ISO/IEC 23008-12:2017 HEIF file format de- and encoder and this version is already installed on my system.

jan666 commented 1 year ago

libx264: failed transcoding and the filename. Am I missing something?

Check your ffmpeg version. I guess it's version 6. Version 6 is not supported by Photoprism. You need version 4.

huo-ju commented 1 year ago

Fixed in the new version. @vanyolai Thanks for your report, and this version should fix your issue https://github.com/huo-ju/photoprism-freebsd-port/commit/08be75fb79fc6a69a765d2e9e037835e553f5aa8

vanyolai commented 1 year ago

libx264: failed transcoding and the filename. Am I missing something?

Check your ffmpeg version. I guess it's version 6. Version 6 is not supported by Photoprism. You need version 4.

After removing ffmpeg6 and installing ffmpeg4, the problem is still there. But when building photoprism, the make process is invoking ffmpeg6 again...

vanyolai commented 1 year ago

Fixed in the new version. @vanyolai Thanks for your report, and this version should fix your issue 08be75f

Thank you, fix is confirmed.

jan666 commented 1 year ago

libx264: failed transcoding and the filename. Am I missing something?

Check your ffmpeg version. I guess it's version 6. Version 6 is not supported by Photoprism. You need version 4.

After removing ffmpeg6 and installing ffmpeg4, the problem is still there. But when building photoprism, the make process is invoking ffmpeg6 again...

Yes. Thats because the port depends on "ffmpeg" and the default version changed to ffmpeg 6. I had the same problem:

messages:May 5 08:10:03 photoprism photoprism[42527]: time="2023-05-05T08:10:03+02:00" level=warning msg="libx264: failed transcoding 2022/10/02/IMG_2951.MOV [8.085849101s]"

This is because Photoprism does not support ffmpeg 6. See https://github.com/huo-ju/photoprism-freebsd-port/issues/56 for a workaround