user19780: 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?

user21348: 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)  

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


19780: <p>I have a video with these info:</p>

<pre><code>Format : MKV
Codec : HEVC (h.265)
Bit depth : 10 bits
</code></pre>

<p>How can I get 10-bit frame grabs from it using ffmpeg?</p>
 21348: <p>To preserve as much detail as possible, convert it to a 16-bit TIFF, eg:<br>
<code>ffmpeg -i "DF HDR Sampler.mp4" -pix_fmt rgb48 _Frames/out%05d.tiff</code></p>

<p>Example from Digital Foundry's GT Sport HEVC 10-bit H.265 video at <a href="https://www.digitalfoundry.net/2017-10-17-free-download-gran-turismo-sport-hdr-sampler" rel="nofollow noreferrer">https://www.digitalfoundry.net/2017-10-17-free-download-gran-turismo-sport-hdr-sampler</a></p>

<p>Before (16-bit TIFF framedump, untouched, to 8-bit ProPhoto RGB)  </p>

<p><a href="https://i.stack.imgur.com/EbcE7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EbcE7.jpg" alt="Before Pic"></a></p>

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

<p><a href="https://i.stack.imgur.com/u6CG1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u6CG1.jpg" alt="After Pic"></a></p>
