Skip to content

Instantly share code, notes, and snippets.

@xiaocong
Created December 12, 2013 08:29
Show Gist options
  • Select an option

  • Save xiaocong/7924829 to your computer and use it in GitHub Desktop.

Select an option

Save xiaocong/7924829 to your computer and use it in GitHub Desktop.

Revisions

  1. xiaocong created this gist Dec 12, 2013.
    5 changes: 5 additions & 0 deletions screenshot.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    adb pull /dev/graphics/fb0 fb0
    dd bs=1920 count=800 if=fb0 of=fb0b
    ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 480x800 -i fb0b -f image2 -vcodec png fb0.png