Re: How to detect loss of COMPOSITE signal?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Gerd Knorr wrote:
Michel Bardiaux <mbardiaux@xxxxxxxxxxx> writes:


know I can use VIDIOCGTUNER to detect the loss of RF signal; but what
happens when one capture from COMPOSITE and the source of the
composite signal fails? And how can I detect that?


tuner.signal likely works for that too, depending on the driver.  At
least bttv doesn't ask the tuner but checks the bt878 status register
to see whenever it has a signal or not ...

  Gerd

It *does* work (at least with an Hercules SmartTV which is a BT878)! Wunderschon! Thanks!

But this led me to a related question: when there is no composite or no RF, I have seen that a sequence VIDIOCMCAPTURE+VIDIOCSYNC does not block, an one gets either noise, or a frozen image, or a patchwork of both. But what is the *timing*? Will VIDIOCSYNC return at once? None of the V4L documents I have found seems to say anything about that.

--
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux