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)