Using a pvr350/ivtv as source

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
JimNoble
Posts: 58
Joined: Thu Jul 29, 2004 12:12 am

Using a pvr350/ivtv as source

Post 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
kim_asplund
Posts: 33
Joined: Tue Dec 16, 2003 1:51 pm

Post by kim_asplund »

have you tryed to change the resolution to say... 384*288 or increases the memory?
darkunderlord
Posts: 2
Joined: Mon Jul 11, 2005 6:43 pm

Post 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!
stever
Posts: 2
Joined: Fri Jan 13, 2006 9:27 pm

Post 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.
hfraser4
Posts: 1
Joined: Thu May 04, 2006 11:44 pm
Location: Hamilton, Ontario, Canada

Using IVTV cards

Post 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.
Adam Sulmicki
Posts: 16
Joined: Wed Oct 11, 2006 3:16 pm

Post 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.
Adam Sulmicki
Posts: 16
Joined: Wed Oct 11, 2006 3:16 pm

Post by Adam Sulmicki »

Fyi,

This thread is continued at User Contribiutions forum under :

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

Adam
Post Reply