RTSP/ONVIF/gstreamer

kai666_73 kai66673 at mail.ru
Fri Mar 25 12:52:32 UTC 2016


Hi.
how to extract ONVIF-metadata from RTSP-source?

So, by teams 
*gst-launch-1.0 rtspsrc
location="rtsp://user:pass@xxx.xxx.xxx.xx:ppp/somesrc" debug=true !
fakesink*

received the SDP-package description
...
v=0
o=- 1188340656180883 1 IN IP4 192.168.0.4
s=Session streamed with GStreamer
i=rtsp-server
t=0 0
a=tool:GStreamer
a=type:broadcast
a=control:*
a=range:npt=now-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=control:stream=0
a=fmtp:96 sprop-parameter-sets=Z0IAH+KQCgC3YC3AQEB4eJEV,aM48gA==
m=application 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 vnd.onvif.metadata/90000
a=control:stream=1
sdp packet 0x7fc330012610:
...

Problem is executing the command
*gst-launch-1.0 rtspsrc
location="rtsp://user:pass@xxx.xxx.xxx.xx:ppp/somesrc"  ! application/x-rtp,
media=application ! fakesink dump=true -vvv*
causes an error:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://...
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 0
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: latency = 2000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: ntp-sync =
false
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager:
use-pipeline-clock = false
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager:
drop-on-latency = false
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: buffer-mode =
Slave receiver to sender clock
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = application/x-rtp,
media=(string)application
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_src_0_147070460_96:
caps = application/x-rtp, media=(string)video, payload=(int)96,
clock-rate=(int)90000, encoding-name=(string)H264,
sprop-parameter-sets=(string)"Z0IAH+KQCgC3YC3AQEB4eJEV\,aM48gA\=\=",
a-tool=(string)GStreamer, a-type=(string)broadcast,
clock-base=(uint)1405316237, seqnum-base=(uint)27686, npt-start=(guint64)0,
play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_147070460_96:
caps = application/x-rtp, media=(string)video, payload=(int)96,
clock-rate=(int)90000, encoding-name=(string)H264,
sprop-parameter-sets=(string)"Z0IAH+KQCgC3YC3AQEB4eJEV\,aM48gA\=\=",
a-tool=(string)GStreamer, a-type=(string)broadcast,
clock-base=(uint)1405316237, seqnum-base=(uint)27686, npt-start=(guint64)0,
play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_147070460_96.GstProxyPad:proxypad4:
caps = application/x-rtp, media=(string)video, payload=(int)96,
clock-rate=(int)90000, encoding-name=(string)H264,
sprop-parameter-sets=(string)"Z0IAH+KQCgC3YC3AQEB4eJEV\,aM48gA\=\=",
a-tool=(string)GStreamer, a-type=(string)broadcast,
clock-base=(uint)1405316237, seqnum-base=(uint)27686, npt-start=(guint64)0,
play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_src_0_147070460_96.GstProxyPad:proxypad3:
caps = application/x-rtp, media=(string)video, payload=(int)96,
clock-rate=(int)90000, encoding-name=(string)H264,
sprop-parameter-sets=(string)"Z0IAH+KQCgC3YC3AQEB4eJEV\,aM48gA\=\=",
a-tool=(string)GStreamer, a-type=(string)broadcast,
clock-base=(uint)1405316237, seqnum-base=(uint)27686, npt-start=(guint64)0,
play-speed=(double)1, play-scale=(double)1
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Internal
data flow error.
Additional debug info:
gstrtspsrc.c(4587): gst_rtspsrc_loop ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 0:00:02.027331208
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

any suggestions?..



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-ONVIF-gstreamer-tp4676555.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list