What if capturing is possible from only one input at a time?

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
basinilya
Posts: 11
Joined: Sat Jul 04, 2015 3:46 pm

What if capturing is possible from only one input at a time?

Post by basinilya »

Hi. I want to try with USB DVR EasyCAP DC60. It has 4 inputs, but only one can be used at time.
Can I tell zoneminder to switch active camera every n seconds (by opening a different /dev/videoN file or by running a shell command)?
If so, how will motion detection behave when input image suddenly change?

Desired behaviour is to virtualize the channels of one capture device as multiple devices. Reuse last captured frame while the channel is inactive. Skip a couple of frames while switching.

Code: Select all

12fps, switch each second.


ch:  0   1   2
    -----------
    001 blk blk
    002 blk blk
    003 blk blk
    004 blk blk
    005 blk blk
    006 blk blk
    007 blk blk
    008 blk blk
    009 blk blk
    010 blk blk
    011 blk blk
    012 blk blk
     --switch-- 
    012 skp blk
    012 skp blk
    012 015 blk
    012 016 blk
    012 017 blk
    012 018 blk
    012 019 blk
    012 020 blk
    012 021 blk 
    012 022 blk 
    012 023 skp
    012 024 skp
     --switch-- 
    012 024 025
    012 024 026
    012 024 027
    012 024 028
    012 024 029
    012 024 030
    012 024 031
    012 024 032
    012 024 033
    012 024 034
    012 024 035
    012 024 036
     --switch-- 
    012 024 036
    012 024 036
    039 024 036
    040 024 036
    041 024 036
    042 024 036
    043 024 036
    044 024 036
    045 024 036
    046 024 036
    047 024 036
    048 024 036
    049 024 036
    ...
basinilya
Posts: 11
Joined: Sat Jul 04, 2015 3:46 pm

Re: What if capturing is possible from only one input at a t

Post by basinilya »

Managed to split one capture device using ffmpeg.
ZM can't read uncompressed video from it, so instead I made ffmpeg output the split video to several v4l2loopback devices. There's a separate monitor in ZM for each virtual device.
Synchronizing source switching and splitting in ffmpeg with system clock.
Post Reply