[MPlayer-users] Can I use mplayer/mencoder to capture the audio the Linux PC is playing to a file?
Krzysztof Duchnowski
amidk75 at gmail.com
Thu Jan 2 16:00:05 CET 2014
On 02.01.2014 12:35, James Board wrote:
>>> I'm trying to figure out the easiest way to capture the audio that my Linux PC is
>>> playing and save it to a file. I don't want to capture from a URL. I also don't want
>>> to capture through the microphone, or analog capture device. I simply want to
>>> capture the bits that are being sent to the sound card. Can this be done with either
>>> mplayer or mencoder? If not, what's the easiest way to do this?
>> Pure ALSA:
>> http://bit.ly/JphGRN
>> PulseAudio:
>> http://bit.ly/JphDp9
> Thank you for your help.
> I've tried both of those links, and they didn't work. No audio
> was recorded. I can record audio through the GUI audacity,
> so I think I have the loopback stuff working. What is a working
> command for recording the audio that is being played over the
> PC speakers?
ffmpeg -f alsa -i pulse -strict -2 -c:a aac /tmp/system.mp4
then open pavucontrol, go to recordings and chose "Capture from Monitor
of internal stereo" (something like that - my system isn't english) for
ALSA plugin ffmpeg module.
It will be remembered, so no need to do it in the future.
But you must use pavucontrol, not GNOME volume.
Dunno how to do it in shell. Couldn't find by Google.
If you want to record mic as well, then you must make 2 null otuput.
Wire monitor to one and mic to other, then wire monitor null to both
stereo and mic null.
Then mic null to recording.
http://bit.ly/1iwcg6d
--
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
More information about the MPlayer-users
mailing list