Failed in RTP and RTSP over HTTP

s_kamiya at toa.co.jp s_kamiya at toa.co.jp
Tue Apr 19 07:12:54 UTC 2016


Hi, Sebastian

Thank you for reply.

I've described the log. I am sorry in the long reply.
AXIS camera failed to authentication, TOA camera did not respond to the 
RTSP (OPTION request).

Please give me advice.

###### AXIS Camera ######

[Command]

.\gst-launch-1.0.exe -v rtspsrc debug=TRUE 
location=rtsph://10.107.14.2:80/axis-media/media.amp?videocodec=h264 
user-id=admin user-pw=guest latency=100 ! rtph264depay ! avdec_h264 ! 
autovideosink

[Log]

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to 
rtsph://10.107.14.2:80/axis-media/media.amp?videocodec=h264
Progress: (connect) Connecting to 
rtsph://10.107.14.2:80/axis-media/media.amp?videocodec=h264
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not 
open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6743): gst_rtspsrc_retieve_sdp(): 
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error).
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

[Packet]
First gst-launch was a Get request in the Basic authentication, but has 
failed to authenticate.
send1.GET /axis-media/media.amp?videocodec=h264 HTTP/1.0
recv1.401 Unauthorized

Next gst-launch was a Get request in the Digest authentication, but has 
failed to authenticate.
send2.GET /axis-media/media.amp?videocodec=h264 HTTP/1.0
recv2.401 Unauthorized


###### TOA Camera ######

[Command]

.\gst-launch-1.0.exe -v rtspsrc debug=TRUE 
location=rtsph://10.107.14.82:80/http/unicast/Profile_H264_1 user-id=xxx 
user-pw=xxx latency=100 ! rtph264depay ! avdec_h264 !  autovideosink

[Log]

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to 
rtsph://10.107.14.82:80/http/unicast/Profile_H264_1
RTSP request message 09E5FD08
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://10.107.14.82:80/http/unicast/Profile_H264_1'
   version: '1.0'
 headers:
   key: 'User-Agent', value: 'GStreamer/1.8.0'
   key: 'User-Agent', value: 'RealMedia Player Version 6.0.9.1235 
(linux-2.0-libc6-i386-gcc2.95)'
Progress: (open) Retrieving server options
   key: 'ClientChallenge', value: '9e26d33f2984236010ef6253fb1887f7'
   key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw=='
   key: 'GUID', value: '00000000-0000-0000-0000-000000000000'
   key: 'RegionData', value: '0'
   key: 'PlayerStarttime', value: '[28/03/2003:22:50:23 00:00]'
   key: 'ClientID', value: 'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'
 body:
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not 
read from resource.
Additional debug info:
gstrtspsrc.c(5448): gst_rtspsrc_try_send(): 
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

[Packet]
send1.GET /http/unicast/Profile_H264_1 HTTP/1.0
recv1.200 OK
send1.POST /http/unicast/Profile_H264_1 HTTP/1.0
      body → OPTIONS rtsp://10.107.14.82:80/http/unicast/Profile_H264_1 
RTSP/1.0 ...
recv2.No response


> > Hi, Nicola
> >
> > I have gotten the advice previously, I succeeded in the reception of 
the
> > "RTP and RTSP over HTTP" in gstreamer ver.1.8.0.
> >
> > I used the following command at that time.
> >
> > .\Gst-launch-1.0.exe -v rtspsrc debug = TRUE location =
> > rtsph://root:root@10.107.14.2:80 / axis-media / media.amp videocodec =
> > h264 latency = 100 ! rtph264depay ! avdec_h264 ! autovideosink
> >
> > However, depending on the camera manufacturers, it does not accept the
> > user name and password is embedded URL.
> > For example, TOA company's Onvif camera "N-C3120" does not accept this
> > URL.
> >
> > Please tell me how to tell a user name and password to the camera in 
other
> > ways that are not URL using the gst-launch.
> >
> > I tried the following command, but failed both AXIS and TOA.

> How are they failing? And what kind of authorization scheme are those
> two cameras implementing?

> --
> Sebastian Dr?ge, Centricular Ltd ? http://www.centricular.com
> [添付ファイル "signature.asc" は 神谷 茂治/TOA が削除しました] 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list