From: Francesco Carusi <klimklim@tiscali.it>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] proposal for a minor change in the behavior of the drawtext filter
Date: Fri, 22 Apr 2022 17:07:50 +0200
Message-ID: <f011b519-bd6c-ba15-b77e-28315539476d@tiscali.it> (raw)
In-Reply-To: <15ccc5f0-a460-17cb-f761-bbdbcdfd0cbb@t-online.de>
Hi Michael,
you're right, the default y position is not referred to the baseline but
to the upper left corner of the text. I initially referred it to the
baseline but that is not the default used by the current drawtext
filter, so I thought it would be better to keep compatibility with the
current filter.
I'm open to both solutions: if I refer the y parameter to the text
baseline, than the current default can be achieved using the expression:
y = <value> + top_a
being "top_a" a new variable I'm introducing with the meaning "maximum
ascent of the first line".
If I keep the current default, than what you're asking can be obtained
using:
y = <value> - top_a
I'm new to the ffmpeg devs community so I'm not sure whether it is
preferred to keep backward compatibility or to change the behavior in
the name of a better interface.
What do you think?
Thanks
Francesco
On 22/04/2022 15:22, Michael Koch wrote:
> Hi Francesco,
>
> in my opinion the line spacing looks good. But there is still the
> problem that the y position of the baseline depends on the height of
> the characters in the first line. You see that when you switch between
> your pictures line_height_net_arial.png and line_height_new_arial2.png.
> I know that it can be corrected by specifying the y position as
> "40-ascent" for example. Is it possible to make that the default?
>
> Michael
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-04-22 15:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-22 10:01 Francesco Carusi
2022-04-22 10:30 ` Michael Niedermayer
2022-04-22 12:48 ` Francesco Carusi
2022-04-22 13:22 ` Michael Koch
2022-04-22 15:07 ` Francesco Carusi [this message]
2022-04-22 15:57 ` Michael Koch
2022-04-24 10:07 ` Nicolas George
2022-04-26 10:15 ` Francesco Carusi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f011b519-bd6c-ba15-b77e-28315539476d@tiscali.it \
--to=klimklim@tiscali.it \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git