[MPlayer-dev-eng] [PATCH] TV auto scan and channel list in file

Vladimir Voroshilov voroshil at gmail.com
Sat Aug 25 13:06:08 CEST 2007


2007/8/25, Bernd Ernesti <mplayer-dev-eng at lists.veego.de>:
> On Fri, Aug 24, 2007 at 12:19:04PM +0700, Vladimir Voroshilov wrote:

> Hmm, it seems to scan the channels.
> I had to fix compile problems and made some format changes to make it more
> readable.

Thanks.

> BUT, it always scans the channels even when I don't use -tvscan (just
> mplayer tv://1).

It should not start scanning even you pass -tvscan option.
Only "-tvscan autostart" starts scanning after MPlayer startup.


> Btw, tvi_bsdbt848.c needs some cleanup because it wasn't using mp_msg
> before your patch. A lot of perror remains in it, which has to be fixed
> in another run.

And a one big indentation patch ;)

> > I want to see printed value for active and inactive channels.

> - inactive
> tvi_bt848: get signal 0x4
> - active
> tvi_bt848: get signal 0x2

This is VERY strange.
All code i found uses this value as signal strength.
I this case:
0x2=29%
0x4=57%
Are you sure that inactive channel shows 0x4 rather than 0x2?
Please recheck this once again to be sure

If 0x4 corresponds to active channel, you can change line
 *(int*)arg = status & 0x07?100:0;
to
 *(int*)arg = 100.0*(status & 0x07)/7;

to finally fix channel scanning for BT848


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



More information about the MPlayer-dev-eng mailing list