Skip to content

video embedding fails - #165

@ttbuffey

Description

@ttbuffey
try:
            signer_info = C2paSignerInfo(
                alg=b"ps256",
                sign_cert=cert_chain,
                private_key=private_key,
                ta_url=b"http://timestamp.digicert.com"
            )
            signer = Signer.from_info(signer_info)
        except Exception as e:
            logger.error(f"Error creating signer: {e}")
            raise RuntimeError(f"Error creating signer: {e}") from e
        logger.info(f"signer created in {time.time()} duration {time.time() - starttime}")
        # Create a builder add a thumbnail resource and an ingredient file.
        builder = Builder(manifest)

with open(image_path, "rb") as source_file, open(output_path, "wb") as dest_file:
            manifest_bytes = builder.sign(signer, mime_type, source_file, dest_file)

error message is "{ "detail": "error while attaching c2pa metadata: Other: hash verification( Asset hash failure: assertion.bmffHash.mismatch )" }

test data:

1s.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions