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?
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It only takes a minute to sign up.
Sign up to join this communityI 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?
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)