Page 1 of 1

Alsa Capture GUI, record from soundcard

Posted: Sat Jun 18, 2022 2:32 pm
by fredx181

*** Alsa Capture Gui ***

This is a gtkdialog GUI for capturing audio directly from soundcard.
Partly discussed in this thread: viewtopic.php?p=58631#p58631 , about the "Loopback" method.
Very much based on @rcrsn51's 'alsa-capture' see viewtopic.php?p=58729#p58729 but extended with choice for soundcard (to monitor sound) and output destination and format, i.e. flac, mp3, ogg, wav (clicking 'Options' gives choices to modify the encoder settings).
Two packages, slightly different (can be installed besides each other, should be no conflict):
- alsacapgui, using the same .asoundrc for 'Loopback' as @rcrsn51 provided with 'alsa-capture'.

alsacapgui-1.0_noarch.pet
(6.36 KiB) Downloaded 87 times

- alsacapgui2, using the .asoundrc for 'Loopback' that @jamesbond provided in the HowTo section here: viewtopic.php?p=59099#p59099 .
EDIT: Updated alsacapgui2 to v2.1, using ffmpeg only now, see more info here: viewtopic.php?p=60664#p60664

alsacapgui2-2.1_noarch.pet
(6.18 KiB) Downloaded 83 times
2022-06-18_16-20-07.png
2022-06-18_16-20-07.png (181.8 KiB) Viewed 1181 times

Output filename base will be by default 'Capture' but if exist, next time it will create e.g. Capture-1.mp3, Capture-2.mp3, etc.. or check "add time stamp" and a timestamp of current 'date' will be added to the name.
(did some stealing from 'Take a shot' :) )
Click the 'Help' button for some more info.

Here are also .deb packages that can be installed on Debiandog (or related) (remove fake .gz):

alsacapgui_1.0_all.deb.gz
(6.17 KiB) Downloaded 46 times

Edit: Updated alsacapgui2 to v2.1, see info here: viewtopic.php?p=60664#p60664

alsacapgui2_2.1_all.deb.gz
Remove fake .gz
(6.11 KiB) Downloaded 49 times

Re: Alsa Capture GUI, record from soundcard

Posted: Sat Jun 18, 2022 2:41 pm
by fredx181

--- reserved ---
EDIT: Note that this is probably not gonna work if pulseaudio is configured as the main sound system.
EDIT:

This is a gtkdialog GUI for capturing audio directly from soundcard.

At the same time it's a good exercise for me in understanding some of gtkdialog based code :) (it's hard ... ;) )


Re: Alsa Capture GUI, record from soundcard

Posted: Sat Jun 18, 2022 4:51 pm
by mikewalsh

@fredx181 :-

MUCH better-looking than my half-assed attempt, mate. :thumbup:

Mike. ;)


Re: Alsa Capture GUI, record from soundcard

Posted: Sat Jun 18, 2022 5:04 pm
by fredx181
mikewalsh wrote: Sat Jun 18, 2022 4:51 pm

@fredx181 :-

MUCH better-looking than my half-assed attempt, mate. :thumbup:

Mike. ;)

Shouldn't be about some sort of challenge with each other, no?


Re: Alsa Capture GUI, record from soundcard

Posted: Sat Jun 18, 2022 6:48 pm
by mikewalsh

@fredx181 :-

fredx181 wrote: Sat Jun 18, 2022 5:04 pm
mikewalsh wrote: Sat Jun 18, 2022 4:51 pm

@fredx181 :-

MUCH better-looking than my half-assed attempt, mate. :thumbup:

Mike. ;)

Shouldn't be about some sort of challenge with each other, no?

Good God, no....of course it isn't. I just hope what I sent you in that tarball at least showed you what to avoid, if nothing else! :lol: It was highly personalized, and was exclusively jigged for my very personal set-up.....but if anything there helped at all, I'm good with that.

Mike. ;)


Re: Alsa Capture GUI, record from soundcard

Posted: Sun Jun 19, 2022 11:35 pm
by mikewalsh

@fredx181 :-

Nicely done, Fred. And built so that both will co-exist without interfering with each other. I can even leave my own "concoction" in place as well....

I'm all for having multiple options for everything, as you know.

Thanks! :thumbup:

Mike. ;)


Re: Alsa Capture GUI, record from soundcard

Posted: Sun Jun 26, 2022 6:06 pm
by fredx181

*** Updated alsacapgui2 to v2.1 ***
Attached at first post.
Change is that ffmpeg is the default capturing program (instead of arecord), so depends only on ffmpeg now.
I found a problem with using arecord in case FIRST pressing Enter (in terminal) to start the capturing and THEN start playing the audio source doesn't work (refusing to play, for me anyway, don't know why TBH). Using ffmpeg for the capturing fixes this.

No such problem btw with alsacapgui v1.0 (it's using arecord for mp3, ogg, wav, but has different .asoundrc ).


Re: Alsa Capture GUI, record from soundcard

Posted: Mon Jun 27, 2022 2:48 pm
by geo_c

Thanks for this! I use jack-capture all the time in jackalpup, so this gives me a similar option in a standard Fossapup.