Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xawtv[SOLVED with a 'try every possible combination' script]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Mon Mar 10, 2003 5:26 pm    Post subject: xawtv[SOLVED with a 'try every possible combination' script] Reply with quote

I seem to be making a name for myself with unsuccessful threads so I'll try and keep this one concise (failing already it would appear)...

    This is xawtv-3.81, running on Linux/i686 (2.4.20)
    WARNING: no plugins found [/usr/lib/xawtv]
    WARNING: Your X-Server has no DGA support.
    can't open /dev/v4l/video0: No such file or directory
    v4l-conf had some trouble, trying to continue anyway
    no video grabber device available


wondering about all of this actually.

no plugins?
comes as a result of ebuild error regarding xine lib
    ln -s /usr/lib/ /usr/lib/xawtv
fixed it for the time being


DGA support?. I imagine, whatever it is (Direct Graphics...Arse?) , is enable-able by commenting out that line in XF86Config

    # This loads the miscellaneous extensions module, and disables
    # initialisation of the XFree86-DGA extension within that module.
    SubSection "extmod"
    Option "omit xfree86-dga" # don't initialise the DGA extension
    EndSubSection

but isn't that disabled for a reason?
DGA appears to be an X extension that allows framebuffer access

I have v4l loading in the XFree86 config file

I had enabled bttv in the kernel which is why this also came as a bit of a shock

    dave@myhouse dave $ /sbin/modprobe bttv
    /lib/modules/2.4.20/kernel/drivers/i2c/i2c-core.o: create_module: Operation not permitted
    /lib/modules/2.4.20/kernel/drivers/i2c/i2c-core.o: insmod /lib/modules/2.4.20/kernel/drivers/i2c/i2c-core.o failed
    /lib/modules/2.4.20/kernel/drivers/i2c/i2c-core.o: insmod bttv failed

any ideas?

"operation not permitted" solved, obviously, by just logging in as root


thanks

[edited 20:48 10/03/03 to include some solutions]


Last edited by pubecon on Wed Mar 12, 2003 7:37 pm; edited 4 times in total
Back to top
View user's profile Send private message
BobbyJ
n00b
n00b


Joined: 25 Feb 2003
Posts: 14
Location: Los Angeles

PostPosted: Mon Mar 10, 2003 5:40 pm    Post subject: Reply with quote

I don't think you did anything wrong. I think the current ebuild puts things in the wrong places. See bugzilla.

Alternattivly, emerge 'tvtim' which works better and looks better and does work.
_________________
I had amnesia once. No.....twice.
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Mon Mar 10, 2003 5:49 pm    Post subject: Reply with quote

downloading tvtime right now

Last edited by pubecon on Mon Mar 10, 2003 8:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Mon Mar 10, 2003 8:41 pm    Post subject: Reply with quote

tvtime emerged, runs fine - just no channels to be seen

I tried running scantv but it scans right through everything without finding a station.

the card is obviously connected


    Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 2).
    IRQ 11.
    Master Capable. Latency=32. Min Gnt=16.Max Lat=40.
    Prefetchable 32 bit memory at 0xdf001000 [0xdf001fff].
    Bus 0, device 12, function 1:
    Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 2).
    IRQ 11.
    Master Capable. Latency=32. Min Gnt=4.Max Lat=255.
    Prefetchable 32 bit memory at 0xdf002000 [0xdf002fff].
    Bus 1, device 0, function 0:


the gist I've picked up is that modules.conf should be configured to include various bttv parameters and aliases but quite what is beyond me and

with dmesg not returning only


    tuner: tuner type not set
    tuner: tuner type not set
    .....
    bttv0: PLL: 28636363 => 35468950 ... ok
    tuner: tuner type not set
    bttv0: PLL: switching off
    .....
    tuner: tuner type not set
    tuner: tuner type not set
    ....
    bttv0: PLL: 28636363 => 35468950 ... ok
    ....
    tuner: tuner type not set
    tuner: tuner type not set
    tuner: tuner type not set
    tuner: tuner type not set


