From 0493d289146e71d31bfead640de26a2e40a0d1c6 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 12 Jan 2024 01:17:18 +0000 Subject: [PATCH] Manually specify the output format with Shaka-Packager It normally auto-detects the format from the file extension. The supports formats are "MP4" and "WEBM". The input files to shaka-packager are currently always ".mp4", so this isn't particularly an issue. However, I want to add this just as a pre-caution in case it isn't. This isn't an issue if the input file is another format, like WEBM, as this only controls the output format, the format devine wants, not the input and output format. --- devine/core/drm/widevine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/drm/widevine.py b/devine/core/drm/widevine.py index 90af853..b391e05 100644 --- a/devine/core/drm/widevine.py +++ b/devine/core/drm/widevine.py @@ -235,7 +235,7 @@ class Widevine: try: arguments = [ - f"input={path},stream=0,output={output_path}", + f"input={path},stream=0,output={output_path},output_format=MP4", "--enable_raw_key_decryption", "--keys", ",".join([ *[