Skip to content

Instantly share code, notes, and snippets.

@mike-zhang
Created November 8, 2012 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-zhang/4037240 to your computer and use it in GitHub Desktop.
Save mike-zhang/4037240 to your computer and use it in GitHub Desktop.
抓取linux桌面视频
#! /bin/bash
t1=`date +%Y%m%d%H%M`
path1="/tmp/out_$t1.mpg"
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq $path1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment