0

I am using an AXIS P1347 Network Camera trying to stream a mpeg4 image using the RTSP URL rtsp://192.168.1.47/axis-media/media-amp?videocodec=mpeg4 which results in a RTSP/1.0 400 Bad Request error code. Please look at the output of my TestRTSPClient session below and let me know what I am doing incorrectly. TestRTSPClient is a 32 bit Microsoft Visual Studio C++ test program which exercises the libcurl API. Any help is greatly appreciated.


C:\Users\Administrator\Downloads>TestRTSPClient.exe rtsp://root:pass@192.168.1.4
7/axis-media/media.amp?videocodec=mpeg4
RTSP Proc Activate
Activate Called
Opening connection to 192.168.1.47, port 554...
Activate End
RTSP Proc In doeventloop
...remote connection opened
Sending request: DESCRIBE rtsp://root:pass@192.168.1.47/axis-media/media.amp?vid
eocodec=mpeg4 RTSP/1.0
CSeq: 2
User-Agent: ClickItCameraControlLib (LIVE555 Streaming Media v2014.05.14)
Accept: application/sdp


Received 247 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Digest realm="AXIS_00408CB5496E", nonce="000f8692Y74454910ff13
1f1dff234aaa61363525d1a57", stale=FALSE
WWW-Authenticate: Basic realm="AXIS_00408CB5496E"
Date: Tue, 28 Jul 2015 14:11:54 GMT


Resending...
Sending request: DESCRIBE rtsp://root:pass@192.168.1.47/axis-media/media.amp?vid
eocodec=mpeg4 RTSP/1.0
CSeq: 3
Authorization: Digest username="root", realm="AXIS_00408CB5496E", nonce="000f869
2Y74454910ff131f1dff234aaa61363525d1a57", uri="rtsp://root:pass@192.168.1.47/axi
s-media/media.amp?videocodec=mpeg4", response="8cda56c69d14829ee16869b4014836c7"

User-Agent: ClickItCameraControlLib (LIVE555 Streaming Media v2014.05.14)
Accept: application/sdp


Received 74 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 400 Bad Request
CSeq: 3
Date: Tue, 28 Jul 2015 14:11:54 GMT

[URL:"rtsp://root:pass@192.168.1.47/axis-media/media.amp?videocodec=mpeg4"]: Fai
led to get a SDP description: 400 Bad Request
[URL:"rtsp://root:pass@192.168.1.47/axis-media/media.amp?videocodec=mpeg4"]: Clo
sing the stream.
Pawan
  • 1,537
  • 1
  • 15
  • 19
Frank
  • 1,406
  • 2
  • 16
  • 42

1 Answers1

0

I just tested the following code on an Axis P1347 Network Camera trying to stream a mjpeg image using the RTSP protocol and it appears to be okay.

char httpUrlTemp[MAX_PATH * 2];
sprintf(httpUrlTemp, "http://%s/mjpg/%d/video.mjpg?resolution=%s&fps=%s", address.c_str(), m_nChannelID + 1, requiredResolution.c_str(), requiredFrameRate.c_str());
   m_httpUrl = httpUrlTemp;

Thank you very much.

steampowered
  • 11,809
  • 12
  • 78
  • 98
Frank
  • 1,406
  • 2
  • 16
  • 42