NiklasVoigt / Insta360-Livestream

Since insta360 doesn't offer the possibility to get the livestream with a computer without a cell phone in between I reverse engineered the apk, found the port 6666, then analyzed a tcpdump of my cell phone and the camera and rebuilt the tcp communication to get the livestream of the camera.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Insta360-Livestream

Since insta360 doesn't offer the possibility to get the livestream with a computer without a cell phone in between I reverse engineered the apk (v1.18.2), found the port 6666, then analyzed a tcpdump of my cell phone and the camera and rebuilt the tcp communication to get the livestream of the camera.

Search for a Wi-Fi station with the name of “ONE R XXXXX”, and connect to the Wi-Fi with the password of 88888888. App version 1.7.1 offers the possibility to set the language to Indonesia and thus limit the wifi to 2.4GHz

The livestream is HEVC/H.265 encoded, has a resolution of 1440x720 pixels at 30 FPS and is in dual fisheye format.

Vlcsnap-2022-07-25-09h34m59s583

Tested cameras

Model Status Firmware Sensor
BetaFPV SMO 360 v10.1.25, v10.1.26 IMX577 1/2.3"
Insta 360 One R ✓ but lost some frames v1.3.8
Insta360 X3 ✘ camera display flickers, rx no usable video data v1.0.04

Basic commands

#start script:
$ python3 insta360hevc.py

#play written data:
$ ffplay data.bin

#or convert to mp4
$ ffmpeg -i data.bin data.mp4

Execute commands from hardware serial (BetaFPV SMO 360)

t ipc rpc clnt exec2 'iwlist wlan0 scan'

About

Since insta360 doesn't offer the possibility to get the livestream with a computer without a cell phone in between I reverse engineered the apk, found the port 6666, then analyzed a tcpdump of my cell phone and the camera and rebuilt the tcp communication to get the livestream of the camera.


Languages

Language:Python 100.0%