Problem setting with xiaomi xiaofang camera

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
korkin25
Posts: 1
Joined: Tue May 23, 2017 11:14 pm

Problem setting with xiaomi xiaofang camera

Post by korkin25 » Tue May 23, 2017 11:29 pm

hi*&

I have bought camera xiaomi xiaofang and added fang-hacks which provide rtsp protocol to the camera.

I can use openRTSP or mplayer to see stream from the camera out of box.

Below log of openRTSP:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Created new TCP socket 3 for connection
Connecting to 192.168.1.201, port 554 on socket 3...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.1.201/unicast RTSP/1.0
CSeq: 2
User-Agent: openRTSP (LIVE555 Streaming Media v2017.04.26)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, May 23 2017 23:18:14 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER


Sending request: DESCRIBE rtsp://192.168.1.201/unicast RTSP/1.0
CSeq: 3
User-Agent: openRTSP (LIVE555 Streaming Media v2017.04.26)
Accept: application/sdp


Received 741 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Date: Tue, May 23 2017 23:18:14 GMT
Content-Base: rtsp://192.168.1.201/unicast/
Content-Type: application/sdp
Content-Length: 579

v=0
o=- 1495577914599936 1 IN IP4 192.168.1.201
s=LIVE555 Streaming Media v2014.07.04
i=LIVE555 Streaming Media v2014.07.04
t=0 0
a=tool:LIVE555 Streaming Media v2014.07.04
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:LIVE555 Streaming Media v2014.07.04
a=x-qt-text-inf:LIVE555 Streaming Media v2014.07.04
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:956707
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=644029;sprop-parameter-sets=Z2RAKawsqAeAIn5U,aO44gA==
a=control:track1
m=audio 0 RTP/AVP 8
c=IN IP4 0.0.0.0
b=AS:956707
a=control:track2

Opened URL "rtsp://192.168.1.201/unicast", returning a SDP description:
v=0
o=- 1495577914599936 1 IN IP4 192.168.1.201
s=LIVE555 Streaming Media v2014.07.04
i=LIVE555 Streaming Media v2014.07.04
t=0 0
a=tool:LIVE555 Streaming Media v2014.07.04
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:LIVE555 Streaming Media v2014.07.04
a=x-qt-text-inf:LIVE555 Streaming Media v2014.07.04
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:956707
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=644029;sprop-parameter-sets=Z2RAKawsqAeAIn5U,aO44gA==
a=control:track1
m=audio 0 RTP/AVP 8
c=IN IP4 0.0.0.0
b=AS:956707
a=control:track2

Created receiver for "video/H264" subsession (client ports 48064-48065)
Created receiver for "audio/PCMA" subsession (client ports 42864-42865)
Sending request: SETUP rtsp://192.168.1.201/unicast/track1 RTSP/1.0
CSeq: 4
User-Agent: openRTSP (LIVE555 Streaming Media v2017.04.26)
Transport: RTP/AVP;unicast;client_port=48064-48065


Received 216 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Tue, May 23 2017 23:18:14 GMT
Transport: RTP/AVP;unicast;destination=192.168.1.100;source=192.168.1.201;client_port=48064-48065;server_port=6970-6971
Session: 68841E5B;timeout=65


Setup "video/H264" subsession (client ports 48064-48065)
Sending request: SETUP rtsp://192.168.1.201/unicast/track2 RTSP/1.0
CSeq: 5
User-Agent: openRTSP (LIVE555 Streaming Media v2017.04.26)
Transport: RTP/AVP;unicast;client_port=42864-42865
Session: 68841E5B


Received 216 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 5
Date: Tue, May 23 2017 23:18:14 GMT
Transport: RTP/AVP;unicast;destination=192.168.1.100;source=192.168.1.201;client_port=42864-42865;server_port=6972-6973
Session: 68841E5B;timeout=65


Setup "audio/PCMA" subsession (client ports 42864-42865)
Created output file: "video-H264-1"
Created output file: "audio-PCMA-2"
Sending request: PLAY rtsp://192.168.1.201/unicast/ RTSP/1.0
CSeq: 6
User-Agent: openRTSP (LIVE555 Streaming Media v2017.04.26)
Session: 68841E5B
Range: npt=0.000-


