Skip to main content

mipc_camera_client

PyPI version

Simple client for MIPC-based webcam. I bought a cheapo used WiFi camera on eBay, turns out the local web UI accessible over LAN is broken, and using the OEM's app proxies all the video through random IP addresses which I'm not cool with.

supported features

  • login & auth - reverse-engineered from the broken web UI on my camera :)
  • getting a snapshot
  • getting a stream URL
  • control pan/tilt

Using the library

Install the package as usual per your package manager and:

camera_ip = "192.168.0.123"
camera_user = "exampleuser"
camera_password = "P@ssw0rd"

from mipc_camera_client import MipcCameraClient

c = MipcCameraClient(camera_ip)
c.login(camera_user, camera_password)
jpeg_data = c.get_image()
with open("hello.jpg", mode="wb") as file:
    file.write(jpeg_data)

Also see examples/.

CLI

$ usage: mipc_camera_client [-h] [--host HOST] [--user USER] {snapshot,stream,ptz} ...

CLI client for MIPC cameras

options:
  -h, --help            show this help message and exit
  --host HOST           Camera address (hostname or IP), uses CAMERA_HOST env var if not supplied
  --user USER           Camera username (from the web interface), uses CAMERA_USER env var if not supplied. Set CAMERA_PASSWORD for password.

commands:
  Available commands

  {snapshot,stream,ptz}
    snapshot            take a JPEG snapshot
    stream              get RTMP stream URL
    ptz                 control pan/tilt/zoom

Metadata

Release files for mipc-camera-client 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mipc-camera-client 0.1.3
File Size Uploaded Provenance Actions
mipc_camera_client-0.1.3.tar.gz 8.1 kB Without provenance Details for mipc_camera_client-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mipc-camera-client 0.1.3
File Interpreter ABI Platform Actions
mipc_camera_client-0.1.3-py3-none-any.whl Python 3 none any Details for mipc_camera_client-0.1.3-py3-none-any.whl

Total release size: 17.6 kB

Release files / mipc_camera_client-0.1.3.tar.gz

Download URL mipc_camera_client-0.1.3.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3c2dedc74b80459c9f8623ef4874b798e6b05ae6e7d99c35484e456c9c7a9e04
BLAKE2b-256 checksum
How to use checksums
c118f38ee7e8868261d64dac1241c028f49a080e49ede6f02371c5497eca54aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.8 Linux/6.2.0-1019-azure

Release files / mipc_camera_client-0.1.3-py3-none-any.whl

Download URL mipc_camera_client-0.1.3-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f87562d00f98d71120beeff8b275d1a8aebca6fcfd6c83eef7f427992a85735
BLAKE2b-256 checksum
How to use checksums
da30f3ef90f842d06e7de3c8f1d9fd203fa0268ec00262bc614d1745f7499057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.8 Linux/6.2.0-1019-azure

Security for mipc-camera-client 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page