Who remembers Betamax ?

Hi SeZo
Thanks for you help, I’m not normally one to give up easily I just don’t want to waste peoples time but I’m happy to give it another shot if you think it’s do-able,

I had video in tvtime and cheese (no audio) but I couldn’t get anything to work in VLC, I tried changing various settings but it wouldn’t work, Now I can’t get in to work in tvtimer of cheese, I’ve even tried rebooting it just wont tune in,

graeme@Linux1 ~ $ v4l2-ctl --list-inputs
The program 'v4l2-ctl' is currently not installed. You can install it by typing:
sudo apt-get install v4l-utils
graeme@Linux1 ~ $ 

Should I try installing v41-utils ?

Many thanks

Graeme

Should I try installing v4l-utils ?

Yes, that would be a good idea as it provides tools to tweak the Video for Linux interface
Run the commands from the previous posting

In VLC try:
Media->Stream->Capture Device:

Capture mode = Video for Linux 2
Video device name = /dev/video0
Audio device name = <your audio capture device obtained with 'arecord -l'>
Video standard = PAL B/G

Ok I did as you instructed I installed v4l-utils, and ran VLC here’s screenshot to let you see what’s happening

OK, what was the output from:

v4l2-ctl --list-inputs

and

arecord -l

Also could you please run and post the output from:

v4l-conf
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 ~ $ 

graeme@Linux1 ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
graeme@Linux1 ~ $ 
graeme@Linux1 ~ $ v4l-conf
v4l-conf: using X11 display :0
dga: version 2.0
WARNING: No DGA direct video mode for this display.
mode: 1600x900, depth=24, bpp=32, bpl=6400, base=unknown
WARNING: couldn't find framebuffer base address, try manual
         configuration ("v4l-conf -a <addr>")
/dev/video0 [v4l2]: configuration done
graeme@Linux1 ~ $ 

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:

sudo modprobe tuner

If the tuner is not correctly identified you may need to supply the number for tuner-type(example):

sudo modprobe tuner type=20

You may need to open your case to see which tuner you have.

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 ~ $ 
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 ~ $

That second command was just for example but it might be worth to try
Could you please start from the beginning:

dmesg | grep bttv

then

xawtv
xawtv -hwscan
v4l2-ctl --list-inputs

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 :slight_smile:

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 ~ $ 
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

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  

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 ~ $ 
sudo modprobe -r tuner
sudo modprobe tuner type=0

Could you run please:

dmesg | egrep '(bttv|bt84?|tveeprom)'

and

cat /proc/pci
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 ~ $ 
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 ~ $ 

graeme@Linux1 ~ $ cat /proc/pci
cat: /proc/pci: No such file or directory
graeme@Linux1 ~ $ 

graeme@Linux1 ~ $ cat /proc/pci
cat: /proc/pci: No such file or directory
graeme@Linux1 ~ $
try this instead:

lspci -v | grep video

aeme@Linux1 ~ $ lspci -v | grep video
02:02.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)
graeme@Linux1 ~ $

Try this (in the order shown):

sudo modprobe -r bttv
sudo modprobe -r tuner
sudo modprobe tuner type=0
sudo modprobe bttv card=2 vidmem=fdfff

then

xawtv

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 ~ $

Hmm… might have to log out and back in then run:

sudo modprobe -r bttv
sudo modprobe tuner type=0
sudo modprobe bttv card=2 vidmem=fdfff

But first, have you got the output from:

xawtv
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

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 ~ $ 

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 ~ $ 
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

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 ~ $ 
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 ~ $ 
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 ~ $ 

@ SeZo

just in case this helps … “vidmem=” isn’t an avaiable parameter for the bttv driver … here’s the available parameters (from “modinfo bttv”):-

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.

.

@ 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)

.

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:

[ 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.