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).