Multiplexing multiple video inputs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi list,

First I'd like to say I'm new to this list, so please excuse me if I'm
asking FAQ questions etc. I hope some of the more experienced v4l(2)
programmers can think over my case, and give me some advice on the subject.

For a security-camera system, I want to record multiple video streams at the
same time (to mpeg), using v4l. The idea is switching camera input during
the vsync, and thus having multiple streams with lower framerates. (25/N fps
with N inputs)


             _____      ______________      ________
 Cam1   --->|     |    |              |    | softw. |--->MPGenc1 --> stream 1
 Cam2   --->|video|--->| framegrabber |--->| to be  |--->MPGenc2 --> stream 2
 Cam3   --->| mux |    | (bt8?8,  )   |    | made   |--->MPGenc3 --> stream 3
 CamX   --->|_____|    |______________|    |________|--->MPGenc4 --> stream X
               ^                               |
               |_______________________________|

It seems to me there are a few different alternatives to make this work; fix
something in the v4l drivers so multiple /dev/video# devices are available,
and let the driver to the channel muxing, or do the switching and capturing
completely at user space.

Does anybody have some tips to get me started here ? (or does a similar
solution already exist ?) I am especially concerned about things like
syncing, consitent speed and framerate and avoiding dropping frames. I'm
thinking of using mp1e/rte as MPG encoder.

Thanks in advance !

/Ico Doornekamp


PS. Excuse me if this message is posted multiple times, but it seemed
bouncesd so I tried again.





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux