Author Topic: Who remembers Betamax ?  (Read 15228 times)

0 Members and 1 Guest are viewing this topic.

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #45 on: December 26, 2012, 08:21:35 pm »
Quote
graeme@Linux1 ~ $ v4l2-ctl --list-inputs
ioctl: VIDIOC_ENUMINPUT
   Input       : 0
   Name        : Television

That would suggest that the card has a tuner
Could you try:
Code: [Select]
sudo modprobe tuner
If the tuner is not correctly identified you may need to supply the number for tuner-type(example):
Code: [Select]
sudo modprobe tuner type=20
You may need to open your case to see which tuner you have.

Online Emegra

  • Hero Member
  • *****
  • Posts: 2142
  • Karma: 47
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #46 on: December 26, 2012, 08:37:03 pm »
Code: [Select]
graeme@Linux1 ~ $ sudo modprobe tuner
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $



Code: [Select]
graeme@Linux1 ~ $ sudo modprobe tuner type=20
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $




If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #47 on: December 26, 2012, 08:58:04 pm »
That second command was just for example but it might be worth to try
Could you please start from the beginning:
Code: [Select]
dmesg | grep bttv
then

Code: [Select]
xawtv

Code: [Select]
xawtv -hwscan

Code: [Select]
v4l2-ctl --list-inputs

Online Emegra

  • Hero Member
  • *****
  • Posts: 2142
  • Karma: 47
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #48 on: December 26, 2012, 09:06:50 pm »
That second command was just for example but it might be worth to try
Could you please start from the beginning:

No problem if you're prepared to spend the time on this it's the least I can do :)

Code: [Select]
graeme@Linux1 ~ $ dmesg | grep bttv
[   15.984440] bttv: driver version 0.9.19 loaded
[   15.984455] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   17.482882] bttv: Bt8xx card found (0)
[   17.482908] bttv: 0: Bt848 (rev 18) at 0000:02:02.0, irq: 19, latency: 64, mmio: 0xfdfff000
[   17.482931] bttv: 0: using: Hauppauge (bt848) [card=2,insmod option]
[   17.485453] bttv: 0: Hauppauge/Voodoo msp34xx: reset line init [5]
[   17.519430] bttv: 0: Hauppauge eeprom indicates model#60114
[   17.519433] bttv: 0: tuner type=0
[   18.015693] bttv: 0: registered device video0
[   18.015800] bttv: 0: registered device vbi0
graeme@Linux1 ~ $


Code: [Select]
graeme@Linux1 ~ $ xawtv
This is xawtv-3.102, running on Linux/i686 (3.5.0-17-generic)
xinerama 0: 1600x900+0+0
vid-open-auto: using analog TV device /dev/video0
WARNING: No DGA direct video mode for this display.
WARNING: couldn't find framebuffer base address, try manual
         configuration ("v4l-conf -a <addr>")
v4l2: WARNING: framebuffer base address mismatch
v4l2: me=(nil) v4l=(nil)
Alsa devices: cap: (null) (/dev/video0), out: default

I've attached a screenshot of that output

Code: [Select]
graeme@Linux1 ~ $ xawtv -hwscan
This is xawtv-3.102, running on Linux/i686 (3.5.0-17-generic)
looking for available devices
port 95-110
    type : Xvideo, image scaler
    name : Intel(R) Textured Video

port 111-111
    type : Xvideo, image scaler
    name : Intel(R) Video Overlay