I am wondering if there is a greater problem
Back to top
View user's profile Send private message
BobbyJ
n00b
n00b


Joined: 25 Feb 2003
Posts: 14
Location: Los Angeles

PostPosted: Mon Mar 10, 2003 8:55 pm    Post subject: Reply with quote

Let me show youwhat I have loaded, and I have not ever looked at modules.conf

bob@gentoo: pts/0: 5 files 108Kb -> su root
Password:

Mon Mar 10 14:51:14 UTC 2003
/home/bob
root@gentoo: pts/0: 5 files 108Kb -> lsmod
Module Size Used by Not tainted
ide-cd 33260 0 (autoclean)
tuner 10272 1 (autoclean)
tvaudio 14236 0 (autoclean) (unused)
msp3400 40044 1 (autoclean)
bttv 70720 1
i2c-algo-bit 9960 1 [bttv]
i2c-core 18312 0 [tuner tvaudio msp3400 bttv i2c-algo-bit]

My etc/modules.atoload looks like this:

# Add the names of modules that you'd like to load when the system
# starts into this file, one per line. Comments begin with # and
# are ignored. Read man modules.autoload for additional details.

# For example:
# 3c59x
bttv
msp3400
tvaudio
tuner


It sounds to me like your tuner is not running. Do an lsmod and see if it is loaded.
_________________
I had amnesia once. No.....twice.
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Mon Mar 10, 2003 9:16 pm    Post subject: Reply with quote


    bttv 70464 0
    videodev 4384 2 [bttv]
    i2c-algo-bit 7656 1 [bttv]
    tvmixer 3760 0 (unused)
    tvaudio 12924 0 (unused)
    tuner 10240 1
    i2c-core 13924 0 [bttv i2c-algo-bit tvmixer tvaudio tuner]
    emu10k1 66312 2 (autoclean)
    sound 61868 0 (autoclean) [emu10k1]
    ac97_codec 11176 0 (autoclean) [emu10k1]
    NVdriver 1066944 10
    sr_mod 14424 0 (unused)
    sg 29324 0
    ide-scsi 8912 0


it's definetly loaded. it's also configured with


    options bttv radio=0 card=38
    options tuner type=1


where 1 is supposed to denote PAL_I (alright for UK?) and the card=38 is for my tview99 card.
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Tue Mar 11, 2003 12:54 pm    Post subject: Reply with quote

I rebooted...why didn't I reboot before?!

but problem is still unsolved

