I have a video with these info:

Format : MKV
Codec : HEVC (h.265)
Bit depth : 10 bits

How can I get 10-bit frame grabs from it using ffmpeg?

  • 1
    Which format..? – Gyan Aug 18 '17 at 8:34
  • @Mulvya - He mentioned it's HEVC (ie, h.265) I've not particularly worked with h.265 yet, but is more information needed about the h.265 settings to get a frame dump? – AJ Henderson Aug 18 '17 at 13:27
  • I'm not asking about the input codec, but which output image formats are acceptable? Not all have 10-bit support. And OP's workflow may not support some which do. – Gyan Aug 18 '17 at 13:36
  • Thanks for all of your responses. The format of output image should be TIFF. – nam Aug 21 '17 at 1:02

To preserve as much detail as possible, convert it to a 16-bit TIFF, eg:
ffmpeg -i "DF HDR Sampler.mp4" -pix_fmt rgb48 _Frames/out%05d.tiff

Example from Digital Foundry's GT Sport HEVC 10-bit H.265 video at https://www.digitalfoundry.net/2017-10-17-free-download-gran-turismo-sport-hdr-sampler

Before (16-bit TIFF framedump, untouched, to 8-bit ProPhoto RGB)

Before Pic

After (16-bit TIFF framedump, HDR to SDR in Photoshop(eg. Curves and Vibrance adjustments), 8-bit ProPhoto RGB)

After Pic

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.