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.
This commit is contained in:
rlaphoenix 2024-01-12 01:17:18 +00:00
parent 0116c278af
commit 0493d28914
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class Widevine:
try: try:
arguments = [ 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", "--enable_raw_key_decryption", "--keys",
",".join([ ",".join([
*[ *[