Jump to content

FreeBSD HEIC support


Recommended Posts

Posted (edited)

Hi. I have FreeBSD 14 and Emby Server 4.9.0.5 installed as a package.

Jpeg images look fine. But heic format is not supported. I've tried to install ImageMagick7-nox11 that has build in heic support. It didn't help. ImageMagick6 also has build in heic support anyway.

There were no such heic problems with Ubuntu 22.04 server. 

Screenshot_2024-02-25_20-47-44.png

Screenshot_2024-02-25_20-53-11.png

embyserver.txt

 

Edited by slaver666
Posted (edited)

According to server logs ffmpeg can't convert HEIC images.

Edited by slaver666
Posted (edited)

Build in ffmpeg also can't convert image

libheif is installed

 

Screenshot_2024-02-25_21-36-11.png

Edited by slaver666
Happy2Play
Posted

Devs will have to comment as I don't know the platform but Windows is using libvips for processing

example from my Windows system

2024-02-24 19:31:48.729 Info Skia: SkiaSharp version: 2.88.0.0
2024-02-24 19:31:48.729 Info ImageProcessor: Adding image processor Skia
2024-02-24 19:31:48.753 Info libvips: NetVips version: 2.3.1.0
2024-02-24 19:31:48.753 Info ImageProcessor: Adding image processor libvips

2024-02-25 10:32:17.488 Debug SqliteItemRepository: GetitemById Photo 105001 C:\Users\Media\Desktop\Videos\Photo\Test\20220426T143407.HEIC
2024-02-25 10:32:18.490 Debug ImageProcessor: Image encoding using libvips to C:\Users\Media\AppData\Roaming\Emby-Server\programdata\cache\temp\bed3cfdc92b946c5a60f57e92364b647.jpg took 1002ms for C:\Users\Media\Desktop\Videos\Photo\Test\20220426T143407.HEIC. Now moving to C:\Users\Media\AppData\Roaming\Emby-Server\programdata\cache\images\resized-images\9\90f8bce0-7f86-1af1-f95e-0f3c5db0fc64.jpg

But your platform does not appear to have it and skia appears to fail.

2024-02-25 20:42:46.009 Info Skia: SkiaSharp version: 2.88.0.0
2024-02-25 20:42:46.011 Info ImageProcessor: Adding image processor Skia
2024-02-25 20:42:46.036 Info Main: LibVips not available. Will try next image processor.

 

Posted

As I told before my Ubuntu server also has no problems with HEIC.

Happy2Play
Posted
1 minute ago, slaver666 said:

As I told before my Ubuntu server also has no problems with HEIC.

And do you have a log for it as I would suspect what I have already posted secondard image processor.  But since platform packages are build per their platform I will guess there is possible a build issue but the builders will have to comment as Skia does not appear to do what you need and that is the only processor,  

Unless Libvibs is something the user can add to the platform.

Posted

FreeBSD has vips image processor. But it would be nice to have a confirmation from developers that I really need 635 MiB more space fro this.

Screenshot_2024-02-25_21-57-10.png

Posted
1 hour ago, slaver666 said:

FreeBSD has vips image processor. But it would be nice to have a confirmation from developers that I really need 635 MiB more space fro this.

Screenshot_2024-02-25_21-57-10.png

Yes although in the coming months we'll hopefully be dropping imagemagick as a requirement.

Posted

Thanks for information. Unfortunately ImageMagick is not the highest space consumer in the list above. It needs only 35 Mb. All other packages are default requirements for vips in FreeBSD. If only you can advise what requirements really needed to compile from ports.
 

Screenshot_2024-02-25_23-53-13.png

Posted
45 minutes ago, slaver666 said:

Thanks for information. Unfortunately ImageMagick is not the highest space consumer in the list above. It needs only 35 Mb. All other packages are default requirements for vips in FreeBSD. If only you can advise what requirements really needed to compile from ports.
 

Screenshot_2024-02-25_23-53-13.png

Everything that is marked as a dependency for the package is there for a reason, and it is kept up to date and things are removed when they are no longer used.

Posted

But when we do get to the removal of imagemagick, that also applies to GraphMagick, it has a lot of dependencies itself so I think the actual reduction will turn out to be more than that.

Posted

I've installed vips package but it didn't help. I even don't see any mention in logs about vips image processor. So I don''t sure server use it.

 

embyserver.txt

Posted
23 minutes ago, slaver666 said:

I've installed vips package but it didn't help. I even don't see any mention in logs about vips image processor. So I don''t sure server use it.

 

embyserver.txt 125.61 kB · 0 downloads

Please attach the complete emby server log file. Thanks.

Happy2Play
Posted

Not sure what happened in that log as it start out full of NUL.  But need to see a log from startup, not a rollover/rotated log.

Posted (edited)

embyserver.txtSorry. I've removed vips package. I'm going to install it again and give you full log.

Edited by slaver666
Posted (edited)

I've installed vips again but emby doesn't see libvips. May be I should install another dependency?

 

Screenshot_2024-02-26_11-04-37.png

embyserver.txt

Screenshot_2024-02-26_11-08-33.png

Edited by slaver666
Posted

Hi, can you walk me through the process you used to install Emby Server on this machine?

Posted

Emby Server has been updated to 4.9.0.7 today. Problem still exists.

Posted
11 minutes ago, slaver666 said:

Emby Server has been updated to 4.9.0.7 today. Problem still exists.

HI, can you please attach a new emby server log? thanks.

Posted

FYI, the packages we ship (as in those not the one from the ports tree) come with their own vips build, you don't need to install it on your system. The issue probably comes from a soname bump in one of its dep, a simple rebuild on our end should do the trick, and I'll see if I can statically link the culprit so it doesn't happen again.

Posted

Thanks for reply! I've noticed that installation dependencies for FreeBSD were supplemented with dotnet package which takes a lot of space as well as vips package. I thought that dotnet is shipped with Emby Server package itself.

Posted (edited)

Dotnet was shipped self-contained previously, because we had to use unofficial freebsd builds of dotnet 6.0, but now that it is available in the ports tree, it's better to depend on it so you can get dotnet updates and security fixes without the need to update emby itself. We just have to be careful when dotnet 8 will inevitably get replaced with dotnet 9, hopefully freebsd will keep 8 in the ports tree, or we will revert to a self-contained build.

Edited by alucryd
  • Like 1
Posted

Emby Server has been updated to 4.9.0.8. Problem still here.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...