Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-06-2009, 06:49 PM
#1
Member
Registered: Dec 2007
Posts: 217
Rep:
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)
07-07-2009, 09:54 AM
#2
Member
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228
Rep:
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 ".
07-08-2009, 02:40 AM
#3
Member
Registered: Dec 2007
Posts: 217
Original Poster
Rep:
Quote:
Originally Posted by
cladisch
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?
07-08-2009, 02:51 AM
#4
Member
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228
Rep:
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.
07-08-2009, 04:29 AM
#5
Member
Registered: Dec 2007
Posts: 217
Original Poster
Rep:
Quote:
Originally Posted by
cladisch
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'
07-08-2009, 04:33 AM
#6
Member
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228
Rep:
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".
07-08-2009, 04:58 AM
#7
Member
Registered: Dec 2007
Posts: 217
Original Poster
Rep:
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'
07-08-2009, 05:14 AM
#8
Member
Registered: Dec 2007
Posts: 217
Original Poster
Rep:
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
07-08-2009, 05:33 AM
#9
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
Looks like the cam is registered as /dev/video0 and working. Did you add your user account to the "video" group?
Eric
07-08-2009, 05:39 AM
#10
Member
Registered: Dec 2007
Posts: 217
Original Poster
Rep:
Quote:
Originally Posted by
Alien Bob
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.
07-08-2009, 07:56 AM
#11
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
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:
That works for me.
Eric
07-08-2009, 04:43 PM
#12
Member
Registered: Dec 2007
Posts: 217
Original Poster
Rep:
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)
All times are GMT -5. The time now is 04:27 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News