Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems recording audio
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
l33t
l33t


Joined: 21 Sep 2012
Posts: 709

PostPosted: Sat Apr 11, 2015 9:55 pm    Post subject: problems recording audio 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
Back to top
View user's profile Send private message
Adel Ahmed
l33t
l33t


Joined: 21 Sep 2012
Posts: 709

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: 368
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
l33t
l33t


Joined: 21 Sep 2012
Posts: 709

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: 368
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
l33t
l33t


Joined: 21 Sep 2012
Posts: 709

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
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