Bug 437159 - Ability to set which font to use for subtitling tool
Summary: Ability to set which font to use for subtitling tool
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 21.04.0
Platform: Other Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-15 14:42 UTC by Gary Wang
Modified: 2022-06-06 20:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Wang 2021-05-15 14:42:01 UTC
SUMMARY

Currently, the Kdenlive subtitling tool introduced in 20.12 don't have any setting options, if user enters plain text, it will render subtitle to the video using the system default font, which may cause problems. For example, when using Windows, it may use a non-free font.

STEPS TO REPRODUCE
1. On a system that uses non-free font by default (Windows for example), use Kdenlive to edit a video
2. Add some plain text subtitle
3. Render to file and see the result.

OBSERVED RESULT

It will use the non-free system default font.

EXPECTED RESULT

Offer an option in the Configure Kdenlive dialog to allow set the (default and fallback) font that will be used and use that instead.

ADDITIONAL INFORMATION

Probably useful links while doing the resourcing:

https://www.mltframework.org/plugins/FilterAvfilter-subtitles/

I read the source code a little bit but sadly don't find where did the subtitle preference happen in the code. I guess maybe it's in /src/effects/effectstack/model/effectstackmodel.cpp and it tell MLT to use "avfilter.subtitles" and the I lost my tracking. Not sure what other information should I provide and please tell me if any additional information is needed. Hope that helps.
Comment 1 emohr 2021-05-16 17:58:25 UTC
Thank you for the suggestion and hints. The idea is to introduce *.ass subtitle format which includes different fonts and colors (maybe with 21.08).
Comment 2 farid 2022-06-02 14:56:54 UTC
Related to: https://invent.kde.org/multimedia/kdenlive/-/issues/1450
Comment 3 Jean-Baptiste Mardelle 2022-06-02 18:42:27 UTC
Thanks for your report. You are right, I didn't previously notice that a simple styling can be achieved through the force_style option of the ffmpeg subtitles filter. This way, it is very easy to introduce a basic styling (all subtitles in a project will share the same style). Will make some further tests tomorrow.
Comment 4 Jean-Baptiste Mardelle 2022-06-02 22:59:06 UTC
Git commit 04ebbe086748dc6f9d7744fbebd5785bdbff64bb by Jean-Baptiste Mardelle.
Committed on 02/06/2022 at 22:58.
Pushed by mardelle into branch 'master'.

Basic support for subtitle styling (only one style for all subtitles)
Related to #1450

M  +20   -0    src/bin/model/subtitlemodel.cpp
M  +4    -0    src/bin/model/subtitlemodel.hpp
M  +136  -0    src/dialogs/subtitleedit.cpp
M  +2    -0    src/dialogs/subtitleedit.h
M  +4    -0    src/effects/effectstack/model/effectstackmodel.cpp
M  +390  -124  src/ui/editsub_ui.ui

https://invent.kde.org/multimedia/kdenlive/commit/04ebbe086748dc6f9d7744fbebd5785bdbff64bb