Page 1 of 1

How to capture audio from speaker in Bionic64?

Posted: Sun Dec 06, 2020 6:40 pm
by arivas_2005

Cheers
I have puppy bionic 64 installed and I can't capture the sound coming out of the speaker
i have installed mhwave, audacity, pavrecord, baconrecorder, precord
neither one can capture the audio.
I have only managed to capture the audio from the microphone with the line
arecord -vv -fdat /foo.wav
but with enough noise
I wish you could guide me step by step to capture the entire desktop plus all the sound from the pc (internal and microphone)

I perform the tests by running a youtube video in opera browser (and the sound is good)

================
INFO HARD
arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=2
HDA Intel PCH, ALC892 Alt Analog
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=2
HDA Intel PCH, ALC892 Alt Analog
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=2
HDA Intel PCH, ALC892 Alt Analog
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=2
HDA Intel PCH, ALC892 Alt Analog
Hardware device with all software conversions

ffmpeg -devices

Devices:
D. = Demuxing supported
.E = Muxing supported
--
DE alsa ALSA audio output
E caca caca (color ASCII art) output device
DE fbdev Linux framebuffer
D iec61883 libiec61883 (new DV1394) A/V input device
D jack JACK Audio Connection Kit
D lavfi Libavfilter virtual input device
D libcdio
D libdc1394 dc1394 v.2 A/V grab
D openal OpenAL audio capture device
E opengl OpenGL output
DE oss OSS (Open Sound System) playback
DE pulse Pulse audio output
E sdl,sdl2 SDL2 output device
DE sndio sndio audio playback
E v4l2 Video4Linux2 output device
D video4linux2,v4l2 Video4Linux2 device grab
D x11grab X11 screen capture, using XCB
E xv XV (XVideo) output device
==========================


Re: capture audio(+video) in bionic 64 bits -problems

Posted: Sun Dec 06, 2020 8:20 pm
by OscarTalks

Try changing the "Loopback Mixing" in Retrovol from disabled to enabled.


Re: capture audio(+video) in bionic 64 bits -problems

Posted: Sun Dec 06, 2020 8:58 pm
by fredx181
OscarTalks wrote: Sun Dec 06, 2020 8:20 pm

Try changing the "Loopback Mixing" in Retrovol from disabled to enabled.

Yes, was just going to say that too, to add: enable also "Capture" (and adjust volume of course).

Fred


Re: How to capture audio from speaker in Bionic64?

Posted: Mon Dec 07, 2020 3:37 am
by arivas_2005

Thanks
I have already made the suggested changes and in the apps if you see the sound monitoring bars that fluctuate, but in the file that is created there is only deafening noise (minimal noise) .. and nothing of the sounds


Re: How to capture audio from speaker in Bionic64?

Posted: Fri Jan 08, 2021 2:16 am
by arivas_2005

ltados de traducción
have a good year 2021
I come again requesting support to solve my difficulty with saving the audio
The problem is that only the audio from the microphone can be stored and I can't find a way to capture the audio from the applications
trying options I installed mageia 5 32 bits and the problem was different (opposite) .. here only the audio from the apps is saved and the microphone is not saved
I have searched with google and I summarize that it is difficult to handle the commands for the configuration of the sound card.
I use Puppy BIonic 64 bits, and the apps mentioned above only capture when the sound is from the microphone. (audacity, mhwavedit, pavrecord, .. acrecord,)
in the case of ffmpeg I cannot capture sounds neither from the app nor from the microphone.
If you could suggest some other forum in which I can request help to overcome this difficulty
I attach the report of alsa sound wizard report
thanks


Re: How to capture audio from speaker in Bionic64?

Posted: Fri Jan 08, 2021 6:41 am
by ozsouth

I have a mic/headphone shared socket & so I got a cheap usb sound card with separate mic & headphone & connected a cable between those.
Now record clear sound.


Re: How to capture audio from speaker in Bionic64?

Posted: Fri Jan 08, 2021 8:34 am
by williwaw

I used to rip audio from youtube with vlc. Its been so long ago, I would have to google how again.


Re: How to capture audio from speaker in Bionic64?

Posted: Fri Jan 08, 2021 10:38 pm
by arivas_2005

greetings!
I do not progress on my problem

output from SimpleScreenRecorder

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
==================== SSR iniciado ====================
SimpleScreenRecorder 0.3.10
Compiled with GCC 7.3.0
Qt: header 5.9.4, lib 5.9.5
libavformat: header 57.83.100, lib 57.83.100
libavcodec: header 57.107.100, lib 57.107.100
libavutil: header 55.78.100, lib 55.78.100
libswscale: header 4.8.100, lib 4.8.100
[CPUFeatures::Detect] Características de la CPU: mmx sse sse2 sse3 ssse3 sse4_1 sse4_2
[ALSAInput::GetSourceList] Generating source list ...
[ALSAInput::GetSourceList] Found card: [hw:0] HDA Intel HDMI
[ALSAInput::GetSourceList] Found card: [hw:1] HDA Intel PCH
[ALSAInput::GetSourceList] Found device: [hw:1,0] HDA Intel PCH: ALC892 Analog
[ALSAInput::GetSourceList] Found device: [hw:1,2] HDA Intel PCH: ALC892 Alt Analog
[ALSAInput::GetSourceList] Found card: [hw:2] pcsp
[PulseAudioInput::GetSourceList] Generating source list ...
[PulseAudioInput::GetSourceList] Error: ¡No se pudo obtener los nombres de las fuentes! Motivo: Oops.
------
and it saves horrible noise ...
and when I try to save a youtube video. be silent
----
I attach the output of dmsg on the sound tta
any suggestion / idea
thanks!


Re: How to capture audio from speaker in Bionic64?

Posted: Fri Jan 08, 2021 11:09 pm
by mikewalsh

@ozsouth :-

ozsouth wrote: Fri Jan 08, 2021 6:41 am

I have a mic/headphone shared socket & so I got a cheap usb sound card with separate mic & headphone & connected a cable between those.
Now record clear sound.

Oz, d'you mean to tell me that actually works? Surely, connecting the headphone output direct to the mic input, well.....wouldn't you get horrible feedback issues? And through the same USB port, too?

If this works, I might have a go with this myself. This new HP Pavilion tower has to be the only one I've come across where the Realtek chip simply doesn't recognise 'loopback mixing' at all. I have absolutely everything - including the kitchen sink, and several options I've never even heard of before! - showing up in Retrovol/Alsamixer, but the one I want - loopback mixing - just isn't there.

I've got one of these USB sound cards (a 'Plugable'); had it for a while, in fact. AND I've got several audio cables, in all different lengths.....with 3.5 mm jack plugs.

Hmm. I sense an experiment coming on, y'know.....? :lol:

Mike. ;)


Re: How to capture audio from speaker in Bionic64?

Posted: Fri Jan 08, 2021 11:31 pm
by ozsouth

@mikewalsh - works for me on my laptops, whereas loopback doesn't. I guess if audio levels are very high one might have issues. In my dim dark distant desktop days - when sound cards had separate input & output sockets, I connected them with a cable too. You can use this method to grab youtube videos with FFconvert that many puppies have (or ffmpeg on command line).


Re: How to capture audio from speaker in Bionic64?

Posted: Sat Jan 09, 2021 2:08 am
by mikewalsh
ozsouth wrote: Fri Jan 08, 2021 11:31 pm

@mikewalsh - works for me on my laptops, whereas loopback doesn't. I guess if audio levels are very high one might have issues. In my dim dark distant desktop days - when sound cards had separate input & output sockets, I connected them with a cable too. You can use this method to grab youtube videos with FFconvert that many puppies have (or ffmpeg on command line).

Well, I'll give it a try tomorrow; see what happens, like. It's got two chances....!! :lol: :lol:

It astonishes me, actually. Reading up on the Archlinux wiki earlier on, Intel sound cards - like I have here, sorry; NOT Realtek - if 'stereo mix' isn't present, 'dmix' automatically kicks-in for playback.....but there's no such provision for the recording side of things. Buggers..! :roll:

I'll try it, anyroad. I'll let you know what the outcome is. I can grab Youtube vids with Fred's YouTube-dlc thingy (summat like that, anyroad!), and audio is fine. But if I want to record audio on its own, or have background music playing softly while I do a tutorial, say, I can't grab it via screen-recording at the time; I have to add it as a separate track during editing/rendering. Which is.....annoying.

Catch ya later.

Mike. ;)


Re: How to capture audio from speaker in Bionic64?

Posted: Sat Jan 09, 2021 9:18 am
by HerrBert

You could try How to capture audio output.

Not sure if this works for the op since there is a loopback mixer in retrovol, but for those who do not have a loopback mixer on intel sound cards it may help... I used it several times on my laptop.