gstreamer client pipeline to view video from AXIS M1054 Network Camera
Dale Johnson
djohnson at tplogic.com
Tue May 27 12:40:58 PDT 2014
The following pipeline works …
tpl at tpl-ThinkPad-T430s:~$ gst-launch-1.0 rtspsrc location=rtsp://192.168.0.186/axis-media/media.amp user-id=root user-pw=xxxxxxxxx latency=150 ! decodebin max-size-time=30000000000 ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.0.186/axis-media/media.amp
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
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
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2791): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2791): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
And video is displayed properly. However, I left the pipeline running over the 3-day weekend and you can see that eventually it failed with the displayed errors … and, of course, video was not being displayed after these errors. Can you advise parameters that will cause the pipeline to recover rather than stop functioning? And, or, advise further diagnostic problems that will let me understand and fix this problem?
Thanks,
From: Chuck Crisler [mailto:ccrisler at mutualink.net]
Sent: Friday, May 23, 2014 2:15 PM
To: Dale.Johnson at tplogic.com; Discussion of the development of and with GStreamer
Subject: Re: gstreamer client pipeline to view video from AXIS M1054 Network Camera
Here is a test pipeline of mine. This is for Linux.
gst-launch -vvv rtspsrc location=rtsp://$1:$2@$3 \
! queue ! rtph264depay ! ffdec_h264 ! ximagesink
$1 is the username
$2 is the password
$3 is the URL
So, for an Axis camera, location looks like 'rtsp://username:password@192.168.1.1:554/axis-media/media.amp
On Fri, May 23, 2014 at 5:01 PM, Dale Johnson <djohnson at tplogic.com> wrote:
I’m still working on figuring out gstreamer pipeline to view this stream described below. Any input would be appreciated.
Thanks,
Dale
Contents of sdp file for this stream are:
v=0
o=private 1343035391323762 1343035391323762 IN IP4 10.1.2.3
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=range:npt=0.000000-
m=video 50000 RTP/AVP 96
c=IN IP4 239.231.113.103/0
b=AS:50000
a=framerate:30.0
a=transform:1,0,0;0,1,0;0,0,1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-parameter-sets=Z0IAKeKQFAX/LgLcBAQGkHiRFQ==,aM48gA==
On Wed, 2014-05-21 at 18:09 -0400, Chuck Crisler wrote:
> I thought that Axis cameras usually implemented an RTSP server, so you
> simply connect as you would to any RTSP source.
So something like
gst-launch-1.0 playbin uri=rtsp://10.0.0.1/. <http://10.0.0.1/> ..
should work.
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com <http://www.centricular.com/>
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140527/a4bcffb6/attachment-0001.html>
More information about the gstreamer-devel
mailing list