# Tutorial Q-23: Read a video frame by frame and save every tenth frame

Read a running clip's header, loop over its frames, save every tenth picture on your own computer, and publish a table with one row per frame.

Address: https://apopt.com/data/tutorials/q23-video-frames/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Read a video frame by frame and save every tenth frame* (https://apopt.com/course/tutorials/q23-video-frames/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

Some inputs are linked rather than copied: [runner.mp4](https://apmonitor.com/dde/uploads/Main/runner.mp4)

## Files

| file | size | rows | description |
|---|---|---|---|
| [clean/frames.csv](https://apopt.com/data/tutorials/q23-video-frames/clean/frames.csv) | 591 B | 22 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q23-video-frames/expected/printed-output.txt) | 1.2 KB |  | Everything the tutorial prints, cell by cell |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 8: Seeing Movement: Video and Pose Estimation](https://apopt.com/book/ch08-pose/)
- Course: [Week 8 lesson](https://apopt.com/course/week/8/)
- Homework H16: [https://apopt.com/course/assess/h16/](https://apopt.com/course/assess/h16/)

## How to cite

Tutorial Q-23: Read a video frame by frame and save every tenth frame. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q23-video-frames/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q23-video-frames/clean/frames.csv")
```
