To capture the stream traffic while playing you should insert a 'T' into the pipeline with one branch doing the display and the other writing to a file. Here is an example from Atish Nasar:<br><br>Here's an example:<br>
<br>gst-launch filesrc location=source.file ! tee name=tp \<br>tp. ! queue ! filesink location=destination1.file \<br>tp. ! queue ! filesink location=destination2.file<br><br>The queues are to prevent deadlocking.<br><br>
Insert the 'T' at the appropriate place in your pipeline. <br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 12:14 PM, Gary Thomas <span dir="ltr"><<a href="mailto:gary@mlbassoc.com" target="_blank">gary@mlbassoc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2013-01-08 09:53, Gary Thomas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying to run the gst-streaming-server, using one of the<br>
sample streaming sources provided with that package. It sort<br>
of works, but the stream(s) are erratic and often just stop for<br>
long periods of time. The stream has a time overlay and what<br>
I see is the timer stop and then when the video starts playing<br>
again, the timer carries on just where it left off. For example,<br>
it might pause at time 05.07 sec and wait 60 seconds before<br>
playing anything else and when it does, the timer continues<br>
right at 05.07 seconds and counting. However, I can see HTTP<br>
traffic between my web browser and the server even when the<br>
video is stalled, so I'm really confused!<br>
<br>
I also get very different displays depending on the browser.<br>
FireFox (17.0.1) seems to stall less frequently, but it doesn't<br>
even show the timer overlay (that one really stumps me). Google<br>
Chrome (20.0.1132.47 Ubuntu 12.04 (144678)) stalls a lot but<br>
does show the timer.<br>
<br>
Here's the source pipeline being used with the streaming server:<br>
<br>
gst-launch -q \<br>
videotestsrc is-live=true ! \<br>
video/x-raw-yuv,format=\(<u></u>fourcc\)I420,width=320,height=<u></u>180 ! \<br>
cairotimeoverlay ! \<br>
vp8enc ! \<br>
queue ! \<br>
webmmux streamable=true name=mux ! \<br>
shout2send ip=127.0.0.1 port=80 mount=stream0 \<br>
audiotestsrc volume=0.1 wave=ticks is-live=true ! \<br>
vorbisenc ! \<br>
queue ! \<br>
mux.audio_%d<br>
<br>
Any ideas what's going on and how to fix it? I need to be<br>
able to stream video to a web browser (directly using HTML5)<br>
so other streaming methods like RTSP aren't really viable.<br>
</blockquote>
<br></div></div>
A little more data - if I kill the streaming source while the<br>
stream is still active on my browser (but stalled), the stall<br>
breaks and many seconds of video start playing with no glitches!<br>
<br>
To try and understand this a bit more, I'd like to capture the<br>
source data [stream] to a file. Can someone recommend how to<br>
expand the pipeline above to still send the stream but also save<br>
the .webm file?<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
------------------------------<u></u>------------------------------<br>
Gary Thomas | Consulting for the<br>
MLB Associates | Embedded world<br>
------------------------------<u></u>------------------------------<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</div></div></blockquote></div><br>