[Live-devel] live-devel Digest, Vol 160, Issue 7

Nir Haroosh nir.haroosh at ozvision.com
Mon Apr 3 20:28:54 PDT 2017


Thanks for your answer.

The detection part is already done and works.

The focus of my question is how to implement a pre-event recording of the
RTSP into mp4 file.

Pre-event means that I need to capture video which starts from 10 seconds
back (before) the time of requesting the recording.

For example, if I request a recording on time 12:20:40 (hh:mm:ss), I need
the recorded video in the mp4 to start on 12:20:30 (10 seconds before) and
end on 12:20:55 (15 seconds after).

Can you explain how to do it?

Thanks,
Nir

בתאריך 26 במרץ 2017 22:05,‏ <live-devel-request at ns.live555.com> כתב:

> Send live-devel mailing list submissions to
>         live-devel at lists.live555.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.live555.com/mailman/listinfo/live-devel
> or, via email, send a message with subject or body 'help' to
>         live-devel-request at lists.live555.com
>
> You can reach the person managing the list at
>         live-devel-owner at lists.live555.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of live-devel digest..."
>
>
> Today's Topics:
>
>    1. Pre-event video capturing (Nir Haroosh)
>    2. Re: Pre-event video capturing (Ross Finlayson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 25 Mar 2017 20:56:31 +0300
> From: Nir Haroosh <nir.haroosh at ozvision.com>
> To: live-devel at ns.live555.com
> Subject: [Live-devel] Pre-event video capturing
> Message-ID:
>         <CAKmxcYU_KCNjPkTOTEpVrH5jeW8Qbu3Hc5cwBs
> 3creup9v2yhQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I would like to implement a pre-motion event capturing in an IP camera.
>
> For this purpose I need the stream to be always collected in a circular
> buffer and then when a motion is detected the stream data should be saved
> into an mp4 file and it should contain the video of the last 10 seconds
> before the event and the next 10 seconds after the event.
>
> Please let me know what is the best approach to implement this
> functionality.
>
> Thanks,
> Nir Haroosh
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.live555.com/pipermail/live-devel/
> attachments/20170325/5b6a70df/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 25 Mar 2017 12:56:49 -0700
> From: Ross Finlayson <finlayson at live555.com>
> To: LIVE555 Streaming Media - development & use
>         <live-devel at ns.live555.com>
> Subject: Re: [Live-devel] Pre-event video capturing
> Message-ID: <3974C721-041F-46B1-BA8B-DBCE2366E91D at live555.com>
> Content-Type: text/plain; charset=utf-8
>
> > I would like to implement a pre-motion event capturing in an IP camera.
> >
> > For this purpose I need the stream to be always collected in a circular
> buffer and then when a motion is detected the stream data should be saved
> into an mp4 file and it should contain the video of the last 10 seconds
> before the event and the next 10 seconds after the event.
> >
> > Please let me know what is the best approach to implement this
> functionality.
>
> You can implement the ?capturing from IP camera? part of this quite easily
> using our ?LIVE555 Streaming Media? software (assuming that your ?IP
> camera? uses RTSP); I suggest using our ?testRTSPClient? demo application
> as a model; see the code in ?testProgs/testRTSPClient.cpp?.
>
> However, to do ?motion detection?, you?ll need to decode the captured
> video stream.  Then you?ll need to re-encode the parts that you want to
> save.  Then you?ll need to write the re-encoded video into ?.mp4? files.
> For all of this, you?ll need something like the ?ffmpeg? library.  Sorry.
>
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
> ------------------------------
>
> End of live-devel Digest, Vol 160, Issue 7
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20170404/651f1097/attachment.html>


More information about the live-devel mailing list