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)
   2. Re: text scale bug (S Andreason)


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

Message: 1
Date: Thu, 5 Nov 2020 10:59:33 -0800
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: <e7d93c87-4c96-2373-e721-81d24f7d4...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi MrDave,

When I edit text_right to be longer, so that the left edge crosses the 
(xw/2) half of width, the text_scale jumps back and forth between 1 and 
2, about each second.

So it seems the problem is not only halfway vertical, but horizontal as 
well.

Stewart


S Andreason wrote:
> 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
>

> MrDave wrote:
>> Anything special about the text being scaled?? Perhaps put in the 
>> %{ver} just to make sure the correct version is being run.
>




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

Message: 2
Date: Thu, 5 Nov 2020 20:31:47 -0800
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: <38b899aa-c674-f4c0-1b74-106625b51...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi MrDave,

I thought I had it figured out, but it is still jumping back and forth 
between text_scale 1 and 2, even though I am keeping the text in the 
lower right quarter of screen.

My current setting:
text_right %D \n%K,%L \n%N \n%Y-%m-%d %T-%q\n%{fps}

This is running on a raspberry pi4, newest buster-full, then duplicated 
to a second pi4 using dd to make exact duplicate, then changing only the 
ip address and camera rtsp address, and adding a second camera. The 
first installation with one camera is not having this problem with the 
scale, it is staying at double, or scale 2.
Also on the second installation, it is the first camera that is doing 
this, so I suspect I'm doing something unique or outside of basic 
testing, to be getting this result.

Right now I see it starts at scale 2, for the leading frames
pre_capture 1
then when changed pixels > threshold, it changes to scale 1, until < 
threshold, either at end of event
post_capture 4
or in the middle when < threshold it changes back to scale 2 for a few 
frames.

I think before this is over, I'll be sharing all my config files. Who 
can I send them to?

Stewart


S Andreason wrote:
> When I edit text_right to be longer, so that the left edge crosses the 
> (xw/2) half of width, the text_scale jumps back and forth between 1 
> and 2, about each second.
>
> So it seems the problem is not only halfway vertical, but horizontal 
> as well.
>
>
>> MrDave wrote:
>>> Anything special about the text being scaled?? Perhaps put in the 
>>> %{ver} just to make sure the correct version is being run.
>>
>




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



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

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 173, Issue 5
*******************************************

Reply via email to