LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-05-2005, 06:17 AM   #1
kilgor
Member
 
Registered: Oct 2002
Posts: 38

Rep: Reputation: 15
audio capture on Fedora Core 4


Hi forum members,

The problem I have, has always been a kind of pain in the ass, even in windows, but I got it working eventually, except this time. Recording audio from mic or line in. I need that to use teamspeak (link) and to record a show from TV with my crappy Chronos Shuttle II with a SAA7133 chipset.

The tv card does not support direct audio, as far as I know, only through a loopback cable to the audio card. The manual for windows instructs the user to use the cable and no alternative is given. mencoder gives me some output about the tvcard too:
Code:
Selected device: LifeView FlyVIDEO2000
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner  read/write  streaming
Yes, it's not the Shuttle, but it's the correct one none the less. I guess there should be "audio capture" too, to have direct capturing without the sound card?

Current stand:
Using Fedora Core 4 (alsa) with some livna RPM, not related to audio stuff.

The tvcard and sound card are in PCI slots of my nforce2 motherboard, which has a some intergrated realtech sound chip, which is really crap. So I have it disabled from BIOS setup.
Soundblaster Live! 5.1 Digital got installed during FC4 install automatically.

Shuttle II is enabled with the saa7134 module with the following options (modprobe.conf):
Code:
alias char-major-81 saa7134
options saa7134 card=3 tuner=23
I tried adding
Code:
oss=1 dsp_nr=3 mixer_nr=3
but it didn't work, the /dev/dsp3 and /dev/mixer3 were not created. Not much of a surprise really.

Anyway, loading the module with these (card=3 tuner=23) options gives me a working tvcard. I see the picture and hear the sound through the loopback cable, which I control with KMix or directly from tvtime - it is the same line-in slider which is moved.

My mic works fine too - I can hear myself. Just can't make anything to record audio from it.

To enable capturing I checked that I have sufficient permissions for /dev/dsp and /dev/mixer, even modified them to 666 and checked that nothing else uses it, like teamspeak. kilx is the user i'm logged in as.
Code:
crw-rw-rw-  1 kilx root 14, 3 Nov  4 21:54 /dev/dsp
crw-rw-rw-  1 kilx root 14, 0 Nov  4 21:54 /dev/mixer
KMix setup:
Output:

Switches:

Different Input settings I have tried to get Line In or Mic to capture:




The mencoder line I use to capture from line in:
Code:
mencoder -tv driver=v4l2:device=/dev/video0:chanlist=europe-east:adevice=/dev/dsp:volume=100:width=640:height=480 tv://99 -o test.avi -ovc xvid -xvidencopts bitrate=678 -oac mp3lame -lameopts vbr=3 -endpos 2
I only get the picture. To be sure it's not a problem with mp3lame I tried lavc:
Code:
mencoder -tv driver=v4l2:device=/dev/video0:chanlist=europe-east:adevice=/dev/dsp:volume=100:width=640:height=480 tv://99 -o test.avi -ovc xvid -xvidencopts bitrate=678 -oac lavc -lavcopts acodec=mp3:abitrate=96 -endpos 2
Get the same result, nice picture and a blank soundtrack. It records silence. Although during the 2 seconds mencoder is recording (-endpos 2) I hear the sound allright!

I also tried doing something like this, I hope the values for adevice were OK.
Code:
cat /proc/asound/pcm
00-00: emu10k1 : ADC Capture/Standard PCM Playback : playback 32 : capture 1
00-01: emu10k1 mic : Mic Capture : capture 1
00-02: emu10k1 efx : Multichannel Capture/PT Playback : playback 8 : capture 1
00-03: emu10k1 : Multichannel Playback : playback 1
...
mencoder -tv driver=v4l2:device=/dev/video0:chanlist=europe-east:alsa:adevice=hw.0,0:audiorate=44100:volume=100:width=640:height=480 tv://99 -o test.avi -ovc xvid -xvidencopts bitrate=678 -oac mp3lame -lameopts vbr=3 -endpos 2
mencoder -tv driver=v4l2:device=/dev/video0:chanlist=europe-east:alsa:adevice=hw.0,1:audiorate=44100:volume=100:width=640:height=480 tv://99 -o test.avi -ovc xvid -xvidencopts bitrate=678 -oac mp3lame -lameopts vbr=3 -endpos 2
mencoder -tv driver=v4l2:device=/dev/video0:chanlist=europe-east:alsa:adevice=hw.0,2:audiorate=44100:volume=100:width=640:height=480 tv://99 -o test.avi -ovc xvid -xvidencopts bitrate=678 -oac mp3lame -lameopts vbr=3 -endpos 2
mencoder -tv driver=v4l2:device=/dev/video0:chanlist=europe-east:alsa:adevice=hw.0,3:audiorate=44100:volume=100:width=640:height=480 tv://99 -o test.avi -ovc xvid -xvidencopts bitrate=678 -oac mp3lame -lameopts vbr=3 -endpos 2
The first three (0,0; 0,1 and 0,2) record silence. 0,3 gives an error:
Code:
v4l2: current audio mode is : MONO
Error opening audio: No such file or directory
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Exiting...
With hw.0,1 I even talked into the mic. But when playing back test.avi there was only silence.

I have googled quite a bit now and don't really know what else to try. I had it working in FC3 with the same hardware not so long ago. Everything else works, so what could possibly be wrong? I even disabled SELinux and tried all the different possibilities without it. I tried using /dev/adsp.

Any suggestions are appreciated, thanks!



PS: Are the livna.org servers down right now?
 
Old 11-06-2005, 06:55 AM   #2
kilgor
Member
 
Registered: Oct 2002
Posts: 38

Original Poster
Rep: Reputation: 15
I tried to get capturing working in a windows virtual machine, and no recording either. I don't have a real windows installation and can't test there. But it worked in linux at the beginning of the year with FC3 and the same hardware.

I guess I posted this in the wrong forum, Hardware would be more appropriate. Could a moderator please move this thread to hardware please, thanks.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek AC97 Audio + Fedora Core 3 furtivefelon Linux - Laptop and Netbook 4 01-05-2006 12:06 PM
video capture in Fedora Core 3 lightchain Linux - Newbie 14 04-03-2005 01:57 PM
Bt878 Video Capture/TV Tuner problems in Fedora Core 3 snipes420 Linux - Hardware 7 12-08-2004 03:37 PM
Ripping Audio CDs on K3b in Fedora Core 2 Teaten Linux - Software 6 11-06-2004 06:41 AM
No sound from audio CD's with Fedora Core 1 Lanorien Fedora - Installation 1 04-01-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:18 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