/dev/video0: OK                         [ -device /dev/video0 ]
    type : libv4l
    name : BT848A video (Hauppauge (bt848)
    flags: overlay capture tuner

/dev/video1: OK                         [ -device /dev/video1 ]
    type : libv4l
    name : USB Scanner 5MP
    flags:  capture 


Code: [Select]
graeme@Linux1 ~ $ v4l2-ctl --list-inputs
ioctl: VIDIOC_ENUMINPUT
Input       : 0
Name        : Television
Type        : 0x00000001
Audioset    : 0x00000001
Tuner       : 0x00000000
Standard    : 0x0000000000FFBFFF (PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/M-KR SECAM-B/D/G/H/K/K1/L/Lc)
Status      : 0x00000100 (no hsync lock.)
Capabilities: 0x00000004 (SD presets)

Input       : 1
Name        : Composite1
Type        : 0x00000002
Audioset    : 0x00000001
Tuner       : 0x00000000
Standard    : 0x0000000000FFBFFF (PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/M-KR SECAM-B/D/G/H/K/K1/L/Lc)
Status      : 0x00000000 (ok)
Capabilities: 0x00000004 (SD presets)

Input       : 2
Name        : S-Video
Type        : 0x00000002
Audioset    : 0x00000001
Tuner       : 0x00000000
Standard    : 0x0000000000FFBFFF (PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/M-KR SECAM-B/D/G/H/K/K1/L/Lc)
Status      : 0x00000000 (ok)
Capabilities: 0x00000004 (SD presets)

Input       : 3
Name        : Composite3
Type        : 0x00000002
Audioset    : 0x00000001
Tuner       : 0x00000000
Standard    : 0x0000000000FFBFFF (PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/M-KR SECAM-B/D/G/H/K/K1/L/Lc)
Status      : 0x00000000 (ok)
Capabilities: 0x00000004 (SD presets)
graeme@Linux1 ~ $









If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #49 on: December 26, 2012, 09:36:03 pm »
Code: [Select]
sudo modprobe -r tuner
sudo modprobe tuner type=0

Could you run please:
Code: [Select]
dmesg | egrep '(bttv|bt84?|tveeprom)'
and

Code: [Select]
cat /proc/pci

Online Emegra

  • Hero Member
  • *****
  • Posts: 2142
  • Karma: 47
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #50 on: December 26, 2012, 09:55:53 pm »
Code: [Select]
graeme@Linux1 ~ $ sudo modprobe -r tuner
[sudo] password for graeme:
Sorry, try again.
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
FATAL: Module tuner is in use.
graeme@Linux1 ~ $






Code: [Select]
graeme@Linux1 ~ $ dmesg | egrep '(bttv|bt84?|tveeprom)'
[   15.214225] bttv: driver version 0.9.19 loaded
[   15.214231] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   16.317669] bttv: Bt8xx card found (0)
[   16.317697] bttv: 0: Bt848 (rev 18) at 0000:02:02.0, irq: 19, latency: 64, mmio: 0xfdfff000
[   16.318980] bttv: 0: using: Hauppauge (bt848) [card=2,insmod option]
[   16.321504] bttv: 0: Hauppauge/Voodoo msp34xx: reset line init [5]
[   16.358460] tveeprom 6-0050: Hauppauge model 60114, rev CV  , serial# 541867
[   16.358466] tveeprom 6-0050: tuner model is Temic 4002FH5 (idx 14, type 0)
[   16.358470] tveeprom 6-0050: TV standards PAL(B/G) (eeprom 0x04)
[   16.358473] tveeprom 6-0050: audio processor is MSP3410D (idx 5)
[   16.358476] tveeprom 6-0050: has no radio
[   16.358478] bttv: 0: Hauppauge eeprom indicates model#60114
[   16.358481] bttv: 0: tuner type=0
[   16.442552] msp3400 6-0040: MSP3410D-B4 found @ 0x80 (bt848 #0 [sw])
[   16.988585] bttv: 0: registered device video1
[   16.988699] bttv: 0: registered device vbi0
graeme@Linux1 ~ $


Code: [Select]
graeme@Linux1 ~ $ cat /proc/pci
cat: /proc/pci: No such file or directory
graeme@Linux1 ~ $


If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #51 on: December 26, 2012, 10:15:26 pm »
graeme@Linux1 ~ $ cat /proc/pci
cat: /proc/pci: No such file or directory
graeme@Linux1 ~ $
try this instead:
Code: [Select]
lspci -v | grep video

Online Emegra

  • Hero Member
  • *****
  • Posts: 2142
  • Karma: 47
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #52 on: December 26, 2012, 10:18:25 pm »
aeme@Linux1 ~ $ lspci -v | grep video
02:02.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)
graeme@Linux1 ~ $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #53 on: December 26, 2012, 10:32:17 pm »
Try this (in the order shown):
Code: [Select]
sudo modprobe -r bttv
sudo modprobe -r tuner
sudo modprobe tuner type=0
sudo modprobe bttv card=2 vidmem=fdfff
then
Code: [Select]
xawtv

Online Emegra

  • Hero Member
  • *****
  • Posts: 2142
  • Karma: 47
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #54 on: December 26, 2012, 10:38:07 pm »
graeme@Linux1 ~ $ sudo modprobe -r bttv
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
FATAL: Module bttv is in use.
graeme@Linux1 ~ $ sudo modprobe -r tuner
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
FATAL: Module tuner is in use.
graeme@Linux1 ~ $ sudo modprobe tuner type=0
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $ sudo modprobe bttv card=2 vidmem=fdfff
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $
« Last Edit: December 27, 2012, 07:04:31 am by Emegra »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #55 on: December 26, 2012, 10:56:11 pm »
Hmm.. might have to log out and back in then run:
Code: [Select]
sudo modprobe -r bttv
sudo modprobe tuner type=0
sudo modprobe bttv card=2 vidmem=fdfff

But first, have you got the output from:
Code: [Select]
xawtv

