Author: Sean Pesce
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:
- AIDELF
- BEBIRD
- Carenart
- COSLUS
- DEETOK
- DJROLL
- Fyobyye
- Girug
- Hasako
- Jaydear
- Kolrry
- LEIPUT
- Loyker
- RILIAM
- ROOZADE
- SKFMA
- WXGTAC
- Xlife
- Yaej
- YEOUEOZ
...and many, many more. Search for "Suear" on Amazon for more examples.
- 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 Media→Open 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
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
.
If you find any bugs, please open a new GitHub issue.
- Spade Web Viewer, a similar project for the Axel Glade Spade brand of "smart" earwax cleaners.
- Damien Corpataux, whose MJPEG implementation was used as a reference for this project.
GNU General Public License v2.0
For unrelated inquiries and/or information about me, visit my personal website.