Advertisement
NickG

Untitled

May 26th, 2013
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/sh
  2. INFO=$(xwininfo -frame)
  3.  
  4. WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+')
  5. WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/\+/,/' )
  6.  
  7. 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