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: Youtube + high resolution on Raspberry Pi (Dougie Nisbet)
   2. Re: Youtube + high resolution on Raspberry Pi (Benjamin)
   3. Re: Youtube + high resolution on Raspberry Pi (tosiara)


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

Message: 1
Date: Mon, 11 May 2020 16:24:26 +0100
From: Dougie Nisbet <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Youtube + high resolution on Raspberry Pi
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Out of interest, do you mean, actually in a birdhouse, and if so, how is 
it lit? Is a birdhouse a nestbox? Or something like a pidgeon house? Are 
you hard-wiring the network or using wifi?

I'm curious because I gave up trying to do this. I did have a USB webcam 
in an owl box (caught a squirrel litter being born) and on nesting boxes 
but I had lots of problems with false positives and trying to tweak 
sensitivity.

Sorry I can't help with your question but it sounds an interesting project.

Dougie

On 11/05/2020 13:10, Benjamin wrote:
> 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
>
>
> _______________________________________________
> 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 17:52:46 +0200
From: Benjamin <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Youtube + high resolution on Raspberry Pi
Message-ID:
        <CALcefn_1apE05iZrzYv9=qEMir=jyv2_r2wfa6oatqjbyfs...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Yes it will be installed in a nestbox for common swifts at a friends
house. In fact we already have one working but the framerate is low
(raspberry pi zero) and we need a PC for streaming (OBS Studio). Here
is the stream, if you're lucky it is working:
https://www.youtube.com/watch?v=hC7_09NgACQ
It will be lit with an IR LED with a 3D printed cover to soften the
light. And it'll be connected with WiFi. The nestboxes are attached to
the house and we found out that the access point needs to be placed
quite close.

Ben

Le lun. 11 mai 2020 ? 17:25, Dougie Nisbet <[email protected]> a ?crit :
>
> Out of interest, do you mean, actually in a birdhouse, and if so, how is it 
> lit? Is a birdhouse a nestbox? Or something like a pidgeon house? Are you 
> hard-wiring the network or using wifi?
>
> I'm curious because I gave up trying to do this. I did have a USB webcam in 
> an owl box (caught a squirrel litter being born) and on nesting boxes but I 
> had lots of problems with false positives and trying to tweak sensitivity.
>
> Sorry I can't help with your question but it sounds an interesting project.
>
> Dougie
>
> On 11/05/2020 13:10, Benjamin wrote:
>
> 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
>
>
> _______________________________________________
> 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



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

Message: 3
Date: Mon, 11 May 2020 20:01:34 +0300
From: tosiara <[email protected]>
To: [email protected],  Motion discussion list
        <[email protected]>
Subject: Re: [Motion-user] Youtube + high resolution on Raspberry Pi
Message-ID:
        <CACHTdwTcup9FQXDEYCUcaB3JsVoywc+6-PBBRP7ox-iUK=n...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Let's start from upgrading to the latest 4.3.1 and capturing a log with -d 7

If you are familiar with gdb would be great to the backtrace of the crash

On Mon, May 11, 2020, 15:11 Benjamin <[email protected]> wrote:

> 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
>
>
> _______________________________________________
> 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 167, Issue 21
********************************************

Reply via email to