Senior Member

Rank: 2

Credits
88
Device
Redmi Note 2
Online time
3 Hours
Send PM

[Tips & Tutorials] Xiaomi Ants Xiaoyi Smart Camera - Adding RTSP support to any firmware version

[ Promote]
103009 223 |
07:41, Dec-21-2015 | From PC
|
|
Go to reply no.
This post was edited by fly4away at 19:53, Dec-24-2015

Hello! Here is the short instruction how to setup RTSP, ftp, telnet and http access to Ants Camera.

Also you will have correct onscreen time in archive videos and nice yellow marks for recorded pieces on time bar and correct  rewind (last feature available only for Android users).


Working on 2.0, 2.1 hardware versions and firmwares from 1.8.3.4J to 1.8.5.1N inclusive.

  • Put sdcard to cardreader, connect it to your computer
  • Download and extract this archive http://ge.tt/5l7Om3U2/v/2 , copy "test" directory to sdcard root
  • Edit file X:\test\equip_test.sh with notepad or your favorite text editor. Change Line 10 "mytz=UTC+3"  to  your timezone. Save and close file.
  • Safetly detach sdcard, put it into your camera, it will reboot twice
  • If you got an Android, use this app instead default one: http://ge.tt/5l7Om3U2/v/1  to get correctly working rewind.


Now you can access your camera with telnet, ftp (login: root, password: 1234qwer), http and
rtsp (rtsp://<CameraIP>:554/ch0.h264)


You can find camera IP  in your WiFi router admin interface - just look for a new client with "ANTSCAM-0000-xxxxx" name.

Its a linux inside the camera so you can login to camera with telnet, change you password by "passwd" command and use many linux utilites if you know how.

With rtsp working you can attach camera to qnap/synology, watch stream from you PC/Mac by VLC http://www.videolan.org or using alternative android clients like "tinyCam Monitor" and "IP Cam Viewer"


After this modification official app will still works as usual, mod just adding additional features.




test-rtspfix-07.zip

179.91 KB, Downloads: 3041, Download cost : Experience -1

Favorite32 Share

Rated by 15 people   Experience Prestige Reason  

ozzy1925 + 1 Thanks!
KaelViktor + 1 Fantastic!
Mi_1596290776 + 1 Great!
bartaspoz + 1 Awesome!
pibcs81 + 1 Fantastic!
a3999jose + 1 Thanks!
TestUser007 + 1 Great!
vitapin + 1 Awesome!
NickRider + 1 Thanks!
ibakas + 1 Thanks!
oddin64 + 1 Awesome!
Nomis38 + 1 Awesome!
wiraone + 1 Fantastic!
Paulo_Dias + 2 Awesome!
sepneela + 10 + 3 Fantastic!

Experience +25  Prestige +3  View Rating Log

Junior Member

Rank: 1

Credits
22
Device
0
Online time
0 Hours
Send PM
10:36, Jun-02-2016 | From PC
|
Is it possible to add authentification to RTSP fix/add-on? I want to use the camera on public internet, but need some sort of security.

Thank you.

Platinum Member

Rank: 4

Credits
3011
Device
Mi 4
Online time
171 Hours
Send PM

Mi WiFi Router MiniMi Power BankMi In-Ear HeadphonesMi BandFantastic!Awesome!MIUI 2016MIUI 7MIUI 8Xiaomi Mi 4Mi 4cMi PadThanksgiving Day1 Million Forum MembersFan Of MIUI IndiaHappy New YearMerry ChristmasXiaomi 5th AnniversaryMIUI Fan from IndiaXiaomi 6th AnniversaryI Love Mi BunnyAlpaca Mi Bunny Gamer Mi BunnyMr. DependableAndroid GuruHumor MasterForum Contest LoverMIUI FollowerWallpaper ExpertAndroid ElfOTA FeedbackMi Bunny Game Master Updates LoverDebate MasterMIUI Medals CollectorYouth Pledge

03:00, Jan-08-2016 | From PC
|
This post was edited by Ajinkyajin at 00:38, Jan-08-2016

For anyone facing difficulty in setting the timezone,kindly refer this method:
The camera firmware syncs time with chinese servers,so Chinese time zone is:GMT+8
So to set it to your timezone use the formula:Chinese TZ-Your Country TZ
For e.g:For India TZ is GMT+5:30
So, settings should be: GMT+(8-5:30)
                                        =GMT+2:30

Now, Change the 10th line of the script to mytz=UTC+2:30.
If due to some reason the script dont work, try this in telnet:
echo "GMT+2:30" > /etc/TZ

Hope it helps.
AK-The way I am.

Senior Member

Rank: 2

Credits
38
Device
0
Online time
8 Hours
Send PM
01:29, Jan-08-2016 | Via mobile
|
This post was edited by Grohwl at 01:31, Jan-08-2016

@mhnk : just do +8 - (your GMT)  If ur in gmt+3:30  U type : echo gmt+4:30 > /etc/TZ  U may do some trial error, it applied directly to the cam after u type enter.  Ive tried gmt+7, gmt-1  before  i got my correct gmt+1 :v  

@Ajinkyajin : i also use IR china ver. To me M and N ver didnt work well with my cam. I can telnet but no rtsp. And the timeline too, it just wont record any detection.  Everytg's working fine with L ver with rtspfix03 now.  

Junior Member

Rank: 1

Credits
21
Device
0
Online time
2 Hours
Send PM
19:38, Jan-07-2016 | From PC
|
Thanks a lot for the file, but how can we set the time zone for "Half an Hour" differing time zones? For example GMT+3:30?

Senior Member

Rank: 2

Credits
88
Device
Redmi Note 2
Online time
3 Hours
Send PM
 Author| 18:56, Dec-22-2015 | From PC
|
JTKP replied at 2015-12-22 03:31
Hi,
Thanks for the info, I am new to this, just wondering:
1) Can we change the 'login' and 'pss' ? ...

1) Yes, just login to camera by telnet and type passwd. Camera will ask you for new password twice.

2) Yes, you should look for camera IP address in you WiFi router admin interface.
Camera client will have name like "ANTSCAM-0000-ba9732"
Then just press + button in "IP Cam Viewer", choose "Generic URL", choose "Generic RTSP over TCP", in URL field type rtsp://<cameraIP>:554/ch0.h264
You can also use tinyCam Monitor android app or VLC to watch camera stream on PC/MAC

3) Yes, official app will works as usual.

Super moderator

Happy to Help!! **

Rank: 8Rank: 8

Credits
291807
Device
Mi MIX
Online time
3144 Hours
Send PM

Mi Water PurifierMi Power StripMi VR HeadsetMi TV 70Mi Air PurifierMijia Story TellerMi MIXMi WiFiMi Yi CameraMagic CubeMi Selfie StickMijia Smart ShoesMijia Mi Bunny RobotMi USB FanMi  BunnyMi WiFi Router MiniMi Power BankMi In-Ear HeadphonesUnlock MedalMi Band 2Mi HomeMi WiFi RouterMi BandMi HeadphonesMi T-ShirtMi Bluetooth SpeakerMi Bluetooth Canon SpeakerMi Power Bank 10000MAH Mi KeyYeelight Bedside LampMi VRMijia Smart PTZ CameraMijia Electric ScooterXiaomi 6 LaunchMijia VR Play 2Mi ScaleNinebot MiniXiaomi 7th AnniversaryMIUI 7MIUI 2016Awesome!AnTuTuMIUI 2015MIUI 6MIUI Devices ContestMIUI 8FlashholicMarshmallowFantastic!I Love MIUIRedmi 2Mi 4iMi MIXRedmi Note 2Xiaomi Mi 4Mi Note ProRedmi NoteMi PadRedmi 3SMi 4cMi TVRedmi 1SRedmi Note 4MIUI 6th AnniversaryMi Live MedalMIUI 300 WeeksOlympics MedalMIUI Forum AppMIUI Fan From Myanmar5 Million Forum Posts1300K Forum Members1800K Forum MembersUEFA EURO MedalPokemon Master Medal1400K Forum Members1500K Forum MembersMIUI Fan From PhilippinesMalaysia AnniversaryMIUI 5th Anniversary600K Forum MembersXiaomi 5th AnniversaryHappy New YearMIUI 100 Million Users700K Forum Members800K Forum Members1 Million Forum MembersXiaomi 6th AnniversaryFan of MIUI MyanmarMerry Christmas900K Forum MembersHappy Valentine's DayFan Of MIUI BangladeshFan Of MIUI IndiaMIUI Fan from MalaysiaFan Of MIUI GreeceMIUI Fan From Brazil1900K Forum MembersMIUI Fan From SingaporeHilal Ramadan Diwali Thanksgiving DayHappy DiwaliMid-Autumn FestivalMIUI Fan from IndiaMIUI World TourAtaturk MourningMIUI Font LoverI Love 2016Rocket to FutureRooster Year of 20172100K Forum MembersMIUI Marathon MedalMIUI Weekly PollSuper WednesdayWomen's Day MedalSuper Saturday1 Million Forum App InstallsMIUI 2017Super TuesdaySuper FridaySingapore Merlion MedalSurge S1Super SundayRingolicious Medal3500K Forum MembersMIUI Lucky Friday300K Forum Members90000 Forum MembersFan Of MIUI Poland5 Million Forum App InstallsPuzzle MasterMIUI 9Happy Holi Medal1st AnniversaryMIUI SMIUI 20 Million UsersMIUI PMIUI Happy MedalFan Of MIUI Russia3 Million Forum MembersSuper Thursday10 Million Forum PostsHappy Singles' Day100k Forum MembersSuper MondayI Love Mi BunnySummer Mi BunnyGamer Mi BunnyAlpaca Mi Bunny MiPopMIUI Device TeamMIUI ReviewBlack SharkGold Super ModeratorMIUI Halloween 2018Diamond Super Moderator13 Million Forum MembersDiscuss HereMIUI Weekly Devices QuizSurprise5 Million Forum MembersXiaomi 8th AnniversaryOreoMIUI 8th AnniversaryMIUI G+ FollowerSuper ModeratorPioneer of MIUI English Forum Ringtone Star Mi Lover MedalStar Of TechnologyMaster Of TechnologyStar Of IconsWallpaper StarTechnology GuruDie-hard MIUI FanOTA FeedbackTheme TalentMost Active MIUIerIndia Independence DayMIUI Halloween 2017MIUI SuperstarMIUI ExpertApp TalentApp StarMIUI KingMi Story TellerMi Bunny Game Master MIUI Twitter FollowerForum Contest LoverScroll Of WisdomRedmi Quiz Master2017 Annual AwardsMIUI FB FollowerMIUI Translation ContributorMi TalentAndroid ElfWallpaper ExpertYouth PledgeMIUI Android 4.4 KitKatMr. DependableMIUI FollowerMIUI Medals CollectorUpdates LoverAndroid GuruDebate MasterStar Of MIUI Device TeamHumor MasterMIUI Photography Guru

