ghoost82 / mijia-720p-hack

Xiaomi Mijia-720P camera hack
252 stars 58 forks source link

Poor image RTSP and Record Video SD Card #4

Open bmwm69 opened 6 years ago

bmwm69 commented 6 years ago

I use your hack on my Cam , RTSP works pretty well but the video quality is quite bad compared to the original MiHome .

With your hack I have some stuttering/ artifacts in live rtsp and recorded videos on SDCARD, without hack I have clean image :|

Example recorded video capture

max5962 commented 6 years ago

Same issue here :/

ghoost82 commented 6 years ago

With the current RTSP server the stream quality is not as good as with the cloud stream. I will try to figure out if it is possible to improve it.

ghoost82 commented 6 years ago

Do you have enabled cloud streaming and RTSP? If so this will explain the bad stream and recording quality. The CPU is not powerful enough to handle both simultaneously

bmwm69 commented 6 years ago

I only have RTSP enabled

zhaoparrot commented 6 years ago

At first I got the same issue . after I disabled cloud steaming ,the RTSP stream quality becomes good. but it seems I can't turn the IR LEDs off after turn off cloud streaming, I'll test it some more.

bmwm69 commented 6 years ago

Yes that feature dont work :| Night mode only work with cloud streaming :|

zhaoparrot commented 6 years ago

I think I'll solve this by unplug the wire for IR LED later

bmwm69 commented 6 years ago

Ok but if you unplug the wire IR LED will work during the day and night , right?

zhaoparrot commented 6 years ago

No. the LED will have no power. no light. the camera will see nothing during the night ,but I don't need it to be working in the night. The IR filter can also be unpluged. then it will stay at the same position as when I unplug it.

bmwm69 commented 6 years ago

AH ok , but my problem is exactly the opposite . No IR LED during the night or day!

In my case I need IR LED ! the camera are located in garage without any source of light

ghoost82 commented 6 years ago

Currently I'm improve the firmware hack to support the night vison mode

ghoost82 commented 6 years ago

Just uploaded a new release with prebuild binaries. This release has support for the auto night vision mode while the cloud service is disabled

max5962 commented 6 years ago

@ghoost82 Autonight seems buggy ^^ screenshot_2018-06-29-23-00-52

Djowie commented 6 years ago

I've got the same issue as the original poster has issued before. Lot of artifacts during the rtsp stream, everything is disabled except voor RTSP,HTTP and SSH. Does anyone know a solution to the annoying artifacts in the stream?

## Prefered NTP server
NTP_SERVER="pool.ntp.org"
## Start syslog (0/1)
ENABLE_SYSLOG=0
## Total Disconnect from Xioami servers, includes disable of streaming and OTA updater (0/1)
DISABLE_CLOUD=1
## Manage the camera via cloud but prevent online updates (0/1)
DISABLE_OTA=1
## Start telnet server at system boot (0/1)
ENABLE_TELNETD=0
## Start SSH server at system boot (0/1)
ENABLE_SSHD=1
## Start web server at system boot (0/1)
ENABLE_HTTPD=1
## Start FTP server at system boot (0/1)
ENABLE_FTPD=0
## Start samba server at system boot (0/1)
ENABLE_SAMBA=0
## Start local streaming server at system boot (0/1)
ENABLE_RTSP=1
max5962 commented 6 years ago

@ghoost82 Any news about night vision ? To retrive night vision i have to : ./S99auto_night_mode stop Stopping Auto Night Mode OK Then : ./night_mode.sh on ( personnal script to use shells functions in function.sh) But the quality is really bad

max5962 commented 5 years ago

@ghoost82 any news ?

gianky69 commented 5 years ago

@max5962: which commands do you send to Mijia 360 in order to move it via Home Assistant? I'm looking for these... Thanks

ziomik commented 5 years ago

No good streaming :( streaming: https://www.youtube.com/watch?v=jkQc2-Db6Bs

dcsg commented 5 years ago

@max5962 how did you setup the controls in home assistant? I tried to run the sh functions.sh motor left in the camera itself via ssh without success.