dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit b0a5a9cfe3fc3eb7a0e8e6556298bf45e6a2495a
parent 85fff23d306e210bec2ce1b008e2353be5068c90
Author: Chris Noxz <chris@noxz.tech>
Date:   Tue, 21 Apr 2020 11:51:31 +0200

[howto] Add howtos to dotfile

Diffstat:
Ahowto/.local/howto/ffmpeg-record-screen-audio-with-alsa.md | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/howto/.local/howto/ffmpeg-record-screen-audio-with-alsa.md b/howto/.local/howto/ffmpeg-record-screen-audio-with-alsa.md @@ -0,0 +1,24 @@ +How To: record screen with audio (loopback) using ffmpeg +======================================================== + ++ add snd-aloop to modules: + + sudo modprobe snd-aloop pcm_substreams=1 + ++ edit /etc/asound.conf to record loopback (this will disable audio output): + + echo 'pcm.!default { type plug slave.pcm "hw:Loopback,0,0" }' >> \ + /etc/asound.conf + ++ alternatively) "record audio from an application while alsa routing the audio +to an output device: https://trac.ffmpeg.org/wiki/Capture/ALSA + ++ start the actual recording. (The example above will record a 1280x1080 +portion of the screen 0.0 from the coordinates 0,0 using the ALSA audio +hardware 'Loopback,1,0'): + + ffmpeg -video_size 1280x1080 -framerate 25 -f x11grab -i :0.0+0,0 -f alsa \ + -ac 2 -ar 44100 -i hw:Loopback,1,0 output.mkv + ++ when done, remove the line from /etc/asound.conf to once again enable audio +output.