New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement request - Output as video file #60

Closed
vgoncearencu opened this Issue Dec 2, 2016 · 14 comments

Comments

3 participants
@vgoncearencu
Copy link

vgoncearencu commented Dec 2, 2016

Hello,
it would be great to have possibility if a motion detection is triggered to save that event not as a series of images but instead trigger a video record and save it to a file with possibility to view it from WebUI .

So from configuration page we could choose, output type as either:

  • Image (snapshot)
    or
  • Video record

Why it should be implemented ?

  1. There are times that an action takes like 2 minutes. By this time machinery creates hundreds of images . In order to view what happened from WebUI we have to click button "next" to get next image hundreds of time, in order to view what happened in reality. This creates discomfort :(

  2. In OpenCV there is already "VideoWriter::VideoWriter" constructor that could be used for this.
    This constructor can create files in many formats including mpeg-1 and mjpg.
    http://docs.opencv.org/3.0-beta/modules/videoio/doc/reading_and_writing_video.html#videowriter-videowriter

Let me know what do you think about this possible enhancement ?

Thank you,
Victor

@marksev1

This comment has been minimized.

Copy link

marksev1 commented Dec 6, 2016

Maybe the images could still be used but in the WebUI there would be a slider to fast scroll through the images? Thus creating a video with sliding the slider faster :). What do you think?

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 6, 2016

Hello @vgoncearencu

I've thought about this feature a lot, and the reason why I didn't developed is because I wasn't able to save the videofile with the correct FPS (performance of the machine to process the algorithms). It's a hard exercise, and requires a different approach..

But indeed it would be a nice feature.
Cédric

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 6, 2016

@marksev1, problem is that loading all the images separately will request more bandwidth. At this moment the first 3 images are preloaded. I admit if there are a lot of images, it's a repetitive task.

@cedricve cedricve added the help wanted label Dec 7, 2016

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 7, 2016

@vgoncearencu @marksev1 I'll see if I can make develop something clean for this. Probably I'll need help from an expert.

@cedricve cedricve added in progress and removed help wanted labels Dec 11, 2016

@cedricve cedricve self-assigned this Dec 11, 2016

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 11, 2016

Currently implementing the video feature, will release a develop version once I have a stable solution.

@vgoncearencu

This comment has been minimized.

Copy link

vgoncearencu commented Dec 11, 2016

thank you guys you are the best!

cedricve added a commit that referenced this issue Dec 14, 2016

first version of IoVideo device #60
This is the first version which allows users to save a video into the
capture folder (next to the images). What still needs to be done is
make it visible on the web interface.
@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 16, 2016

Video's will be displayed in the GUI like this, what do you think? A player will open once you've clicked on a camera icon.

screen shot 2016-12-16 at 20 03 26

screen shot 2016-12-17 at 01 06 24

@vgoncearencu

This comment has been minimized.

Copy link

vgoncearencu commented Dec 18, 2016

Looks good. The player will have a start/stop/pause buttons ?

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 18, 2016

yes @vgoncearencu

screen shot 2016-12-18 at 21 15 28

However when multiple videos are recorded as visualised above I would like to have a playlist as well. what do you think?

screen shot 2016-12-18 at 21 17 24

@vgoncearencu

This comment has been minimized.

Copy link

vgoncearencu commented Dec 18, 2016

yes. That will make watching videos much easier.

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 21, 2016

Update on player, now includes a playlist.

screen shot 2016-12-21 at 13 54 31

screen shot 2016-12-21 at 13 57 05

@marksev1

This comment has been minimized.

Copy link

marksev1 commented Dec 21, 2016

Its soo cool to watch the developement in realtime Cedric! :D

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Dec 29, 2016

Finished this feature, and added to develop branch. This will be integrated in next release.

Features:

  • Video and or Image can be saved.
  • When only video's are saved, the first video in a sequence will be play automatically in the web interface.
  • When more videos are saved in a sequence a playlist is available.
  • Responsive support.
  • FPS, codec and format can be configured through web interface.

GIF

2016-12-29 12_47_11

Mobile

screen shot 2016-12-29 at 12 40 08

Settings

screen shot 2016-12-29 at 12 50 52

@cedricve cedricve closed this Dec 29, 2016

@wafflebot wafflebot bot removed the in progress label Dec 29, 2016

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Jan 8, 2017

will be integrated in version 2.2.0

@cedricve cedricve reopened this Jan 8, 2017

@cedricve cedricve added this to the 2.2.0 milestone Jan 8, 2017

@cedricve cedricve closed this Jan 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment