> 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.md).

# CDM Setup

To handle encrypted content, you'll require a CDM (Content Decryption Module). Indicators for this are the utilization of 'tempvideo' and 'tempaudio'. Decrypting also needs ffmpeg 6 or newer.\\

### Manual

This method is recommended due to its reliability and independence from potential issues like loss of third-party access or service shutdowns.

#### Setup

* Follow this guide:

[KeyDive README](https://github.com/hyugogirubato/KeyDive/blob/main/README.md)

Guide

* In the end you should have two files\
  \- private key file

  -client id file
* Save the files to a location that is easily accessible

> ℹ️ **The built-in default key mode is still cdrm, so set manual yourself.**

#### Changing via config manually

In the `cdm_options` section of `config.json`, change key-mode-default

```
"key-mode-default": "manual"
```

change client-id and private-key

Ensure you utilize the complete file path. Quotes from Windows "Copy as path" are accepted.

```json
"private-key": "...??privatekey.pem"
```

```json
"client-id": "...??client_id.bin"
```

You could also pass `--key-mode manual`, `--private-key` and `--client-id` for one run.

#### Changing via the prompt menu

* go to edit advance config settings menu in the prompt menu

<details>

<summary>prompt menu</summary>

[Using Prompts](/ofsc/using-the-scraper/using-prompts.md)

</details>

* Switch to manual key-mode when prompted
* When asked for the private-key, provide the complete path
* When requested for the client-id, provide the complete path

### CDRM

> 🛑 **Not recommended, and deprecated in this fork.** `--key-mode cdrm` sends the request headers, including your cookies, to a third-party site (cdrm-project.com). Use manual mode instead.

\
This is the initial automated option provided by

<https://cdrm-project.com>

If you're unable to access the site, it's likely down, and you'll need to choose an alternative. The public service appeared to be offline when the fork last tested it.

#### Changing via config manually

change key-mode-default

```
"key-mode-default": "cdrm"
```

you could also pass --key-mode arg

```
--key-mode cdrm
```

#### Changing via the prompt menu

* Navigate to the "Edit Config Settings" section
* Navigate to the "Edit Advanced Options" section
* When prompted to choose the key-mode, opt for "cdrm".


---

# 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.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.
