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: Watchdog timeout (Kevin)
2. Youtube + high resolution on Raspberry Pi (Benjamin)
----------------------------------------------------------------------
Message: 1
Date: Mon, 11 May 2020 04:35:07 +1000
From: Kevin <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Watchdog timeout
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
No, not that I can recall.
-------- Original Message --------
From: Joris <[email protected]>
Sent: Sun May 10 22:16:31 GMT+10:00 2020
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Watchdog timeout
Equally for my personal curiosity and troubleshooting: is there anything
interesting happening in the kernel log at/after the time of the timeout?
(dmesg)
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
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: Mon, 11 May 2020 14:10:12 +0200
From: Benjamin <[email protected]>
To: [email protected]
Subject: [Motion-user] Youtube + high resolution on Raspberry Pi
Message-ID:
<calcefn_cr5xmwnul8keyuxaxctb05dvmnowz0yzjerpjx8v...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hello,
I'd like to build a camera for a birdhouse that does the following:
- Store high resolution movies of motion events (1280x960 25fps)
- Stream to Youtube at 1280x960 25fps
It'll run on a Raspberry Pi 3A+. I'm testing on a Raspberry Pi 3B+
with motion 4.3.1.
I thought of using gstreamer to split the camera stream to Youtube and
to motion.
After many trials I came up with the following pipeline. The idea is
to produce 3 outputs:
- stream to Youtube with silent audio (this part works well)
- high resolution stream for saving movies (movie_passthrough) on
/dev/video4 (v4l2loopback)
- low resolution and low framerate stream for motion detection on
/dev/video3 (v4l2loopback)
gst-launch-1.0 -v rpicamsrc bitrate=5000000 ! \
video/x-h264,width=1280,height=960,framerate=25/1 ! \
tee name=rpicam ! \
queue ! \
h264parse ! \
flvmux name=ytmux ! \
rtmpsink location=rtmp://a.rtmp.youtube.com/live2/the-secret-stream-id \
audiotestsrc volume=0 ! \
voaacenc ! \
ytmux. \
rpicam. ! \
queue ! \
h264parse ! \
video/x-h264,stream-format=byte-stream ! \
v4l2sink device=/dev/video4 \
rpicam. ! \
queue ! \
h264parse ! \
decodebin ! \
videorate ! \
videoscale ! \
video/x-raw,width=320,height=240,framerate=5/1 ! \
omxh264enc ! \
h264parse ! \
video/x-h264,stream-format=byte-stream ! \
v4l2sink device=/dev/video3
rpicamsrc comes from here: https://github.com/thaytan/gst-rpicamsrc
my motion.conf file:
daemon off
setup_mode off
log_level 6
netcam_url v4l2:///dev/video3
netcam_highres v4l2:///dev/video4
width 320
height 240
framerate 5
text_left CAMERA1
text_right %Y-%m-%d\n%T-%q
emulate_motion off
threshold 1500
despeckle_filter EedDl
minimum_motion_frames 1
event_gap 10
pre_capture 3
post_capture 0
picture_output off
picture_filename %Y%m%d%H%M%S-%q
movie_output on
movie_passthrough on
movie_max_time 60
movie_codec mkv
movie_filename %t-%v-%Y%m%d%H%M%S
webcontrol_port 8080
webcontrol_localhost off
webcontrol_parms 3
stream_port 8081
stream_localhost off
/dev/video3 and /dev/video4 are configured like this:
pi@raspberrypi /e/motion> v4l2-ctl -d3 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'H264' (H.264, compressed)
Size: Discrete 320x240
Interval: Discrete 0.200s (5.000 fps)
pi@raspberrypi /e/motion> v4l2-ctl -d4 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'H264' (H.264, compressed)
Size: Discrete 1280x960
Interval: Discrete 0.040s (25.000 fps)
The thing is I cannot get it to work reliably. Motion either stops
with SIGSEGV, or I get ffmpeg decoding errors. It somewhat worked once
or twice, but the stored movies were not readable (no frame error). So
I guess I'm missing something or taking the wrong approach.
Does someone have an idea of how I could achieve this ? Or where else
I could investigate ? Maybe should I only feed the low res to motion
using the videodevice parameter and use an external program for
recording the high resolution stream ?
Thanks for your help,
Benjamin
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 167, Issue 20
********************************************