I am in asp.net C# and I want to get an RTSP stream from axis camera tunneled over HTTP. For this I am following axis api documentation (page 16 to onwards). I issued HTTP requests to camera with authorization header and RTSP Describe
command was base 64 encoded and sent to the camera URL through POST. Here is the HTTP request.
POST http://195.29.168.2:20000/axis-media/media.amp HTTP/1.1
User-Agent: Fiddler
Authorization: Basic VXNlcjpDQG1VNTNy
Host: 195.29.168.2:20000
Content-Length: 214
Content-Type: application/x-rtsp-tunnelled
[Base 64 encoded Describe command]
DESCRIBE rtsp://195.29.168.2:20000/axis-media/media.amp
?videocodec=h264&resolution=640x480 RTSP/1.0\r\n
CSeq: 0\r\n
User-Agent: Axis AMC\r\n
Accept: application/sdp\r\n
I intend to get trackId parameter from Describe
command and then use it in subsequent Setup
command to establish the session with server but every time I send this request, 400 (bad request) parameter is sent by the camera. What am i doing wrong?
Note: All requests were issued from fiddler