Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Add --enable-libfreetype to FFmpeg build options #98

Closed
1 task done
davbauer opened this issue Dec 14, 2024 · 4 comments
Closed
1 task done

[FEAT] Add --enable-libfreetype to FFmpeg build options #98

davbauer opened this issue Dec 14, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@davbauer
Copy link

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Include the --enable-libfreetype build option in the FFmpeg configuration within the Docker image.

Reason for change

The libfreetype library enables the drawtext filter in FFmpeg, which is essential for overlaying text on videos. This is a very basic yet highly utilized feature in FFmpeg for video processing tasks such as adding captions, watermarks, or text-based overlays. Without this library, users are unable to perform these operations, limiting the utility of the FFmpeg Docker image.

Adding libfreetype will ensure that the drawtext filter is available out of the box, increasing the image's versatility and usability for a wider range of users.

Proposed code change

Update the Dockerfile to include libfreetype-dev as a dependency during the FFmpeg build process and add the --enable-libfreetype flag to the FFmpeg configuration.

@davbauer davbauer added the enhancement New feature or request label Dec 14, 2024
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@aptalca
Copy link
Member

aptalca commented Dec 14, 2024

How did you confirm that it wasn't enabled?

@davbauer
Copy link
Author

davbauer commented Dec 14, 2024

Hi @aptalca,

I used following command:

ffmpeg -y -i input.mp4 -vf "drawtext=text='Hello':fontcolor=white:fontsize=72:borderw=3:bordercolor=black:x=(w-tw)/2:y=(h-th)/2:box=1:[email protected]:boxborderw=10" -c:v libx264 -crf 23 -preset fast -c:a copy output.mp4

And I received following error:

[AVFilterGraph @ 0x5f89c0dac880] No such filter: 'drawtext'
[vost#0:0/libx264 @ 0x5f89c0d9ab40] Error initializing a simple filtergraph
Error opening output file done.mp4.
Error opening output files: Filter not found

But after some inspection I noticed you guys already have it in the Dockerfile. Therefore this feature request would not solve anything at all..

I will further investigate what is causing this and give an update later.

@davbauer
Copy link
Author

Apologizes for the confusion. It seems like I had an older image cached which led to this.

Closed.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants