View Single Post
Old 06-13-2014, 12:39 PM   #31
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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:
ffmpeg version 0.8.12-6:0.8.12-0ubuntu0.13.10.1, Copyright (c) 2000-2014 the Libav developers
built on Jun 10 2014 15:38:48 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[rawvideo @ 0x8240c80] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'data.raw':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: rawvideo, gray, 608x800, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'gray' for codec 'mjpeg', auto-selecting format 'yuvj420p'
[buffer @ 0x824b340] w:608 h:800 pixfmt:gray
[avsink @ 0x8241180] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x824a8c0] w:608 h:800 fmt:gray -> w:608 h:800 fmt:yuvj420p flags:0x4
Output #0, image2, to 'frame.jpeg':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: mjpeg, yuvj420p, 608x800, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
[image2 @ 0x8249860] Could not get frame filename number 2 from pattern 'frame.jpeg'
av_interleaved_write_frame(): Input/output error
errors can be safely ignored.

This converts kindle touch and paperwhite raw framebuffer to JPG in one command

(8 bit only)

Last edited by twobob; 06-13-2014 at 02:10 PM.
twobob is offline   Reply With Quote