The Linux Community Forum

General Help & Advice => Linux Support => Topic started by: Emegra on December 23, 2012, 06:31:55 pm

Title: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 06:31:55 pm
Hi Guys

I never seem to be off this forum seeking help, but here I am seeking help again

recently I've been trying to digitize some old video footage from old video tapes,  after a lot of hair pulling and and online help I managed to digitize some old VHS footage using a USB Easycap device, but my next problem is I have some stuff I want digitized from old  Betamax tapes (You remember that) the trouble is I cant use the Easycap device this time because the Betamax machine only has RF Out but I have an old Hauppauge PSI video capture card (BT848KPF) which I've installed in my PC and I've connected the Betamax Video player to it via an Ariel lead, however as you probably guessed it aint working, Ive tried it in VLC and Cheese and another program I downloaded from synaptic called Zapping TV Viewer but none of them are picking up anything.
my immediate problem is I'm not sure if the driver is installed, Cheese appears to recognise the device but it' lists it as "BT848A video ( *** UNKNOWN/GENE (/dev/video0)"  which is a bit innocuous,

I found a site that suggested that Linux does supposrt this card but I can't find it again

Anyway what I'm trying to do may well not be possible and I'm just wasting my time but if anyone knows anything about this and can offer any suggestions It would be greatly  appreciated


Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 23, 2012, 10:16:00 pm
can you send the output from:
Code: [Select]
lsmod
and then run:
Code: [Select]
dmesg > ~/dmesg.txt
you'll then find a file called dmesg.txt in your home folder .. attach that to your next post.
also run:
Code: [Select]
lspci -vnn > ~/lspci.txt
you'll then find a file called lspci.txt in your home folder .. attach that to your next post.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 10:22:56 pm
Thank you Mark

[email protected] ~ $ lsmod
Module                  Size  Used by
des_generic            21191  0
md4                    12523  0
snd_hrtimer            12648  1
gpio_ich               13159  0
arc4                   12473  2
snd_hda_codec_realtek    63356  1
coretemp               13168  0
bttv                  112147  0
videobuf_dma_sg        18714  1 bttv
videobuf_core          25097  2 bttv,videobuf_dma_sg
btcx_risc              13400  1 bttv
rc_core                21266  1 bttv
tveeprom               17009  1 bttv
v4l2_common            15767  1 bttv
videodev               95841  2 bttv,v4l2_common
microcode              18209  0
ath9k                 116549  0
mac80211              461161  1 ath9k
ath9k_common           13783  1 ath9k
ath9k_hw              376155  2 ath9k,ath9k_common
ath                    19187  3 ath9k,ath9k_common,ath9k_hw
cfg80211              175375  3 ath9k,mac80211,ath
serio_raw              13031  0
bnep                   17707  2
rfcomm                 37276  12
parport_pc             31968  0
lpc_ich                16925  0
ppdev                  12817  0
btusb                  17950  0
bluetooth             183228  22 bnep,rfcomm,btusb
joydev                 17161  0
nls_utf8               12493  6
cifs                  279812  8
fscache                50234  1 cifs
snd_hda_intel          32515  3
snd_hda_codec         111547  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13272  1 snd_hda_codec
snd_pcm                80163  2 snd_hda_intel,snd_hda_codec
snd_seq_midi           13132  0
snd_rawmidi            25382  1 snd_seq_midi
i915                  457161  3
snd_seq_midi_event     14475  1 snd_seq_midi
mac_hid                13037  0
snd_seq                51255  3 snd_seq_midi,snd_seq_midi_event
drm_kms_helper         45271  1 i915
drm                   230463  4 i915,drm_kms_helper
i2c_algo_bit           13197  2 bttv,i915
snd_timer              24411  3 snd_hrtimer,snd_pcm,snd_seq
video                  18847  1 i915
snd_seq_device         14137  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    61991  16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore              14599  1 snd
snd_page_alloc         14036  2 snd_hda_intel,snd_pcm
lp                     13299  0
parport                40753  3 parport_pc,ppdev,lp
hid_generic            12445  0
usbhid                 41702  0
hid                    82142  2 hid_generic,usbhid
uas                    17556  0
usb_storage            39350  0
r8169                  55976  0
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 10:30:40 pm
Hope this works
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 10:31:32 pm
Here's the other one
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 23, 2012, 10:52:14 pm
From your lspci.txt:
Quote
02:02.0 Multimedia video controller [0400]: Brooktree Corporation Bt848 Video Capture [109e:0350] (rev 12)
   Flags: bus master, medium devsel, latency 64, IRQ 19
   Memory at fdfff000 (32-bit, prefetchable) [size=4K]
   Kernel driver in use: bttv
   Kernel modules: bttv

Just to narrow down the logs could you run in Terminal:
Code: [Select]
dmesg | grep bttv
lsmod | grep bttv
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 10:53:27 pm
[email protected] ~ $ dmesg | grep bttv
[   14.907310] bttv: driver version 0.9.19 loaded
[   14.907316] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   16.282532] bttv: Bt8xx card found (0)
[   16.282557] bttv: 0: Bt848 (rev 18) at 0000:02:02.0, irq: 19, latency: 64, mmio: 0xfdfff000
[   16.283483] bttv: 0: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
[   16.283926] bttv: 0: tuner type unset
[   16.284201] bttv: 0: registered device video0
[   16.284360] bttv: 0: registered device vbi0
[email protected] ~ $ lsmod | grep bttv
bttv                  112147  0
videobuf_dma_sg        18714  1 bttv
videobuf_core          25097  2 bttv,videobuf_dma_sg
btcx_risc              13400  1 bttv
rc_core                21266  1 bttv
tveeprom               17009  1 bttv
v4l2_common            15767  1 bttv
videodev               95841  2 bttv,v4l2_common
i2c_algo_bit           13197  2 bttv,i915
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 23, 2012, 11:19:03 pm
Is this a capture only card or a TV/Capture card ?

What happens if you unload the bttv driver:
Code: [Select]
sudo modprobe -r bttv
then reload it with the card=2 option:
Code: [Select]
sudo modprobe bttv card=2

as described for the Hauppauge (bt848) card here:
http://www.mythtv.org/wiki/Bttv (http://www.mythtv.org/wiki/Bttv)



Other links for my future reference:
http://www.tldp.org/HOWTO/html_single/BTTV/ (http://www.tldp.org/HOWTO/html_single/BTTV/)
and
http://www.linuxtv.org/wiki/index.php/Bttv_devices_%28bt848,_bt878%29#Driver (http://www.linuxtv.org/wiki/index.php/Bttv_devices_%28bt848,_bt878%29#Driver)



When you say "Hauppauge PSI video capture card (BT848KPF)" .. should PSI read PCI ? .. or is it some kind of model number ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 11:24:57 pm

Quote
s this a capture only card or a TV/Capture card ?

I think it's a tv capture but I'm not 100% sure

There was something with the code you posted , here's the output


