Basic workflow (lossless):
def convert_p7_to_p8(self): try: print(f"Starting conversion for self.input_file...")
ffmpeg -i input.mkv -c:v copy -vbsf hevc_mp4toannexb -f hevc - | dovi_tool -m 2 convert --discard - -o output.hevc : Specifies the conversion mode for Profile 8.1.