LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2009, 06:49 PM   #1
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Rep: Reputation: 18
mic and camera setup for recording and skype


hi everyone,

i have a headset with two plugs (one is the headphones and one is the mic). i plugged them into the front of my case, had a play with alsamixer and got it to a point where anyting i say into the mic i can hear through the headphones, but i cannot record using krec or talk using skype.

any ideas?

(camera questions to follow)
 
Old 07-07-2009, 09:54 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
anyting i say into the mic i can hear through the headphones, but i cannot record
Probably wrong mixer settings.

Please show the output of "amixer scontents".
 
Old 07-08-2009, 02:40 AM   #3
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by cladisch View Post
Probably wrong mixer settings.

Please show the output of "amixer scontents".
i was playing with alsamixer but still nothing

Code:
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 27 [87%] [-6.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 225 [88%] [-6.00dB]
  Front Right: Playback 225 [88%] [-6.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 27 [87%] [-6.00dB] [on]
  Front Right: Playback 27 [87%] [-6.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 24 [77%] [1.50dB] [on]
  Front Right: Playback 24 [77%] [1.50dB] [on]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%]
  Front Right: 2 [67%]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [-12.00dB] [on]
  Front Right: Playback 23 [74%] [-12.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 22 [71%] [-13.50dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 23 [74%] [-12.00dB] [on]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [-12.00dB] [on]
  Front Right: Playback 23 [74%] [-12.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 24 [77%] [1.50dB] [on]
  Front Right: Playback 24 [77%] [1.50dB] [on]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 25 [81%] [3.00dB] [on]
  Front Right: Playback 25 [81%] [3.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 27 [87%] [6.00dB] [on]
  Front Right: Playback 27 [87%] [6.00dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%]
  Front Right: 2 [67%]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [30.00dB] [off]
  Front Right: Capture 31 [100%] [30.00dB] [off]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [30.00dB] [off]
  Front Right: Capture 31 [100%] [30.00dB] [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 24 [77%] [1.50dB] [on]
  Front Right: Playback 24 [77%] [1.50dB] [on]
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '6ch' '8ch'
  Item0: '6ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
any ideas?
 
Old 07-08-2009, 02:51 AM   #4
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
...
Simple mixer control 'Capture',0
Front Left: Capture 31 [100%] [30.00dB] [off]
Front Right: Capture 31 [100%] [30.00dB] [off]
Simple mixer control 'Capture',1
Front Left: Capture 31 [100%] [30.00dB] [off]
Front Right: Capture 31 [100%] [30.00dB] [off]
Apparently, capturing is disabled.
 
Old 07-08-2009, 04:29 AM   #5
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by cladisch View Post
Apparently, capturing is disabled.
still doesn't want to record

Code:
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 26 [84%] [-7.50dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 225 [88%] [-6.00dB]
  Front Right: Playback 225 [88%] [-6.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 27 [87%] [-6.00dB] [on]
  Front Right: Playback 27 [87%] [-6.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%]
  Front Right: 3 [100%]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [-12.00dB] [on]
  Front Right: Playback 23 [74%] [-12.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 22 [71%] [-13.50dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 23 [74%] [-12.00dB] [on]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [-12.00dB] [on]
  Front Right: Playback 23 [74%] [-12.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 24 [77%] [1.50dB] [on]
  Front Right: Playback 24 [77%] [1.50dB] [on]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 25 [81%] [3.00dB] [on]
  Front Right: Playback 25 [81%] [3.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%]
  Front Right: 3 [100%]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [on] Capture [on]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [30.00dB] [on]
  Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [30.00dB] [on]
  Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '6ch' '8ch'
  Item0: '6ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
 
Old 07-08-2009, 04:33 AM   #6
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
still doesn't want to record

Code:
...
Simple mixer control 'Input Source',0
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Mic'
If you're using the front panel connector, this should be set to "Front Mic".
 
Old 07-08-2009, 04:58 AM   #7
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
it's working! still not with krec... it does work with arecord... must krec settings. works with skype too.

excellent. thank you very much for your help.

Code:
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Front Mic'
 
Old 07-08-2009, 05:14 AM   #8
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
and the questions continue...

onto the camera now... this camera actually worked on my last 12.0 slackware installation and i don't remember doing anything fancy.

does anyone have any idea on what i can try to get it working?

Code:
root@helios:~# dmesg | tail -16
process `skype' is using obsolete setsockopt SO_BSDCOMPAT
usb 7-1: new full speed USB device using uhci_hcd and address 2
usb 7-1: New USB device found, idVendor=046d, idProduct=08f0
usb 7-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 7-1: Product: Camera
usb 7-1: configuration #1 chosen from 1 choice
Linux video capture interface: v2.00
quickcam_messenger: v0.01:Logitech Quickcam Messenger USB
usbcore: registered new interface driver snd-usb-audio
usb 7-1: QCM on /dev/video0: canvas=320x240 videosize=320x240
input: QCM button as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/input/input5
usbcore: registered new interface driver QCM
usb 7-1: Packet Statistics: Total=133568. Empty=0. Usage=100%
usb 7-1: Transfer Statistics: Transferred=102MB Usage=78%
usb 7-1: Packet Statistics: Total=32. Empty=0. Usage=100%
usb 7-1: Transfer Statistics: Transferred=0 B Usage=0%
root@helios:~# 
root@helios:~# 
root@helios:~# 
root@helios:~# lsusb 
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 046d:08f0 Logitech, Inc. QuickCam Messenger
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 046d:c529 Logitech, Inc. 
Bus 005 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 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@helios:~# 
root@helios:~# 
root@helios:~# 
root@helios:~# lsmod 
Module                  Size  Used by
quickcam_messenger     11764  0 
snd_usb_audio          80192  0 
usbvideo               24368  1 quickcam_messenger
videodev               34752  1 usbvideo
v4l1_compat            13904  1 videodev
snd_usb_lib            15116  1 snd_usb_audio
snd_rawmidi            19104  1 snd_usb_lib
snd_seq_dummy           2576  0 
snd_seq_oss            27520  0 
snd_seq_midi_event      6060  1 snd_seq_oss
snd_seq                46992  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6296  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            37248  0 
snd_mixer_oss          15756  2 snd_pcm_oss
ipv6                  241204  18 
pcmcia                 33452  0 
pcmcia_core            31968  1 pcmcia
lp                      9476  0 
fuse                   54056  1 
joydev                  9440  0 
usbhid                 35072  0 
hid                    39552  1 usbhid
nvidia               9542244  26 
snd_hda_codec_realtek   193424  1 
processor              33888  4 
snd_hda_intel          24136  1 
snd_hda_codec          57068  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6672  2 snd_usb_audio,snd_hda_codec
snd_pcm                67056  4 snd_usb_audio,snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              19316  2 snd_seq,snd_pcm
thermal                12680  0 
r8169                  32944  0 
ppdev                   7216  0 
snd                    51076  13 snd_usb_audio,snd_rawmidi,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               5952  2 snd
snd_page_alloc          8276  2 snd_hda_intel,snd_pcm
rtc_cmos               10284  0 
parport_pc             25060  1 
intel_agp              25892  0 
agpgart                29676  2 nvidia,intel_agp
i2c_i801                9440  0 
mii                     4268  1 r8169
i2c_core               20544  2 nvidia,i2c_i801
uhci_hcd               21692  0 
rtc_core               15880  1 rtc_cmos
sg                     25472  0 
ehci_hcd               34008  0 
thermal_sys            14740  2 processor,thermal
parport                31404  3 lp,ppdev,parport_pc
rtc_lib                 2348  1 rtc_core
button                  5116  0 
hwmon                   2120  1 thermal_sys
evdev                   9280  0 
serio_raw               5168  0 
ext3                  125108  6 
jbd                    41120  1 ext3
mbcache                 6320  1 ext3
 
Old 07-08-2009, 05:33 AM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Looks like the cam is registered as /dev/video0 and working. Did you add your user account to the "video" group?

Eric
 
Old 07-08-2009, 05:39 AM   #10
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Alien Bob View Post
Looks like the cam is registered as /dev/video0 and working. Did you add your user account to the "video" group?

Eric
hi eric,

yes, i'm memeber of video.

Code:
$ whoami 
zoran
$ groups 
users audio video
$ ls -la /dev/video* 
crw-rw---- 1 root video 81, 0 2009-07-08 19:54 /dev/video0
$ mplayer tv:// -tv driver=v4l:width=640:height=480:device=/dev/video0
MPlayer UNKNOWN-4.2.4 (C) 2000-2009 MPlayer Team

Playing tv://.
TV file format detected.
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi
 comment: under development
Selected device: QCM USB Camera
 Capabilites: capture 
 Device type: 1
 Supported sizes: 160x120 => 320x240
 Inputs: 1
  0: Camera:  (tuner:0, norm:pal)
Using input 'Camera'
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
Unknown norm!
Error: Cannot set norm!
Unable to set requested width: 640
Unable to set requested height: 480
Selected input hasn't got a tuner!
FPS not specified in the header or invalid, use the -fps option.
No stream found.


Exiting... (End of file)
not sure if trying with mplayer like that is the best way... but cannot get it running under skype or koppete.
 
Old 07-08-2009, 07:56 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Looking at the errors you are trying to force the cam to stream in an unsupported resolution (which fails of course). Try to add no parameters to the command at all, just run:
Code:
mplayer tv://
That works for me.

Eric
 
Old 07-08-2009, 04:43 PM   #12
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
still nothing... maybe the camera is faulty...

Code:
$ mplayer tv://
MPlayer UNKNOWN-4.2.4 (C) 2000-2009 MPlayer Team

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: ioctl query capabilities failed: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.


Exiting... (End of file)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kubuntu 8.10 skype no mic suppapowa Linux - Newbie 4 12-28-2009 11:41 AM
nForce3 mic recording Cichlid Linux - Hardware 0 07-02-2006 08:45 AM
Mic recording -need help vexer Linux - Hardware 2 02-07-2004 09:39 PM
Recording mic under RH9 gnome thefallen Linux - Newbie 0 07-15-2003 10:42 AM
recording sound from a mic rusekd Linux - Software 1 05-06-2003 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration