Game Of Thrones Season 5 -1080p X265 10bit Joy- -
def check_hevc_bitdepth(filepath): """Use ffprobe to verify 10bit x265.""" cmd = [ "ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries", "stream=codec_name,profile,pix_fmt", "-of", "json", str(filepath) ] try: data = json.loads(subprocess.check_output(cmd, text=True)) stream = data["streams"][0] is_10bit = stream["pix_fmt"] in ("yuv420p10le", "yuv422p10le", "yuv444p10le") is_x265 = stream["codec_name"] == "hevc" return is_x265 and is_10bit except: return False
for mkv in mkv_files: print(f"\nš mkv.name") if check_hevc_bitdepth(mkv): print(" ā Valid 10bit x265") else: print(" ā ļø Not true 10bit x265 ā maybe a fake/remux") # Auto-fix subtitle delay (optional: only on first run) # fix_subtitle_delay(mkv) # uncomment to enable Game of Thrones Season 5 -1080p x265 10bit Joy-
generate_plex_metadata()