[email protected] ~ $ 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.
[email protected] ~ $ then sudo modprobe -r bttv card=2
bash: syntax error near unexpected token `then'
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 23, 2012, 11:31:10 pm
I think that should have been:
Code: [Select]
sudo modprobe bttv card=2
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 11:37:46 pm
I'm not sure if this signifies a problem
Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $ sudo modprobe bttv card=2
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
[email protected] ~ $

I tried it in tvtime and before I was getting a line of interference at the top of the screen now I i just get a blue screen with "NO Signal" I'm not sure if that tells you anything
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 23, 2012, 11:50:18 pm
Quote
I tried it in tvtime and before I was getting a line of interference at the top of the screen now I i just get a blue screen with "NO Signal" I'm not sure if that tells you anything

Once you get a blue screen, you know the driver is working. Just need confguring.
Please post the output from dmesg again:
Code: [Select]
dmesg | grep bttv

If you already not have xawtv then please install it then run in Terminal:
Code: [Select]
xawtv
Then:
Code: [Select]
xawtv -hwscan
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 23, 2012, 11:51:46 pm
nah, that warning doesn't mean anything.

If it's capture only which you didn't answer BTW .. were you feeding it a signal ?

[EDIT]

Oh, and sorry SeZo was right, somehow I made a mess of the second command in my last posting .. I've corrected it now  :-[
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 11:54:46 pm
[email protected] ~ $ dmesg | grep bttv
[   14.907310] bttv: driver version 0.9.19 loaded
[   14.907316] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   16.282532] bttv: Bt8xx card found (0)
[   16.282557] bttv: 0: Bt848 (rev 18) at 0000:02:02.0, irq: 19, latency: 64, mmio: 0xfdfff000
[   16.283483] bttv: 0: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
[   16.283926] bttv: 0: tuner type unset
[   16.284201] bttv: 0: registered device video0
[   16.284360] bttv: 0: registered device vbi0
[ 3885.136167] bttv: 0: unloading
[ 4609.884789] bttv: driver version 0.9.19 loaded
[ 4609.884796] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 4609.884858] bttv: Bt8xx card found (0)
[ 4609.884875] bttv: 0: Bt848 (rev 18) at 0000:02:02.0, irq: 19, latency: 64, mmio: 0xfdfff000
[ 4609.884895] bttv: 0: using: Hauppauge (bt848) [card=2,insmod option]
[ 4609.887407] bttv: 0: Hauppauge/Voodoo msp34xx: reset line init [5]
[ 4609.919640] bttv: 0: Hauppauge eeprom indicates model#60114
[ 4609.919643] bttv: 0: tuner type=0
[ 4610.008239] bttv: 0: registered device video0
[ 4610.008317] bttv: 0: registered device vbi0
[ 5439.404507] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5439.404527] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5442.448780] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5442.448799] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5476.172858] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5476.172877] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5481.357855] bttv: 0: SCERR @ 2eaa5014,bits: HSYNC OFLOW FBUS SCERR*
[ 5481.357874] bttv: 0: SCERR @ 2eaa5014,bits: VSYNC* HSYNC OFLOW FBUS SCERR*
[ 5508.032493] bttv: 0: SCERR @ 2eaa5014,bits: HSYNC OFLOW FBUS SCERR*
[ 5508.032511] bttv: 0: SCERR @ 2eaa5000,bits: HSYNC OFLOW FBUS SCERR*
[ 5564.584014] bttv: 0: timeout: drop=1411 irq=34292/40425, risc=2e858024, bits: HSYNC OFLOW FDSR
[ 5565.124012] bttv: 0: timeout: drop=1424 irq=34337/40470, risc=2e859024, bits: HSYNC OFLOW FDSR
[ 5613.712012] bttv: 0: timeout: drop=1529 irq=38618/44854, risc=2e9c5024, bits: HSYNC OFLOW FDSR
[ 5614.284016] bttv: 0: timeout: drop=1542 irq=38665/44901, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5615.144012] bttv: 0: timeout: drop=1559 irq=38734/44972, risc=2e858024, bits: HSYNC OFLOW FDSR
[ 5616.144014] bttv: 0: timeout: drop=1569 irq=38824/45062, risc=2e902024, bits: HSYNC OFLOW
[ 5621.388013] bttv: 0: timeout: drop=1594 irq=39276/45532, risc=2ebad024, bits: HSYNC OFLOW FDSR
[ 5628.072013] bttv: 0: timeout: drop=1625 irq=39850/46128, risc=2ebad024, bits: HSYNC OFLOW FDSR
[ 5628.908013] bttv: 0: timeout: drop=1645 irq=39920/46221, risc=2e9c5024, bits: HSYNC OFLOW FDSR
[ 5629.452011] bttv: 0: timeout: drop=1658 irq=39965/46266, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5630.008017] bttv: 0: timeout: drop=1671 irq=40011/46312, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5630.568017] bttv: 0: timeout: drop=1684 irq=40057/46358, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5631.128015] bttv: 0: timeout: drop=1697 irq=40103/46406, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5631.688015] bttv: 0: timeout: drop=1710 irq=40149/46452, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5632.248016] bttv: 0: timeout: drop=1723 irq=40195/46498, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5632.808014] bttv: 0: timeout: drop=1736 irq=40241/46544, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5633.364014] bttv: 0: timeout: drop=1749 irq=40287/46592, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5633.924015] bttv: 0: timeout: drop=1762 irq=40333/46643, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5634.484016] bttv: 0: timeout: drop=1775 irq=40379/46689, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5635.044014] bttv: 0: timeout: drop=1787 irq=40424/46736, risc=2e9c6024, bits: HSYNC OFLOW FDSR
[ 5635.724012] bttv: 0: timeout: drop=1803 irq=40481/46793, risc=2e888024, bits: HSYNC OFLOW FDSR
[ 5636.268013] bttv: 0: timeout: drop=1816 irq=40526/46838, risc=2e889024, bits: HSYNC OFLOW FDSR
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 23, 2012, 11:57:27 pm
[email protected] ~ $ 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

[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 12:00:15 am
Quote
If it's capture only which you didn't answer BTW .. were you feeding it a signal ?

I did answer Mark I said i wasn't 100% sure and I wasn't  feeding it a signal at the time

Thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 12:08:14 am
[EDIT]

IGNORE THIS POSTING .. I hadn't seen your output to Sezo's questions

[END EDIT]

dmesg seems to suggest there's no tuner, so I'm guessing it's a capture only card without a TV tuner.

Erm, you WILL only get a blue screen unless you're feeding it a signal.
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 24, 2012, 12:11:24 am
Try to run:
Code: [Select]
xawtv -device /dev/video0
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 12:14:32 am
He's not likely to get a TV signal, as it will be an analoge TV card (analogue TV broadcasting was stopped in the UK a while ago), and I doubt if he has an ariel attached.

I'd attach the betamax, hit play, then see what cheese does.

Not that I have the first clue what xawtv does ;)
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 12:17:42 am
[email protected] ~ $ xawtv -device /dev/video0
This is xawtv-3.102, running on Linux/i686 (3.5.0-17-generic)
xinerama 0: 1600x900+0+0
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/video0), out: default

Quote
Erm, you WILL only get a blue screen unless you're feeding it a signal.


Youre right I'm sorry I was on crossed lines

Anyway I set the recorder to rest signal and I got the black and white lines I then switched over and I had video but it's still not working in Cheese but we're getting there :)


Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 12:31:22 am
Ok it's working now I tuned the test signal into channel 97 in tvtimer and it locked in so now it's also working in cheese at least video is but I'll worry about the sound tomorrow

thank you both so much for all your help

If I have problems with sound can I just post back on this thread or should I start another ?

Sorry about the misunderstanding :)


Many thanks


Graeme

Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 12:34:45 am
Stick with this topic .. it may as well all be in one place ;)

remember you'll have to set that bttv card=2 after each reboot, unless you add it as an "option" in a .conf file in /etc/modprobe.d

Wanna do that now, or tomorrow ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 12:38:26 am
Quote
remember you'll have to set that bttv card=2 after each reboot, unless you add it as an "option" in a .conf file in /etc/modprobe.d

Wanna do that now, or tomorrow ?

Yes I would like to do that tomorrow :)

Once again thanks for your help and SeZo

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 12:39:30 am
okey dokey :)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 09:55:33 am
OK, to load the bttv driver with the "card=2" option set at each boot .. open a terminal and run:
Code: [Select]
sudo gedit /etc/modprobe.d/bttv.conf
a BLANK file should open.

add this single line:-

options bttv card=2

SAVE the file, and exit gedit.

Now to test .. REBOOT .. then send the output from:
Code: [Select]
dmesg | grep card=



There's still the chance that "card=2" is incorrect, as the vendor:device ID string your card is providing is a generic one .. but that can be experimented with later .. for now we know it at least gives you video.

Oh .. who the hell bought Betamax over VHS anyway  ::) .. did you also fall for miniDisk over CD-R/W and HD-DVD over BlueRay ? ;)
(though in all 3 cases the inferior technology won out)

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 11:46:11 am
Hi Mark

Thanks for the info, I'm at work just now but I'll try your instructions when I get home and report back

Quote
Oh .. who the hell bought Betamax over VHS anyway   .. did you also fall for miniDisk over CD-R/W and HD-DVD over BlueRay ?
(though in all 3 cases the inferior technology won out)

I bought a Betamax recorder because I'm a sucker for the underdog, why do you think I use Linux ?

But seriously as I remember Betamax and VHS were about equal in popularity for a while, and I was also led to believe that Betamax was a actually a better system, I never really understood the difference other than Betamax tapes being slightly smaller or why VHS ended up dominating but no doubt big business and big money were probably behind it somewhere.

Once again thanks for your help


Graeme


Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 12:09:16 pm
Hey, I fell for Philips CD-i as a games console .. what a mistake that was  :-[
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 12:38:06 pm
I forgot about the Phillips V2000 system that was also going around at the time, I never had one I was too smart :)

or was I ? http://en.wikipedia.org/wiki/Video_2000 (http://en.wikipedia.org/wiki/Video_2000)  :)
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 02:36:53 pm
OK I followed your instructions and here's the output you asked for   

Code: [Select]
[email protected] ~ $ dmesg | grep card=
[   16.466181] bttv: 0: using: Hauppauge (bt848) [card=2,insmod option]
[email protected] ~ $

The video will play in both tvtime & cheese although i have no sound in either, however if i try to record cheese will instantly shut down

I ran cheese from the terminal the output when I try to record it big so I've posted it to pastebin if it's any help  http://pastebin.com/Hzs6hbPy (http://pastebin.com/Hzs6hbPy)

Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 02:52:17 pm
Is this Mint 13, 14, or Peppermint 3 ?

32 or 64bit ?

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 02:55:40 pm
I'm using Mint 14

I cant get cheese to open in peppermint
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 03:05:25 pm
32 or 64bit ? .. and is it fully updated ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 03:09:15 pm
32 bit,    update manager says my system is up to date, I always run the updates as they appear
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 03:31:26 pm
This may be a bug in cheese or gstreamer .. do you know of any other way to record video ? .. this not being my strong area of expertise ???

Which version of cheese/gstreamer is Mint 14 using ?
Code: [Select]
dpkg -l | grep cheese
and
Code: [Select]
dpkg -l | grep gstreamer
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 05:07:56 pm
Hi Mark sorry I've not got back to you I've been called out on a breakdown, I'm in my office just now I think it's possible to record with VLC and  I have another program  called guvcview but it won't open in Mint or peppermint, but I should be home soon And I'll try VLC  and post the outputs you're looking for


Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 06:19:23 pm
Code: [Select]
[email protected] ~ $ dpkg -l | grep cheese
ii  cheese                                      3.6.0-0ubuntu1                            i386         tool to take pictures and videos from your webcam
ii  cheese-common                               3.6.0-0ubuntu1                            all          Common files for the Cheese tool to take pictures and videos
ii  libcheese-gtk23:i386                        3.6.0-0ubuntu1                            i386         tool to take pictures and videos from your webcam - widgets
ii  libcheese7:i386                             3.6.0-0ubuntu1                            i386         tool to take pictures and videos from your webcam - base library
[email protected] ~ $


Code: [Select]
[email protected] ~ $ dpkg -l | grep gstreamer
ii  bluez-gstreamer                             4.101-0ubuntu6                            i386         Bluetooth GStreamer support
ii  gir1.2-gstreamer-0.10                       0.10.36-1ubuntu2                          i386         Description: GObject introspection data for the GStreamer library
ii  gstreamer0.10-alsa:i386                     0.10.36-1ubuntu1.1                        i386         GStreamer plugin for ALSA
ii  gstreamer0.10-ffmpeg:i386                   0.10.13-5                                 i386         FFmpeg plugin for GStreamer
ii  gstreamer0.10-gconf:i386                    0.10.31-3ubuntu1                          i386         GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-nice:i386                     0.1.2-1                                   i386         ICE library (GStreamer plugin)
ii  gstreamer0.10-plugins-bad:i386              0.10.23-7ubuntu1                          i386         GStreamer plugins from the "bad" set
ii  gstreamer0.10-plugins-bad-multiverse        0.10.21-1                                 i386         GStreamer plugins from the "bad" set (Multiverse Variant)
ii  gstreamer0.10-plugins-base:i386             0.10.36-1ubuntu1.1                        i386         GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-base-apps             0.10.36-1ubuntu1.1                        i386         GStreamer helper programs from the "base" set
ii  gstreamer0.10-plugins-good:i386             0.10.31-3ubuntu1                          i386         GStreamer plugins from the "good" set
ii  gstreamer0.10-plugins-ugly:i386             0.10.19-2                                 i386         GStreamer plugins from the "ugly" set
ii  gstreamer0.10-pulseaudio:i386               0.10.31-3ubuntu1                          i386         GStreamer plugin for PulseAudio
ii  gstreamer0.10-tools                         0.10.36-1ubuntu2                          i386         Tools for use with GStreamer
ii  gstreamer0.10-x:i386                        0.10.36-1ubuntu1.1                        i386         GStreamer plugins for X11 and Pango
ii  gstreamer1.0-plugins-bad:i386               1.0.1-1                                   i386         GStreamer plugins from the "bad" set
ii  gstreamer1.0-plugins-base:i386              1.0.1-1                                   i386         GStreamer plugins from the "base" set
ii  gstreamer1.0-plugins-good:i386              1.0.1-1                                   i386         GStreamer plugins from the "good" set
ii  gstreamer1.0-x:i386                         1.0.1-1                                   i386         GStreamer plugins for X11 and Pango
ii  libgstreamer-plugins-bad0.10-0:i386         0.10.23-7ubuntu1                          i386         GStreamer shared libraries from the "bad" set
ii  libgstreamer-plugins-bad1.0-0:i386          1.0.1-1                                   i386         GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base0.10-0:i386        0.10.36-1ubuntu1.1                        i386         GStreamer libraries from the "base" set
ii  libgstreamer-plugins-base1.0-0:i386         1.0.1-1                                   i386         GStreamer libraries from the "base" set
ii  libgstreamer0.10-0:i386                     0.10.36-1ubuntu2                          i386         Core GStreamer libraries and elements
ii  libgstreamer1.0-0:i386                      1.0.1-1                                   i386         Core GStreamer libraries and elements
ii  phonon-backend-gstreamer:i386               4:4.7.0really4.6.2-0ubuntu1               i386         Phonon GStreamer 0.10.x backend
[email protected] ~ $

it's a bit involved recording with VLC  but if you want me to try it let me know and I'll give it my best shot
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 24, 2012, 09:25:49 pm
OK, it looks like there was a shift from gstreamer0.10-plugins to gstreamer1.0-plugins in Ubuntu 12.10/Mint 14

So either the new gstreamer is broken (surprising as 1.0 sounds like a final release), or cheese hasn't caught up with the change.

but there seem to be a lot of bug reports of SIGSEGV crashes of cheese in 12.10 (which also mention your glibc error).
(search google for 12.10 cheese sigsegv and you'll see what I mean .. they all seem to be waiting for a "In Progress → Triaged" update to filter through)
See this one in particular:
https://bugs.launchpad.net/ubuntu/+source/cheese/+bug/1062282

I suppose you could try the cheese 3.6.2 .debs for 13.04 (Raring Ringtail) .. located here:
https://launchpad.net/ubuntu/+source/cheese/3.6.2-0ubuntu1/+build/3978507

if they don't work, you can always uninstall them .. and reinstall 3.6.0 from the repos.

Or you could wait to see if an update is released .. 12.10 is still quite new, so it'll probably get fixed eventually

Or just use different capture software, and hope for the best.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 24, 2012, 11:37:32 pm
Thank you Mark

Sorry I've taken so long to reply I've had some work problems today and it been a bit stressful, anyway I'll try what you suggest as soon as I can and let you know

Hope you have a nice Christmas you deserve it :)

Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 01:15:45 pm
Hi Mark

Hope you had a nice Christmas,

 I see what you're saying regarding bug reports (most of it goes over my head) but  it looks like this is a problem that's not gonna have an easy fix, it seems to me Linux support for this type of thing is at best weak so I don't think I should be wasting any more of your time with it, I still have the tapes and the machines, so nothing is lost, and I can try again sometime in the future.

Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 26, 2012, 02:04:39 pm
it seems to me Linux support for this type of thing is at best weak so I don't think I should be wasting any more of your time with it, I still have the tapes and the machines, so nothing is lost, and I can try again sometime in the future.

Please do not jump to any quick conclusions. As your card is several generations out of date, you will find it even more difficult in the future.

Have you tried VLC?
Is your card able to produce the audio stream? and if it is, then is it connected to your sound card?

You could do some tests (you might have to install v4l-utils):
Code: [Select]
v4l2-ctl --list-inputs
Code: [Select]
v4l2-ctl -C mute
if you get 'mute: 1'
then:
Code: [Select]
v4l2-ctl -c mute=0

then
That is -L just lower case:
Code: [Select]
arecord -l

Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 04:30:13 pm
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,

Code: [Select]
[email protected] ~ $ v4l2-ctl --list-inputs
The program 'v4l2-ctl' is currently not installed. You can install it by typing:
sudo apt-get install v4l-utils
[email protected] ~ $

Should I try installing v41-utils ?

Many thanks

Graeme


Title: Re: Who remembers Betamax ?
Post by: SeZo on December 26, 2012, 06:06:04 pm
Quote
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
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 06:32:37 pm
Ok I did as you instructed I installed v4l-utils, and ran VLC here's screenshot to let you see what's happening
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 26, 2012, 06:45:10 pm
OK, what was the output from:
Code: [Select]
v4l2-ctl --list-inputs
and
Code: [Select]
arecord -l

Also could you please run and post the output from:
Code: [Select]
v4l-conf
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 06:57:18 pm
Code: [Select]
[email protected] ~ $ 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)
[email protected] ~ $


Code: [Select]
[email protected] ~ $ 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
[email protected] ~ $

Code: [Select]
[email protected] ~ $ 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
[email protected] ~ $




Title: Re: Who remembers Betamax ?
Post by: SeZo on December 26, 2012, 08:21:35 pm
Quote
[email protected] ~ $ 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.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 08:37:03 pm
Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $



Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $




Title: Re: Who remembers Betamax ?
Post by: SeZo 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
Title: Re: Who remembers Betamax ?
Post by: Emegra 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]
[email protected] ~ $ 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
[email protected] ~ $


Code: [Select]
[email protected] ~ $ 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]
[email protected] ~ $ 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]
[email protected] ~ $ 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)
[email protected] ~ $









Title: Re: Who remembers Betamax ?
Post by: SeZo 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
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 09:55:53 pm
Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $






Code: [Select]
[email protected] ~ $ 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
[email protected] ~ $


Code: [Select]
[email protected] ~ $ cat /proc/pci
cat: /proc/pci: No such file or directory
[email protected] ~ $


Title: Re: Who remembers Betamax ?
Post by: SeZo on December 26, 2012, 10:15:26 pm
[email protected] ~ $ cat /proc/pci
cat: /proc/pci: No such file or directory
[email protected] ~ $
try this instead:
Code: [Select]
lspci -v | grep video
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 10:18:25 pm
[email protected] ~ $ lspci -v | grep video
02:02.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo 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
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 26, 2012, 10:38:07 pm
[email protected] ~ $ 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.
[email protected] ~ $ 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.
[email protected] ~ $ sudo modprobe tuner type=0
WARNING: All config files need .conf: /etc/modprobe.d/bttv, it will be ignored in a future release.
[email protected] ~ $ 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.
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo 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
Title: Re: Who remembers Betamax ?
Post by: Emegra 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]
[email protected] ~ $ 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.
[email protected] ~ $

Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $

Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $


After reboot

Code: [Select]
[email protected] ~ $ 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.
[email protected] ~ $

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

Code: [Select]
[email protected] ~ $ 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
[email protected] ~ $











Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) 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 (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.

.
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) 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 (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)

.
Title: Re: Who remembers Betamax ?
Post by: SeZo 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.
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 27, 2012, 02:02:54 pm
@ Emegra

As Mark suggested change the /etc/modprobe.d/bttv.conf

from:-

options bttv card=2

to
options tuner type=0
options bttv card=2 audiodev=1

then REBOOTING to test.

Once rebooted run:
Code: [Select]
dmesg | egrep '(bttv|bt84?|tveeprom)'
and
Code: [Select]
xawtv -hwscan
And will go from there
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 27, 2012, 02:55:15 pm
Ok thanks for your patience with this

I'm at work at the moment but I'll try that when I get home and report back

Watch this space :)


Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 27, 2012, 03:25:02 pm
Have you connected the TV/Capture card to your souncard ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 27, 2012, 03:58:33 pm
Quote
Have you connected the TV/Capture card to your souncard ?



No  I didn't think I had to I thought it would receive video and audio through the RF cable
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 27, 2012, 07:07:36 pm
Ok did as requested but I still can't tune in to cheese or tvtime, Cheese just gives me a snowy picture and I'v tried scanning the channels in tvtime 3 times and I get nothing I've attached a screenshot of Cheese preferences showing it's loading the correct card if that's any help

Code: [Select]
[email protected] ~ $ dmesg | egrep '(bttv|bt84?|tveeprom)'
[   13.991344] bttv: driver version 0.9.19 loaded
[   13.991346] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   15.431674] bttv: Bt8xx card found (0)
[   15.431698] bttv: 0: Bt848 (rev 18) at 0000:02:02.0, irq: 19, latency: 64, mmio: 0xfdfff000
[   15.431725] bttv: 0: using: Hauppauge (bt848) [card=2,insmod option]
[   15.434243] bttv: 0: Hauppauge/Voodoo msp34xx: reset line init [5]
[   15.467245] tveeprom 6-0050: Hauppauge model 60114, rev CV  , serial# 541867
[   15.467252] tveeprom 6-0050: tuner model is Temic 4002FH5 (idx 14, type 0)
[   15.467256] tveeprom 6-0050: TV standards PAL(B/G) (eeprom 0x04)
[   15.467259] tveeprom 6-0050: audio processor is MSP3410D (idx 5)
[   15.467262] tveeprom 6-0050: has no radio
[   15.467265] bttv: 0: Hauppauge eeprom indicates model#60114
[   15.467267] bttv: 0: tuner type=0
[   15.576571] msp3400 6-0040: MSP3410D-B4 found @ 0x80 (bt848 #0 [sw])
[   15.693041] bttv: 0: registered device video0
[   15.693140] bttv: 0: registered device vbi0
[email protected] ~ $ dmesg | egrep '(bttv|bt84?|tveeprom)'


Code: [Select]
[email protected] ~ $ 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

[email protected] ~ $


Many thanks

Graeme



Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 27, 2012, 10:49:38 pm
Don't expect the TV card to work .. it's liable to be an "analogue" TV tuner .. broadcasting of analogue channels ceased in this country a couple of years ago .. it all digital (DVB) now, so unless the card is digital you won't get any TV channels.

Can still be used to "capture" an analogue input though .. such as from a video tape recorder.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 27, 2012, 11:10:25 pm
Quote
Can still be used to "capture" an analogue input though .. such as from a video tape recorder.


That's all I want to do Mark :)

Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 27, 2012, 11:13:50 pm
Sorry got delayed, daughters 21st :-[
@Mark
We do not expect it to pick up any analogue channels other than the coax input from the betamax. ;)

@Emegra
The Cheese picture would indicate that the tuner needs to be adjusted to match the channel of the betamax output.
Try to set up the right source for v4l in xawtv:
Code: [Select]
xawtv -device /dev/video0
Tune to the correct channel using tvtimer (that worked before) then
Get current TV frequency
Code: [Select]
v4l2-ctl --get-freq 
Save it for later and re-set it as and when required with:
Code: [Select]
v4l2-ctl --set-freq=<Tune the card to a TV input frequency> 
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 27, 2012, 11:22:00 pm
Sorry, I obviously misunderstood:-

Quote
I'v tried scanning the channels in tvtime 3 times and I get nothing

My mistake .. should put brain in gear before engaging mouth ;)
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 27, 2012, 11:56:53 pm
Quote
Tune to the correct channel using tvtimer (that worked before) then
Get current TV frequency

I can't get tv time to tune in anymore I dont know why , I tried all the possible channels in all the tv standards (PAL, PAL BG etc) in xawtv (channel hopping) but it's just not happening, I also tried tuning in the VHS I have and it wont tune in either, the odd thing is I did have video in tvtime and cheese but I've obviously done something that's screwed that up.

Anyway it's late and I have work in the morning if you guys don't mind continuing this tomorrow I would appreciate it, on the other hand if you tell me to bugger off you've had enough I'll understand

Thank a million for your efforts so far I really appreciate it


Goodnight

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 28, 2012, 12:01:33 am
if it was tuning previously .. try commenting out (or removing) the:-

options tuner type=0

in:-

/etc/modprobe.d/bttv.conf

then REBOOTING



We can try other tuners later, if necessary, from this list:
http://www.tldp.org/HOWTO/html_single/BTTV/#TUNMOD (http://www.tldp.org/HOWTO/html_single/BTTV/#TUNMOD)

.
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 28, 2012, 12:16:46 am
@Mark
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,

Hmm, according to this post he lost the tuning ability before the introduction of the tuner, but it is worth to try to remove that line
and try again tomorrow. :-\

@ Emegra
No problem, we all got our other distractions, well some of us more than others ;)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 28, 2012, 12:29:05 am
If that's the case .. maybe VLC or gucview are keeping hold of something (maybe /dev/video0)

I wonder if purging vlc and gucview would help.

Just a thought ???

Actually .. didn't Pooky just say he had to purge tvtime before his DVB card would work in VLC ?

[EDIT]

Ignore that .. it looks like he had to purge and reinstall tvtime:
http://linuxforums.org.uk/index.php?topic=9778.msg79984#msg79984 (http://linuxforums.org.uk/index.php?topic=9778.msg79984#msg79984)

maybe worth a shot.

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 01:19:25 pm
Hi Guys

We made massive progress but now things are worse than ever

firstly I uncommented line options tuner type=0 then opened up xawtv and both machines tuned in perfect, The betamax tuned in on channel 26 and the VHS tuned in on channel 60 the video image was good on both machines although I had no sound on either, I tried recording in xawtv and I got an error message something like error [init], I then tried tvtime and the VHS tuned in on channel 131 but the Betamax wouldn't tune in at all, both machines tuned into Cheese but again crashed when I tried to record, Then I went back to xawtv and tuned in the VHS it tuned in ok but I was getting vertical interference lines that I couldn't get rid of so i decided to reboot, after reboot neither Cheese, tvtime or xawtv will open, they just flash open for a second and disappear, the terminal output when xawtv fails says something about lack of resources (video ram) but I can't post the exact output as I'm at work right now , but I will do that when I get home.

Once again thanks for your effort


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 28, 2012, 05:39:11 pm
You still haven't confirmed you've connected your TV/Capture card to your soundcard ?

Have you considered creating a Mint 13 or Ubuntu 12.04 LiveUSB with persistence .. booting to it .. and seeing if cheese works in that ?

What was the problem with cheese in Peppermint ?



Then again you may be better off waiting for SeZo's advice .. I don't have a TV/Capture card for me to test things on.

.
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 28, 2012, 05:59:00 pm
It seems very erratic the way the card behaves. :-\
Quote
firstly I uncommented line options tuner type=0 then opened up xawtv and both machines tuned in perfect

Just ncommenting the tuner line (without unloading the module) would have left the tuner module loaded until your next boot.
So when you tested the tuning it was in fact with the loaded tuner module. But after the reboot the modification came into effect.
Is it now loaded?
Code: [Select]
lsmod | egrep '(bttv|tuner)'
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 06:04:01 pm
Hi Mark

Quote
You still haven't confirmed you've connected your TV/Capture card to your soundcard ?

I did answer that on an earlier post
Quote
No  I didn't think I had to I thought it would receive video and audio through the RF cable

Quote
Have you considered creating a Mint 13 or Ubuntu 12.04 LiveUSB with persistence .. booting to it .. and seeing if cheese works in that ?
No I haven't done that but I can can try to install to usb and run that if you think it will help

Quote
What was the problem with cheese in Peppermint ?

Cheese wont open in peppermint I've tried uninstalling and re-installing but it just wont open

To be honest I've been getting quite a lot of weird behaviour in both my Mint & Peppermint installs, I can't think of a time when I have been more disillusioned with Linux since I moved to it, I understand the problems are probably more my own doing and my lack of understanding rather than the fault of Linux but I seem to be having a hard time with it lately, I've even considered reinstalling both operating systems again from scratch but I don't want to go though all the setting up again if I can avoid it 


Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 06:15:06 pm
Hi SeZo

Quote
Is it now loaded?
Code: [Select]
lsmod | egrep '(bttv|tuner)'

I'm still at work, but I'll try what you suggest when I get home and report back
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 07:15:16 pm
Code: [Select]
[email protected] ~ $ lsmod | egrep '(bttv|tuner)'
tuner_simple           22016  1
tuner_types            18998  1 tuner_simple
tuner                  26797  1
bttv                  112147  0
videobuf_dma_sg        18714  1 bttv
videobuf_core          25097  2 bttv,videobuf_dma_sg
btcx_risc              13400  1 bttv
rc_core                21266  1 bttv
tveeprom               17009  1 bttv
v4l2_common            15767  3 tuner,msp3400,bttv
videodev               95841  4 tuner,msp3400,bttv,v4l2_common
i2c_algo_bit           13197  2 bttv,i915
[email protected] ~ $ lsmod | egrep '(bttv|tuner)'

Also here is the error output when I try to open xawtv
Code: [Select]
[email protected] ~ $ 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: 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/video0), out: default
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  149 (XVideo)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  483
  Current serial number in output stream:  484
[email protected] ~ $


Title: Re: Who remembers Betamax ?
Post by: SeZo on December 28, 2012, 09:23:31 pm
Quote
X Error of failed request:  BadAlloc (insufficient resources for operation)

Hmm. that is an X server error.
Try removing acceleration on your intel graphics (from your lspci.txt)
Quote
00:02.0 VGA compatible controller [0300]: Intel Corporation 82945G/GZ Integrated Graphics Controller [8086:2772] (rev 02)

Create a file '/etc/X11/xorg.conf.d/20-intel.conf'
Open a terminal and run:
Code: [Select]
sudo gedit /etc/X11/xorg.conf.d/20-intel.conf

a BLANK file should open.

add the following:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "NoAccel" "true"
EndSection

SAVE the file, and exit gedit.

Yes, you lose the acceleration this way ;)
You can always remove this file if it does not work.

Now to test .. REBOOT then try xawtv

Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 09:35:16 pm
Hi Sezo

Sorry if I've jumped the gun but while I was waiting on a reply, I uninstalled xawtv, Cheese, tvtime & vlc, I then rebooted and re-installed xawtv, and it's now opening up and tuning into the VHS on channel 60 PAL-DK, picture quality is good but I have no sound, I'm not able to tune in the Betamax but I only tried one scan

In view of that should i still try to remove graphics acceleration as you suggested in your last post ?

Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 28, 2012, 09:49:41 pm
It is up to you, though it might get rid of the framebuffer error.

If you can tune in the betamax then find out the frequency for later:
Code: [Select]
v4l2-ctl --get-freq
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 10:13:25 pm
Ok I got the Betamax tuned into Channel 26 and I've taken a note of the frequencies for both machines

I still have no sound and I get this error when I try to record


Code: [Select]
[email protected] ~ $ 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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory

Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 28, 2012, 10:37:13 pm
The audio problem seems to affect xawtv recording function as it tries to use OSS which is legacy now.
 is I think you need alsa-oss which provides /dev/dsp.

Code: [Select]
sudo apt-get install alsa-oss

You might still not get sound though as it is possible that the audio output on your card requires hard wired connection to your sound card
(instead of using the PCI bus as the video does.)

Get list of audio inputs:
Code: [Select]
arecord -l
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 10:44:25 pm
[email protected] ~ $ 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
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 28, 2012, 10:57:40 pm
There should be a distinct audio input  for your card if it was coming via the bus.
It might be worth to open up the case and see if there is a connector (internal) on your card for audio output.

Have you tried xawtv after (if) you have installed alsa-oss?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 28, 2012, 11:28:13 pm
Quote
There should be a distinct audio input  for your card if it was coming via the bus.

I'm not entirely sure what you mean there, but in pulse audio volume control settings i can see under "Input Devices" that i am getting an input, but I dont appear to be getting anything under "Output Devices"

Quote
It might be worth to open up the case and see if there is a connector (internal) on your card for audio output.

Ok I can have a look tomorrow to see if I have a connector
This might be a stupid question, but does it mean because I can't hear the output the it wouldn't record the output if I could get record to work ?

Quote
Have you tried xawtv after (if) you have installed alsa-oss?

yes and it has made no difference I can see

Anyway it's getting late but I can try again tomorrow if you still want to stick with it


many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 29, 2012, 12:39:06 am
Quote
does it mean because I can't hear the output the it wouldn't record the output if I could get record to work ?


Yes, probably, not necessarily, and no .. helpful eh ?  :o

Linux uses an Everything is a File (http://en.wikipedia.org/wiki/Everything_is_a_file) system .. so all system resources are registered as files (devices go in /dev)

As the TV/Capture card doesn't appear to register itself as an audio device , it's my guess that it needs you to use the sound card as the "audio" capture device .. so you'd need to run a cable either from pins on the capture card itself to the CD audio input on the sound card, or to run a mini-jack to mini-jack from audio OUT on the capture card to audio IN on the sound card.

Then tell whatever recording software you're using to use /dev/video0 for video, and /dev/<whatever device file your sound card capture is> for audio.

It seems xawtv likes the audio capture device registered as /dev/dsp(n) .. which is what sound devices USED TO get registered as under the old OSS sound system (no longer used by default)

I'm gonna take a guess here, and assume that now you've installed alsa-oss SeZo will ask you for the output from:
Code: [Select]
arecord -l
again, and:
Code: [Select]
ls -a /dev | grep dsp
to see if installing that caused the sound card capture to get registered as /dev/dsp(n).
and just for good luck, throw in the output from:
Code: [Select]
ls -a /dev | grep video

But you really need to tell us if there are any pins on the capture card for audio OUT, or a jack plug on the back marked audio OUT

As I said I'm kinda out of my comfort zone with capture .. so if I'm totally off track, please ignore this .. though there's nothing in this post that will cause any problems, so it certainly wont hurt ;)

[EDIT]

Please re-read section 4.1 here:
http://www.faqs.org/docs/Linux-mini/BTTV.html#ss4.1 (http://www.faqs.org/docs/Linux-mini/BTTV.html#ss4.1)
about connecting the audio leads to your soundcard.

[END EDIT
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 29, 2012, 07:16:38 am
Hi mark thanks again for your help

Quote
Yes, probably, not necessarily, and no .. helpful eh ? 

emm no :)

Quote
As the TV/Capture card doesn't appear to register itself as an audio device , it's my guess that it needs you to use the sound card as the "audio" capture device .. so you'd need to run a cable either from pins on the capture card itself to the CD audio input on the sound card, or to run a mini-jack to mini-jack from audio OUT on the capture card to audio IN on the sound card.

I've checked the tv card and it has audio in and audio out jacks at the rear so it should be a simple matter to connect the tv card to the sound card that way if I can find a lead (I'm sure I have one somewhere)

Quote
I'm gonna take a guess here, and assume that now you've installed alsa-oss SeZo will ask you for the output from:

Your guess is correct :)

Quote
As I said I'm kinda out of my comfort zone with capture .. so if I'm totally off track, please ignore this .. though there's nothing in this post that will cause any problems, so it certainly wont hurt

I wouldn't know if you were off track but I trust your judgement :)

Here's the outputs you asked for

Code: [Select]
[email protected] ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[email protected] ~ $ ls -a /dev | grep dsp
[email protected] ~ $ ls -a /dev | grep video
video0
[email protected] ~ $

I'm quietly confident that connecting the tv card to the sound input will work, I once had to do this to a radio card and it worked fine, anyway I'll do that as soon as I can and report back then hopefully we can get the recording issue sorted out.

Once again a huge thanks to you and SeZo for all you effort and patience


Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 29, 2012, 07:39:18 am
I'm not sure if this helps but I tried connecting my speakers directly into the tv card audio output and I have sound :)
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 29, 2012, 02:08:21 pm
Quote
I'm not sure if this helps but I tried connecting my speakers directly into the tv card audio output and I have sound

That was fully expected, as the audio would have been demodulated from the RF input. the question is how to transmit it to the rest of the system.
The option to link externally between the cards sounds good. Then you can use the in built audio devices as a source.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 29, 2012, 02:09:13 pm
Further to my last post I got an audio cable and I connected it from line out on the TV card to mic (red) on the sound card and I still got no sound output, but if I connect the speakers directly to the line out of the TV card the sound is fine.


Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 29, 2012, 02:14:49 pm
Have a look in the mixer settings if your mic is enabled (not muted)
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 29, 2012, 03:34:11 pm
Hi Sezo

I've checked and the mic is definately not muted

The settings in pulse audio settings are as follows

Playback: only system sounds are listed set at 100% (0db)
Recording: Gnome Volume Control Dialogue : peak detect from Built-In Analogue Stereo (the other option is monitor of Built-In Analogue Stereo) (Activity is showing)
Output Devices: Built-In Analogue Stereo, Port: Analogue Output, Front & Left Speakers set to 1005(0db) (no activity is showing)
Input Devices;  Built-In Audio Analogue Stereo, Port: Rear Microphone, Right & Left Speakers set to 14% (-51.42db) (activity is showing)
Configuration: All options have been tried (currently set to Analogue Stereo Duplex)

I hope you understand my descriptions my other option was to send screenshots, if you think that would be better let me know

Many Thanks

Graeme

Title: Re: Who remembers Betamax ?
Post by: SeZo on December 29, 2012, 03:57:09 pm
In Terminal type:
Code: [Select]
alsamixer
When your in alsamixer and you press F5 to view all outputs there should be an input for Mic?
Navigate with your left or right arrow key to highlight the Mic (capture) input.
use the up/down arrow to raise the levels
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 29, 2012, 03:59:25 pm
OK, let's give you a more familiar GUI front end to alsamixer:
Code: [Select]
sudo apt-get install gnome-alsamixer
Then search your menus for "Sound Mixer"

And see if Mic playback is muted in there.

[EDIT]

Or do it SeZo's way .. which is doing the same thing, just without the nice GUI ;)

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 29, 2012, 04:23:32 pm
Quote
When your in alsamixer and you press F5 to view all outputs there should be an input for Mic?
Navigate with your left or right arrow key to highlight the Mic (capture) input.
use the up/down arrow to raise the levels

I opened Alsamixer but when I press F5 I just got a grey warning symbol (grey circle with a diagonal line inside) but I was able to navigate along all the outputs using left and right arrow keys, there are 2 rear mic scales (see screenshot) and I set them both to maximum still no sound

Quote
Then search your menus for "Sound Mixer"

I can't see any other sound mixer other that pulse audio volume control which is the one I've been using
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 29, 2012, 04:35:21 pm
The "MM" under your Front and Rear Mic's (in alsamixer) says they are both muted on both channels.

Did you install gnome-aslamixer ? .. if so, and you still can't find it in the menu's (probably somewhere under Sound 7 video), you can start it from the command line with:
Code: [Select]
gnome-alsamixer

BTW, turn them down from 100% too ;)

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 29, 2012, 04:47:41 pm
We're wired for sound :)

Can you explain to me why pulse audio was telling me the rear mic wasn't muted when it obviously was ?

So now I just have to find a way to record if that's possible, any suggestions (other than do it yourself) :)

Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 29, 2012, 05:25:37 pm
pulseaudio was telling you the mic socket wasn't muted for capture... but it was muted for playback through the speakers, this is normal to stop feeback when using a microphone.

Recording .. I'd better leave that to SeZo, as i have little experince with such things.
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 29, 2012, 05:36:05 pm
It would be better if you could connect to line-in instead of the Mic as you could get clipping.
If you can do that then please do so and ascertain that you can get the audio, before going forward.

Now that you got sound, could get the result of:
Code: [Select]
arecord -l
Also would suggest to use VLC to capture as it is using alsa by default (unlike xawtv defaulting to oss)
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 07:16:26 am
Hi Guys
Sorry about the delay getting back to you, I was looking after my Grand-daughter yesterday

I changed over to line in as you suggested and I get sound so that's ok

Here's the output you asked for

Code: [Select]
[email protected] ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[email protected] ~ $

Quote
Also would suggest to use VLC to capture as it is using alsa by default (unlike xawtv defaulting to oss)

Unfortunately I can't get it to work in VLC I've tried various settings in the preferences (all the output options) but all I get is a green screen with interference at the top of the screen

Many thanks


Graeme

Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 12:09:17 pm
Further to my last post I can now get video in VLC, I never done anything I'm aware of other that try again but this thing does seem to have a mind of it's own

I'm getting a muffled noise coming through the speakers but nothing more, when I open VLC I get this error message

Code: [Select]
Audio output failed:
The audio device "plughw:CARD=Intel,DEV=2" could not be used:
No such file or directory.

Under capture devices in VLC, Video Device is listed as  /dev/video0, I have 2 options for Audio Devices hw:0,0 & hw :0,2, I get the muffled noise with hw:0,0 and no sound at all with hw:0,2

I also tried recording and it will record video but with the muffled noise

Hope this is helpful


Many Thanks


Graeme

Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 01:03:49 pm
See if the sound is muted in v4l:
Code: [Select]
v4l2-ctl -C mute
if you get 'mute: 1'
then:

Code: [Select]
v4l2-ctl -c mute=0
Open up VLC and post line from:
Media>Capture Device
 >Show more options
     Edit options: (example)
          :v4l2-standard=PAL_BG :input-slave=alsa://hw:0,0 :live-caching=300
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 01:10:36 pm
Code: [Select]
[email protected] ~ $ v4l2-ctl -C mute
mute: 1
[email protected] ~ $ v4l2-ctl -c mute=0
[email protected] ~ $


:v4l2-standard= :input-slave=alsa:// :live-caching=300
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 01:17:20 pm
So the audio was muted then.

Sorry I meant after you set up VLC to play the video :-[
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 01:36:42 pm
Ok It's back to giving me no video again, like I said in a previous post I never done anything to get it working in the first place so this doesn't surprise me,  But here's the output you asked for anyway incase it gives you any clue why it's so fragile


Code: [Select]
=-1 :v4l2-backlight-compensation=-1 :v4l2-band-stop-filter=-1 :no-v4l2-hflip :no-v4l2-vflip :v4l2-rotate=-1 :v4l2-color-killer=-1 :v4l2-color-effect=-1 :v4l2-audio-volume=-1 :v4l2-audio-balance=-1 :no-v4l2-audio-mute :v4l2-audio-bass=-1 :v4l2-audio-treble=-1 :no-v4l2-audio-loudness :v4l2-set-ctrls= :live-caching=300

Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 01:47:59 pm
Thanks, but that line is not complete.

In VLC Go to:
Media>Capture Device>Advanced Options:
       >Frequency <input number part of saved frequency for betamax>
Then press OK

Post the Edit line
Try to see if you get picture
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 02:12:52 pm
At the moment I'm working on VHS the old Betamax started eating tape to add insult to injury, I assumed for the purpose of getting this working it wouldn't matter what machine I was using, I hope my assumption hasn't caused any problems if it has I apologise

 
Code: [Select]
:v4l2-standard=PAL_BG :input-slave=alsa://hw:0,0 :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=-1 :v4l2-width=-1 :v4l2-height=-1 :v4l2-aspect-ratio=4\:3 :v4l2-fps=0 :v4l2-use-libv4l2 :v4l2-tuner=0 :v4l2-tuner-frequency=-1 :v4l2-tuner-audio-mode=1 :no-v4l2-controls-reset :v4l2-brightness=-1 :v4l2-brightness-auto=-1 :v4l2-contrast=-1 :v4l2-saturation=-1 :v4l2-hue=-1 :v4l2-hue-auto=-1 :v4l2-white-balance-temperature=-1 :v4l2-auto-white-balance=-1 :v4l2-red-balance=-1 :v4l2-blue-balance=-1 :v4l2-gamma=-1 :v4l2-autogain=-1 :v4l2-gain=-1 :v4l2-sharpness=-1 :v4l2-chroma-gain=-1 :v4l2-chroma-gain-auto=-1 :v4l2-power-line-frequency=-1 :v4l2-backlight-compensation=-1 :v4l2-band-stop-filter=-1 :no-v4l2-hflip :no-v4l2-vflip :v4l2-rotate=-1 :v4l2-color-killer=-1 :v4l2-color-effect=-1 :v4l2-audio-volume=-1 :v4l2-audio-balance=-1 :no-v4l2-audio-mute :v4l2-audio-bass=-1 :v4l2-audio-treble=-1 :no-v4l2-audio-loudness :v4l2-set-ctrls= :live-caching=300

I notice tuner frequency is listed as 1 but under advanced options it's listed as -1, don't know if that means anything

Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 02:40:23 pm
Nope, it does not matter which video you are using for the input
Could you change the tuner frequency to match the previously recorded frequency for the VHS
then try again to see if you get a picture.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 03:31:25 pm
Code: [Select]
VHS Frequency
[email protected] ~ $ v4l2-ctl --get-freq
Frequency: 12532 (783.250000 MHz)
[email protected] ~ $

I tried changing tuner frequency to 12532 that didn't work then I tried 783,250000 but it wouldn't allow me to enter that I then tried reducing the integar to 783.25 but it wouldn't let me enter that either

SeZ o I really feel I'm being a royal PITA with this now and I feel I'm just pestering you, honestly if want to tell me this can't be done with this hardware I'll accept that look for other hardware to do the job, you've give this everything and I appreciate all your effort I really do, I'll go on as long as you and Mark are prepared to, but please don't think I'll be offended or disappointed if you think I should give up


Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 04:27:53 pm
I don't know if this helps, but here goes

if I try to load the movie in VLC I get no audio or video, however if I load xawtv and tune in to channel 60 I get audio & video but will not record , if I then close out of xawtv and open VLC it will load video only and it will record (no audio) (in other words VLC will only play video if the signal has previously been tuned in by xawtv) if I reboot the PC I have to go through the same procedure again, so it seems it's a frequency problem with VLC and once xawtv tunes the card in VLC will play, the same happens with Cheese so to summarize

xawtv will play audio & video but will not record (but doesn't crash)
Cheese will play video only but crashes when I try to record
VLC will play & record video only (no audio)


Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 04:33:17 pm
It is up to you if you want to give up.
it seems that the stumbling block is getting stable (reliable) channel tuning set up which works every time
You could try to input in VLC for frequency 783250 and see if that gives the right channell

Alternatively (before you start VLC):
Code: [Select]
v4l2-ctl -d /dev/video0 -f 783.250
and as a test run:
Now test it works:
Code: [Select]
mplayer /dev/video0

You should now see the video on the PC screen corresponding to the input of the card.
Enter 'q' to quit mplayer

To record it as a file issue the command:

Code: [Select]
mplayer -dumpstream -dumpfile capture.mpg /dev/video0
Press ctrlc-c to quit when you are finished
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 04:47:23 pm
Quote
It is up to you if you want to give up.

I don't really want to give up I just don't want to be a pest that's all

Anyway I rebooted the PC and ran your command (v4l2-ctl -d /dev/video0 -f 783.250) and that worked perfectly although still no audio


Code: [Select]
mplayer /dev/video0

gives this output 


Code: [Select]
[email protected] ~ $ mplayer /dev/video0
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /dev/video0.
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 05:09:51 pm
I'm still wondering if using Ubuntu 12.04/Mint 13 with the older gstreamer might help.
(or even Peppermint 3, if we can get cheese installed and working)

Lot of work, I know .. but I still think this is sommat to do with gstreamer 1.0
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 05:24:46 pm

Quote
I'm still wondering if using Ubuntu 12.04/Mint 13 with the older gstreamer might help.
(or even Peppermint 3, if we can get cheese installed and working)

I have no idea Mark I lost track of this 7 pages ago, I know this is unrelated but I remember having a problem with gstreamer playing mp3's when I first installed peppermint 3 and you helped me sort it out, strangely enough VLC supplied the solution.

I don't know what's wrong with Cheese in peppermint I'm sure it did work, I've tried re-installing but that didn't help, but I haven't tried opening Cheese from the terminal to see if there is an error reported that could give me a clue (not that any of the error descriptions mean a lot to me).

Anyway I'm never gonna find the solution myself so I'm relying on you and Sezo to find one for me (which I know you will given time) so I'll follow whatever you both think is the best path to take, if you want to move this to peppermint that's what I'll do


Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 05:32:38 pm
In Mint .. can you post the output from:
Code: [Select]
lsmod
and
Code: [Select]
cat /proc/asound/pcm



At some point it might be worth finding out if there's any output from:
Code: [Select]
cheese
in Peppermint ;)
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 05:35:04 pm
Code: [Select]
[email protected] ~ $ lsmod
Module                  Size  Used by
des_generic            21191  0
md4                    12523  0
snd_hrtimer            12648  1
tuner_simple           22016  1
tuner_types            18998  1 tuner_simple
parport_pc             31968  0
ppdev                  12817  0
bnep                   17707  2
rfcomm                 37276  0
bluetooth             183228  10 bnep,rfcomm
tuner                  26797  1
nls_utf8               12493  6
cifs                  279812  7
fscache                50234  1 cifs
msp3400                35561  1
gpio_ich               13159  0
coretemp               13168  0
arc4                   12473  2
snd_hda_codec_realtek    63356  1
microcode              18209  0
bttv                  112147  1
videobuf_dma_sg        18714  1 bttv
videobuf_core          25097  2 bttv,videobuf_dma_sg
btcx_risc              13400  1 bttv
joydev                 17161  0
rc_core                21266  1 bttv
tveeprom               17009  1 bttv
snd_hda_intel          32515  3
snd_hda_codec         111547  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13272  1 snd_hda_codec
snd_pcm                80163  2 snd_hda_intel,snd_hda_codec
snd_seq_midi           13132  0
snd_rawmidi            25382  1 snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
snd_seq                51255  3 snd_seq_midi,snd_seq_midi_event
snd_timer              24411  3 snd_hrtimer,snd_pcm,snd_seq
snd_seq_device         14137  3 snd_seq_midi,snd_rawmidi,snd_seq
ath9k                 116549  0
v4l2_common            15767  3 tuner,msp3400,bttv
videodev               95841  5 tuner,msp3400,bttv,v4l2_common
serio_raw              13031  0
mac80211              461161  1 ath9k
i915                  457161  3
ath9k_common           13783  1 ath9k
mac_hid                13037  0
ath9k_hw              376155  2 ath9k,ath9k_common
ath                    19187  3 ath9k,ath9k_common,ath9k_hw
snd                    61991  16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
drm_kms_helper         45271  1 i915
lpc_ich                16925  0
cfg80211              175375  3 ath9k,mac80211,ath
drm                   230463  4 i915,drm_kms_helper
i2c_algo_bit           13197  2 bttv,i915
soundcore              14599  1 snd
video                  18847  1 i915
snd_page_alloc         14036  2 snd_hda_intel,snd_pcm
lp                     13299  0
parport                40753  3 parport_pc,ppdev,lp
hid_generic            12445  0
usbhid                 41702  0
hid                    82142  2 hid_generic,usbhid
usb_storage            39350  0
uas                    17556  0
r8169                  55976  0
[email protected] ~ $

Code: [Select]
[email protected] ~ $ cat /proc/asound/pcm
00-00: ALC888 Analog : ALC888 Analog : playback 1 : capture 1
00-02: ALC888 Analog : ALC888 Analog : capture 1
[email protected] ~ $




Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 05:39:04 pm
What's the output from:
Code: [Select]
amixer -c 0 controls
?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 05:40:16 pm
[email protected] ~ $ amixer -c 0 controls
numid=32,iface=CARD,name='Front Headphone Jack'
numid=34,iface=CARD,name='Front Mic Jack'
numid=35,iface=CARD,name='Line Jack'
numid=31,iface=CARD,name='Line Out Jack'
numid=33,iface=CARD,name='Rear Mic Jack'
numid=30,iface=MIXER,name='Master Playback Switch'
numid=29,iface=MIXER,name='Master Playback Volume'
numid=11,iface=MIXER,name='Headphone Playback Switch'
numid=10,iface=MIXER,name='Headphone Playback Volume'
numid=36,iface=MIXER,name='PCM Playback Volume'
numid=20,iface=MIXER,name='Front Mic Boost Volume'
numid=15,iface=MIXER,name='Front Mic Playback Switch'
numid=14,iface=MIXER,name='Front Mic Playback Volume'
numid=3,iface=MIXER,name='Front Playback Switch'
numid=2,iface=MIXER,name='Front Playback Volume'
numid=5,iface=MIXER,name='Surround Playback Switch'
numid=4,iface=MIXER,name='Surround Playback Volume'
numid=8,iface=MIXER,name='Center Playback Switch'
numid=6,iface=MIXER,name='Center Playback Volume'
numid=9,iface=MIXER,name='LFE Playback Switch'
numid=7,iface=MIXER,name='LFE Playback Volume'
numid=17,iface=MIXER,name='Line Playback Switch'
numid=16,iface=MIXER,name='Line Playback Volume'
numid=21,iface=MIXER,name='Capture Switch'
numid=22,iface=MIXER,name='Capture Switch',index=1
numid=23,iface=MIXER,name='Capture Volume'
numid=24,iface=MIXER,name='Capture Volume',index=1
numid=18,iface=MIXER,name='Auto-Mute Mode'
numid=28,iface=MIXER,name='Beep Playback Switch'
numid=27,iface=MIXER,name='Beep Playback Volume'
numid=1,iface=MIXER,name='Channel Mode'
numid=37,iface=MIXER,name='Digital Capture Volume'
numid=25,iface=MIXER,name='Input Source'
numid=26,iface=MIXER,name='Input Source',index=1
numid=19,iface=MIXER,name='Rear Mic Boost Volume'
numid=13,iface=MIXER,name='Rear Mic Playback Switch'
numid=12,iface=MIXER,name='Rear Mic Playback Volume'
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 05:59:03 pm
is there a jackplug socket on your sound card called "Line" or "Line IN" .. not "Line OUT" ?

and what's the output from:
Code: [Select]
amixer -c 0 cget name='Line Jack'
and
Code: [Select]
amixer -c 0 cget name='Input Source'
and
Code: [Select]
amixer -c 0 cget name='Capture Switch'
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 05:59:08 pm
Just for the record here's the output from opening cheese in peppermint


[email protected] ~ $ cheese

(cheese:2261): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2261): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2261): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2261): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2261): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2261): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

** (cheese:2261): CRITICAL **: cheese_camera_device_get_uuid: assertion `CHEESE_IS_CAMERA_DEVICE (device)' failed
Segmentation fault
[email protected] ~ $



Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 06:08:33 pm
Quote
is there a jackplug socket on your sound card called "Line" or "Line IN" .. not "Line OUT" ?

There are 3 sockets nothing is written but they are colour coded there is red (mic) green (line out) and blue (which i assume is line in) I currently have the lead fron tv card (line out to sound card blue (line in) this is how i was instructed to do it by SeZo

Code: [Select]
[email protected] ~ $ amixer -c 0 cget name='Line Jack'
amixer: Cannot find the given element from control hw:0

Code: [Select]
[email protected] ~ $ amixer -c 0 cget name='Input Source'
numid=25,iface=MIXER,name='Input Source'
  ; type=ENUMERATED,access=rw------,values=1,items=3
  ; Item #0 'Rear Mic'
  ; Item #1 'Front Mic'
  ; Item #2 'Line'
  : values=2
[email protected] ~ $

Code: [Select]
[email protected] ~ $ amixer -c 0 cget name='Capture Switch'
numid=21,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
[email protected] ~ $




Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 06:15:22 pm
This is going to get confusing...
Quote
It is up to you if you want to give up.

I don't really want to give up I just don't want to be a pest that's all

Anyway I rebooted the PC and ran your command (v4l2-ctl -d /dev/video0 -f 783.250) and that worked perfectly although still no audio

Maybe we can build on that:
Code: [Select]
v4l2-ctl -C stream_type
and
Code: [Select]
v4l2-ctl -c stream_type=0
v4l2-ctl -c insert_navigation_packets=0
v4l2-ctl -c stream_vbi_format=0
then
Code: [Select]
mplayer /dev/video0 -vo xv -ao alsa
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 06:18:49 pm
And when you have time .. boot to peppermint and sent the output from:
Code: [Select]
ls -a ~/Videos/Webcam

But I'd stick with SeZo for time being ;)



I just wanna see if this guy is right:
http://linuxgamecast.com/lgcbbs/index.php?p=/discussion/85/cheese-core-dump-on-ubuntu-12-04-fixed/p1 (http://linuxgamecast.com/lgcbbs/index.php?p=/discussion/85/cheese-core-dump-on-ubuntu-12-04-fixed/p1)

.
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 30, 2012, 06:52:12 pm
Actually...Maybe stick with Mark on the audio issue for a while.
Just been summoned for transport duty. Be back in a while.
Perhaps then we could build a script to initialise the card with the right settings for capture.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 06:57:11 pm
Quote
Maybe we can build on that:

ok that sounds like a good plan :)

