Re: recording audio from speakers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For me eases solution is useing pulse audio. It hase nice alsa
emulation and gives ability to grab sound from output mnoitor:

AR=44100
CHANNELS=1
VQ=5

ASRC=$(pacmd list-sources \
        | sed -n 's/name: <\(alsa_output.*monitor.*\)>/\1/p' \
        | head -n 1)

ffmpeg \
        -f pulse -i $ASRC \
        -ac $CHANNELS -ar $AR \
        -acodec pcm_s16le \
        ${OUTPUT}.a1.wav

Also alsa has native 'file' plugin. You cab write your own .asoundrc
with special device which copies sound from virtual audio card to
actual audio card and to file writer. Look at
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html

And of course some sound cards has ability to route sound from output
to input. Check "source" variable in you alsa mixer in recording mode.

2013/7/28  <lists@xxxxxxxxxxxxxx>:
> Regarding recording the speakers, I think the poster wants the equivalent of "what you hear" on windows machines.
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/alsa-user



-- 
===8@))-\-<
http://akhil.ru

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux