I am trying to record the sound output, but this looks more complicated than expected.
I expected that
arecord -f cd -t wav --max-file-time 3600 --use-strftime %Y/%m/%d/listen-%H-%M-%v.wav
would record 1 file every hour, putting the resulting file in a directory structure with year, month, day and name (hour).wav file.
It actually records the sound output through the microphone (adding to it every imaginable environment noise, specially typing in the keyboard).
ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 -f alsa -ac 2 -i pulse -acodec libmp3lame -ab 128k /tmp/outputFile.mpg
manages to record the video and sound, but suffers from the same problem as the previous command.
Is there a way of pipping to a file the sound that's being generated?
The output of record -l
is:
> **** List of CAPTURE Hardware Devices **** card 0: MID [HDA Intel MID], device 0: ALC269VB Analog [ALC269VB Analog] Subdevices: 1/1
> Subdevice #0: subdevice #0
If I don't find a solution, I'd go with the inelegant solution of buying a loopback cable to connect the output of the loudspeakers to the input of the microphone.
Asked by Quora Feans
(3907 rep)
Mar 24, 2014, 02:01 AM
Last activity: May 15, 2022, 11:09 PM
Last activity: May 15, 2022, 11:09 PM