Code: [Select]
[email protected] ~ $ v4l2-ctl -C stream_type
unknown control 'stream_type'
[email protected] ~ $


Code: [Select]
[email protected] ~ $ v4l2-ctl -c stream_type=0
unknown control 'stream_type'
[email protected] ~ $

Code: [Select]
[email protected] ~ $ v4l2-ctl -c insert_navigation_packets=0
unknown control 'insert_navigation_packets'
[email protected] ~ $

Code: [Select]
[email protected] ~ $ v4l2-ctl -c stream_vbi_format=0
unknown control 'stream_vbi_format'
[email protected] ~ $

g
Code: [Select]
[email protected] ~ $ mplayer /dev/video0 -vo xv -ao alsa
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /dev/video0.
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Failed to recognize file format.


Exiting... (End of file)
[email protected] ~ $













Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 07:02:39 pm
ok Mark I'm in peppermint here's the output you asked for


Code: [Select]
[email protected] ~ $ ls -a ~/Videos/Webcam
.  ..
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 07:15:34 pm
Have you triede removing cheese:
Code: [Select]
sudo apt-get remove --purge cheese
then reinstalling it:
Code: [Select]
sudo apt-get install cheese
?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 07:20:13 pm
I don't want to complicate things for you or seZo so if you think this is unrelated just ignore it, but since starting to solve this video capture issue, I've been getting a strange error message when i close out of Mint, unfortunately it doesn't stay on the screen long enough for me to read or copy but it's related to dbus, if i could stop the screen I could copy it but I dont know how to do that.

Anyway it may not be important or related to the video problem so just ignore it if you think it's not important :)


Many thanks


graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 07:25:38 pm
I did previously try un-installing cheese and re-installing without success but I did it the way you suggested and it's it still wont open

Here's the output


Code: [Select]
[email protected] ~ $ cheese

(cheese:3457): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3457): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3457): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3457): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3457): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:3457): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

