Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-04T20:45:24.853Z
Answers.Text: 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
Answers.UserDisplayName: EllipticalInitial
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-09T03:20:39.093Z
Answers.LastActivityDate: 2018-02-09T03:25:46.370Z
Answers.LastEditDate: 2018-02-09T03:25:46.370Z
Answers.UserDisplayName: SaltySub2
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-18T08:34:55.940Z
Comments.Text: Which format..?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-18T13:27:26.710Z
Comments.Text: @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?
Comments.UserDisplayName: AJ Henderson
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-18T13:36:40.870Z
Comments.Text: 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.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-21T01:02:42.550Z
Comments.Text: Thanks for all of your responses. The format of output image should be TIFF.
Comments.UserDisplayName: nam
Tags: <video><ffmpeg><hdr>
Title: Convert video to 10 bit images
UserDisplayName: nam
ThreadText: # 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  
  
  ---
  
  