View Single Post
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, 555 views)