Just normalize your 16 bit image to its respective maximum pixel value and then convert to uint8 using numpy or opencv or scikit-image Code generated in the video can be downloaded from here: For my other code:
Hide player controls
Hide resume playing