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)
2. Re: H264 in Slackware.. (JB)
----------------------------------------------------------------------
Message: 1
Date: Tue, 16 Jun 2020 08:28:17 -0400
From: csspcmotion <[email protected]>
To: Motion discussion list <[email protected]>,
tosiara <[email protected]>
Subject: Re: [Motion-user] camera restart
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
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]> 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]> 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]>
>>> 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]
>>>> 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
>>
>>
>> _______________________________________________
>> 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
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>> --
>> [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]
>> 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...
------------------------------
Message: 2
Date: Tue, 16 Jun 2020 09:43:38 -0500
From: JB <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] H264 in Slackware..
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Tue, 16 Jun 2020 10:18:47 +0300
tosiara <[email protected]> wrote:
> Sorry, wrong URL. Here it is:
> https://github.com/tosiara/motion/wiki/ffmpeg
>
> > On Mon, Jun 15, 2020 at 5:59 PM JB <[email protected]> wrote:
> > >
> > >
> > > Hi gang,
> > >
> > > Okay, I've been trying to use the h264 stream in my Axis cameras but
> > > Slackware doesn't have an obvious 'H264' for Motion to see, I guess.
> > >
> > > Slackware has 'x264' ("x264 is a free library for encoding H264/AVC
> > > video
> > > streams.").
> > >
> > > If I want to use h264 to make the video files a little smaller (and
> > > still keep the clarity, frame speed, mp4 instead of avi, etc), should I
> > > build Motion during the 'config' like this?:
> > >
> > > ./configure --with-ffmpeg=/usr/lib64 --with-x264=/usr/lib64
> > >
> > > Will this make Motion at least be able to use the h264 to make the files
> > > at the least (I don't have a clue how I can make the actual camera
> > > themselves see that I have an equivalent H264 installed on my system)?
> > >
> > > Thanks for any ideas with this. It's not really 'important', but would
> > > just be nice since it would really help me out as all I have are small
> > > hdd's (124GB) and sometimes the videos can be 300+MB in size as avi's, so
> > > I was hoping maybe as mp4's I can have just as good videos of smaller file
> > > size.
> > >
> > > JB
> > >
> On Tue, Jun 16, 2020 at 10:17 AM tosiara <[email protected]> wrote:
> >
> > I don't know how development packages are installed in Slackware, in
> > Ubuntu I use this command:
> >
> > apt-get install autoconf automake build-essential pkgconf libtool
> > libzip-dev libjpeg-dev git libavformat-dev libavcodec-dev
> > libavutil-dev libswscale-dev libavdevice-dev libwebp-dev
> > libmicrohttpd-dev autopoint
> >
> > There is also alternative to build ffmpeg from sources and use it with
> > motion:
> > https://github.com/Motion-Project/motion/wiki/ffmpeg/705cc577cdda876f06079ff5caea3b41e94e066e
> >
> >
> On Tue, 16 Jun 2020 10:18:47 +0300
> tosiara <[email protected]> wrote:
>
> Sorry, wrong URL. Here it is:
> https://github.com/tosiara/motion/wiki/ffmpeg
>
Okay, I got it working so that I can make Motion write the captured video in
pretty much any codec I want. I had to rebuild ffmpeg from scratch on my
system. I had an *extremely* old version (2.X.X).
Once I rebuilt the newer ffmpeg (4.2.1), I then had to remove Motion and then
rebuild it using --with-ffmpeg, reinstall it and voila...Motion writes my
files as whatever I choose - mkv, mp4, avi, hvec, etc.
I'm now trying out the example given in the Motion help file using mkv:libx265
in the hopes that that will give me the clearest files and at the same time
the smallest.
As for how Slackware does dev files...I don't know how to explain it, only
that if one builds a Slackware package from source, it somehow automatically
has the dev part *and* the usable part mixed together in the end txz file that
gets installed.
Thanks again though for all the help and the pointers that got me going in the
right direction to get this figured out.
JB
>_______________________________________________
> 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
------------------------------
------------------------------
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 45
********************************************