Page 1 of 1

Using a pvr350/ivtv as source

Posted: Tue Aug 10, 2004 5:38 pm
by JimNoble
Hi,

I'm trying to set up zoneminder to use a hauppauge PVR350 as a local source.

"cat /dev/video0 > test.mpg" produces a valid mpeg-2 file, so the ivtv setup is working ok.

I've used the following settings in the "Source" tab for the monitor:

Device Number: 0
Device Channel : 0
Device Format (0=PAL,1=NTSC etc) : 0
Capture Palette RGB24
Capture Width (pixels): 720
Capture Height (pixels): 576

But nothing is captured.

/var/log/messages has:

Aug 10 18:27:50 hopstname kernel: saa7115: decoder set size
Aug 10 18:27:50 hostname kernel: saa7115: decoder set picture bright=128 contrast=64 saturation=64 hue=0
Aug 10 18:27:50 hostname last message repeated 3 times
Aug 10 18:27:50 hostname kernel: saa7115: decoder set size
Aug 10 18:27:50 hostname zmc-d0[3721]: ERR [Failed to setup memory: Invalid argument]

repeated a whole bunch of times, and zmdc.log says:

Starting pending process, zmc -d 0
'zmc -d 0' started at 04/08/10 18:38:30
'zmc -d 0' starting at 04/08/10 18:38:30, pid = 3849
'zmc -d 0' crashed at 04/08/10 18:38:30, exit status 255

If I understand correctly, zm can not work from an mpeg2 source (which is what is streamed out of /dev/video0 by default).

However, I've tried changing the stream_type setting using ivtvctl to either YUV or VID, but that makes no difference.

Has anyone else managed to get this card to work as a zm source successfully?

(I'm using ivtv-0.1.10-40_pre2_ck100m on fedora core 2 and zm v1.19.4)

Thanks,

Jim

Posted: Fri Sep 03, 2004 6:17 am
by kim_asplund
have you tryed to change the resolution to say... 384*288 or increases the memory?

Posted: Mon Jul 11, 2005 6:48 pm
by darkunderlord
I have this exact same problem with my PVR-150 and have tried alot of things to get it to work. I can successfully get MythTV to work with it and also do a cat /dev/video0 > test.mpg and it will work. Also an mplayer /dev/video0 works.

I cannot get the shared memory thing to work at all. I'm also using the newer zoneminder version.

Can anyone give any updates on IVTV and/or why it won't work with ZM but works with other apps?

Thanks!

Posted: Fri Jan 13, 2006 9:38 pm
by stever
ivtv devices won't work with shared memory like other V4L devices. the PVR will output non mpeg video which would work.

If you want a work around you can use somthing to capture stills from the PVR (like mplayer) and point ZM to the stills, it takes more CPU and result in lower possible frame rates, but it works.

Using IVTV cards

Posted: Thu May 04, 2006 11:50 pm
by hfraser4
stever wrote:ivtv devices won't work with shared memory like other V4L devices. the PVR will output non mpeg video which would work.

If you want a work around you can use somthing to capture stills from the PVR (like mplayer) and point ZM to the stills, it takes more CPU and result in lower possible frame rates, but it works.
So how exactly would one go about doing this? I have an Adaptec 2010 card with the IVTV drivers.

Posted: Mon Oct 23, 2006 4:25 pm
by Adam Sulmicki
Hello folks,

Here's a proof-of-concept patch for using IVTV cards with ZM.

http://www.eax.com/patches/zm-1.22.2-ivtv-hm12.1.patch

see comments at top of the patch.

improvemnets welcome.

Posted: Sun Nov 26, 2006 11:40 am
by Adam Sulmicki
Fyi,

This thread is continued at User Contribiutions forum under :

http://www.zoneminder.com/forums/viewtopic.php?t=7075

Adam