> For the complete documentation index, see [llms.txt](https://cloakedkeys.gitbook.io/ofsc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cloakedkeys.gitbook.io/ofsc/cdm-options/cdm-issues.md).

# CDM issues

Problems you may see when using your own CDM files (`--key-mode manual`).

## "Descriptors cannot not be created directly" (protobuf error)

DRM videos fail, and the log shows:

```
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and
must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
```

**What it means:** the manual CDM uses `pywidevine`, which relies on the `protobuf` package. The error appears when an old `pywidevine` is installed next to a newer `protobuf` that it wasn't built for.

**How to fix it:**

1. Reinstall OF-Scraper the way the [install guide](/ofsc/installation.md) describes. The fork pins versions that work together (`pywidevine` 1.9 with a current `protobuf`), so a clean install doesn't hit this error. The Docker images and release binaries already include them.
2. If you can't reinstall yet, set the environment variable `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python` before running OF-Scraper. It works around the error, but decoding is slower.

Background: [VideoHelp forum thread](https://forum.videohelp.com/threads/408031-Dumping-Your-own-L3-CDM-with-Android-Studio/page9#post2697726).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cloakedkeys.gitbook.io/ofsc/cdm-options/cdm-issues.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
