Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-09-2021, 09:22 AM
|
#1
|
Member
Registered: Dec 2011
Distribution: Slackware 14.1
Posts: 63
Rep: 
|
how to record audio output from browser
I listen to music through my browser, it adds reverberation and other effects to it from the browser add-on.
And now how to record other changed music to mp3 / ogg with my favorite settings.
How to record "what comes out of the browser when it comes to audio"
|
|
|
12-09-2021, 09:48 AM
|
#2
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,412
|
You can dump what is coming through the sound card to file. Some sound hardware will allow that. ffmpeg will do that for example.
Other sound devices will need you to make a virtual sound loopback device in alsa or pulse, and dump that steam to file.
Better solution is to find the source/url/rtsp/HLS playlist/mp3 of the sound stream and dump that to file.
Look at:
ffmpeg
ffplay
mplayer
mpv
aucadicy
vlc
etc.
Do you have a particular stream the you wish to dump?
|
|
|
12-09-2021, 10:23 AM
|
#3
|
Member
Registered: Dec 2011
Distribution: Slackware 14.1
Posts: 63
Original Poster
Rep: 
|
How to do this virtual loopback for alsa?
I don't have a specific stream.
I just listen to music, or via YouTube or bandcamp, turn on the browser plug
https://chrome.google.com/webstore/d...jbpfpiepjdpnpp
and now I need to rip it to disk to be able to listen to such effects and settings on another device, i.e. what comes out of the browser + plugin.
I have tried various players for the desktop or phone, but in my opinion none of them has such a nice sound that suits me.
So I'm looking for help on the forum 
|
|
|
12-09-2021, 01:29 PM
|
#5
|
Member
Registered: Dec 2011
Distribution: Slackware 14.1
Posts: 63
Original Poster
Rep: 
|
I can't apply it. I would need step by step instructions.
|
|
|
12-09-2021, 03:23 PM
|
#6
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by inkscape
I can't apply it. I would need step by step instructions.
|
Try a little bit of experimentation, and reading the man or info pages as well as searching for tutorials. You may learn something.
This is how I learn to do everything I do as an admin.
|
|
|
12-09-2021, 08:42 PM
|
#7
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891
|
You might want to take a look at jack.
|
|
|
12-10-2021, 06:28 AM
|
#8
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by inkscape
I listen to music through my browser, it adds reverberation and other effects to it from the browser add-on.
(...)
How to record "what comes out of the browser when it comes to audio"
|
This should be possible with pulseaudio:
https://askubuntu.com/questions/6083...ith-pulseaudio
With ALSA only it is going to be very painful.
Let me just add my personal opinion: I think this is a bad idea. The audio quality won't be very good, you won't be able to change the effects you applied later etc. Much better to actually download the audio stream (check out yt-dlp), and apply effects during playback.
|
|
|
12-13-2021, 11:09 AM
|
#9
|
Member
Registered: Dec 2011
Distribution: Slackware 14.1
Posts: 63
Original Poster
Rep: 
|
.asoundrc
Code:
pcm.!default {
type asym
playback.pcm "LoopAndReal"
capture.pcm "hw:0,0"
}
pcm.LoopAndReal {
type plug
slave.pcm mdev
route_policy "duplicate"
}
pcm.mdev {
type multi
slaves.a.pcm pcm.MixReale
slaves.a.channels 2
slaves.b.pcm pcm.MixLoopback
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
pcm.MixReale {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 48000
#rate 44100
periods 128
period_time 0
period_size 1024 # must be power of 2
buffer_size 8192
}
}
pcm.MixLoopback {
type dmix
ipc_key 1025
slave {
pcm "hw:Loopback,0,0"
rate 48000
#rate 44100
periods 128
period_time 0
period_size 1024 # must be power of 2
buffer_size 8192
}
}
reboot
Code:
sudo modprobe snd-aloop
and works
rec via terminal or audacity
thanks for guidance pointers
|
|
|
All times are GMT -5. The time now is 12:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|