This project captures live video from a camera and introduces a delay effect using frame buffers. It allows for the real-time blending of buffered video frames with the live feed and supports multiple buffer loops for different delay intervals.
- Captures live video feed from a camera (e.g., iPhone camera).
- Creates a delay effect by buffering video frames.
- Supports multiple buffers to create different delay loops.
- Blends buffered frames with the live video feed.
- Publishes the video stream using the Syphon Metal Server.
- Python 3.6 or later
- macOS (required for Syphon functionality)
- Clone this repository:
git clone https://github.com/yourusername/syphon-camera-delay.git
- Navigate to the project directory:
cd syphon-camera-delay
- Install the required Python packages:
pip install -r requirements.txt
- macOS users: Install the Syphon Python library:
pip install syphon-python
-
Connect your camera (e.g., iPhone) to your computer.
-
Run the script:
python syphon_camera_feed.py
-
The live camera feed will start with the configured delay and buffering effects.
-
Press
q
to quit the application.
buffer_count
: Set the number of buffers to create for different delay loops. Modify thex
variable in the script to change the buffer count.max_buffer_frames
: The number of frames to buffer, which determines the delay time. Adjust this to control the length of each delay.
x = 10 # Set the number of buffers (loops)
main(buffer_count=x)
- Ensure that the camera is connected and recognized by your system.
- If the video feed is slow or delayed, consider reducing the buffer size or the number of buffers.
- If you encounter issues with Syphon on macOS, make sure the
syphon-python
library is correctly installed.
Feel free to submit issues or pull requests to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details.
This updated README now includes instructions for installing the syphon-python
library and provides a reference link for macOS users. You can update your GitHub repository with this new README file.