Received 251 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 6
Date: Tue, May 23 2017 23:18:14 GMT
Range: npt=0.000-
Session: 68841E5B
RTP-Info: url=rtsp://192.168.1.201/unicast/track1;seq=57017;rtptime=1858722530,url=rtsp://192.168.1.201/unicast/track2;seq=2049;rtptime=2957542542
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


But no ant success whan I try to use zoneminder.
Below tcpdump log of zoneminder session:

02:27:48.488155 IP nas.home.59350 > 192.168.1.201.http: Flags [S], seq 2819359841, win 29200, options [mss 1460,sackOK,TS val 541147402 ecr 0,nop,wscale 7], length 0
02:27:48.490274 IP 192.168.1.201.http > nas.home.59350: Flags [S.], seq 3755117152, ack 2819359842, win 5792, options [mss 1460,sackOK,TS val 3687 ecr 541147402,nop,wscale 1], length 0
02:27:48.490302 IP nas.home.59350 > 192.168.1.201.http: Flags [.], ack 1, win 229, options [nop,nop,TS val 541147402 ecr 3687], length 0
02:27:48.490439 IP nas.home.59350 > 192.168.1.201.http: Flags [P.], seq 1:93, ack 1, win 229, options [nop,nop,TS val 541147402 ecr 3687], length 92: HTTP: OPTIONS rtsp://192.168.1.201:80/unicast RTSP/1.0
02:27:48.496729 IP 192.168.1.201.http > nas.home.59350: Flags [.], ack 93, win 2896, options [nop,nop,TS val 3688 ecr 541147402], length 0
02:27:48.498985 IP 192.168.1.201.http > nas.home.59350: Flags [P.], seq 1:303, ack 93, win 2896, options [nop,nop,TS val 3688 ecr 541147402], length 302: HTTP: HTTP/1.0 501 Not Implemented

Can you help me?
thank you.

gmruiz
Posts: 1
Joined: Wed Jul 26, 2017 11:10 am

Re: Problem setting with xiaomi xiaofang camera

Post by gmruiz » Wed Jul 26, 2017 11:31 am

Hello,

I could configure a xiaofang camera with fang-hacks installed. This is my configuration:
General Tab->Source Type: FFmpeg
Source Tab->
Source path: rtsp://192.168.1.20/unicast
Remote Method: UDP
Capture Witch:1920
Capture Height:1080

Regards/Goyo.

ob1
Posts: 2
Joined: Sun Dec 27, 2015 5:26 am

Re: Problem setting with xiaomi xiaofang camera

Post by ob1 » Tue Aug 22, 2017 11:22 am

any ideas for ZM 1.29 which doesnt seem to have the UDP streaming option?

Edit: NVM...upgrading to 1.30 was a piece of cake. I too have my fang hacks cam working.

AfroUSA
Posts: 1
Joined: Sat Sep 16, 2017 4:38 pm

Re: Problem setting with xiaomi xiaofang camera

Post by AfroUSA » Sat Sep 16, 2017 4:48 pm

Hi there,
I have problem with connecting and displaying picture from 3 Xiaomi with Fang Hack.
This is window with camera view:
Image

This are my LOGs:
Image

Settings:
Image
Image

Thank you for any help.

loungelizard
Posts: 1
Joined: Sun Mar 11, 2018 9:07 am

Re: Problem setting with xiaomi xiaofang camera

Post by loungelizard » Sun Mar 11, 2018 9:10 am

ob1 wrote:
Tue Aug 22, 2017 11:22 am
any ideas for ZM 1.29 which doesnt seem to have the UDP streaming option?

Edit: NVM...upgrading to 1.30 was a piece of cake. I too have my fang hacks cam working.
Do you have any advice how to install 1.30 on a Rasbian installation? I get lost and stuck.

Any other way to get the cam working with 1.29?

Cheers, Florian

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests