X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/0c273a7a48e88c3aef5deff35c77c09ca242510b..407e7e5c5d504db44d89cb6d5d3a92d693009a8c:/ffmpeg-grab-window-with-sound.bash?ds=sidebyside

diff --git a/ffmpeg-grab-window-with-sound.bash b/ffmpeg-grab-window-with-sound.bash
index 5737a4c..2dfa61d 100755
--- a/ffmpeg-grab-window-with-sound.bash
+++ b/ffmpeg-grab-window-with-sound.bash
@@ -15,9 +15,15 @@ WIN_WIDTH=$(echo $WIN_SIZE | cut -d "x" -f 1 | awk '{print $1+$1%2}')
 WIN_HEIGHT=$(echo $WIN_SIZE | cut -d "x" -f 2 | awk '{print $1+$1%2}')
 
 # Run ffmpeg
+# Audio from alsa, using one channel, using the default pulse input device
+# Video from X11, framerate 30
+# Use the libx264 video encoder with the lossless_ultrafast preset
+# Use the libmp3lame audio encoder
+# Output to a file in the user's homedir, using current date and time
+
 ffmpeg \
- -f alsa -ac 1 -i pulse \ # Audio from alsa, using one channel, using the default pulse input device
- -f x11grab -r 30 -s ${WIN_WIDTH}x${WIN_HEIGHT} -i :0.0+${WIN_XY} \ # Video from X11, framerate 30
- -vcodec libx264 -vpre lossless_ultrafast \ # Use the libx264 video encoder with the lossless_ultrafast preset
- -acodec libmp3lame \ # Use the libmp3lame audio encoder
- ${HOME}/screencast-$(date +%F-%H-%M-%S).mkv # Output to a file in the user's homedir, using current date and time
+-f alsa -ac 1 -i pulse \
+-f x11grab -r 30 -s ${WIN_WIDTH}x${WIN_HEIGHT} -i :0.0+${WIN_XY} \
+-vcodec libx264 -vpre lossless_ultrafast \
+-acodec libmp3lame \
+${HOME}/screencast-$(date +%F-%H-%M-%S).mkv