View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sat Apr 11, 2015 9:55 pm Post subject: problems recording audio[solved] |
|
|
I'm having problems with recording audio on my laptop, I've tried using the following commands:
ffmpeg -f alsa -i hw:1 -strict -2 /media/hdd/recordings/test.aac
it just hangs, ctrl c results in a 0 byte file
arecord -l:
**** List of CAPTURE Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ID 283 Analog [ID 283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
arecord /tmp/test.wav
does nothing, ctrl c results in a 44 byte file
thanks
Last edited by Adel Ahmed on Sun May 17, 2015 1:55 pm; edited 1 time in total |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Tue Apr 14, 2015 11:37 am Post subject: |
|
|
bump |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 541 Location: Germany
|
Posted: Wed Apr 15, 2015 7:24 am Post subject: |
|
|
Do you have "Capture" activated for your channel? Have you tried to use arecord for recording data from it? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Apr 15, 2015 11:03 am Post subject: |
|
|
I'm not sure what you mean by that, in alsa mixer capture is not muted if that has anything to do with it.
I've tried arecord but it just results in a 44 byte file
thanks |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 541 Location: Germany
|
Posted: Thu Apr 16, 2015 8:07 am Post subject: |
|
|
You can enable/disable capturing of specific channels. For example, here's how one of microphones looks in alsamixer without Capture http://andal.linuxx.org/nocap.png. If one hits "Space" when this microphone is selected, then it becomes like this http://andal.linuxx.org/capture.png
Then I use arecord -l to learn about device for that microphone
Quote: |
card 2: U0x46d0x9a4 [USB Device 0x46d:0x9a4], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
After that I can run arecord to do recording
arecord -f S16_LE -D hw:CARD=U0x46d0x9a4,DEV=0 ~/test.wav |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Apr 16, 2015 10:37 am Post subject: |
|
|
blakdeath here, thanks for your help
I just checked in alsamixer and the recording device did indeed have that capture text underneath it |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Tue Apr 28, 2015 11:58 pm Post subject: |
|
|
bump |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sat May 16, 2015 3:07 pm Post subject: |
|
|
help anyone? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Sat May 16, 2015 3:20 pm Post subject: |
|
|
Adel Ahmed,
First, try to capture a raw .wav, with no processing.
It will confirm your alsa setup.
Your laptop can only record from one input at a time but you probably have four inputs to choose from.
You must choose the right one.
The recording level must be both unmuted and be set to around 70% for a trial.
For the mic input, you may need to choose the 20db gain switch too.
Once you can get a .wav file and play it back, you can add ffmpeg to do on the fly processing. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Sun May 17, 2015 12:56 pm Post subject: |
|
|
Adel Ahmed,
We are only interested in the capture controls, so open alsamixer and press F4 to see only the capture controls.
There are more controls off screen to the right in alsamixer. Use right arrow to move to them. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun May 17, 2015 1:54 pm Post subject: |
|
|
well, apparently I had the microphone disabled in the bios settings
enabling the mic has enabled me to record
there are no sounds in my recording so far, but that's a different problem appaarently which ill start working on
thanks |
|
Back to top |
|
|
|