mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 03:15:08 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user