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
View File
@@ -497,6 +497,8 @@ class Video(Track):
"-hide_banner",
"-loglevel",
"error",
# ffmpeg exits 0 after dropping packets the bsf cannot parse
"-xerror",
"-i",
str(original_path),
"-codec",