Axis Customer Forum

It is currently Tue Sep 17, 2019 12:44 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Mar 06, 2019 8:05 am 

Joined: Thu Feb 28, 2019 1:41 am
Posts: 3
Hi all,

We are trying to pull the RTSP video stream from camera M1054. But got "403 forbidden" response from camera. While we can pull the RTSP video stream using VLC player on the same camera. I posted a ticket, ID: 828197.

We compared the difference of RTSP message between VLC and PA2 (our device model). Found that the only differences are:
1. there's "user-agent" header in VLC while no on PA2, then we tried to add "user-agent" as well. but the test result was same.
2. The client_port is different. Then we change our firmware, to be able to configure client_port as VLC. But result was same as well.

We don't know where was wrong, so we ask help on ticket, and post it here. If anyone could give us some idea, we would appreciate.

Thanks All


Top
 Profile  
 
PostPosted: Fri Mar 08, 2019 4:59 am 

Joined: Fri Nov 14, 2014 1:38 am
Posts: 740
What is the software that is pulling the stream?

Based on the limited information provided, the following are the best suggestion I could give.


Top
 Profile  
 
PostPosted: Fri Mar 08, 2019 5:47 am 

Joined: Thu Feb 28, 2019 1:41 am
Posts: 3
Here is the RTSP stream between VLC and Axis camera:

DESCRIBE rtsp://192.168.1.209:554/axis-media/media.amp RTSP/1.0
CSeq: 3
User-Agent: LibVLC/3.0.6 (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Content-Base: rtsp://192.168.1.209:554/axis-media/media.amp/
Date: Mon, 17 Oct 2016 13:10:08 GMT
Content-Length: 476

v=0
o=- 1476709808898568 1476709808898568 IN IP4 192.168.1.209
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=control:*
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:50000
a=framerate:10.0
a=transform:1.000000,0.000000,0.000000;0.000000,0.900000,0.000000;0.000000,0.000000,1.000000
a=control:trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-parameter-sets=Z0IAKeKQFAX/LgLcBAQGkHiRFQ==,aM48gA==

SETUP rtsp://192.168.1.209:554/axis-media/media.amp/trackID=1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.6 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP;unicast;client_port=53438-53439

RTSP/1.0 200 OK
CSeq: 4
Session: 29DF270D; timeout=60
Transport: RTP/AVP;unicast;client_port=53438-53439;server_port=50002-50003;ssrc=561ADBA7;mode="PLAY"
Date: Mon, 17 Oct 2016 13:10:08 GMT

PLAY rtsp://192.168.1.209:554/axis-media/media.amp/ RTSP/1.0
CSeq: 5
User-Agent: LibVLC/3.0.6 (LIVE555 Streaming Media v2016.11.28)
Session: 29DF270D
Range: npt=0.000-

RTSP/1.0 200 OK
CSeq: 5
Session: 29DF270D
Range: npt=0-
RTP-Info: url=rtsp://192.168.1.209:554/axis-media/media.amp/trackID=1;seq=45641;rtptime=3130841485
Date: Mon, 17 Oct 2016 13:10:09 GMT


Top
 Profile  
 
PostPosted: Fri Mar 08, 2019 5:51 am 

Joined: Thu Feb 28, 2019 1:41 am
Posts: 3
Here are the RTSP stream between our device PA2 and Axis camera:
DESCRIBE rtsp://192.168.1.209:554/axis-media/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 2
Content-Type: application/sdp
Content-Base: rtsp://192.168.1.209:554/axis-media/media.amp/
Date: Mon, 17 Oct 2016 13:39:08 GMT
Content-Length: 476

v=0
o=- 1476711548934194 1476711548934194 IN IP4 192.168.1.209
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=control:*
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:50000
a=framerate:10.0
a=transform:1.000000,0.000000,0.000000;0.000000,0.900000,0.000000;0.000000,0.000000,1.000000
a=control:trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-parameter-sets=Z0IAKeKQFAX/LgLcBAQGkHiRFQ==,aM48gA==

SETUP rtsp://192.168.1.209:554/axis-media/media.amp/trackID=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=1000-1001

RTSP/1.0 403 Forbidden
CSeq: 3
Date: Mon, 17 Oct 2016 13:39:08 GMT

PLAY rtsp://192.168.1.209:554/axis-media/media.amp/ RTSP/1.0
CSeq: 4
Range: npt=0.000-

RTSP/1.0 454 Session Not Found
CSeq: 4
Date: Mon, 17 Oct 2016 13:39:08 GMT


Top
 Profile  
 
PostPosted: Fri Mar 08, 2019 9:11 am 

Joined: Fri Nov 14, 2014 1:38 am
Posts: 740
Can you check your VMS ports "client_port=1000-1001"? The firewall may have closed the ports. Shutdown any firewall apps and Access control apps that may be in between and if it works, you have to look into the firewall.

If you are interested in further discussion, please contact me via Skype @ Cheng.Xin.SG


Top
 Profile  
 
PostPosted: Wed Mar 13, 2019 4:33 pm 

Joined: Fri Nov 14, 2014 1:38 am
Posts: 740
Just for record as communicated over skype.

Your apps did not specify the user-agent when sending the SETUP stream RTSP request. That is the cause of failure

1. VLC apps
SETUP rtsp://192.168.1.209:554/axis-media/media.amp/trackID=1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.6 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP;unicast;client_port=53438-53439


2. Your Apps.
SETUP rtsp://192.168.1.209:554/axis-media/media.amp/trackID=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=1000-1001

The article below is related to your issue.
https://trac.ffmpeg.org/ticket/2761

Suggested Solution
Use axis media control SDK to request the stream.

https://www.axis.com/en-sg/support/down ... ia-control

AXIS Media Control (AMC) | Axis Communications
https://www.axis.com
This will add the user-agent automatically


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group