however, dmesg now spews out some interesting things related to my tvcard

    Linux video capture interface: v1.00
    bttv: driver version 0.7.96 loaded
    bttv: using 4 buffers with 2080k (8320k total) for capture
    bttv: Host bridge is VIA Technologies, Inc. VT8363/8365 [KT133/KM133]
    bttv: Host bridge is VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
    bttv: Bt8xx card found (0).
    PCI: Found IRQ 11 for device 00:0c.0
    PCI: Sharing IRQ 11 with 00:08.0
    PCI: Sharing IRQ 11 with 00:0c.1
    bttv0: Bt878 (rev 2) at 00:0c.0, irq: 11, latency: 32, mmio: 0xdf001000
    bttv0: detected: (Askey Magic/others) TView99 CPH06x [card=38], PCI subsystem ID is 144f:3000
    bttv0: using: BT878(Askey CPH06X TView99) [card=38,insmod option]
    i2c-core.o: adapter bt848 #0 registered as adapter 0.
    bttv0: using tuner=-1
    bttv0: i2c: checking for MSP34xx @ 0x80... not found
    bttv0: i2c: checking for TDA9875 @ 0xb0... not found
    bttv0: i2c: checking for TDA7432 @ 0x8a... not found
    tvaudio: TV audio decoder + audio/video mux driver
    tvaudio: known chips: tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea642 0,tda8425,pic16c54 (PV951)
    i2c-core.o: driver generic i2c audio driver registered.
    i2c-core.o: driver i2c TV tuner driver registered.
    tuner: probing bt848 #0 i2c adapter [id=0x10005]
    tuner: chip found @ 0xc0
    bttv0: i2c attach [client=Philips PAL_I (FI1246 and compat,ok]
    i2c-core.o: client [Philips PAL_I (FI1246 and compat] registered to adapter [bt8 48 #0](pos. 0).
    bttv0: registered device video0
    bttv0: registered device vbi0


it appears to be detecting my card, then using my specified card type (which matches the detection) but then using tuner=-1 instead of one but then assosciating the correct tuner later on (PAL_I [=1]).

msp34000 is definetly loaded so I am unsure as to why it isn't found


clutching at straws here...HELP!

oh, just noticed

    tuner: TV freq (0.00) out of range (44-958)

in dmesg

mean anything to anyone?
Back to top
View user's profile Send private message
sarnold
Developer
Developer


Joined: 28 Nov 2002
Posts: 115
Location: California

PostPosted: Wed Mar 12, 2003 4:51 pm    Post subject: setup for cheesy Kworld card Reply with quote

I took me a bit of trial and error for this, as well as some googling:

http://www.mind.lu/~yg/ftvco/

The above info helped, although the script would not run right for me. However, I tried the same method as the script (by hand) until I got things working; actually not *that* difficult...

Here's my setup:

In /etc/modules.d/aliases, I removed the bttv and i2c stuff

# moved to /etc/modules.d/bttv
#alias char-major-81 bttv

# Support for i2c and lm_sensors
# moved to /etc/modules.d/bttv
#alias char-major-89 i2c-dev

In /etc/modules.d I made a bttv file:

# I still don't know what the f#*king values should be, so I'm just
# trying sh*t to see if it works.

# i2c stuff
alias char-major-89 i2c-dev
options i2c-core i2c_debug=1
options i2c-algo-bit bit_test=1
#options i2c verbose=1 scan=1 i2c_debug=1

# bttv stuff
alias char-major-81 videodev
alias char-major-81-0 bttv
alias char-major-81-1 bttv
options tuner type=2 debug=1
options bttv card=2 pll=0 radio=1
options msp3400 once=1 simple=1
post-install bttv modprobe tuner; modprobe videodev

And then in /etc/modules.autoload, I added:

# I'll try the modules.d/bttv method
tuner
bttv
videodev
tvaudio
tvmixer

It seems like these things are very finicky about certain settings, and the module load order. But if you keep trying different options, it *should* work...

AFAICT, the PAL vs. NTSC is not a tuner option, but rather a setting in your ~/.xawtv file (or other tv app config). Here is my ~/.xawtv file:

Code:

[global]
ratio = 4:3
freqtab = us-cable
pixsize = 128 x 96
pixcols = 1
jpeg-quality = 75
keypad-ntsc = no
keypad-partial = yes
osd = yes

# [Station name]
# capture = overlay | grabdisplay | on | off
# input = Television | Composite1 | S-Video | ...
# norm = PAL | NTSC | SECAM | ...
# channel = #
# fine = # (-128..+127)
# key = keysym | modifier+keysym
# color = #
# bright = #
# hue = #
# contrast = #

[defaults]
group = main
norm = ntsc
input = television
capture = over
color = 49%
contrast = 42%

[QVC]
channel = 2
capture = on

[ABC (KEYT)]
channel = 3
capture = on

...
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Wed Mar 12, 2003 7:34 pm    Post subject: Reply with quote

sarnold, you are THE MAN.


that script you found trying all the possible combinations for the first time gave me something other than fuzz.

I then hooked my graphics card up to my multi mega (megadrive/mega cd hybrid [known as the cdx in the states]) as I knew the frequency of that connection (I love all sega things of the megadrive/genesis era). eventually I got a viewable picture

viewable enough to complete stage 1 and 2 of sonic 2 but not quite act 2 yet

a few options later and much fiddling with the settings I managed to get colour as well, and remove the 3 ghost images. The picture is by no means perfect and my picture from my digital top box suck boaby but the terrestrial picture is perfectly watchable.



I'm not questioning the radio=1 option. It works with it, so I'll leave it alone.



thankyou everyone in the #gentoo channel, you were most helpful. This has been one of my longest running problems.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum