Closed Haxe18 closed 1 year ago
This is already possible:
from uuid import UUID
from pywidevine import PSSH
pssh = PSSH.new(
key_ids=[
UUID("79F8D3B2-3E0B-D27E-09E0-38435167AE13"),
UUID("2E7F8229-C1C6-012D-3BAF-8778CBA29C69")
],
system_id=PSSH.SystemId.Widevine
)
Works as expected with less code 😅 Thanks for the hint. Issue can be closed.
First of all thanks for this awesome project and your work.
I am working with some mpd files which only contains a default_KID. A PSSH for Widevine/Playready is not given.
In the shaka-project there is a fuction to generate a widevine pssh Box only by default_KID's: https://github.com/shaka-project/shaka-packager/blob/main/packager/tools/pssh/pssh-box.py#L171 The needed proto file is located here: https://github.com/shaka-project/shaka-packager/blob/main/packager/media/base/widevine_pssh_data.proto
I am using it now like this in combination with your project:
Is it be possible to implement the option to generate a pssh only by default_KID's into pywidevine ?
Thanks in advance.