Hello Klaus,

After having newly loaded the DVB driver, the first GRAB command
in VDR always produces an empty (all gray) image. Sometimes (rarely) the
first grabbed image looks as if it contains only one half picture (i.e.
every other scan line is gray).

The driver initializes all capture buffers using a gray value. "saa7146_core.c" says:


        /* clear the ram out, no junk to the user
           note: 0x7f gives a nice grey field
           in RGB and YUV as well */
        memset(mem, 0x7f, quant*GRABBING_MEM_SIZE);

So there is either something wrong with the order the capture ioctls are called or something in the driver is bogus, ie. it hands out a capture buffer that has not been captured to.

After that, all following GRABs work just fine.

I did several tests, but couldn't find anything in VDR or the driver
that might fix this. Can one of the driver developers perhaps come up
with an idea where to look and what to try in order to fix this?

If it's driver related, then it's probably not worth the effort. Video4Linux-1 has serious issues regarding capturing, they are probably made even worse by the implementation in the early versions of my driver.


I'm sorry, but I don't have the time and energy to fix that code. All this mess was the reason for me to abandon Video4Linux-1 in the past and start with a Video4Linux-2 driver from scratch.

If this is getting a problem, use "dvb-kernel" instead and additionally switch over to Video4Linux-2.

I would assume that it's probably a simple thing, like a missing or wrong
initialization of some kind...

Probably. Something in the capture logic is messed up IMHO.


Klaus

CU Michael.





--
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.



Reply via email to