text:text-webcam-server-en
Differences
This shows you the differences between two versions of the page.
| — | text:text-webcam-server-en [2021/09/07 18:06] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Text WebCam on Server ====== | ||
| + | [[: | ||
| + | [[: | ||
| + | * [[: | ||
| + | \\ | ||
| + | =====Introduction===== | ||
| + | The WebCam on Server provides the captured images to all connected clients.\\ | ||
| + | Supported clients: | ||
| + | * __**[[: | ||
| + | * __**[[: | ||
| + | The captured WebCam image should be as small as possible to save bandwidth. This is especially important in case of connected mobile clients.\\ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | =====Setup===== | ||
| + | ====Text Object==== | ||
| + | {{: | ||
| + | |||
| + | * Refresh must be set to zero | ||
| + | * The **WebCam** option must be activated | ||
| + | * The new captured image will be searched in the __**[[: | ||
| + | |||
| + | \\ | ||
| + | ====Action==== | ||
| + | {{: | ||
| + | The action calls an external __**[[# | ||
| + | The **Asynchrone** option should be disabled for this action.\\ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ====Action Control==== | ||
| + | {{: | ||
| + | This action will be called every second, fixed, with the state set to " | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ====Capture Script==== | ||
| + | The script must provide an image in JPEG format and should be as small as possible and **must be smaller then 100kB**.\\ | ||
| + | ===macOS=== | ||
| + | The **wacaw** --CIF option will generate a small image of 352 X 288. ([[https:// | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | echo " | ||
| + | / | ||
| + | mv / | ||
| + | </ | ||
| + | Line explanation: | ||
| + | - The used interpreter | ||
| + | - Terminal message | ||
| + | - A call to the **wacaw** program to capture a new image | ||
| + | - move the captured image into the image path | ||
| + | |||
| + | |||
| + | ===Linux=== | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | picfile="/ | ||
| + | tmpfile="/ | ||
| + | device="/ | ||
| + | |||
| + | echo " | ||
| + | |||
| + | avconv -f video4linux2 -i " | ||
| + | mv " | ||
| + | </ | ||
| + | |||
| + | ===Windows=== | ||
| + | * Example with all needed files and programs: \\ https:// | ||