[Live-devel] H264 "PLAY"

Miguel Angel Arcos marcos at a5security.com
Thu Feb 25 01:07:51 PST 2010


Hi developers,

I'm trying to connect with an URL like this:
"rtsp://xxx.xxx.xxx.xxx:554/axis-media/media.amp?videocodec=h264".

I correctly do DESCRIBE and SETUP receiving "RTSP/1.0 200 OK" but after that
when I send "PLAY" I receive "RTSP/1.0 400 Bad Request". With Wireshark I've
been looking all the packets that I send and receive. All is correct I
think.

I use RTSPClient.cpp and I changed that function:

char const* RTSPClient::sessionURL(MediaSession const& session) const {
  char const* url = session.controlPath();
  if (url == NULL || strcmp(url, "*") == 0) url = fBaseURL;
  if (url == NULL || strchr(url, '?') != NULL) url = fBaseURL; /*New code*/
  return url;
}

I added that line because I tried connect using VLC and the difference
betwen PLAY command is:

VLC Send play with: "rtsp://xxx.xxx.xxx.xxx:554/axis-media/media.amp".
RTSPClient without my code sends:
"rtsp://xxx.xxx.xxx.xxx:554/axis-media/media.amp?videocodec=h264".

I changed to send the same than VLC.

Thanks in advance.

PD: I know that VLC not is a part of live555 but is fine to compare the
connection sequence.

-- 
Miguel Angel Arcos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100225/9f03d48a/attachment.html>


More information about the live-devel mailing list