You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
box: add webcam input and fix bash conditionals (#3882)
Add INPUT_WEBCAM env var to stream.sh for using a webcam (e.g.
/dev/video0) as video input via v4l2. Document both video file
and webcam input options in box.md.
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This one is only required for the `box-stream` command. It is useful when you cannot use the `box-playback` command to play the stream, for example when you are using a remote non-UI machine.
86
86
87
+
### Video Input
88
+
89
+
By default, `box-stream` uses a generated test pattern. You can use a video file or webcam instead:
90
+
91
+
```bash
92
+
# Use a video file
93
+
export INPUT_VIDEO=/path/to/video.mp4
94
+
95
+
# Or use a webcam (Linux)
96
+
export INPUT_WEBCAM=/dev/video0
97
+
```
98
+
87
99
### Docker
88
100
If you want to run the box in a docker container, set the `DOCKER` env var:
0 commit comments