Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] ffmpeg video+audio capture question
Date: Wed, 18 Sep 2019 23:58:45
Message-Id: 20190918235751.GA7906@waltdnes.org
In Reply to: Re: [gentoo-user] [OT] ffmpeg video+audio capture question by Mick
1 On Wed, Sep 18, 2019 at 09:14:44PM +0100, Mick wrote
2
3 > Yes, you only have one card 0. The first device (default) is the analogue.
4 >
5 > What does 'arecord -l' show?
6
7 **** List of CAPTURE Hardware Devices ****
8 card 0: PCH [HDA Intel PCH], device 0: CX20641 Analog [CX20641 Analog]
9 Subdevices: 1/1
10 Subdevice #0: subdevice #0
11 card 0: PCH [HDA Intel PCH], device 2: CX20641 Alt Analog [CX20641 Alt Analog]
12 Subdevices: 1/1
13 Subdevice #0: subdevice #0
14
15 > Let's try something else, specifying a sub-device. What happens with:
16 >
17 > -i hw:0,1
18 >
19 > or
20 >
21 > -i hw:0,0,1
22
23 Both fail with No such file or directory.
24
25
26 > The ffmpeg output seems noisy and you're getting alsa buffer
27 > over/under runs. Try this:
28 >
29 > -f alsa -thread_queue_size 2048
30
31 That gets rid of the warnings and Alsa xrun messages. But still no
32 help. I did some further digging. It appears that the instructions I
33 followed are for capture devices (USB microphones, etc). According to
34 https://trac.ffmpeg.org/wiki/Capture/ALSA if I want to record from a
35 running application, I need to load the "snd_aloop" module and mention
36 it in a local .asoundrc. According to the linux kernel config help...
37
38 CONFIG_SND_ALOOP:
39
40 | Say 'Y' or 'M' to include support for the PCM loopback device. |
41 | This module returns played samples back to the user space using |
42 | the standard ALSA PCM device |
43
44 Oh well, there is a new kernel, so I'll build it with the module, and
45 get back later to see how things work.
46
47 --
48 Walter Dnes <waltdnes@××××××××.org>
49 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] [OT] ffmpeg video+audio capture question Adam Carter <adamcarter3@×××××.com>
Re: [gentoo-user] [OT] ffmpeg video+audio capture question Walter Dnes <waltdnes@××××××××.org>