> > pvrinput: 03:37:06 VIDIOC_S_STD failed, 16:Device or resource busy

> Segfault? Do you have a core dump or can you run it under gdb?
> 

I think I found the reason (but not really an explanation): 

If I don`t use the following code -which works in 0.8- , the plugins works: 

bool cPvrDevice::SetVideoNorm(int norm)
{
        v4l2_std_id std=V4L2_STD_PAL;
        switch (norm)
        {
                case videoNormPAL:
                        std = V4L2_STD_PAL;
                        break;
                case videoNormNTSC:
                        std = V4L2_STD_NTSC;
                        break;
                case videoNormSECAM:
                        std = V4L2_STD_SECAM;
                        break;
        }
        if (IOCTL(video_fd, VIDIOC_S_STD, &std) != 0)
        {
                log(0, "VIDIOC_S_STD failed, %d:%s", errno, strerror(errno));
                return false;
        }
        lastNorm=norm;
        return true;
}

Now I commented out every call to SetVideoNorm. But why does it work in 0.8 and 
not in trunk? At least with trunk the plugin works in PAL without setting the 
norm in the plugin (uses driver default?)

> > next problem: Playback of a recording freezes after a few seconds:
> >
> > Dec 22 04:37:26 linvdr user.info vdr: [1450] replay
> > /video0/@Der_Nordseewall/2006-12-22.04.26.50.50.rec Dec 22 04:37:26
> > linvdr user.debug vdr: [1450] playing
> > '/video0/@Der_Nordseewall/2006-12-22.04.26.50.50.rec/001.vdr' Dec 22
> > 04:37:26 linvdr user.err kernel: i2c-algo-bit.o: readbytes: i2c_inb
> > timed out. Dec 22 04:37:26 linvdr user.debug vdr: [1567] dvbplayer
> > thread started (pid=1567, tid=1567) Dec 22 04:37:26 linvdr user.debug
> > vdr: [1567] playing
> > '/video0/@Der_Nordseewall/2006-12-22.04.26.50.50.rec/002.vdr' Dec 22
> > 04:37:26 linvdr user.info vdr: [1567] resuming replay at index 5989
> > (0:03:59.15) Dec 22 04:37:26 linvdr user.debug vdr: [1568] non
> > blocking file reader thread started (pid=1568, tid=1568) Dec 22
> > 04:37:26 linvdr user.debug vdr: [1567] SetBrokenLink: no GOP header
> > found in video packet Dec 22 04:37:26 linvdr user.debug vdr: [1567]
> > setting audio track to 1 (0) Dec 22 04:37:26 linvdr user.info kernel:
> > ivtv0: Stereo mode changed Dec 22 04:37:30 linvdr user.err kernel:
> > i2c-algo-bit.o: readbytes: i2c_inb timed out. D
> 
> Does it also happen with 'cat file.mpg >/dev/video16'?

no, that works.

A similar problem existed with earlier ck-versions, when IVTV_DMA_DEC_BUF_SIZE 
was reduced from 0x00020000 to 0x00008000. 

The plugin uses a ringbuffer; I tried to reduce or increase its size, but it 
doesn`t help.

If you want to have a look in the source code:
http://drseltsam.device.name/vdr/pvr350-0.0.6pre1-Dr.Seltsam.tgz

> 
> Can you run a test with 'ivtvctl -D21'?

I attach the log.



-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Attachment: messages.tar.gz
Description: GNU Zip compressed data

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to