New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
bahathir
Old
#1  
bahathir's Avatar
Senior Member - OP
Thanks Meter 94
Posts: 287
Join Date: Feb 2010
Default [Tips] : Poor's man screen capture using adb

Most of the time I am using Android SDK's ddms for screencapturing. Based in this link, we can use adb to pull framebuffer image content, and convert it to png or any standard file format.


http://stackoverflow.com/questions/2...s-one-from-adb

Code:
$ adb pull /dev/graphics/fb0
$ ffmpeg -vframes 1 -f rawvideo -pix_fmt rgb32 -s 544x960 -i fb0 fb0.png

I am not using dd to create correct raw file size, but, ffmpeg can sort them out, without any problem.

The key is the resolution for RAZR, which is 544x960.

Here I attached the screenshot which I made using this method.
Note: I changed the launcher to stock Android Launcher2, it brings the 'Nexus One' feels.

Thank you.
Attached Thumbnails
Click image for larger version

Name:	screen_lock.jpg
Views:	943
Size:	18.8 KB
ID:	825546   Click image for larger version

Name:	home.jpg
Views:	840
Size:	22.2 KB
ID:	825547  
Current: Motorola RAZR XT910, PHAsia (SEAOP), rooted stock.
Tablet: Nexus 7 (16GB) Vanilla stock,.

Was: Google Nexus One, boot unlocked + rooted, Asus Transformer TF101
The Following 7 Users Say Thank You to bahathir For This Useful Post: [ Click to Expand ]
 
derektm.
Old
#2  
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Dec 2011
Great trick thanks!
 
thanksgiving60
Old
#3  
Senior Member
Thanks Meter 112
Posts: 586
Join Date: Jun 2011
Location: Temple City
sorry if im missing anything but wouldnt a screen capture app be easier?

i use screenshot it and images come out just fine
 
thanksgiving60
Old
#4  
Senior Member
Thanks Meter 112
Posts: 586
Join Date: Jun 2011
Location: Temple City
here's a screenshot i took with Screenshot It and it looks pretty good to me
Attached Thumbnails
Click image for larger version

Name:	20111225010911.jpg
Views:	627
Size:	40.8 KB
ID:	828608  
 
bahathir
Old
#5  
bahathir's Avatar
Senior Member - OP
Thanks Meter 94
Posts: 287
Join Date: Feb 2010
Yes, screen capture apps are easier. This adb method is an alternative to ddms.

Sent from my XT910 using XDA App
Current: Motorola RAZR XT910, PHAsia (SEAOP), rooted stock.
Tablet: Nexus 7 (16GB) Vanilla stock,.

Was: Google Nexus One, boot unlocked + rooted, Asus Transformer TF101
 
jiwengang
Old
#6  
jiwengang's Avatar
Senior Member
Thanks Meter 85
Posts: 602
Join Date: Feb 2011
Location: New York

 
DONATE TO ME
Quote:
Originally Posted by thanksgiving60 View Post
here's a screenshot i took with Screenshot It and it looks pretty good to me
Can you use screen capture apps WITHOUT rooting the phone ?
DS7/Xoom WIFI/GNex(VZW)/HTCOne-X/BB Bold 9650(work)/BB10 Alpha+Playbook/Samsung GN2(VZW) (daily driver)
I write mobile apps for Android. Here is the Paid Version, Free for XDA Folks.
My App: FacadeMy Blog: http://www.facadesocial.com
 
thanksgiving60
Old
#7  
Senior Member
Thanks Meter 112
Posts: 586
Join Date: Jun 2011
Location: Temple City
Quote:
Originally Posted by jiwengang View Post
Can you use screen capture apps WITHOUT rooting the phone ?
absolutely
https://market.android.com/details?i...llnoroot&hl=en
 
GFXi0N
Old
#8  
GFXi0N's Avatar
Senior Member
Thanks Meter 136
Posts: 656
Join Date: Aug 2010
I'm trying to do this from a mac.... i success to pull the capture but I cannot issue the command to convert it to png
Anyone can help?
 
triplex76
Old
(Last edited by triplex76; 18th January 2013 at 12:57 PM.)
#9  
Senior Member
Thanks Meter 51
Posts: 307
Join Date: May 2008
Quote:
Originally Posted by GFXi0N View Post
I'm trying to do this from a mac.... i success to pull the capture but I cannot issue the command to convert it to png
Anyone can help?
yes..I got one... smash everything that got an apple on his side....even more if it's a bitten apple.
that's how apple look like ultimately...it's slowely getting back to its origin ... just dust and smoke ... that's what they sell! today apple doesn't make anything a part from 2 SOC ...everything else comes from other companies and they just assemble ... display, ram, rom, comes from samsung,lg,sharp and even something from toshiba...
mac are just pc with OSx inside...last RISC cpu from IBM are gone and so is gone mac time!

http://www.applevis.com/forum/ios-io...ios-6-bug-list
Attached Thumbnails
Click image for larger version

Name:	3659917-mele-marce.jpg
Views:	176
Size:	87.7 KB
ID:	1655455  
 
GFXi0N
Old
#10  
GFXi0N's Avatar
Senior Member
Thanks Meter 136
Posts: 656
Join Date: Aug 2010
Quote:
Originally Posted by triplex76 View Post
yes..I got one... smash everything that got an apple on his side....even more if it's a bitten apple.
that's how apple look like ultimately...it's slowely getting back to its origin ... just dust and smoke ... that's what they sell! today apple doesn't make anything a part from 2 SOC ...everything else comes from other companies and they just assemble ... display, ram, rom, comes from samsung,lg,sharp and even something from toshiba...
mac are just pc with OSx inside...last RISC cpu from IBM are gone and so is gone mac time!

http://www.applevis.com/forum/ios-io...ios-6-bug-list
Sorry man, I hate apple myself: I needed this for something at my job....
Don't remind me i work on an overpriced piece of ****... it already stinks when I sit in front of it....
Makes me love my PC+Arch linux back at home even more....


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more