[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandrake-cooker
Subject:    [Cooker] KwinTV status [WAS: Re: kwintv]
From:       Thierry Vignaud <tvignaud () mandrakesoft ! com>
Date:       2002-02-05 22:05:12
[Download RAW message or body]

--=-=-=

Thierry Vignaud <tvignaud@mandrakesoft.com> writes:

> > I have a tuner-tv on my computer, I have test yesterday xawtv with
> > xfree 4.2 and it not freeze my screen and keyboard as 4.1. This is
> > a good thinks.
> > 
> > I remember that kwintv working better than xawtv
> 
> since yesterday, drakX will now write XF86Config with v4l module by
> default; with you'll have a much better rendering on full screen
> (just add a 'Load "v4l"' in the module section of
> /etc/X11/XF86config-4

*****************  V4L  *****************

Note that this enable xawtv to do direct transfert from tv card to
video framebuffer with much less cpu time (still use pci bus bandwith
of course).

only xawtv uses it (its developper has written the XFree86 v4l modules
- guess why only xawtv is aware of it :-) - )

this should make the xawtv content move with its borders.


***************** kWinTV *****************

As of kinwtv, i've repackaged it.

it's in contribs because i've no tv card to test here (i've one at
home, so i'll test it in a couple of hours).

if it's enough stable, and if cooker monkeys (:-)) makes enough noise,
we may even put it in main.

so, test it :-)


PS: xawtv afficiandos can use this wizard to shut up kwintv
    supporters:


--=-=-=
Content-Disposition: attachment; filename=drakxtv

#!/usr/bin/perl
# DrakxTV

# Copyright (C) 2002 MandrakeSoft (tvignaud@mandrakesoft.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# If we ever want to autoconf the tv card at install time, we should
# make a package out of this.
# Maybe we'll have to for harddrake2
#package tvdrake;

use lib qw(/usr/lib/libDrakX);
use interactive;
use strict;
use detect_devices;

sub scan4channels {
    my $in = shift;
    my ($i, $ftable_id, $norm, $check);

    my %freqtables = (
				  _("USA (bcast)") => 0, _("USA (cable)") => 1, _("USA (cable-hrc)") => 2, \
                _("Canada (cable)") => 15,
				  _("Japan (bcast)") => 3, _("Japan (cable)") => 4, _("China (bcast)") => 12,
				  _("West Europe") => 5, _("East Europe") => 6, _("Italy") => 7, _("Ireland") => \
10, _("France") => 11,  _("Newzealand") => 8, _("Australia") => 9,				 
				  _("Southafrica") => 13,
				  _("Argentina") => 14
				  );

    my %tv_norms = ("SECAM" => 2, "PAL" => 0, "NTSC" => 1, "AUTO" => 3);


    $in->ask_from("TVdrake",
			   _("Please,\ntype in your tv norm and country"),
			   [
			    { label => _("TV norm :"), val => \$norm, list => [keys %tv_norms], not_edit \
                => 1, type => 'combo'},
			    { label => _("Area :"), val => \$ftable_id, list => [keys %freqtables], \
not_edit => 1, sort => 1}, # No more used since XFdrake force v4l loading with \
XFree86-4 #			    { label => _("Use V4L ?"), val => \$check, type => "bool",
#				 text => _("(recommanded to support full screen under XFree86 v4)") },
			    ],
			   complete => sub { 
# one days, prints scantv logs in an xterm
				  my $wait = $in->wait_message('Please wait', _("Scanning for TV channels in \
progress ..."));  system((! -x "/usr/X11R6/bin/xvt") ?
					    "xvt -title '"._("Scanning for TV channels")." ...' -e scantv -o ~/.xawtv" : \
                ""
					    . "scantv -n $norm -f $ftable_id -o ~/.xawtv");
				  $in->exit(0);
			   },
			   ) or $in->exit(0);
    $in->exit(0);
}


sub is_tv {
    foreach (grep { $_->{media_type} eq 'MULTIMEDIA_VIDEO' } \
detect_devices::probeall(1)) {  return 1;
    }
    0;
}

# Reverted for test :
scan4channels('interactive'->vnew()) if (is_tv);

# TODO :
# - try to figure out land from locale ?
# - try to figure out tv norm from land ?
# - use Video-Capture-V4l-0.221
# - reput kwintv and test it
# - configure kwintv and zapping ? => they've already wizards

--=-=-=--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic