[MPlayer-dev-eng] [PATCH] blue back tv feature (automute with no signal)

Vladimir Voroshilov voroshil at gmail.com
Fri May 25 11:42:33 CEST 2007


2007/5/25, Uoti Urpala <uoti.urpala at pp1.inet.fi>:
> On Fri, 2007-05-25 at 13:12 +0700, Vladimir Voroshilov wrote:
> > In such case first solution will be better, i think.
> > It is not difficult for me to add something like
> > "tv_is_signal_present" and check it in main loop together with
> > DEMUXER_TYPE_TV. If this is the only solution with current design,
> > i'll do so. I just need a point where to put such check in main loop.
>
> Does the demuxer generate some kind of (empty) frames even when there's
> no signal? The OSD is currently only updated when a new frame is drawn.
> If there are no video frames then more mainloop changes are required.
Demuxer works as usual, except that it stores in internal ringbuffer
blue colored frame instead of received one from v4l driver. Only frame
contents are changed.


> If there are frames then I think the architecturally best choice would
> be to mark the information in the demuxer packet and check that in the
> main loop when reading the packet. Implementing this requires some extra
> work though because currently the only extra information in addition to
> frame data that is read in the main loop is timestamps, and those are
> passed in separate parameters.
I like this idea. But i havent enough skilla to desing/implement it.

> Another alternative would be to return frames which contain the "no
> signal" text as the picture instead of using OSD.
Rendering text is too hard for me and, imho, will be much slower.



-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at jabber.ru
ICQ: 95587719



More information about the MPlayer-dev-eng mailing list