Add record_video script

This commit is contained in:
Digital Studium 2024-03-03 19:16:46 +03:00
parent 3b6ae63404
commit 421fd71e11
2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,7 @@ pulseaudio `# for sound` \
alsa-base `# for sound` \
pavucontrol `# for audio control` \
pasystray `# for audio control` \
libnvidia-compute-545 `# for mpv + nvidia` \
iputils-ping `# ping etc.` \
xfe `# classic file manager` \
surf `# suckless lightweight browser` \

7
record_screen.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
ffmpeg \
-f x11grab -framerate 30 -video_size 1920x1080 -i :0 `# this is screen` \
-f v4l2 -framerate 30 -video_size 640x480 -i /dev/video0 `# this is camera` \
-f alsa -i default `# this is audio` \
-filter_complex "[0][1]overlay=main_w-overlay_w-2:main_h-overlay_h-2[v]" -map [v] -map 2 `# this is for placing camera in bottom right corner. IDK how it works` \
video.mp4 # ouput file