Reply
Thread Tools
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#1
can someone give me a hint to convert a N900

"cat /dev/fb0 > screenshot.fb" to a screenshot.bmp? or png?

rewrite works: cat screenshot.fb > /dev/fb0

BUT:
ffmpeg does not work:
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 800x480 -i fb-n900.raw -f image2 -vcodec png screenshot.png

fb2png does work on gta2 openmoko, but bot for n900...
I guess the problem is the 32 bit color?


thanks for help
schasch
 
Posts: 1,225 | Thanked: 1,876 times | Joined on Feb 2011 @ Quezon City, Philippines
#2
Originally Posted by schasch View Post
can someone give me a hint to convert a N900

"cat /dev/fb0 > screenshot.fb" to a screenshot.bmp? or png?

rewrite works: cat screenshot.fb > /dev/fb0

BUT:
ffmpeg does not work:
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 800x480 -i fb-n900.raw -f image2 -vcodec png screenshot.png

fb2png does work on gta2 openmoko, but bot for n900...
I guess the problem is the 32 bit color?


thanks for help
schasch
The color is 24, not 32 bits.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@imblying, working on Glacier for Nemo.
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#3
thanks Hurrian
24bit...

any idea how to convert?
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#4
http://www.cnx-software.com/2010/07/...er-screenshot/

gimp does not work too??

>Then open the screenshot as a raw file (Select File Type: Raw Image Data) in Gimp2, enter the width and height as well of the color arrangement, RGB, RGBA etc…
 
Posts: 68 | Thanked: 4 times | Joined on Feb 2010 @ Germany
#5
Hello, noone can give me a hint?

Nokia-N900-51-1:~# cat /dev/fb0 > /home/user/MyDocs/fb-n900-20120228.raw
Nokia-N900-51-1:~# cat /home/user/MyDocs/fb-n900-20120228.raw > /dev/fb0
...is wroking and brings the schot on the screen....

But how is the raw build inside?

FFMPEG:
-------------
user@ubuntu /screenshot-fb$ ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 800x480 -i fb-n900-20120228.raw -f image2 -vcodec png screenshot.png
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Dec 21 2011 18:37:21, gcc: 4.4.3
Input #0, rawvideo, from 'fb-n900-20120228.raw':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: rawvideo, rgb565, 800x480, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'screenshot.png':
Stream #0.0: Video: png, rgb24, 800x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
av_interleaved_write_frame(): I/O error occurred
Usually that means that input file is truncated and/or corrupted.


...but like I wrote, rewrite in fb0 works, so not truncated/corrupted..


fb-n900-20120228.raw (=Screenshot from /dev/fb0)
screenshot.png (Screenshot-Result after ffmpeg the raw)
vnc.png (=Screenshot with VNC)

no ideas?

regards
schasch
Attached Images
  
Attached Files
File Type: zip fb-n900-20120228.raw.zip (51.2 KB, 98 views)
 
Posts: 1 | Thanked: 2 times | Joined on Mar 2012
#6
Try:
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 800x480 -i fb-n900.raw -f image2 -vcodec png screenshot.png

It worked for me.
 

The Following 2 Users Say Thank You to jlancaster For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:14.