Online Emegra

  • Hero Member
  • *****
  • Posts: 2142
  • Karma: 47
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #56 on: December 27, 2012, 06:59:35 am »
Code: [Select]
xinerama 0: 1600x900+0+0
vid-open-auto: using analog TV device /dev/video1
WARNING: No DGA direct video mode for this display.
WARNING: keeping fbuf pitch at: 6400, as no base addr was detected
WARNING: couldn't find framebuffer base address, try manual
         configuration ("v4l-conf -a <addr>")
v4l2: WARNING: framebuffer base address mismatch
v4l2: me=(nil) v4l=(nil)
Alsa devices: cap: (null) (/dev/video1), out: default
v4l2: read: Device or resource busy
v4l2: ioctl(fildes = 4 "/dev/video1", request = VIDIOC_QBUF, struct v4l2_buffer *data = { index = 0, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, bytesused = 0, flags = 0, field = V4L2_FIELD_ANY, timestamp = { 0 seconds }, timecode = { type = 0, flags = 0, frames = 0, seconds = 0, minutes = 0, hours = 0 }, sequence = 0, memory = V4L2_MEMORY_MMAP, m.offset = 0, length = 221184, input = 0 }) failed, Device or resource busy (16, EBUSY) because the video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_QBUF system call from operating
libv4l2: error turning on stream: Device or resource busy
v4l2: ioctl(fildes = 4 "/dev/video1", request = VIDIOC_STREAMON, int *data = { V4L2_BUF_TYPE_VIDEO_CAPTURE }) failed, Device or resource busy (16, EBUSY) because the video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_STREAMON system call from operating
v4l2: ioctl(fildes = 4 "/dev/video1", request = VIDIOC_QBUF, struct v4l2_buffer *data = { index = 0, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, bytesused = 0, flags = 0, field = V4L2_FIELD_ANY, timestamp = { 0 seconds }, timecode = { type = 0, flags = 0, frames = 0, seconds = 0, minutes = 0, hours = 0 }, sequence = 0, memory = V4L2_MEMORY_MMAP, m.offset = 0, length = 221184, input = 0 }) failed, Device or resource busy (16, EBUSY) because the video4linux character special device is in use by another process or by the system and this prevents the ioctl VIDIOC_QBUF system call from operating
libv4l2: error dequeuing buf: Invalid argument
v4l2: ioctl(fildes = 4 "/dev/video1", request = VIDIOC_DQBUF, struct v4l2_buffer *data = { index = 0, type = V4L2_BUF_TYPE_VIDEO_CAPTURE, memory = V4L2_MEMORY_MMAP }) failed, Invalid argument (22, EINVAL) because ioctl request or ioctl data is not valid


After logout and login

Code: [Select]
graeme@Linux1 ~ $ sudo modprobe -r bttv
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
FATAL: Module bttv is in use.
graeme@Linux1 ~ $

Code: [Select]
graeme@Linux1 ~ $ sudo modprobe tuner type=0
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $

Code: [Select]
graeme@Linux1 ~ $ sudo modprobe bttv card=2 vidmem=fdfff
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $


After reboot

Code: [Select]
graeme@Linux1 ~ $ sudo modprobe -r bttv
[sudo] password for graeme:
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $

Code: [Select]
graeme@Linux1 ~ $ sudo modprobe tuner type=0
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
graeme@Linux1 ~ $

Code: [Select]
graeme@Linux1 ~ $ sudo modprobe bttv card=2 vidmem=fdfff
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
FATAL: Error inserting bttv (/lib/modules/3.5.0-17-generic/kernel/drivers/media/video/bt8xx/bttv.ko): Invalid argument
graeme@Linux1 ~ $











« Last Edit: December 27, 2012, 07:07:14 am by Emegra »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12468
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Who remembers Betamax ?
« Reply #57 on: December 27, 2012, 11:28:26 am »
@ SeZo

just in case this helps .. "vidmem=" isn't an avaiable parameter for the bttv driver .. here's the available parameters (from "modinfo bttv"):-

Quote
parm:           ir_debug:int
parm:           ir_rc5_remote_gap:int
parm:           i2c_debug:configure i2c debug level (int)
parm:           i2c_hw:force use of hardware i2c support, instead of software bitbang (int)
parm:           i2c_scan:scan i2c bus at insmod time (int)
parm:           i2c_udelay:soft i2c delay at insmod time, in usecs (should be 5 or higher). Lower value means higher bus speed. (int)
parm:           vbibufs:number of vbi buffers, range 2-32, default 4 (int)
parm:           vbi_debug:vbi code debug messages, default is 0 (no) (int)
parm:           gpiomask:int
parm:           audioall:int
parm:           svhs:array of int
parm:           remote:array of int
parm:           audiomux:array of int
parm:           triton1:set ETBF pci config bit [enable bug compatibility for triton1 + others] (int)
parm:           vsfx:set VSFX pci config bit [yet another chipset flaw workaround] (int)
parm:           latency:pci latency timer (int)
parm:           card:specify TV/grabber card model, see CARDLIST file for a list (array of int)
parm:           pll:specify installed crystal (0=none, 28=28 MHz, 35=35 MHz) (array of int)
parm:           tuner:specify installed tuner type (array of int)
parm:           autoload:obsolete option, please do not use anymore (int)
parm:           audiodev:specify audio device:
      -1 = no audio
       0 = autodetect (default)
       1 = msp3400
       2 = tda7432
       3 = tvaudio (array of int)
parm:           saa6588:if 1, then load the saa6588 RDS module, default (0) is to use the card definition.
parm:           no_overlay:allow override overlay default (0 disables, 1 enables) [some VIA/SIS chipsets are known to have problem with overlay] (int)
parm:           debug_latency:int
parm:           fdsr:int
parm:           v4l2:int
parm:           combfilter:int
parm:           lumafilter:int
parm:           radio:The TV card supports radio, default is 0 (no) (array of int)
parm:           bigendian:byte order of the framebuffer, default is native endian (int)
parm:           bttv_verbose:verbose startup messages, default is 1 (yes) (int)
parm:           bttv_gpio:log gpio changes, default is 0 (no) (int)
parm:           bttv_debug:debug messages, default is 0 (no) (int)
parm:           irq_debug:irq handler debug messages, default is 0 (no) (int)
parm:           disable_ir:disable infrared remote support (int)
parm:           gbuffers:number of capture buffers. range 2-32, default 8 (int)
parm:           gbufsize:size of the capture buffers, default is 0x208000 (int)
parm:           reset_crop:reset cropping parameters at open(), default is 1 (yes) for compatibility with older applications (int)
parm:           automute:mute audio on bad/missing video signal, default is 1 (yes) (int)
parm:           chroma_agc:enables the AGC of chroma signal, default is 0 (no) (int)
parm:           adc_crush:enables the luminance ADC crush, default is 1 (yes) (int)
parm:           whitecrush_upper:sets the white crush upper value, default is 207 (int)
parm:           whitecrush_lower:sets the white crush lower value, default is 127 (int)
parm:           vcr_hack:enables the VCR hack (improves synch on poor VCR tapes), default is 0 (no) (int)
parm:           irq_iswitch:switch inputs in irq handler (int)
parm:           uv_ratio:ratio between u and v gains, default is 50 (int)
parm:           full_luma_range:use the full luma range, default is 0 (no) (int)
parm:           coring:set the luma coring level, default is 0 (no) (int)
parm:           video_nr:video device numbers (array of int)
parm:           vbi_nr:vbi device numbers (array of int)
parm:           radio_nr:radio device numbers (array of int)


According to this:
http://git.linuxtv.org/media_tree.git/blob/HEAD:/Documentation/video4linux/bttv/Sound-FAQ
(there's also a lot of other info for getting sound working with bt848/bt878 boards there)

Hauppauge cards tend to use the msp34xx sound chip (if there's one present at all), so you may want to try changing the line we added to

/etc/modprobe.d/bttv.conf

from:-

options bttv card=2

to

options bttv card=2 audiodev=1

then REBOOTING to test.

.
« Last Edit: December 27, 2012, 12:07:00 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12468
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Who remembers Betamax ?
« Reply #58 on: December 27, 2012, 12:40:51 pm »
@ Emegra

Have you "physically" connected the audio to your sound card .. otherwise (as I understand it) you won't get audio unless you actually capture something (but as I'm no expert with tv/capture cards I could be mistaken)

See 4.1 here:
http://www.faqs.org/docs/Linux-mini/BTTV.html#ss4.1

It might also be helpful if you could physically inspect the card and list any chip markings/model numbers/pin out\in markings/rear socket types/etc. (it may be a total waste of time too .. but usually the more info you can gather the easier it is to tie down exactly which card you have, as these bt848 cards ID's seem to be pretty generic, yet they all require different settings)

.
« Last Edit: December 27, 2012, 12:49:36 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online SeZo

  • Hero Member
  • *****
  • Posts: 1227
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Who remembers Betamax ?
« Reply #59 on: December 27, 2012, 01:55:15 pm »
@ SeZo

just in case this helps .. "vidmem=" isn't an avaiable parameter for the bttv driver .. here's the available parameters (from "modinfo bttv"):-

Yes you are right, I was looking at the source of bttv.c which must have been an earlier version.
I was trying to rectify the Overlay problem with the base memory address.
As for the sound, it appears to detect it and loading the drivers for it:
Quote
[   16.442552] msp3400 6-0040: MSP3410D-B4 found @ 0x80 (bt848 #0 [sw])

But no actual output, which would point to a missing hard wire link to the soundcard.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal