forked from kenzuya/unshackle
perf(drm): decrypt fMP4 segments during download with mp4decrypt
Opt-in decrypt_segments runs mp4decrypt --fragments-info per segment on a thread pool as segments land (DASH, single-init HLS), then decrypts the init alone; hides the post-download decrypt step with byte-identical output.
This commit is contained in:
@@ -109,6 +109,7 @@ class Config:
|
||||
else:
|
||||
self.decryption_map = {}
|
||||
self.decryption = decryption_cfg or "shaka"
|
||||
self.decrypt_segments: bool = bool(kwargs.get("decrypt_segments", False))
|
||||
|
||||
self.theme: str = kwargs.get("theme") or "default"
|
||||
self.set_terminal_bg: bool = kwargs.get("set_terminal_bg", False)
|
||||
|
||||
Reference in New Issue
Block a user