Alsa Capture GUI, record from soundcard

Moderator: Forum moderators

Post Reply
User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 375 times
Been thanked: 1314 times
Contact:

Alsa Capture GUI, record from soundcard

Post 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 99 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 94 times
2022-06-18_16-20-07.png
2022-06-18_16-20-07.png (181.8 KiB) Viewed 1345 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 50 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 57 times
User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 375 times
Been thanked: 1314 times
Contact:

Re: Alsa Capture GUI, record from soundcard

Post 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 ... ;) )

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: Alsa Capture GUI, record from soundcard

Post by mikewalsh »

@fredx181 :-

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

Mike. ;)

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 375 times
Been thanked: 1314 times
Contact:

Re: Alsa Capture GUI, record from soundcard

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

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: Alsa Capture GUI, record from soundcard

Post 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. ;)

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: Alsa Capture GUI, record from soundcard

Post 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. ;)

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 375 times
Been thanked: 1314 times
Contact:

Re: Alsa Capture GUI, record from soundcard

Post 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 ).

geo_c
Posts: 2881
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2205 times
Been thanked: 878 times

Re: Alsa Capture GUI, record from soundcard

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

geo_c
Old School Hipster, and Such

Post Reply

Return to “Multimedia”