Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
ffmpeg -i IMG_9353.JPG -pix_fmt yuv420p -y qqq.y4m
x264 qqq.y4m --preset placebo --tune stillimage --crf 33 -o qqq.mkv

How to extract the picture now? qqq.mkv is non-empty, size depends on "crf" option, but all players (mplayer -vo pnm, ffmpeg -i qqq.mkv -y qqq.ppm, vlc) consider the video as empty and does not show anything at all (not produce any output files).

share|improve this question
up vote 1 down vote accepted

Gstreamer works in this case

gst-launch filesrc location=qqq.mkv ! decodebin ! pnmenc  ! multifilesink location=r.ppm

If it fails, freezes or fails to produce files with "pnmenc" you can use "pngenc", "y4menc", "jpegenc" and other image codecs for saving.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .