# Batch video scrubbing

## Batch Video Personal Info Scrubbing

In order to batch scrub video files for personal information, we first need to determine which files contain personal info comments.

#### [batch\_personal\_info.rb](https://github.com/SeedlingsBabylab/datavyu_scripts/blob/master/batch_personalinfo.rb)

* found in [datavyu\_scripts](https://github.com/SeedlingsBabylab/datavyu_scripts) repo.
* need to provide 2 paths (by setting variables in the script at the top)
  * folder with all the opf\_files (variable called '**filedir**')
  * folder where to dump personal\_info.csv files (variable called '**pinfo\_dir**')

#### [videoscrub\_batch.py](https://github.com/SeedlingsBabylab/videoscrub/blob/master/videoscrub_batch.py)

* found in the [videoscrub](https://github.com/SeedlingsBabylab/videoscrub) repo
* takes 4 arguments:
  * path to folder with original video files
  * path to folder with personal\_info.csv files generated from the batch\_personal\_info.rb script above.
  * path to black1280x720.png file to mask video with (a copy should be in the 'data' folder in videoscrub repo)
  * output folder to dump the scrubbed files


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.bergelsonlab.com/data-pipeline/personal-information-guidelines/batch-video-scrubbing-1/batch-video-scrubbing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
