Skip to content

Commit 7e517a8

Browse files
committed
Generate videos for tests
1 parent aa57b64 commit 7e517a8

File tree

9 files changed

+10
-0
lines changed

9 files changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,13 @@ This project uses Lerna to release versions, using [the default versioning strat
9494
- `yarn lerna version` - Tag a new version
9595
- `yarn lerna publish [major|minor|patch]` - Tag and publish a version
9696
- `yarn lerna publish from-package` - Publish the current version
97+
98+
### Test Videos
99+
100+
placeholder.co dropped it's APIs for generating test videos so I've been using this command to create videos for tests:
101+
102+
```sh
103+
ffmpeg -f lavfi -i color=c=black:s=300x150:d=5 \
104+
-vf "drawtext=text='Hello World':fontcolor=white:fontsize=32:x=(w-text_w)/2:y=(h-text_h)/2" \
105+
-c:v libx264 -t 5 -pix_fmt yuv420p 300x150.mp4
106+
```
6.25 KB
Binary file not shown.
6.33 KB
Binary file not shown.
6.33 KB
Binary file not shown.
6.67 KB
Binary file not shown.
6.7 KB
Binary file not shown.
7.34 KB
Binary file not shown.
6.25 KB
Binary file not shown.
6.33 KB
Binary file not shown.

0 commit comments

Comments
 (0)