06-13-2014, 01:39 PM | #31 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
me@minty16 / $ ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt gray -s 608x800 -i data.raw -f image2 -vcodec mjpeg frame.jpeg
Quote:
This converts kindle touch and paperwhite raw framebuffer to JPG in one command (8 bit only) Last edited by twobob; 06-13-2014 at 03:10 PM. |
|
06-13-2014, 02:41 PM | #32 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
logical evolution:
grab.sh: <kindle-ip e.g 192.168.1.70> [Trim Y max] ssh root@"$1" cat /dev/fb0 | ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt gray \ -s `ssh root@"$1" eips -i | grep xres_virtual | \ [ $# > 1 ] && -v arg=$2 awk '{print$2"x"arg}' || awk '{print$2"x"$4}'` \ -i - -f image2 -vcodec mjpeg kindle-$1-`date +%s`.jpeg Should detect framebuffer size and performs pull request simultaneously. Also assign a unique name based on time and IP. handles 3rd arg via ternary One slight problem on some KT there is a 608x3584 virtual buffer and a 600x800 actual specification. on the PW even bigger... Quote:
command <kindle-ip> [y-max] would be a lot simpler than the current screenie faffing I do. but to keep things simple ssh root@demo cat /dev/fb0 | ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt gray -s `ssh root@demo eips -i | grep xres_virtual | awk '{print$2"x"800}'` -i - -f image2 -vcodec mjpeg out.jpeg works as a nice one liner. and if you know what it is you want... export IP="192.168.1.77" && ssh root@"$IP" cat /dev/fb0 | ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt gray -s 768x1024 -i - -f image2 -vcodec mjpeg out.jpeg Last edited by twobob; 06-13-2014 at 03:13 PM. |
|
06-13-2014, 04:11 PM | #33 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
ah, there was an interesting post while you where gone - try this:
grab screen layout data rotate: portrait -> landscape -> portrait grab screen layout data Duh? Who changed the screen? I don't recall which model / which firmware - but it was really weird. |
06-14-2014, 12:25 AM | #34 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: I think it was on a K4, with its weird not-really-a-K3-but-not-really-a-K5-either kernel module.
@twobob: There was an (old) tool called fbgrab that was built for that, but AFAIR, it didn't support the fb format used on the Kindle. I also vaguely remember someone doing a quick'n dirty C (I think?) version of something similar on a GitHub project. (Whoo, vague hints galore! ). EDIT: Eh. I think that's what you were referring to here . Last edited by NiLuJe; 06-14-2014 at 12:31 AM. |
Tags |
hello world, kindle, languages, titbits, twobob |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free (K) World's Collider: A Shared-World Anthology [Science Fiction/Horror] | kg3 | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 09-14-2012 07:06 PM |
Kindle free book: Hungarian Cookbook: Old World Recipes for New World Cooks, Expanded | greencat | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 06-15-2011 05:07 AM |
UK/DE Kindle free book: World Kitchen: World Recipes | greencat | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 06-02-2011 11:53 AM |
Old World and New World Computing | kjk | Apple Devices | 0 | 01-31-2010 03:09 PM |