Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- INFO=$(xwininfo -frame)
- WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+')
- WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/\+/,/' )
- ffmpeg -y -f pulse -ac 2 -i 2 -f pulse -ac 2 -i 3 -f x11grab -s $WIN_GEO -i :0.0+$WIN_XY -threads 0 -strict -2 -c:v libx264 -preset veryfast -c:a aac -map 0:a -map 2:v out.mp4 -strict -2 -c:a aac -map 1:a talk.m4a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement