fix(remote): match re-parsed manifest tracks by ID before attributes

Match once after every server manifest is parsed, and require range and bitrate in the video fallback, so a per-range ISM ladder no longer hands an HDR10 track the SDR quality level. Pass -xerror to the bsf ffmpeg calls so a failed rewrite keeps the original file instead of a near-empty one.
This commit is contained in:
imSp4rky
2026-09-01 15:06:29 -06:00
parent e00f6cca86
commit f8f58f86ef
4 changed files with 90 additions and 13 deletions
+2 -1
View File
@@ -1016,7 +1016,8 @@ class Track:
]
)
if bsf:
args.extend(["-bsf:v", bsf])
# ffmpeg exits 0 after dropping packets the bsf cannot parse
args.extend(["-bsf:v", bsf, "-xerror"])
args.append(str(output_path))
subprocess.run(