** (cheese:3457): CRITICAL **: cheese_camera_device_get_uuid: assertion `CHEESE_IS_CAMERA_DEVICE (device)' failed
Segmentation fault
[email protected] ~ $


just a wee question is the way you suggested un-installing the same as "mark for complete removal" in synaptic and if not what's the difference ?


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 07:47:34 pm
Quote
is the way you suggested un-installing the same as "mark for complete removal" in synaptic

YES .. both also remove any config files as well as the application:

In Peppermint run:
Code: [Select]
sudo apt-get update
then run:
Code: [Select]
sudo apt-get upgrade
but DON'T HIT Y yet .. first post what it says it's going to do
then hit Y .. and post what it said it did.

can you also post the output from:
Code: [Select]
dpkg -l | grep cheese
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 07:55:42 pm
Code: [Select]
[email protected] ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  dbus dbus-x11 libdbus-1-3 linux-firmware linux-libc-dev xserver-xorg-core
  xserver-xorg-input-synaptics xserver-xorg-input-wacom
  xserver-xorg-video-intel
9 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 26.6 MB of archives.
After this operation, 743 kB of addi
tional disk space will be used.
Do you want to continue [Y/n]?

Code: [Select]
[email protected] ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  dbus dbus-x11 libdbus-1-3 linux-firmware linux-libc-dev xserver-xorg-core
  xserver-xorg-input-synaptics xserver-xorg-input-wacom
  xserver-xorg-video-intel
9 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 26.6 MB of archives.
After this operation, 743 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main libdbus-1-3 i386 1.4.18-1ubuntu1.3 [148 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main dbus i386 1.4.18-1ubuntu1.3 [367 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main dbus-x11 i386 1.4.18-1ubuntu1.3 [21.6 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main linux-firmware all 1.79.1 [23.1 MB]
Get:5 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev i386 3.2.0-35.55 [867 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main xserver-xorg-core i386 2:1.11.4-0ubuntu10.8 [1,675 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main xserver-xorg-input-synaptics i386 1.6.2-1ubuntu1~precise2 [72.5 kB]
Get:8 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main xserver-xorg-input-wacom i386 1:0.14.0-0ubuntu2.1 [85.3 kB]
Get:9 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main xserver-xorg-video-intel i386 2:2.17.0-1ubuntu4.2 [240 kB]
Fetched 26.6 MB in 35s (754 kB/s)                                             
(Reading database ... 183496 files and directories currently installed.)
Preparing to replace libdbus-1-3 1.4.18-1ubuntu1 (using .../libdbus-1-3_1.4.18-1ubuntu1.3_i386.deb) ...
Unpacking replacement libdbus-1-3 ...
Preparing to replace dbus 1.4.18-1ubuntu1 (using .../dbus_1.4.18-1ubuntu1.3_i386.deb) ...
Unpacking replacement dbus ...
Preparing to replace dbus-x11 1.4.18-1ubuntu1 (using .../dbus-x11_1.4.18-1ubuntu1.3_i386.deb) ...
Unpacking replacement dbus-x11 ...
Preparing to replace linux-firmware 1.79 (using .../linux-firmware_1.79.1_all.deb) ...
Unpacking replacement linux-firmware ...
Preparing to replace linux-libc-dev 3.2.0-33.52 (using .../linux-libc-dev_3.2.0-35.55_i386.deb) ...
Unpacking replacement linux-libc-dev ...
Preparing to replace xserver-xorg-core 2:1.11.4-0ubuntu10.6 (using .../xserver-xorg-core_2%3a1.11.4-0ubuntu10.8_i386.deb) ...
Unpacking replacement xserver-xorg-core ...
Preparing to replace xserver-xorg-input-synaptics 1.6.2-1ubuntu1~precise1 (using .../xserver-xorg-input-synaptics_1.6.2-1ubuntu1~precise2_i386.deb) ...
Unpacking replacement xserver-xorg-input-synaptics ...
Preparing to replace xserver-xorg-input-wacom 1:0.14.0-0ubuntu2 (using .../xserver-xorg-input-wacom_1%3a0.14.0-0ubuntu2.1_i386.deb) ...
Unpacking replacement xserver-xorg-input-wacom ...
Preparing to replace xserver-xorg-video-intel 2:2.17.0-1ubuntu4 (using .../xserver-xorg-video-intel_2%3a2.17.0-1ubuntu4.2_i386.deb) ...
Unpacking replacement xserver-xorg-video-intel ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up libdbus-1-3 (1.4.18-1ubuntu1.3) ...
Setting up dbus (1.4.18-1ubuntu1.3) ...
Setting up dbus-x11 (1.4.18-1ubuntu1.3) ...
Setting up linux-firmware (1.79.1) ...
Setting up linux-libc-dev (3.2.0-35.55) ...
Setting up xserver-xorg-core (2:1.11.4-0ubuntu10.8) ...
Setting up xserver-xorg-input-synaptics (1.6.2-1ubuntu1~precise2) ...
Setting up xserver-xorg-input-wacom (1:0.14.0-0ubuntu2.1) ...
Setting up xserver-xorg-video-intel (2:2.17.0-1ubuntu4.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
[email protected] ~ $

Code: [Select]
[email protected] ~ $ dpkg -l | grep cheese
ii  cheese                                 3.4.1-0ubuntu2.1                        tool to take pictures and videos from your webcam
ii  cheese-common                          3.4.1-0ubuntu2.1                        Common files for the Cheese tool to take pictures and videos
ii  libcheese-gtk21                        3.4.1-0ubuntu2.1                        tool to take pictures and videos from your webcam - widgets
ii  libcheese3                             3.4.1-0ubuntu2.1                        tool to take pictures and videos from your webcam - base library
[email protected] ~
$




Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 08:16:23 pm
Is this 64bit Peppermint ?

because cheese works in mine (Peppermint 3 32bit)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 08:20:14 pm
this seems to be all over the web:
https://www.google.co.uk/search?client=ubuntu&channel=fs&q=cheese_camera_device_get_uuid%3A+assertion+%60CHEESE_IS_CAMERA_DEVICE+%28device%29%27+failed+Segmentation+fault&ie=utf-8&oe=utf-8&gl=uk&redir_esc=&ei=4J3gUJyJAum90QWv-YHYCQ (https://www.google.co.uk/search?client=ubuntu&channel=fs&q=cheese_camera_device_get_uuid%3A+assertion+%60CHEESE_IS_CAMERA_DEVICE+%28device%29%27+failed+Segmentation+fault&ie=utf-8&oe=utf-8&gl=uk&redir_esc=&ei=4J3gUJyJAum90QWv-YHYCQ)

yet oddly, cheese is working on my Peppermint 3 ???
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 08:29:34 pm
Quote
Is this 64bit Peppermint ?


It's 32 bit the strange thing is I'm sure it worked before because if you remeber right I had a problem with my Grand-Daughters pc loading a webcam and i tried it in this machine and it worked in cheese

I posted the problem in the peppermint forums   http://peppermintos.net/viewtopic.php?f=8&t=5186 (http://peppermintos.net/viewtopic.php?f=8&t=5186)

entry 6 suggests cheese worked at that time because i would have used cheese to test the webcam


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 08:33:43 pm
Have you tried booting without the webcam plugged in and seeing if cheese works ?

did this start when you fitted the capture card ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 08:36:34 pm
Quote
Have you tried booting without the webcam plugged in and seeing if cheese works ?

I don't have the webcam connected to this PC it's connected to Chloes PC

Quote
did this start when you fitted the capture card ?

I can't be sure but I'm only aware of it since installing the TV card, I don't use Cheese on this PC for anything else
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 08:43:09 pm
Out of curiosity I just tested cheese on Chloes PC which runs peppermint 3 and it loads fine and opens the webcam

Also just out of curiosiry I've just noticed my status is "Full Member" does that mean I can say swear words ? :)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 09:37:14 pm
I'll see if I can dig anything up .. but don't hold your breath for something tonight .. maybe I'll find sommat quickly, maybe I won't find anything at all

Maybe attaching the dmesg and syslog contents from Peppermint might help:
Code: [Select]
dmesg > ~/dmesg.txt
and
Code: [Select]
cat /var/log/syslog > ~/syslog.txt

then attach the dmesg.txt and syslog.txt files from you home directory to your next posting
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 09:43:04 pm
Ok here's the outputs you asked for







Graeme





Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 10:09:17 pm
OK, run:
Code: [Select]
strace -o ~/cheese-strace.txt cheese
then attach the cheese-strace.txt file from your home folder.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 10:21:15 pm
Here's the output
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 10:42:41 pm
what happens if you run:
Code: [Select]
sudo modprobe -r bttv
then
Code: [Select]
sudo modprobe bttv card=2
then try cheese ?
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 11:34:00 pm
@ SeZo

we were just massing wit cheese in Peppermint to see if we could get that running .. He can go back to Mint if you like

Thinking about it, it may be a good idea to start a seperate topic for Cheese and capture in Peppermint, so it doesn't become too confusing.

Waddaya reckon ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 11:37:51 pm
Code: [Select]
[email protected] ~ $ sudo modprobe -r bttv
[sudo] password for graeme:
[email protected] ~ $ sudo modprobe bttv card=2
[email protected] ~ $ cheese

(cheese:2136): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2136): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2136): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2136): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2136): Gtk-WARNING **: Attempting to add a widget with type GtkGrid to a GtkToggleButton, but as a GtkBin subclass a GtkToggleButton can only contain one widget at a time; it already contains a widget of type GtkLabel

(cheese:2136): Gtk-WARNING **: Attempting to add a widget with type GtkImage to a GtkButton, but as a GtkBin subclass a GtkButton can only contain one widget at a time; it already contains a widget of type GtkLabel

** (cheese:2136): CRITICAL **: cheese_camera_device_get_uuid: assertion `CHEESE_IS_CAMERA_DEVICE (device)' failed
Segmentation fault
[email protected] ~ $


The first time I tried your instructions I forgot to run the second command before loading cheese and cheese opened up with the message "no devices loaded"  then I realised i didn't type your second command so I closed cheese  and tried again this time with both commands and got the above output, so I rebooted and typed in both commands and got the above output,

Do you want me to reboot and try then first command only to see if cheese at least opens ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 11:44:04 pm
Further to the last post Cheese is now opening up but if I use the 3 commands you gave me I get the error output I posted in my previous post
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 11:44:46 pm
not at present .. if cheese opened when you removed the bttv driver it's obvioulsy something to do with the card/drivers

there are a load of ioctl errors in the strace that I neeed to research a bit

so for now Ill hand you back to SeZo and Mint.

With a suggestion that you try running strace on cheese and vlc in Mint
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 11:45:52 pm
OK, ignore my last posting :)

does it work with the capture card ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 11:49:01 pm
Quote
does it work with the capture card ?

No it wont load the capture card the best I can get is for cheese to open with an message "no devices loaded"
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 11:51:35 pm
is that with the card=2 option set ?

If so, as I said .. back to SeZo and Mint .. with a suggestion you try using stace to see where VLC/Cheese/Xawtv is stumbling.

Heck, I'm not even sure if cheese can be used for capturing from a capture card  :o

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 30, 2012, 11:53:54 pm
Cheese stopped opening again untill I typed "sudo modprobe -r bttv" into the terminal then it will open but if I type the second command (sudo modprobe bttv card=2) I get the terminal error I posted earlier
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 30, 2012, 11:58:14 pm
As I said this is going to get confusing .. so go back to Mint

did you say you could get a picture in Cheese in Mint .. but when you hit record it crashed ?

is there a way to set the video and audio capture devices in cheese ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 31, 2012, 12:09:55 am
Quote
did you say you could get a picture in Cheese in Mint .. but when you hit record it crashed ?

Yes I get video but it crashes when I try to record

Quote
did you say you could get a picture in Cheese in Mint .. but when you hit record it crashed ?

I'm not sure there isnt a lot of options as I remember in the preferences

Anyway I think we should call it a day, I dont know about you but Meh heids burst , and I'm working tomorrow, so I'm not sure if I can continue with this tomorrow as I have a lot on but we can sort this out next year if you ans SeZo don't mind , so If i can't get online tomorrow have a great new year and dont drink too much of that Jack Daniels and you too SeZo I can't thank you both enough for all the effort you've put into this  have a good time and all the best for 2013

Many Many thanks for all your help

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on December 31, 2012, 12:20:17 am
No problem .. catch you in the new year then, and have a good one :)
Title: Re: Who remembers Betamax ?
Post by: SeZo on December 31, 2012, 01:29:53 am
@ SeZo

we were just massing wit cheese in Peppermint to see if we could get that running .. He can go back to Mint if you like

Thinking about it, it may be a good idea to start a seperate topic for Cheese and capture in Peppermint, so it doesn't become too confusing.

Waddaya reckon ?

Sorry guys, was just reading through the posts when I got disconnected and it did take up till now before I was able to re-connect (ISP problem)

@Emegra
I think for the new year we should establish a stable platform when the video loads EVERY time and then we can start sorting out minor things like audio  etc. ;)

Hope you have a  good new year
Title: Re: Who remembers Betamax ?
Post by: Emegra on December 31, 2012, 06:22:22 am
Quote
I think for the new year we should establish a stable platform when the video loads EVERY time and then we can start sorting out minor things like audio  etc.

That sounds good to me :)

Many Thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 12:57:20 pm
Hi guys hope you all enjoyed the new year celebrations

Just to recap from where we left off in Mint,

VLC will play video although there is still no sound and before it will load video I have to first tune the signal with xawtv, once that's done it's stable, it will also convert & save although picture quality isn't the best

xawtv will play video & audio but will not record and fails with this error

Code: [Select]
[email protected] ~ $ 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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory

Cheese will play video (only once the signal has been tuned it by xawtv) no audio, and will crash if I attempt to record with this error

http://pastebin.com/HQvpYUcF (http://pastebin.com/HQvpYUcF)


Many thanks

Graeme

Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 01, 2013, 02:08:37 pm
Just as a matter of interest, what happens if you try starting xawtv with:
Code: [Select]
padsp xawtv
or
Code: [Select]
aoss xawtv

does sound now work ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 02:20:58 pm
Hi Mark

Sound isn't a problem in xawtv, but if you meant do I get sound in VLC after loading  xawtv the answer is no it makes no difference with either of the commands , I just get a horrible muffled noise coming through the speakers
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 01, 2013, 02:55:26 pm
No .. I meant would xawtv "record" sound when started with those commands.

and if not .. does the error message change ?



@ SeZo

According to this:
http://linux.about.com/od/commands/l/blcmdl1_xawtv.htm (http://linux.about.com/od/commands/l/blcmdl1_xawtv.htm)

you can change the xawtv dsp from /dev/dsp (default) with -C <device> or -devdsp <device> .. but I ain't got a clue what /dev/dsp became in ALSA/PulseAudio .. any ideas ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 03:06:44 pm
Opening xawtv using the commands you posted makes no difference it will play sound but gives these error reports when I try to record

Code: [Select]
[email protected] ~ $ 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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory


Code: [Select]
[email protected] ~ $ padsp 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: 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/video0), out: default
open : No such file or directory

Code: [Select]
[email protected] ~ $ aoss 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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory

Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 05:36:40 pm
Quote
Alsa devices: cap: (null) (/dev/video0), out: default
That would indicate that there is no capture device set for alsa
To see more of the details:
Code: [Select]
xawtv -debug 1
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 05:42:51 pm
Hi SeZo

Code: [Select]
[email protected] ~ $ xawtv -debug 1
This is xawtv-3.102, running on Linux/i686 (3.5.0-17-generic)
visual: id=0x21 class=4 (TrueColor), depth=24
visual: id=0x22 class=5 (DirectColor), depth=24
visual: id=0xa4 class=4 (TrueColor), depth=24
visual: id=0xa5 class=4 (TrueColor), depth=24
visual: id=0xa6 class=4 (TrueColor), depth=24
visual: id=0xa7 class=4 (TrueColor), depth=24
visual: id=0xa8 class=4 (TrueColor), depth=24
visual: id=0xa9 class=4 (TrueColor), depth=24
visual: id=0xaa class=4 (TrueColor), depth=24
visual: id=0xab class=4 (TrueColor), depth=24
visual: id=0xac class=4 (TrueColor), depth=24
visual: id=0xad class=4 (TrueColor), depth=24
visual: id=0xae class=4 (TrueColor), depth=24
visual: id=0xaf class=4 (TrueColor), depth=24
visual: id=0xb0 class=4 (TrueColor), depth=24
visual: id=0xb1 class=4 (TrueColor), depth=24
visual: id=0xb2 class=5 (DirectColor), depth=24
visual: id=0xb3 class=5 (DirectColor), depth=24
visual: id=0xb4 class=5 (DirectColor), depth=24
visual: id=0xb5 class=5 (DirectColor), depth=24
visual: id=0xb6 class=5 (DirectColor), depth=24
visual: id=0xb7 class=5 (DirectColor), depth=24
visual: id=0xb8 class=5 (DirectColor), depth=24
visual: id=0xb9 class=5 (DirectColor), depth=24
visual: id=0xba class=5 (DirectColor), depth=24
visual: id=0xbb class=5 (DirectColor), depth=24
visual: id=0xbc class=5 (DirectColor), depth=24
visual: id=0xbd class=5 (DirectColor), depth=24
visual: id=0xbe class=5 (DirectColor), depth=24
visual: id=0xbf class=5 (DirectColor), depth=24
visual: id=0xc0 class=5 (DirectColor), depth=24
visual: id=0x73 class=4 (TrueColor), depth=32
x11: color depth: 24 bits, 3 bytes - pixmap: 4 bytes
x11: color masks: red=0x00ff0000 green=0x0000ff00 blue=0x000000ff
x11: server byte order: little endian
x11: client byte order: little endian
check if the X-Server is local ... * ok (unix socket)
main: dga extention...
DGA version 2.0
main: xinerama extention...
xinerama 0: 1600x900+0+0
main: xvideo extention [video]...
Xvideo: 2 adaptors available.
Xvideo: Intel(R) Textured Video: input image, ports 95-110
Xvideo: Intel(R) Video Overlay: input image, ports 111-111
Xvideo: no usable video port found
main: xvideo extention [image]...
blit: xv: 0x32595559 (YUY2) packed [ok: 16 bit YUV 4:2:2 (packed, YUYV)]
blit: xv: 0x32315659 (YV12) planar
blit: xv: 0x30323449 (I420) planar [ok: 12 bit YUV 4:2:0 (planar)]
blit: xv: 0x59565955 (UYVY) packed [ok: 16 bit YUV 4:2:2 (packed, UYVY)]
blit: xv: 0x434d5658 (XVMC) planar
main: init main window...
main: install signal handlers...
main thread [pid=9732]
main: open grabber device...
x11: 1600x900, 32 bit/pixel, 0 byte/scanline
vid-open-auto: trying: /dev/video0...
Using libv4l plugin
v4l2: device caps: 7, required 6
v4l2: open
v4l2: device info:
  bttv 3.5.5 / BT848A video (Hauppauge (bt848) @ PCI:0000:02:02.0
vid-open-auto: using analog TV device /dev/video0
vid-open-auto: success, using: /dev/video0
vid-open: closing dev to run v4lconf
v4l2: close
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: 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>")
/dev/video0 [v4l2]: configuration done
got sigchild
waitpid: No child processes
vid-open: re-opening dev after v4lconf
Using libv4l plugin
v4l2: device caps: 7, required 0
v4l2: open
v4l2: device info:
  bttv 3.5.5 / BT848A video (Hauppauge (bt848) @ PCI:0000:02:02.0
vid-open: re-open ok
v4l2: WARNING: framebuffer base address mismatch
v4l2: me=(nil) v4l=(nil)
Alsa devices: cap: (null) (/dev/video0), out: default
main: checking wm...
wmhooks: netwm state above
wmhooks: netwm state fullscreen
main: creating windows ...
main: init frequency tables ...
freq: reading /usr/share/xawtv/Index.map
main: read config file ...
freq: newtab 5
freq: reading /usr/share/xawtv/europe-west.list
freq: reading /usr/share/xawtv/ccir-i-iii.list
freq: reading /usr/share/xawtv/ccir-sl-sh.list
freq: reading /usr/share/xawtv/ccir-h.list
freq: reading /usr/share/xawtv/uhf.list
xt: checking for randr extention ...
xrandr: 1600x900 1280x1024 1440x900 1280x960 1366x768 1360x768 1280x800 1152x864 1280x768 1024x768 1024x576 832x624 800x600 848x480 640x480 720x400
xt: checking for vidmode extention ...
VidMode  version 2.2
  available video mode(s): 1600x900 1280x1024 1280x1024 1440x900 1440x900 1280x960 1366x768 1360x768 1280x800 1280x800 1152x864 1280x768 1280x768 1024x768 1024x768 1024x768 1024x576 832x624 800x600 800x600 800x600 800x600 848x480 640x480 640x480 640x480 640x480 720x400
xt: checking for lirc ...
xawtv: could not connect to socket
xawtv: No such file or directory
lirc: no infrared remote support available
xt: checking for joystick ...
xt: checking for midi ...
xt: adding kbd hooks ...
main: mapping main window ...
main: initialize hardware ...
v4l2:   tuner cap:
v4l2:   tuner rxs: MONO
v4l2:   tuner cur: MONO
main: parse channels from config file ...
xt: handle_pending:  start ...
xt: handle_pending:  ... done
cmd: "setfreqtab" "europe-west"
freq: newtab 5
cmd: "capture" "grabdisplay"
gd: start [0]
cmd: "setchannel" "60"
gd: stop
v4l2: freq: 783.250
gd: start [0]
main: known station tuned, not changing
xt: enter main event loop...
gd: init
blit: init
blit: gl: init
blit: gl: DRI=Yes
blit: gl: texture max size: 2048
blit: resize 384x288
gd: config 384x288 win=320005f
blit: gl: extention GL_EXT_bgra is available
blit: gl: extention GL_EXT_bgra is available
v4l2: new capture params (384x288, YUYV, 221184 byte)
setformat: 16 bit YUV 4:2:2 (packed, YUYV) (384x288): ok
grabdisplay: using "16 bit YUV 4:2:2 (packed, YUYV)"
cmd: "capture" "off"
gd: stop
v4l2: new capture params (384x288, BGR4, 442368 byte)
setformat: 32 bit TrueColor (LE: bgr-) (384x288): ok
v4l2: new capture params (384x288, BGR4, 442368 byte)
cmd: "capture" "grab"
gd: start [13]
v4l2: new capture params (384x288, YUYV, 221184 byte)
setformat: 16 bit YUV 4:2:2 (packed, YUYV) (384x288): ok
v4l2: buf 0: video-cap 0x0+221184, used 0
v4l2: buf 1: video-cap 0x36000+221184, used 0
expose count=0
expose count=0
expose count=0
expose count=0
v4l2: start ts=1357061937258210000
blit: 384x288/[16 bit YUV 4:2:2 (packed, YUYV)] => Xvideo
keypad: timeout
   25 fps
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 06:04:59 pm
Could you try again with xawtv -debug 1, but this time plug the audio lead into the Mic socket
Also try in VLC to see if the Mic was set for capture

Also could you post the output:
Code: [Select]
v4l2-ctl -d /dev/video0 --list-ctrls
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 06:14:53 pm

http://pastebin.com/2RmfEbJU (http://pastebin.com/2RmfEbJU)

I tried it in VLC with the lead plugged into the mic socket and still no sound

Code: [Select]
[email protected] ~ $ v4l2-ctl -d /dev/video0 --list-ctrls
                     brightness (int)    : min=0 max=65535 step=256 default=32768 value=32768
                       contrast (int)    : min=0 max=65535 step=128 default=27648 value=32768
                     saturation (int)    : min=0 max=65535 step=128 default=32768 value=32768
                            hue (int)    : min=0 max=65535 step=256 default=32768 value=32768
                        balance (int)    : min=0 max=65535 step=655 default=32768 value=32768
                           bass (int)    : min=0 max=65535 step=655 default=32768 value=32768
                         treble (int)    : min=0 max=65535 step=655 default=32768 value=32768
                           mute (bool)   : default=0 value=1
                     chroma_agc (bool)   : default=0 value=0
                     combfilter (bool)   : default=0 value=0
                       automute (bool)   : default=0 value=1
         luma_decimation_filter (bool)   : default=0 value=0
                      agc_crush (bool)   : default=0 value=1
                       vcr_hack (bool)   : default=0 value=0
               whitecrush_upper (int)    : min=0 max=255 step=1 default=207 value=207
               whitecrush_lower (int)    : min=0 max=255 step=1 default=127 value=127
                       uv_ratio (int)    : min=0 max=100 step=1 default=50 value=50
                full_luma_range (bool)   : default=0 value=0
                         coring (int)    : min=0 max=3 step=1 default=0 value=0
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 06:37:04 pm
OK, re plug the audio lead int the line-in and start alsamixer (or the GUI version)
Code: [Select]
alsamixer
Then press F4 to get Capture view, what do you get?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 06:45:47 pm
Quote
Then press F4 to get Capture view, what do you get?

I'm not really sure what you're looking for so here's a screenshot
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 07:49:34 pm
What I was looking for is which input has CAPTURE written against
Could you navigate to Capture1 (or any other item marked with '-------') and press space bar to toggle capturing on that device
then try again?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 08:04:19 pm
As you can see on the screenshot I have 2 capture scales "Capture" & "Capture1" I can toggle each of them off and on with the space bar, I am getting a constant interference sound which stops when I toggle "Capture" to off (as in the screenshot) "Capture1" has no effect switched off or on

EDIT
I just discovered that the interference is caused by "input Source being set to Rear mic, I have set it back to Line
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 08:30:27 pm
As you got it set (with Capture1 enabled) and source 1 is rear Mic
Can you make sure that with F5 (all) rear Mic is unmuted, volume up 20 and corresponding rear Mic boost is up to 5
Plug the audio back into rear Mic and try again
Could you also do to see all controls:
Code: [Select]
amixer
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 08:40:08 pm
Ok I think I've done what you want I have the lead back in rear mic and set alsamixer settings as per screenshot (still no sound) , I don't know how to adjust boost (is boost settings the "00" at the bottom of the scale ?)
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 08:53:41 pm
If you navgate to the third item from the right (name should appear on top left of window)
Does (still no sound) mean it is still interference or just silence?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 09:03:06 pm
If you navgate to the third item from the right (name should appear on top left of window)

Ok the 2 scales on the far right are rear mic boost I get an constant interference sound when these 2 scales are turned up to almost ful.

 The noise will immediately stop if I toggle "capture" off  (left scale)

toggling off "capture1 (right scale) makes no difference

I hope I've explained that ok :)
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 09:29:44 pm
OK, this seems to go nowhere,
If Capture (source = line) causes noise
and Capture (soure = rear Mic) causes noise

Then try with audio plugged in to line and  Capture1(source=line) and
Code: [Select]
v4l2-ctl -c mute=0
and in VLC set hw:0,0 or hw:0,2
or plughw:0,0
or plughw:0,2
or plughw:intel
or plughw:Intel
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 09:54:39 pm
Ok i did as you said and plugged the cable back into line , set capture & capture sources to line as per screenshot (setting "Input Source" to line kills interference noise, "Input Source1" makes no difference what it's set to) then ran the command you posted and opened up VLC  and tried each of the following options

plughw:0,0 :  No change

plughw:0,2 :  No change

plughw:Intel : No change

plughw:intel : Your input can't be opened:
VLC is unable to open the MRL 'alsa://plughw:intel'. Check the log for details.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 11:10:19 pm
Further to my last post I've discovered by accident that if I start VLC and run the movie, and then open xawtv I have sound and i can record in VLC and get audio & video so for the most partr it's working although I haven't really solved the problem and it would be better if I didn't have to run 2 programs but at least I can now record from the video recorder
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 11:31:09 pm
OK, it looks like xawtv is changing some settings
Would be nice to know what
Could you try (while VLC has audio and video)

Code: [Select]
V4l2-ctl --list-audio-inputs
Code: [Select]
V4l2-ctl --list-audio-outputs

Display all information available
Code: [Select]
V4l2-ctl --all
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 01, 2013, 11:35:31 pm
Code: [Select]
[email protected] ~ $ V4l2-ctl --list-audio-inputs
No command 'V4l2-ctl' found, did you mean:
 Command 'v4l2-ctl' from package 'v4l-utils' (universe)
V4l2-ctl: command not found
[email protected] ~ $ V4l2-ctl --list-audio-outputs
No command 'V4l2-ctl' found, did you mean:
 Command 'v4l2-ctl' from package 'v4l-utils' (universe)
V4l2-ctl: command not found
[email protected] ~ $ V4l2-ctl --all
No command 'V4l2-ctl' found, did you mean:
 Command 'v4l2-ctl' from package 'v4l-utils' (universe)
V4l2-ctl: command not found
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 01, 2013, 11:40:12 pm
Sorry, my mistake, it should have been v4l2-ctl :-[
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 07:05:09 am
Code: [Select]
[email protected] ~ $ v4l2-ctl --list-audio-inputs
ioctl: VIDIOC_ENUMAUDIO
[email protected] ~ $  v4l2-ctl --list-audio-outputs
ioctl: VIDIOC_ENUMAUDOUT
[email protected] ~ $ v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name   : bttv
Card type     : BT848A video (Hauppauge (bt848)
Bus info      : PCI:0000:02:02.0
Driver version: 3.5.5
Capabilities  : 0x05010015
Video Capture
Video Overlay
VBI Capture
Tuner
Read/Write
Streaming
Format Video Capture:
Width/Height  : 384/288
Pixel Format  : 'YUYV'
Field         : Interlaced
Bytes per Line: 768
Size Image    : 221184
Colorspace    : Unknown (00000000)
Format Video Overlay:
Left/Top    : 0/0
Width/Height: 320/240
Field       : Any
Chroma Key  : 0x00000000
Global Alpha: 0x00
Clip Count  : 0
Clip Bitmap : No
Format VBI Capture:
Sampling Rate   : 35468950 Hz
Offset          : 244 samples (6.87926e-06 secs after leading edge)
Samples per Line: 2048
Sample Format   : GREY
Start 1st Field : 7
Count 1st Field : 16
Start 2nd Field : 320
Count 2nd Field : 16
Framebuffer Format:
Capability    : Clipping List
Flags         :
Width         : 1600
Height        : 900
Pixel Format  : 'BGR4'
Bytes per Line: 6400
Size image    : 0
Colorspace    : Unknown (00000000)
Crop Capability Invalid:
Bounds      : Left 68, Top 16, Width 1063, Height 608
Default     : Left 186, Top 46, Width 924, Height 576
Pixel Aspect: 1135/944
Crop: Left 186, Top 46, Width 924, Height 576
Video input : 0 (Television: ok)
Audio input : 0 (audio)
Frequency: 12532 (783.250000 MHz)
Video Standard = 0x00000007
PAL-B/B1/G
Streaming Parameters Video Capture:
Frames per second: 25.000 (25/1)
Read buffers     : 0
Tuner:
Name                 : Television
Capabilities         : 62.5 kHz multi-standard
Frequency range      : 44.0 MHz - 958.0 MHz
Signal strength/AFC  : 100%/0
Current audio mode   : lang2
Available subchannels: mono
Priority: 2
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 12:24:14 pm
Further to my last post I've discovered by accident that if I start VLC and run the movie, and then open xawtv I have sound and i can record in VLC and get audio & video so for the most partr it's working although I haven't really solved the problem and it would be better if I didn't have to run 2 programs but at least I can now record from the video recorder


So xawtv s somehow initialising the sound yet VLC isn't .. how odd .. if anything I would have expected xawtv to be the one that had problems with sound as it wants to use OSS ???

But I suppose it gives you sommat to go on.

Does xawtv have  a config file ?

run:
Code: [Select]
sudo updatedb
then post the output from:
Code: [Select]
locate xawtv



[EDIT]

According to this:
http://linux.die.net/man/5/xawtvrc (http://linux.die.net/man/5/xawtvrc)

there may be 2 config files:-
Global = /etc/X11/xawtvrc
User = ~/.xawtv  <-- hidden file

Might be handy to see their contents -

Code: [Select]
gedit /etc/X11/xawtvrc
and
Code: [Select]
gedit ~/.xawtv

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 12:41:20 pm
Hi Mark

You're not gonna believe this but I just got to the point where I was about to do the first record and the VHS packed up, You couldn't make it up, after all you and SeZo have went through to get this workable. maybe I should take the hint and give up. I should be able to get hold of another VHS fairly quick and start over again.

I apologise if you and SeZo think I've wasted your time but I will get another VHS and carry on from here


Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 03:12:09 pm
That's lady luck for you  ::)

NO, I for one certainly  don't consider it wasted time .. I've picked up quite a bit from SeZo (and your experimenting/tweaking) during this process .. an area (v4l2/capture) that I'm kinda "weak" on, so it's all good.

Give us a shout when you get another player :)

.
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 03:35:47 pm
I was going to say something along the lines of ..

Next time, why not give us sommat easy like plotting a chart after determining the velocity of my head and the angular velocity of a brick wall using the first 100 prime numbers as the coefficient of restitution.

But that would:-

a) take al the fun out of learning this capture stuff from SeZo
b) be cheeky
and
c) hurt

[EDIT]

Ooops, nearly forgot -

d) you'll probably tell me you're a maths professor, and pick faults with the question.

:)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 03:54:57 pm
Quote
Next time, why not give us sommat easy like plotting a chart after determining the velocity of my head and the angular velocity of a brick wall using the first 100 prime numbers as the coefficient of restitution.


Because I know how much you like a challenge Mark and if you remember right I told you the last time you helped me solve a problem, I'll find something that would stump you,

Ok I admit I didn't quite do that but I came close, I'll get you the next time :)

But in all seriousness this really shouldn't be rocket science, after all is said and done all I wanted to do was convert an analogue signal to a digital file, and I Probably had the best Linux brains in the country behind me and it was still a nightmare

Anyway a huge thank you to yourself and SeZo for your effort and patience I know I didn't make it easy for either of you at times


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 04:05:36 pm
I agree, it shouldn't be rocket science .. and will no doubt have been a lot easier if the card manufacturers supported Linux in the first place rather than leaving it to the community to come up with their own open source drivers/configs/applications.

That said .. it IS doable, so the Linux/bbtv/v4l2 devs have at least done a pretty good job, probably without any input from the manufacturers, and it not being a priority case like graphics card drivers, wireless, etc.

Oh, and please don't include me in the "best Linux brains in the country" group .. I'm just a "user" like you, so it wouldn't be hard to find things I can't fix .. but I enjoy the learning/challenge :)

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 04:18:24 pm
Quote
Oh, and please don't include me in the "best Linux brains in the country" group

I didn't mean to sound patronizing when I said that Mark and don't be so modest, you are not a user like me, I'm clueless you can help people and you only have to look through this forum to see that, I wish I could do the same and until manufacturers start supporting Linux in the way they support Microsoft Windows people like you and SeZo are the only way people like me can use use Linux in any meaningful way


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 05:00:22 pm
Not patronizing at all :) .. I just don't want you (or anyone else) to think that just because I'm an admin on this forum, that I have anything to do with Linux development .. I'm purely a "user" that's picked up a few tricks along the way with help from other community members .. so am trying to give back where I can .. kinda the "Linux way" :)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 06:05:29 pm
Quote
Not patronizing at all  .. I just don't want you (or anyone else) to think that just because I'm an admin on this forum, that I have anything to do with Linux development

I accept you have nothing to do with Linux development in the direct sense of the word and there is probably many things you don't have the answer to (I've just yet to find one ), I'm a motor mechanic and I don't know everything about motor cars, but my point is that without people like you and SeZo and others Linux would not be a viable proposition for the average user so in that sense of the word you are a part of Linux development, Linux needs people like you... it's kinda the Linux way :)




 
Quote
I'm an admin on this forum

I judge you only by your deeds not by your title


Graeme


Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 06:18:12 pm
Heh  ;D .. OK I'll accept your gratitude, and walk away (for the time being) with an semi-inflated sense of "worth" .. if only to shut you up before I come over all embarrassed  ;)
Title: Re: Who remembers Betamax ?
Post by: Mad Penguin on January 02, 2013, 06:24:38 pm
Quote
Linux would not be a viable proposition for the average user

This is a very popular Urban Legend, i.e. Windows is somehow easier to learn than Linux .. the issue is that people have been using Windows since the early 90's and whether they realise it or not, have picked up "bits", hence Windows seems easier to navigate, simply because there is a degree of familiarity.

I'm pretty sure that if Windows was the newcomer the reverse would be true (!)

As Windows was viable without us, it follows that Linux would also be viable .. it just might take a little longer so solve issues ... :)

