danvergara / morphos

Self-hosted file converter server
MIT License
836 stars 37 forks source link

Add ffmpeg #62

Closed danvergara closed 2 weeks ago

danvergara commented 3 weeks ago

Add ffmpeg

Description

This PR introduces ffmpeg as a dependency to handle image, instead of std or experimental package to do the encoding. This means Morphos will relay on the ffmpeg installed on the host machine. Since the only way of distribution is a container image, the dependency is already installed on the image. This had a good side and it was that I could add support for AVIF.

I'll work on adding support for HEIF/HEIF, despite there's not support for them from ffmpeg yet. I'll give a libheif a new try, since I use Debian Trixieas a final stage in my container image and libheif on that base image isn't that behind.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Added new tests cases and QA'd the container image to convert images.

Checklist: