Skip to main content

command-line interface and client library for MIPC IP cameras

Reason this release was yanked:

dev test, use 0.1.1

Project description

mipc_camera_client

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mipc_camera_client-0.1.0.dev0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

mipc_camera_client-0.1.0.dev0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file mipc_camera_client-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: mipc_camera_client-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1018-azure

File hashes

Hashes for mipc_camera_client-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 d9d7a40a3233cc9cb028fb6e99b3770a31e4fa4b51eaa9d09d37767ff48d787e
MD5 31c62fa2581ac4b0583abfe1425c48f3
BLAKE2b-256 9dd22f71c7c408406f3eb67ec21a8caefd47d57e404b2350177dfb24ec8b133b

See more details on using hashes here.

File details

Details for the file mipc_camera_client-0.1.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for mipc_camera_client-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 add94449977f6e1697b03fab15c01514010ed85489bac9cb13b55e242f44019a
MD5 712f3175c16140d739b7be2fa323c632
BLAKE2b-256 68121450ca5fa72eabb44264d07596a46f4d978d6e7cad8cf5d23f773e0a77a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page