Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vdechenaux/phpwebcammjpeg

Create a Mjpeg stream of a webcam using PHP
https://github.com/vdechenaux/phpwebcammjpeg

ffi mjpeg mjpeg-stream opencv php webcam webcam-streaming

Last synced: 9 days ago
JSON representation

Create a Mjpeg stream of a webcam using PHP

Awesome Lists containing this project

README

        

# Php Webcam Mjpeg

Create a Mjpeg stream of a webcam using PHP

## Introduction

This project is a demo of the library [vdechenaux/webcam](https://github.com/vdechenaux/PhpWebcam)

## Usage

### Local PHP 7.4

```
composer install
php -d ffi.enable=1 -S localhost:8000 -t public
```

### With Docker

```
docker build -t phpwebcam docker
docker run --rm -p 8000:80 -v "$PWD:/src" --device=/dev/video0 -it phpwebcam
```

### Use it !

http://localhost:8000/