[I do recall having Windows issues outstanding for months (and years) and at the time, it was simply a fact of Computing life ... ]
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 07:16:09 pm
Quote
[I do recall having Windows issues outstanding for months (and years) and at the time, it was simply a fact of Computing life ... ]

No change there then .. very little gets fixed in Windows unless they consider it a feature they can sell you in the next version.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 07:27:40 pm
Quote
if only to shut you up before I come over all embarrassed 

I'm sorry Mark It wasn't said to embarrass you I was only trying to express my opinion on Linux and how it appears to users like me and how we depend on others to help us do things we perceive to be simple in Windows.

I don't think Windows is any easier to use than Linux it's just that it's so much better supported by third party hardware manufacturers  and software vendors alike (therein lies the catch 22 whereby hardware manufacturers wont support it until in becomes more popular and it wont become more popular until more hardware manufacturers support it ) so average (ex windows) users  need to depend on the community of which you, SeZo & Mad Penguin etc are a big part of, so in that sense you are part of Linux development, that's all I was trying to say, I can't make up my mind if that's a strength or a weakness in Linux but for me it's certainly a attraction in spite of the difficulty it can often cause, but that would never turn me back to Windows as long as the Linux alternative was open to me.

Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 07:37:40 pm
I did add a wink at the end of that .. all tongue in cheek :)

All I know is if you find some hardware that doesn't work out-of-the-box, or is no longer supported in Windows, you're stuffed .. at least with Linux there's *usually* a workaround/fix/tweak and a community that tries to help.

For me, Linux has put the fun back into computing .. it's no longer completely out of my hands ..

I suppose Linux has put the "Personal" back into Personal Computer/Computing :)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 07:56:50 pm
Quote
All I know is if you find some hardware that doesn't work out-of-the-box, or is no longer supported in Windows, you're stuffed .. at least with Linux there's *usually* a workaround/fix/tweak and a community that tries to help.

That's exactly the attraction I was talking about... but is that a strength or a weakness ? because nowadays we have become so brainwashed that if we come across a piece of hardware Windows doesn't support we just go buy a new one....it's kinda the Windows way :)



Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 02, 2013, 08:13:51 pm
A matter of perspective I suppose .. me, I'm in it for the fun of learning so I know which I prefer.

Windows can certainly claim manufacturer/hardware support as a strength .. Linux can claim "community" support, and their ability to find ways to get non supported hardware working.

I'd call that a tie .. but Windows (and the proprietary world as a whole) has many other issues that I think FAR outweigh the slightly harder work of getting Linux tweaked the way you want it

Also .. there's nothing stopping you buying a new capture card that is known to be Linux friendly .. in "kinda the Windows way" .. the same can't be said the other way round ;)

Title: Re: Who remembers Betamax ?
Post by: salparadise on January 02, 2013, 09:10:45 pm
rofl
Yes, we had a Betamax (papa was Patent Lawyer so we got stuff before the shops did). It had cassettes the size of house bricks and each one was 30 minutes long (enough to record MASH). The buttons needed a small hammer to operate and the whole unit was the size of a medium suitcase. Many chins on the floor when I showed that to school friends ("you can record the TV?").

We also had this weird unit with a keypad on the end of a huge length of wire that displayed pages of text on the TV screen (teletext). Never understood that idea, it seems to be broken from the outset - cruddy looking text and pages that took ages to load - a bit like going online with Windows 98 and a dial up modem used to be.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 09:18:29 pm
You don't still have it do you mine is f***ed :)
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 02, 2013, 09:30:32 pm
First the Betamax then the VHS...
You seems to be jinxed with this recording business :) 
That output by the way does not give any clues in respect of the sound.

Will resume (if you still want to) once you got the new gear.
But you might be outta luck with the Betamax, they are a bit scarce nowdays ;)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 02, 2013, 09:42:07 pm
Quote
First the Betamax then the VHS...
You seems to be jinxed with this recording business
   

I couldn't agree more but god loves a trier,

Quote
But you might be outta luck with the Betamax, they are a bit scarce nowdays

I have a friend (yes I still have 1 or 2 left) who served his time on these things who tells me he'll fix it for me (actually it's just a rubber band that's the problem)

Quote
Will resume (if you still want to) once you got the new gear.

I definitely want to do this because I have film of my daughter when she was a child and it's on one of the Betamax tapes and I want to preserve it

So in the words of the great Arnie Schwarzenegger "I'll be back"

Thanks for your help with this so far it's much appreciated


Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 10:36:25 am
Hi Guys

Ok I got the VHS up and running again so I'm back in business, (never shine a light inside a VCR)

Just to recap from where we left off, I can now record video and audio by tuning the signal using xawtv then closing xawtv, opening VLC to get the picture, then re-opening xawtv to get sound

@ Mark
Here's the terminal outputs you asked for

Code: [Select]
[email protected] ~ $ sudo updatedb
[sudo] password for graeme:
[email protected] ~ $ locate xawtv
/home/graeme/.xawtv
/home/graeme/Documents/xawtv
/usr/bin/xawtv
/usr/bin/xawtv-remote
/usr/lib/xawtv
/usr/lib/xawtv/bilinear.so
/usr/lib/xawtv/conv-mjpeg.so
/usr/lib/xawtv/cubic.so
/usr/lib/xawtv/drv0-libv4l.so
/usr/lib/xawtv/drv0-v4l2.so
/usr/lib/xawtv/flt-disor.so
/usr/lib/xawtv/flt-gamma.so
/usr/lib/xawtv/flt-invert.so
/usr/lib/xawtv/flt-smooth.so
/usr/lib/xawtv/linear-blend.so
/usr/lib/xawtv/linedoubler.so
/usr/lib/xawtv/read-avi.so
/usr/lib/xawtv/read-dv.so
/usr/lib/xawtv/snd-oss.so
/usr/lib/xawtv/write-avi.so
/usr/lib/xawtv/write-dv.so
/usr/share/xawtv
/usr/share/doc/xawtv
/usr/share/doc/xawtv-plugins
/usr/share/doc/xawtv/NEWS.Debian.gz
/usr/share/doc/xawtv/README.bttv.gz
/usr/share/doc/xawtv/README.gz
/usr/share/doc/xawtv/README.lirc
/usr/share/doc/xawtv/README.network
/usr/share/doc/xawtv/README.recording.gz
/usr/share/doc/xawtv/README.translate
/usr/share/doc/xawtv/README.xfree4
/usr/share/doc/xawtv/changelog.Debian.gz
/usr/share/doc/xawtv/copyright
/usr/share/doc/xawtv/frequencies-europe.gz
/usr/share/doc/xawtv/frequencies-japan
/usr/share/doc/xawtv-plugins/changelog.Debian.gz
/usr/share/doc/xawtv-plugins/copyright
/usr/share/lintian/overrides/xawtv-plugins
/usr/share/linuxmint/mintinstall/icons/xawtv48x48.xpm
/usr/share/linuxmint/mintinstall/installed/xawtv48x48.xpm
/usr/share/man/es/man1/xawtv-remote.1.gz
/usr/share/man/es/man1/xawtv.1.gz
/usr/share/man/es/man5/xawtvrc.5.gz
/usr/share/man/fr/man1/xawtv.1.gz
/usr/share/man/man1/xawtv-remote.1.gz
/usr/share/man/man1/xawtv.1.gz
/usr/share/man/man5/xawtvrc.5.gz
/usr/share/menu/xawtv
/usr/share/pixmaps/xawtv16x16.xpm
/usr/share/pixmaps/xawtv32x32.xpm
/usr/share/pixmaps/xawtv48x48.xpm
/usr/share/xawtv/Index.map
/usr/share/xawtv/argentina.list
/usr/share/xawtv/ccir-h.list
/usr/share/xawtv/ccir-i-iii.list
/usr/share/xawtv/ccir-sl-sh.list
/usr/share/xawtv/europe-east.list
/usr/share/xawtv/europe-west.list
/usr/share/xawtv/ntsc-bcast-jp.list
/usr/share/xawtv/ntsc-bcast.list
/usr/share/xawtv/ntsc-cable-ca.list
/usr/share/xawtv/ntsc-cable-jp.list
/usr/share/xawtv/ntsc-cable.list
/usr/share/xawtv/ntsc-hrc.list
/usr/share/xawtv/oirt-h.list
/usr/share/xawtv/oirt-i-iii.list
/usr/share/xawtv/oirt-sl-sh.list
/usr/share/xawtv/pal-australia-optus.list
/usr/share/xawtv/pal-australia.list
/usr/share/xawtv/pal-bcast-cn.list
/usr/share/xawtv/pal-bcast-za.list
/usr/share/xawtv/pal-ireland.list
/usr/share/xawtv/pal-italy.list
/usr/share/xawtv/pal-newzealand.list
/usr/share/xawtv/secam-france.list
/usr/share/xawtv/secam-russia.list
/usr/share/xawtv/uhf.list
/var/cache/apt/archives/xawtv-plugins_3.102-3_i386.deb
/var/cache/apt/archives/xawtv_3.102-3_i386.deb
/var/lib/dpkg/info/xawtv-plugins.list
/var/lib/dpkg/info/xawtv-plugins.md5sums
/var/lib/dpkg/info/xawtv-plugins.postinst
/var/lib/dpkg/info/xawtv-plugins.postrm
/var/lib/dpkg/info/xawtv-plugins.shlibs
/var/lib/dpkg/info/xawtv.conffiles
/var/lib/dpkg/info/xawtv.config
/var/lib/dpkg/info/xawtv.list
/var/lib/dpkg/info/xawtv.md5sums
/var/lib/dpkg/info/xawtv.postinst
/var/lib/dpkg/info/xawtv.postrm
/var/lib/dpkg/info/xawtv.templates

Quote
gedit /etc/X11/xawtvrc

shows empty file

Quote
gedit ~/.xawtv

[global]
ratio = 4:3
freqtab = europe-west
pixsize = 128 x 96
pixcols = 1
jpeg-quality = 75
keypad-ntsc = no
keypad-partial = yes
osd = yes
osd-position = 30 , 20
use-wm-fullscreen = 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 = PAL-BG
input = Television
capture = grab
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 06, 2013, 05:25:40 pm
Welcome back...
Quote
Just to recap from where we left off, I can now record video and audio by tuning the signal using xawtv then closing xawtv, opening VLC to get the picture, then re-opening xawtv to get sound

I am guessing that xawtv sets the audio output to the default :-\
Could you post the output from (might not exists):
Code: [Select]
cat /etc/asound.conf
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 05:28:23 pm
Thanks for taking this up again :)


Code: [Select]
[email protected] ~ $ cat /etc/asound.conf
cat: /etc/asound.conf: No such file or directory
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 06, 2013, 05:36:20 pm
OK, see if you got this one:
Code: [Select]
cat .asoundrc
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 05:38:45 pm
Code: [Select]
[email protected] ~ $ cat .asoundrc
cat: .asoundrc: No such file or directory
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 06, 2013, 05:59:46 pm
As expectd. Could you create one:
Code: [Select]
gedit .asoundrc
then add the following:
Code: [Select]
    pcm.!default {
            type hw
            card 0
    }

    ctl.!default {
            type hw
            card 0
    }
then save and exit
reboot or log out and back in and test

Also could you post:
Code: [Select]
ls /proc/asound/card0
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 07:00:32 pm
Still no sound in VLC :(

Here's the output you asked for (after restart)

Code: [Select]
[email protected] ~ $ ls /proc/asound/card0
codec#0  id  pcm0c  pcm0p  pcm2c
[email protected] ~ $


Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 06, 2013, 08:54:05 pm
How did you set the video and sound devices for capture in VLC ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 09:09:45 pm
Quote
How did you set the video and sound devices for capture in VLC ?

Not as easy a question to answer as it might seem as there are so many options and permatations ( and I think I've tried them all) but as it is now

Capture Device
Video Device Name: /dev/video0
Audio Device Name: hw:0,0

Tools/Preferences/Audio
Output Module:  Default

Tools/Preferences/Video
Output: Default

There are many options in both Video and Audio preferences and I must have tried every permutation, to be honest the video quality isn't as good in VLC as it is in xawtv and the voice sync is out on VLC as well
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 06, 2013, 09:34:29 pm
So what was the problem with xawtv again ? .. no audio ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 09:38:57 pm
Quote
So what was the problem with xawtv again ? .. no audio ?

Audio and Video is perfect but won't record.

When I try to record I get this error

Code: [Select]
[email protected] ~ $ 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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory

Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 06, 2013, 09:59:05 pm
SeZo may have already been through this, but what's the output from:
Code: [Select]
groups
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 10:00:47 pm
Code: [Select]
groups

Code: [Select]
[email protected] ~ $ groups
graeme adm cdrom sudo dip plugdev lpadmin sambashare
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 06, 2013, 10:34:22 pm
OK, going with Mark's suggestion, add yourselves to group video and audio
Code: [Select]
usermod -a -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,audio,video graeme

Also could you post the result of:
Code: [Select]
cat /proc/asound/card0/pcm0c/info
and
Code: [Select]
cat /proc/asound/card0/pcm2c/info

and
Code: [Select]
arecord -L

Try to record with xawtv with:
Code: [Select]
xawtv -nodga -noxv
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 06, 2013, 10:46:20 pm
Code: [Select]
[email protected] ~ $ cat /proc/asound/card0/pcm0c/info
card: 0
device: 0
subdevice: 0
stream: CAPTURE
id: ALC888 Analog
name: ALC888 Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
[email protected] ~ $

Code: [Select]
[email protected] ~ $ cat /proc/asound/card0/pcm2c/info
card: 0
device: 2
subdevice: 0
stream: CAPTURE
id: ALC888 Analog
name: ALC888 Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
[email protected] ~ $

Code: [Select]
[email protected] ~ $ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Playback/recording through the PulseAudio sound server
sysdefault:CARD=Intel
    HDA Intel, ALC888 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=2
    HDA Intel, ALC888 Analog
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=2
    HDA Intel, ALC888 Analog
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=2
    HDA Intel, ALC888 Analog
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=2
    HDA Intel, ALC888 Analog
    Hardware device with all software conversions
[email protected] ~ $

Still no luck recording when I click on record I get this error message

Code: [Select]
[email protected] ~ $ xawtv -nodga -noxv
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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory

Only the last line shows when i try to record the rest of the output is from when xawtv starts



Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 01:38:05 am
I've come to the conclusion that alsa-oss (OSS emulation) is broken in recent versions of Ubuntu.

it seems that snd-pcm-oss is missing (not compiled into the kernel), and that's what provides /dev/dsp

So I can see no way of getting XAWTV to work .. and believe me I've tried (same error as Emegra) .. I'll keep looking though.

For:
Code: [Select]
aoss xawtv
to work, you need to have the snd-pcm-oss module loaded .. but it doesn't damn well exist  ::)
(I'm guessing it could be compiled back into the kernel [?] .. but I'm also guessing that may break sommat else .. otherwise why take it out ?)

Something else Ubuntu have broken, and seem in now great hurry to fix (?) .. yet still leave apps that need it in the repo's
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 07:15:54 am
Quote
So I can see no way of getting XAWTV to work .. and believe me I've tried (same error as Emegra) .. I'll keep looking though.

So it looks like xawtv is out, but does that apply to any other capture programs such as VLC or Cheese ?

Could the problem be solved by using a more up to date capture card ?, I ask that because I also have a Hauppauge WinTV-HVR 900 usb capture device,

Code: [Select]
[email protected] ~ $ lsusb
Bus 001 Device 004: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 008: ID 2040:6500 Hauppauge WinTV HVR-900
Bus 001 Device 006: ID 058f:6377 Alcor Micro Corp. Multimedia Card Reader
Bus 002 Device 002: ID 1d57:32da Xenta 2.4GHz Receiver (Keyboard and Mouse)
Bus 003 Device 002: ID 05d8:4002 Ultima Electronics Corp. Artec Ultima 2000 (GT6801 based)/Lifetec LT9385/ScanMagic 1200 UB Plus Scanner
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
[email protected] ~ $


I've gave it a quick try but I can't get it to tune in with xawtv, cheese or VLC but that's not to say it can't be made to work with some tweaking.

Anyway if you think there's no point trying this device or if you think I'm just adding further complication I'll put it back in the box


Thanks again for your help

Graeme


Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 03:09:50 pm
I haven't given up on VLC, and xawtv will probably still be needed to tune in the card. VLC doesn't need OSS and should be happy with ALSA.

There are still plenty of options:-

a) working out the audio in VLC

b) going commandline, possibly with ffmpeg or mencoder

c) booting an older version of Ubutnu .. or some other distro that still has snd-pcm-oss .. The Debian documentation suggests it still does.

d) booting an even older distro that used OSS

e) trying some other piece of software .. Kino, maybe .. though I had a quick look at Kino and couldn't get it to capture.

f) recompiling the kernel to include snd-pcm-oss

g) seeing if we can get xawtv to use ALSA's dsp with the -dspdev option

h) trying one of the scripts that can be found online (such as the one I'll attach below)

i) trying different card= options with the bttv driver <-- don't think this will make any difference, but you never know

j) capturing audio and video separately .. then stiching the digital copies back together <--probably not a great idea with tape, as the speeds may vary .. so maybe find a way to capture both separately but at a single pass .. command line maybe (?)

k) trying your other card .. which I'll look into now .. I'm sure someone else had luck with one of these.

and LASTLY .. dual booting Windows, doing the capture in that, then removing it ;)

So we aint done yet :)



