Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems recording audio[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Sat Apr 11, 2015 9:55 pm    Post subject: problems recording audio[solved] Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Tue Apr 14, 2015 11:37 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Wed Apr 15, 2015 7:24 am    Post subject: Reply with quote

Do you have "Capture" activated for your channel? Have you tried to use arecord for recording data from it?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Wed Apr 15, 2015 11:03 am    Post subject: Reply with quote

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
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Thu Apr 16, 2015 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Thu Apr 16, 2015 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Tue Apr 28, 2015 11:58 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Sat May 16, 2015 3:07 pm    Post subject: Reply with quote

help anyone?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Sat May 16, 2015 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Sun May 17, 2015 11:40 am    Post subject: Reply with quote

b5400 ~ # 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

alsamixer:
[img]http://www.zimagez.com/miniature/screenshot-05172015-014015pm.php[/img]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Sun May 17, 2015 12:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Sun May 17, 2015 1:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum