ZM and other app using the same video device

Support and queries relating to all previous versions of ZoneMinder
Locked
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

ZM and other app using the same video device

Post by loop »

I'd like to have ZM running and recording /dev/video0 on my RH9 but still be able to run GnomeMeeting using the same video device which ZM is recording. I'd need somehow to duplicate /dev/video0, because the other app (GnomeMeeting) says that /dev/video0 is in use.
I think I've seen somewhere such solution but I can't find it anymore.

Best regards,
Darko
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Re: ZM and other app using the same video device

Post by rdmelin »

Hi Darko,
You might checkout this "http://motion.sourceforge.net/vloopback/index.html"
It works with "motion", it may work with ZoneMinder. Also check the motion mailing list archive for some recent info on this.
"http://www.frogtown.com/pipermail/motion/"
Hope this helps

Ross
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Re: ZM and other app using the same video device

Post by loop »

Thank you Ross,
I'vre tried to make it work but I can't compile vloopback 0.91 or older on my RH9 2.4.20-8 linux. I don't know linux so good that I could solve the problem alone: Here's the result of the make:

Darko


[root@omnibox vloopback-0.91]# make
cc -D__KERNEL__ -DMODULE -DCONFIG_PROC_FS -DCONFIG_VIDEO_PROC_FS -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i686 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/src/linux/drivers/usb -I/usr/src/linux/include -c -o vloopback.o vloopback.c
vloopback.c: In function `uvirt_to_kva':
vloopback.c:172: warning: implicit declaration of function `pte_offset'
vloopback.c:172: warning: assignment makes pointer from integer without a cast
vloopback.c: In function `vloopback_mmap':
vloopback.c:503: warning: passing arg 1 of `remap_page_range' makes pointer from integer without a cast
vloopback.c:503: incompatible type for argument 4 of `remap_page_range'
vloopback.c:503: too few arguments to function `remap_page_range'
vloopback.c: At top level:
vloopback.c:878: warning: initialization from incompatible pointer type
make: *** [vloopback.o] Error 1
lgmoltrasio
Posts: 4
Joined: Fri Jun 10, 2005 9:14 pm

vloopback

Post by lgmoltrasio »

Is there some workaround about that?? I need to do something like that. 2 programs accesing the same device....

Thanks
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I _think_ V4L2 (Video 4 Linux v2) allows multiple concurrent access to video devices whereas V4L (v1) doesn't. I could be wrong though.

Phil
lgmoltrasio
Posts: 4
Joined: Fri Jun 10, 2005 9:14 pm

Post by lgmoltrasio »

Ok, Phil. I will try,

thanks.
Locked