I'm attaching a script .. just as a matter of interest, what happens if you download it, unpack it, mark it as executable (if necessary) .. then tune in the card with xawtv .. then run the script, and select the inputs for capture.

It'll make more sense once you run the script .. it will start a GUI (zenity dialog boxes) that ask you to choose different options .. then it will start VLC (or another app) with these settings.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 05:50:47 pm
Well it seems we still have quite a few options so as Long as you and SeZo are happy to continue trying I can do no less

Quote
a) working out the audio in VLC


probably the option I would rather go with if we can also get over the picture quality issue, personally i can't understand why VLC (which seems a much more sophistocated and fully featured program than xawtv)wont capture audio when xawtv has no problem with it.

Quote
going commandline, possibly with ffmpeg or mencoder

You would know better than me if that is a good option, the problem I have with it is that if I ever wanted to do it again I would be dependent on someone like you or SeZo to do it for me because I'm not comfortable in the terminal, I just don't understand the language

Quote
c) booting an older version of Ubutnu .. or some other distro that still has snd-pcm-oss .. The Debian documentation suggests it still does.

d) booting an even older distro that used OSS

Seems a bit extreme but I suppose I could install and earlier version of Ubuntu or some other distro on a usb that I can use solely for this purpose, if I could do that I would probably prefer that option to the command line.

Quote
trying some other piece of software .. Kino, maybe .. though I had a quick look at Kino and couldn't get it to capture.

Sounds good also we haven't figured out why Cheese crashes or why guvcview wont open

Quote
g) seeing if we can get xawtv to use ALSA's dsp with the -dspdev option

h) trying one of the scripts that can be found online (such as the one I'll attach below)

i) trying different card= options with the bttv driver <-- don't think this will make any difference, but you never know

I would just have to trust your judgement on these options

Quote
recompiling the kernel to include snd-pcm-oss

Now you're scaring me :)

Quote
j) capturing audio and video separately .. then stiching the digital copies back together <--probably not a great idea with tape, as the speeds may vary .. so maybe find a way to capture both separately but at a single pass .. command line maybe (?)

Oh no the dreaded command line :)

Quote
k) trying your other card .. which I'll look into now .. I'm sure someone else had luck with one of these.

I also found information that suggested someone got it to work but it took some complicated patching which I don't completely understand so once again I'd trust your judgement on that one

Quote
and LASTLY .. dual booting Windows, doing the capture in that, then removing it

This has always been an option for me as I have a windows partition, but I would rather get this to work in Linux if possible and I would never dare suggest it after all the effort yourself and SeZo have put in to getting this to work for me

All the above are only my opinions as I see it, whatever route you and SeZo think I should follow I'll follow

Many thanks

Graeme









Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 07:11:53 pm
Did you try the script I attached to my last posting ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 07:36:34 pm
Hi Mark

I just tried the script you posted, on the first attempt I got a message telling me mencoder was not installed I then got to select a program to use tvtime, cheese vls etc I chose vlc,  VLC opened showing a lot of flickering numbers & characters on a green background (see screenshot), I then installed mencoder and ran the script again but I get the same result




Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 07:47:59 pm
Ignore the last post I didn't have the tape running
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 08:44:45 pm
Ok the script works in so far as I still have to load xawtv first to tune in the signal then I have to close down xawty the run the script and it opens up the picture only in VLC (still no audio)
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 08:56:59 pm
So many options...

Quote
g) seeing if we can get xawtv to use ALSA's dsp with the -dspdev option


I am hoping to find out how to use this option with the avaliable devices

Quote
c) booting an older version of Ubutnu .. or some other distro that still has snd-pcm-oss .. The Debian documentation suggests it still does.


Done some testing to find out if snd-pcm-oss module is available:
(click to show/hide)
It appears that both Debian & Arch supports oss but not Mint 14 (with Ubuntu base)

Quote
k) trying your other card .. which I'll look into now .. I'm sure someone else had luck with one of these.

That might work according to this site (http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-900),but it needs the firmware for the XC3028 tuner.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:01:01 pm
Quote
I am hoping to find out how to use this option with the avaliable devices

That sounds a good option to me as well because apart from the sound issues I'm having I don't get as good picture quality in VLC

Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 09:03:28 pm
Quote
That sounds a good option to me as well because apart from the sound issues I'm having I don't get as good picture quality in VLC

Is the picture quality better in VLC after running the script?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:07:11 pm
Quote
Is the picture quality better in VLC after running the script?

No there's no noticable difference, compared to xawtv VLC colour seems washed out and there's a pink hue runs through it occasionally and there's some ghosting, it gives the impression it isn't quite tuned in properly that's the best way I can describe it, The picture in xawtv seems sharper, and more stable



Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 09:21:45 pm
Ignoring picture quality for now .. does it grab audio and video ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:23:36 pm
But does it grab audio and video ?

VLC grabs video only (makes no difference if i use the script or not), xawtv grabs audio & video
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 09:26:36 pm
Correction .. xawtv PLAYS both video and audio .. it GRABS nothing ATM ;)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:28:05 pm
Quote
Correction .. xawtv PLAYS both video and audio .. it GRABS nothing ATM

I stand corrected :)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 09:31:04 pm
Have you got the Windows disks for the USB capture thingy ?

I'm off to look into getting the firmware, and get that working .. I was a bit busy doing my tax return earlier  ::)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:32:15 pm
Quote
Have you got the Windows disks for the USB capture thingy ?

Yes I have it :)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 09:34:58 pm
Good .. the frmware will *probably* be on there somewhere .. Ill get back if/when I find sommat useful.
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 09:39:53 pm
Can I suggest a new thread for that usb thingy? ;)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 09:42:21 pm
Probably a good idea .. I'll create one and post a link
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:43:43 pm
Quote
Can I suggest a new thread for that usb thingy?

I think that would be a good idea also we're gonna have to work on one thing or the other because I can't work on both at the same time, I'll go in what ever direction you and Mark think best :)
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 09:50:33 pm
New topic here:
http://linuxforums.org.uk/index.php?topic=10625.0 (http://linuxforums.org.uk/index.php?topic=10625.0)
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 09:57:18 pm
When you are ready to come back to xawtv then run:
Code: [Select]
xawtv -debug 255 -hwls
And install xawtv-tools:
Code: [Select]
sudo apt-get install xawtv-tools
Hoping to get more info abut the audio it uses when playing
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 09:59:56 pm
[email protected] ~ $ sudo apt-get xawtv-tools
[sudo] password for graeme:
E: Invalid operation xawtv-tools
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 10:04:02 pm
ok I've installed xawtv-tools
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 10:26:51 pm
Sorry, I was going to build on this while the USB thingy is getting sorted :-[
Actually this tool might not be that useful afterall.
You could uninstall it with:
Code: [Select]
sudo apt-get remove xawtv-tools
When you ready to try agan could you post the output:
Code: [Select]
xawtv -debug 255 -hwls
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 10:36:01 pm
Well I have the VCR connected to the pci card so can we stick with this for now ?
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 10:38:51 pm
See my edit above.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 10:45:57 pm
Code: [Select]
xawtv -debug 255 -hwls

It's not possible to give you that output because it continually writes

blit: putframe
v4l2: ok
v4l2: ok

over and over so I can't copy it

Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 11:02:08 pm
Try the following line:
Code: [Select]
ls /dev/snd
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 11:03:19 pm
Code: [Select]
[email protected] ~ $ ls /dev/snd
by-path  controlC0  hwC0D0  pcmC0D0c  pcmC0D0p  pcmC0D2c  seq  timer
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 11:15:43 pm
Try this:
Code: [Select]
xawtv -nodga -noxv -dspdev /dev/snd
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 07, 2013, 11:20:30 pm
Code: [Select]
[email protected] ~ $ xawtv -nodga -noxv -dspdev /dev/snd
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: 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/video0), out: default
oss: can't use format 8bit mono

xawtv opens up and plays audio & video ok,   clicking to record shows the last line in the terminal output
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 11:27:36 pm
FYI .. I've already tried ALL the devices in /dev/snd using the -dspdev option .. and xawtv always returns

oss: can't use format 8bit mono
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 07, 2013, 11:37:37 pm
Thanks for that Mark :D
grasping at straws here:
Code: [Select]
xawtv -nodga -noxv -dspdev plughw:Intel
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 07, 2013, 11:45:16 pm
currently grasping at the same straws ;)
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 08, 2013, 10:18:51 pm
According to this site (http://pkgs.org/ubuntu-12.04/ubuntu-universe-i386/oss-compat_1_all.deb.html) oss-compat is available for Ubuntu 12.04.1 LTS
Quote
This package ensures that Open Sound System support is provided in some way. On Linux, it enables the ALSA compatibility modules. On other kernels where OSS is the default interface, no action is taken.

The purpose of this package is for applications that only support OSS

to depend on it, hence preventing common "/dev/dsp not found" errors that would confuse unexperienced users.

Code: [Select]
sudo apt-get install oss-compat

After that (may requre a reboot) run:
Code: [Select]
xawtv -nodga -noxv
then try to record
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 08, 2013, 10:57:12 pm
Hi SeZo

I felt so confident that would work but alas

Code: [Select]
[email protected] ~ $ xawtv -nodga -noxv
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: 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/video0), out: default
oss: open /dev/dsp: No such file or directory


I'm sorry you're having all this grief this must be getting you down but I appreciate your persistence 


Graeme
Title: Re: Who remembers Betamax ?
Post by: SeZo on January 08, 2013, 11:24:36 pm
I was too, but hey it is just another way that it does not work. :'(
Also it is possible that it was/is a non starter as there is no internal output from your card,hence no /dev/dsp.
There is another option, to kill PulseAudio and then try it again (it might be a long shot)
Code: [Select]
sudo killall pulseaudio
After that I think I will be ready to throw in the towel.
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 08, 2013, 11:29:23 pm
Not stepping on SeZo's toes .. but ..

If I were you I'd remove oss-compat .. every time I've installed it, it plays havoc with the PulseAudio controls

Not to mention oss-compat CANNOT work without loading snd-pcm-oss (the driver they've removed from the kernel) to provide /dev/dsp  ::)  <--- this is the EXACT reason I don't think you'll get xawtv to work, as CAPTURING from OSS's /dev/dsp seems hardcoded into xawtv.

Actually .. thinking about it, it may not have been oss-compat, it may have been oss4-base (tried that too) .. but as I said oss-compat is broken in recent versions of Ubuntu/Mint/Peppermint anyway, so no point in having it installed.

All I'm saying is if you notice any audio problems, try removing oss-compat which is broken anyway.

According to <a href="[url]http://http://pkgs.org/ubuntu-12.04/ubuntu-universe-i386/oss-compat_1_all.deb.html[/url]">this site[/url] oss-compat is available for Ubuntu 12.04.1 LTS
Quote
This package ensures that Open Sound System support is provided in some way. On Linux, it enables the ALSA compatibility modules. On other kernels where OSS is the default interface, no action is taken.

The purpose of this package is for applications that only support OSS

to depend on it, hence preventing common "/dev/dsp not found" errors that would confuse unexperienced users.


Yeh that's what it's SUPPOSED to do  ::) .. but it can't provide /dev/dsp without first modprobe-ing the snd-pcm-oss (and if wanted snd-mixer-oss and snd-seq-oss) kernel module .. which doesn't exist  ::)

Try doing:
Code: [Select]
modinfo snd-pcm-oss
you'll see what I mean .. the other 2 still exist, but thanks (sarcasm) to the people at Ubuntu, the important one (the one that makes oss-compat work) doesn't.

.
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 09, 2013, 06:44:59 am
Quote
There is another option, to kill PulseAudio and then try it again (it might be a long shot)

I tried that didn't work

Quote
After that I think I will be ready to throw in the towel.

I don't blame you but no one can fault you for effort :)

From what Mark is saying it looks like xawtv is not gonna work no matter what we do  which is frustrating because we're so close, I don't know if you and Mark think it's worthwhile exploring other options with this card, if not I'll understand and thank you both for your efforts


Many thanks


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 09, 2013, 04:33:03 pm
Give me a day or two to test other distros, and/or look for a kernel with snd-pcm-oss compiled in.

That's the ONLY way (AFAIK) to get) oss-compat to work .. and therefore xawtv.
(on either card)
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 09, 2013, 04:38:56 pm
ok no problem but just out of curiosity what about Cheese or guview would getting either of them to work be an easier solution. I'm not double guessing you Mark, I'm just curious :)


Graeme
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 09, 2013, 05:17:34 pm
So what happens with guvcview ?

and does running it from the terminal give any cues ?
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 09, 2013, 05:21:19 pm
Quote
So what happens with guvcview ?

It just doesn't open I've tried un-installing and re-installing

Quote
and does running it from the terminal give any cues ?

I don't know, I'm at work at the moment but I'll try that and report back


Many thanks

Graeme
Title: Re: Who remembers Betamax ?
Post by: Emegra on January 09, 2013, 06:15:46 pm
Hi again

Here's the output for opewning guvcview

Code: [Select]
[email protected] ~ $ guvcview
guvcview 1.5.3
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
video device: /dev/video0
Unable to find parent usb device.Unable to find parent usb device.Init. BT848A video (Hauppauge (bt848) (location: PCI:0000:02:02.0)
{ pixelformat = 'GREY', description = '8 bpp, gray' }
VIDIOC_ENUM_FRAMESIZES - Error enumerating frame sizes: Inappropriate ioctl for device
  Unable to enumerate frame sizes.
: Inappropriate ioctl for device
{ pixelformat = 'HI24', description = '8 bpp, dithered color' }
   { not supported - request format(875710792) support at http://guvcview.sourceforge.net }
{ pixelformat = 'RGBO', description = '15 bpp RGB, le' }
   { not supported - request format(1329743698) support at http://guvcview.sourceforge.net }
{ pixelformat = 'RGBQ', description = '15 bpp RGB, be' }
   { not supported - request format(1363298130) support at http://guvcview.sourceforge.net }
{ pixelformat = 'RGBP', description = '16 bpp RGB, le' }
   { not supported - request format(1346520914) support at http://guvcview.sourceforge.net }
{ pixelformat = 'RGBR', description = '16 bpp RGB, be' }
   { not supported - request format(1380075346) support at http://guvcview.sourceforge.net }
{ pixelformat = 'BGR3', description = '24 bpp RGB, le' }
{ ?GSPCA? : width = 640, height = 480 }
fmtind:2 fsizeind: 1
{ pixelformat = 'BGR4', description = '32 bpp RGB, le' }
   { not supported - request format(877807426) support at http://guvcview.sourceforge.net }
{ pixelformat = 'RGB4', description = '32 bpp RGB, be' }
   { not supported - request format(876758866) support at http://guvcview.sourceforge.net }
{ pixelformat = 'YUYV', description = '4:2:2, packed, YUYV' }
VIDIOC_ENUM_FRAMESIZES - Error enumerating frame sizes: Inappropriate ioctl for device
  Unable to enumerate frame sizes.
: Inappropriate ioctl for device
{ pixelformat = 'YUYV', description = '4:2:2, packed, YUYV' }
VIDIOC_ENUM_FRAMESIZES - Error enumerating frame sizes: Inappropriate ioctl for device
  Unable to enumerate frame sizes.
: Inappropriate ioctl for device
{ pixelformat = 'UYVY', description = '4:2:2, packed, UYVY' }
VIDIOC_ENUM_FRAMESIZES - Error enumerating frame sizes: Inappropriate ioctl for device
  Unable to enumerate frame sizes.
: Inappropriate ioctl for device
{ pixelformat = '422P', description = '4:2:2, planar, Y-Cb-Cr' }
   { not supported - request format(1345466932) support at http://guvcview.sourceforge.net }
{ pixelformat = 'YU12', description = '4:2:0, planar, Y-Cb-Cr' }
{ ?GSPCA? : width = 640, height = 480 }
fmtind:6 fsizeind: 1
{ pixelformat = 'YV12', description = '4:2:0, planar, Y-Cr-Cb' }
{ ?GSPCA? : width = 640, height = 480 }
fmtind:7 fsizeind: 1
{ pixelformat = '411P', description = '4:1:1, planar, Y-Cb-Cr' }
   { not supported - request format(1345401140) support at http://guvcview.sourceforge.net }
{ pixelformat = 'YUV9', description = '4:1:0, planar, Y-Cb-Cr' }
   { not supported - request format(961959257) support at http://guvcview.sourceforge.net }
{ pixelformat = 'YVU9', description = '4:1:0, planar, Y-Cr-Cb' }
   { not supported - request format(961893977) support at http://guvcview.sourceforge.net }
{ pixelformat = 'RGB3', description = 'RGB3' }
{ ?GSPCA? : width = 640, height = 480 }
fmtind:8 fsizeind: 1
vid:0000
pid:0000
driver:bttv
checking format: 1196444237
Format unavailable: 1196444237.
Init v4L2 failed !!
Init video returned -2
trying minimum setup ...
Segmentation fault (core dumped)
[email protected] ~ $
Title: Re: Who remembers Betamax ?
Post by: Mark Greaves (PCNetSpec) on January 09, 2013, 08:45:28 pm
I haven't really had a close look .. but it looks like bluetooth might be causing an issue, can you remove the bluetooth device, reboot, and try again.

Also, make sre you've tuned in the video with xawtv first.

[EDIT]

If that helps .. you might also want to try cheese without the bluetooth device connected.

.
SimplePortal 2.3.3 © 2008-2010, SimplePortal