10:25, Dec-21-2015 | From PC
|
Thanks for share
This guide very helpful for Smart camera users

Junior Member

Rank: 1

Credits
22
Device
0
Online time
1 Hours
Send PM
01:58, Dec-22-2015 | From PC
|
Thank you for the tip it very helpful :D

Junior Member

Rank: 1

Credits
21
Device
0
Online time
1 Hours
Send PM
03:31, Dec-22-2015 | From PC
|
Hi,
Thanks for the info, I am new to this, just wondering:
1) Can we change the 'login' and 'pss' ? If can't, is it save? Since everyone using the same Login details.
2) So now I can use it with 'IP Cam Viewer' apps?
- What to fill in when add in camera
   Host/IP
   Port#
   User
   Pswd

3) After this can we still access our Cam via the official apps?

Many thanks

Senior Member

Rank: 2

Credits
75
Device
Redmi Note 3G
Online time
15 Hours
Send PM
09:07, Dec-22-2015 | From PC
|
Wow what a such good news. i Hope it will works on my camera.

Big hug and thumbs up for ur sharing.



Junior Member

Rank: 1

Credits
21
Device
0
Online time
1 Hours
Send PM
03:00, Dec-23-2015 | From PC
|
fly4away replied at 2015-12-22 18:56
1) Yes, just login to camera by telnet and type passwd. Camera will ask you for new password twice ...

Many Thanks!
Will try out!

Senior Member

Rank: 2

Credits
12
Device
Redmi Note 2 Prime
Online time
6 Hours
Send PM

1 Million Forum Members

09:52, Dec-23-2015 | Via mobile
|
thanks

Senior Member

Rank: 2

Credits
47
Device
0
Online time
5 Hours
Send PM

Alpaca Mi Bunny

15:29, Dec-23-2015 | Via mobile
|
thanks

Senior Member

Rank: 2

Credits
47
Device
0
Online time
5 Hours
Send PM

Alpaca Mi Bunny

18:23, Dec-23-2015 | Via mobile
|
thanks it's work

Credits Management

Quick Reply Top Return to the list