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. Using motion with AVFoundation (Jens Ahrens)
2. Re: pictures not saving (John D. Gwinner)
----------------------------------------------------------------------
Message: 1
Date: Fri, 15 Feb 2019 14:44:38 +0000
From: Jens Ahrens <[email protected]>
To: "[email protected]"
<[email protected]>
Subject: [Motion-user] Using motion with AVFoundation
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hello!
I?d like to use motion on macOS. I have only managed to access the onboard
camera using AVFoundation (I?m new to video). As far as I can see, motion
cannot handle this framework. Searching the mailing list archive for
avfoundation did not yield a match.
I've been trying to stream the video to localhost with ffmeg and then grab the
stream with motion, but without success. I can, for example, stream the camera
signal with
ffmpeg -f avfoundation -framerate 30 -pixel_format uyvy422 -i "0" -f mjpeg
udp://127.0.0.1:1234
and then watch it with
ffplay udp://127.0.0.1:1234
I?d think that my parameter choice is bad as there are several seconds of
latency, but I guess that I can figure this out myself.
My question is now: how can I pipe such as stream into motion? I can guess that
I need a different format but haven't figured out a way that works.
Thanks!
Jens
------------------------------
Message: 2
Date: Fri, 15 Feb 2019 23:17:53 +0000
From: "John D. Gwinner" <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] pictures not saving
Message-ID:
<byapr01mb4213813a324bbef8de5c845ec3...@byapr01mb4213.prod.exchangelabs.com>
Content-Type: text/plain; charset="utf-8"
Where did you get 4.2.1 from?
What exact database are you using?
I found (I think it?s listed as a bug on github) that if you download source
and build it, on an RPi you probably don?t have database support. There?s no
errors; SQL statements just do ... nothing.
My workaround was to create a Ubunto VM, download MySQL from Oracle, and run
the configure stuff; then take the generated include and config files and copy
them over to the Pi, then build the pi app.
Now I have the latest and greatest and MySQL support.
The exact same sql statements that worked with ?apt-get motion? now work with
the newest motion.
This may not be your issue, but I thought it might help if it were!
== John ==
From: Tim Brown <[email protected]>
Sent: Friday, February 15, 2019 2:59 AM
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] pictures not saving
The typo was it! I removed "value" and files are saving.
Thank you!
Not saving to the database yet though.
Conf for mysql:
95 #setup_mode off
96 sql_log_snapshot on
97 sql_log_picture on
98 sql_log_movie off
99 database_type mysql
100 database_dbname security
101 database_host localhost
102 database_port 3306
103 database_user xxxx
104 database_password xxxx
105
106 sql_query insert into security(camera, filename, frame, file_type,
time_stamp, text_event) values('%t', '%f', '%q', '%n', '% Y-%m-%d %T',
'%C')
sql_query is the same as before. No records appearing yet. I must have
missed a step?
On Fri, Feb 15, 2019 at 1:29 AM tosiara
<[email protected]<mailto:[email protected]>> wrote:
You have a typo:
target_dir value /cams/nmotion
Remove "value"
On Fri, Feb 15, 2019 at 1:22 AM Tim Brown
<[email protected]<mailto:[email protected]>> wrote:
>
> target_dir is set, filename is set and these settings are there:
> camera_name FrontDoor
> threshold 50000
> target_dir value /cams/nmotion
> picture_output on
> picture_output_motion off
> picture_type jpeg
> picture_filename front/FrontDoor_%t-%v-%Y%m%d%H%M%S
>
> The output shows:
> [1:ml1:FrontDoor] [NTC] [EVT] event_newfile: File of type 1 saved to: value
> /cams/nmotion/front/FrontDoor_101-01-20190214181340.jpg
> [1:ml1:FrontDoor] [NTC] [EVT] Above message repeats 28 times
>
> But, no files show up.
>
> I have used the 3x version for years with good success, just trying to get
> this new one going.
> The version is 4.2.1.
>
> Any ideas?
> --
> ? Tim Brown
> _______________________________________________
> 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
--
? Tim Brown
-------------- 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 152, Issue 8
*******************************************