Skip to content

Latest commit

 

History

History
90 lines (58 loc) · 4.91 KB

README.md

File metadata and controls

90 lines (58 loc) · 4.91 KB

MJPEG Mirror for Suear "Smart" Ear Cleaners

Author: Sean Pesce

Example clip from MJPEG stream

Overview

A utility for converting Suear "smart" earwax cleaner video streams to MJPEG for general-purpose use.

NOTE: This tool has only been tested with the LEIPUT X6, but it should work for any product that uses libWifiCamera.so and/or the Suear mobile app (com.i4season.bkCamera - Google Play/iOS/Direct APK download) for video streaming in its client implementation. Relevant brands likely include:

...and many, many more. Search for "Suear" on Amazon for more examples.

Usage

  • Power on the Suear device
  • Connect to the Suear WiFi
  • Start the stream mirror: python3 suear_mirror.py --no-ssl

With the stream mirror running, you can view the live video in a number of ways:

  • In a web browser; navigate to http://127.0.0.1:45100
  • In VLC (GUI); go to MediaOpen Network Stream..., set the URL to http://127.0.0.1:45100/stream, and then click Play
  • In VLC (command-line); run vlc http://127.0.0.1:45100/stream
  • With ffmpeg; run ffplay -i http://127.0.0.1:45100/stream

SSL/TLS

The video stream can also be transported over TLS for security. This document won't walk you through setting up your own PKI, but the following command will generate a key pair for encrypting traffic with TLS:

openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out cert.crt -keyout private.key

To start the stream mirror over HTTPS, specify the TLS key pair in the shell command:

python3 suear_mirror.py cert.crt private.key

The HTTPS stream will then be accessible at https://127.0.0.1:45100/stream.

Contact

If you find any bugs, please open a new GitHub issue.

Related Projects

Acknowledgements

License

GNU General Public License v2.0


For unrelated inquiries and/or information about me, visit my personal website.