Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: text scale bug (S Andreason)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Oct 2020 08:52:56 -0700
From: S Andreason <sandrea...@gmail.com>
To: MrDave via Motion-user <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] text scale bug
Message-ID: <43bbec72-98ba-6fe0-257b-55415eb4b...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi MrDave,

%{ver} is 4.3.2
After 50 minutes of trying different values for text_left and right, I 
narrowed down the breaking point.

My starting point was empty text_left, and a long string for text_right, 
that placed some of the information in the upper right corner.
I first tried removing the many \n but it stayed small, scale 1.
Then next I added the %{ver} to text_left, and it jumped to scale 2. 
Something was reset by doing this.
This sent me down the long testing track believing the string of 
\n\n\n\n in text_right was not the cause, but now I think it is, at 
least mostly.

To reproduce,
text_right %D \n%N \n%{fps} \n%Y-%m-%d %T-%q

should be correct. Then add \n to either the middle or the end. Once 
there are 12 or 13 lines it jumps to scale 1.

or start with
text_right %D\n\n\n\n\n\n\n\n\n\n

does not get to the upper right, but is scale 2
Start adding \n until it jumps to scale 1. Since this happens when the 
text is at exactly the middle, I think there is a test off by a factor 
of 2 when testing if the text goes off the top of the frame.
Put simply, can't get the overlay text in the upper corner in v4.3.2

Stewart

MrDave wrote:
> Not sure what could cause that.? The tests show it working as intended.
>
> https://gist.github.com/Mr-DaveDev/9d63a8e287cae7a6aa5ad582edaa05b1
>
> Anything special about the text being scaled?? Perhaps put in the 
> %{ver} just to make sure the correct version is being run.
>
>
> On 10/29/2020 3:40 PM, S Andreason wrote:
>> After upgrading from 4.1.1 to 4.3.2, and converting the config files, 
>> changing
>> text_double on
>> to
>> text_scale 2
>> I am unable to resize the text.
>>
>> working with a 640x480 video, when text_double worked, the font size 
>> not including the black borders, was 10x12 pixels.
>> Now text_scale 1 results in a 5x6 pixel font.
>> text_scale 2 is also 5x6
>> all the way up to text_scale 10 is also 5x6
>> The only thing that changes is the vertical position, as text_right 
>> moves up the y axis.
>> However the spacing between the lines is the same as for scale 1, so 
>> only the bottom margin changed.




------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 172, Issue 24
********************************************

Reply via email to