<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.sstatic.net/EbcE7.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/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.sstatic.net/u6CG1.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/u6CG1.jpg" alt="After Pic"></a></p>

CC BY-SA 4.0
2019-07-04T20:45:24.853Z
I tried this, but it seems that it creates washed out colors for certain codecs.  Even though the output png file is indeed 16 bpc, the colors do not seem to align with the original video.  See my question here: https://video.stackexchange.com/questions/27991/export-frames-of-10-bpc-video-file-with-ffmpeg
EllipticalInitial
CC BY-SA 3.0
2018-02-09T03:20:39.093Z
2018-02-09T03:25:46.370Z
2018-02-09T03:25:46.370Z
SaltySub2
<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>

CC BY-SA 3.0
2017-08-18T08:34:55.940Z
Which format..?
Gyan
CC BY-SA 3.0
2017-08-18T13:27:26.710Z
@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
CC BY-SA 3.0
2017-08-18T13:36:40.870Z
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
CC BY-SA 3.0
2017-08-21T01:02:42.550Z
Thanks for all of your responses. The format of output image should be TIFF.
nam
<video><ffmpeg><hdr>
Convert video to 10 bit images
nam
# Convert video to 10 bit images

(Asked by: username_0 on 2017-08-18)

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?

**Tags:** video, ffmpeg, hdr

> **Comments:**
> **username_1**: Which format..?  
> **username_2**: @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?  
> **username_1**: 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.  
> **username_0**: Thanks for all of your responses. The format of output image should be TIFF.  

---

## 1 answers

### Answer by username_3 on 2018-02-09. Score: 2

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](https://i.sstatic.net/EbcE7.jpg)](https://i.sstatic.net/EbcE7.jpg)

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

[![After Pic](https://i.sstatic.net/u6CG1.jpg)](https://i.sstatic.net/u6CG1.jpg)

> **Comments:**
> **username_4**: I tried this, but it seems that it creates washed out colors for certain codecs.  Even though the output png file is indeed 16 bpc, the colors do not seem to align with the original video.  See my question here: https://video.stackexchange.com/questions/27991/export-frames-of-10-bpc-video-file-with-ffmpeg  

---

