Send Motion-user mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: camera restart (csspcmotion)
----------------------------------------------------------------------
Message: 1
Date: Wed, 24 Jun 2020 21:55:02 -0400
From: csspcmotion <[email protected]>
To: Motion discussion list <[email protected]>, Bau
Dev <[email protected]>
Subject: Re: [Motion-user] camera restart
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
i have in my motion.conf
log_level 9
log_type all
... quality traces would be to have idea where to put some more motion logs
On 6/24/20 9:52 AM, Bau Dev wrote:
> Is setting log_level to 9 and log_type to ALL enough to have quality
> traces?
>
> I'm trying to determine the reason for the stream interruption but
> it's complicated. I thought it was /action/restart motion that was the
> problem but I find that the stream sometimes gets stuck without even
> doing it.
> Also, the flux sometimes gets blocked on my device A, and simply
> opening the flux on a device B unblocks flux A.
>
> I'll let you know if I make any discoveries...
>
> Le?mar. 16 juin 2020 ??14:29, csspcmotion
> <[email protected]
> <mailto:[email protected]>> a ?crit?:
>
> these are the relevant patches:
>
> *motion.h*:
>
> in struct context : insert
>
> ?? int overlay_pass;
>
> *in motion.c:*
>
> motion_init() after pthread_setspecific insert:
>
> ????? cnt->overlay_pass = 0;
>
> motion_overlay() at top of func: insert
>
> ? ? ? ++cnt->overlay_pass;
>
> ?????? MOTION_LOG(DBG, TYPE_ALL, NO_ERRNO, "overlay_pass:%d",
> cnt->overlay_pass);
>
> process_image_ring() after struct image data line insert:
>
> ????? MOTION_LOG(DBG, TYPE_ALL, NO_ERRNO, "ringout:%d ringin:%d",?
> cnt->imgs.image_ring_out, cnt->imgs.image_ring_in);
>
> -----
>
> I don't see anything wrong per say in the code with the added
> debug ... except that debug confirms the
>
> code is still being called after an individual camera is restarted
> while the web streaming img data to my firefox
>
> browser sees nearly all the time after the restart a static frame
> even after multiple page refreshes with an occasional new static
> picture,
>
> its not until I do an all cameras restart that it works correctly.
> Further snapshot are still occurring for the said camera ... appears
>
> somehow the web streaming data is hosed ... further looking at the
> snapshots after the restart that occur every 2 seconds I do see
> they are happening
>
> with text over lay stuff with time that is getting incremented ...
> so the issue looks to be the web streaming portion is some how
> hosed with a individual camera restart ... also note I do set
> stream_port 8081 in main conf (motion.conf) file which not sure if
> that may be different than others are using and hint where to
> search for the problem.
>
>
> On 6/16/20 3:20 AM, tosiara wrote:
>> Can you share what exactly patch you used for debugging and what
>> exactly wrong do you see there?
>>
>> On Mon, Jun 15, 2020 at 8:26 PM csspcmotion
>> <[email protected]>
>> <mailto:[email protected]> wrote:
>>> I put some debug in I see ring_out and ring_in changing on stream that
>>> is broken after doing a restart,
>>>
>>> looking at the code some more it appears web stuff is only restarted
>>> when all cameras are restarted.
>>>
>>> Also see the text overlay pass is happening and snapshots are still
>>> working for the individual restarted camera
>>>
>>> but the web stream for that individual even after page refresh is
>>> static with an occasional update on a refresh
>>>
>>> On 6/8/20 12:29 PM, Tim Skopnik wrote:
>>>
>>> As i remember i always had to restart a camera thread twice to get a
>>> new live stream - but not quite sure if i still have the issue with the
>>> current version...
>>>
>>> Am 08.06.2020 um 17:15 schrieb csspcmotion:
>>>
>>> I have been making some mods to motion code ... and I think there could
>>> be an initialization issue that
>>> is being push around with my additions which might be breaking restart
>>> ....
>>> too early to tell ... in my last attempt with doing an individual
>>> camera restart I could not
>>> get the stream in browser to resume ... had a black and then a still
>>> jpg ... I refreshed the browser
>>> multiple times and at best could see occasionally a new static jpg. I
>>> further tried it with the other 5
>>> streams with same result ... ... I then restart from "all cameras" web
>>> page and they all restarted.
>>> also with my mods I had put debug that sees that motion loop on the
>>> restarted camera is iterating.
>>> I have been using movie_passthrough on for all 6 cameras in this setup
>>> ...
>>> Is there a call I can add to resync stream ... maybe the ring buffer is
>>> hosed ???
>>>
>>>
>>> On 6/8/20 7:25 AM, tosiara wrote:
>>>
>>> I tried to restart a camera through the web ui and all works as
>>> expected. Yes, you need to refresh the page after restart, because the web
>>> browser does not do that automatically. But after a single refresh all
>>> works fine, I can see the stream again
>>>
>>> If you can reproduce the issue would be great to see the motion.log
>>> and/or the screen recording
>>>
>>> On Sun, Jun 7, 2020 at 10:00 AM Bau Dev<[email protected]>
>>> <mailto:[email protected]> wrote:
>>>> I thought I was the only one having this problem...
>>>> It's really weird because the image is stuck but the number of FPS is
>>>> still 5 (I set FPS to 5).
>>>> Also I'm not always able to reproduce this bug. Sometimes restarting
>>>> the camera works well.
>>>>
>>>> Le dim. 7 juin 2020 ? 02:52,
>>>> csspcmotion<[email protected]>
>>>> <mailto:[email protected]> a ?crit :
>>>>> is it possible to restart an individual camera ... I thought I
>>>>>
>>>>> had this working ...but when I use web browser and select a
>>>>>
>>>>> given camera then follow by selecting under action restart,
>>>>>
>>>>> the browser image first goes black then after a couple of
>>>>>
>>>>> manual refreshes it is a static picture never getting update
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Motion-user mailing list
>>>>> [email protected]
>>>>> <mailto:[email protected]>
>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>> https://motion-project.github.io/
>>>>>
>>>>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>>>> _______________________________________________
>>>> Motion-user mailing list
>>>> [email protected]
>>>> <mailto:[email protected]>
>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>> https://motion-project.github.io/
>>>>
>>>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> https://motion-project.github.io/
>>>
>>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>>>
>>>
>>>
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> https://motion-project.github.io/
>>>
>>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>>>
>>>
>>> --
>>> [email protected]
>>> <mailto:[email protected]>,http://www.aptico.de/
>>> aptico GmbH, Alter Hellweg 60, D-44379 Dortmund
>>> fon: +49 231 185 85-20, fax: +49 231 185 85-25
>>> Amtsgericht Dortmund: HRB 15084, Gesch?ftsf?hrer:
>>> Dipl. Ing. Hartmut M?ller, Rudolf Slabe (MA),
>>> Tim Skopnik
>>>
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> https://motion-project.github.io/
>>>
>>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> https://motion-project.github.io/
>>
>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
> _______________________________________________
> Motion-user mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 168, Issue 56
********************************************