> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/data-pipeline/personal-information-guidelines/batch-video-scrubbing-1/batch-video-scrubbing.md).

# Batch video scrubbing

Directions for 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
