Guest User

FFMpeg screencast window

a guest
Feb 2nd, 2011
236
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. INFO=$(xwininfo -frame)
  4.  
  5. WIN_GEO_W=$(echo $INFO | grep 'Width' | awk '{print $2;}')
  6. WIN_GEO_H=$(echo $INFO | grep 'Height' | awk '{print $2;}')
  7. WIN_X=$(echo $INFO | grep 'Absolute upper-left X' | awk '{print $4;}')
  8. WIN_Y=$(echo $INFO | grep 'Absolute upper-left Y' | awk '{print $4;}')
  9.  
  10. ffmpeg -f x11grab -r 25 -s $WIN_GEO_Wx$WIN_GEO_H -i :0.0+$WIN_X+$WIN_Y /tmp/screencast.avi
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×