You are not logged in.

#1 2021-07-11 01:41:15

3HHN
Member
Registered: 2021-07-07
Posts: 9

Simplescreenrecoder cannot record audio.

I'm using ALSA, in the list of hardware has 3 options

1, ALSA (i'm currently using)
2, PulseAudio ( I didn't install it, I don't want it)
3, JACK

I've tried them all, but it doesn't work, there are some error output.

1.ALSA

[ALSAInput::Init] Error: Can't open PCM device!
[PageRecord::StartInput] Error: Something went wrong during initialization.
[X11Input::~X11Input] Stopping input thread ...
[X11Input::InputThread] Input thread stopped.
[PageRecord::StopOutput] Stopping output ...
[PageRecord::StopOutput] Stopped output.

3, JACK

[PageRecord::StartPage] Starting page ...
connect(2) call to /dev/shm/jack-1001/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
[JACKInput::Init] Error: Could not connect to JACK!
[PageRecord::StartPage] Error: Something went wrong during initialization.

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM vc4-hdmi-hifi-0 [MAI PCM vc4-hdmi-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM vc4-hdmi-hifi-0 [MAI PCM vc4-hdmi-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Last edited by 3HHN (2021-07-11 01:42:37)

Offline

#2 2021-07-11 11:06:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,225

Re: Simplescreenrecoder cannot record audio.

To be able to do this with ALSA you need to load the snd-aloop kernel module to have a loopback device, pulseaudio makes this trivial as it allocates a monitoring source for each card. In your example jack isn't properly started either.

You could even use pipewire instead of pulseaudio (what's your rationale for "not wanting pulseaudio" ? it has concepts to explicitly allow and make these kinds of things easier than plugging directly on ALSA) for it implements these improvements as well.

Online

#3 2021-07-11 17:08:32

3HHN
Member
Registered: 2021-07-07
Posts: 9

Re: Simplescreenrecoder cannot record audio.

I've tried about pulseaudio it costing problems such as noise in 3.5mm output and my system was lagging because of pulseaudio that's why I've uninstalled the package.

Offline

Board footer

Powered by FluxBB