Intended to use/view a camera from an external computers camera
The purpose and focus of this project is to provide an open source, easy to use, and minimalist solution to having no webcam on a computer, but having a laptop webcam available externally.
This project uses a server/client system, where the server is sending the video data to a client, as soon as it connects to it via a socket. The client then displays it within a Windows desktop application.
-
Clone the repository on a computer with a webcam, eg. a laptop, and the client without a webcam. Click here to download the repository as a zip file.
git clone https://github.com/EEkebin/P2PCam
-
Navigate to the directory.
cd ./P2PCam/
-
Install the required dependent python packages, given in
requirements.txt
.pip install -r ./requirements.txt
-
Check IP Address of computer with a webcam.
ipconfig
-
In
client.py
, change host_ip to the IP Address of the computer with a webcam. -
If you need a different port to use, change it to such in both
server.py
andclient.py
. -
Run the
server.py
on the computer with a webcam.python ./server.py
-
Run the
client.py
on the computer without a webcam.python ./client.py
-
Use Open Broadcaster Software (OBS) to start a Virtual Camera with a Window Capture to capture the window that is displaying the webcam playback.
-
Success.
P2PCam is licensed under the GNU General Public License v3.0.
This project, P2PCam, and/or its contributors are not sponsored by or affiliated with any of the packages or technologies used in this project.
This project, P2PCam, and/or its contributors are not sponsored by or affiliated with Open Broadcaster Software (OBS) or any of its affiliates.
This project, P2PCam, and/or its contributors are not responsible for the actions of end users. All liabilities and responsibilities lie with the end user for the misuse(s) of P2PCam and/or any other products and/or services.