<div dir="ltr"><div><div><div>See mail on the topic with shmsink locking/blocking<br><br><a href="http://lists.freedesktop.org/archives/gstreamer-devel/2013-September/043049.html">http://lists.freedesktop.org/archives/gstreamer-devel/2013-September/043049.html</a><br>
<br></div>So far I have to set shm-size to 11 frames to make sure it always runs and not 6 as I wrote in the thread indicated above. It's a bit excessive for the changes Olivier has enabled.<br><br></div>Regards<br></div>
Peter Maersk-Moller<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 8, 2014 at 1:41 AM, Aleix Conchillo Flaqué <span dir="ltr"><<a href="mailto:aconchillo@gmail.com" target="_blank">aconchillo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Apr 3, 2014 at 11:42 AM, Cheolho Park <<a href="mailto:cheolhop@gmail.com">cheolhop@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to forward a video between two GStreamer pipelines by using<br>
> shmsink/shmsrc, and make the receiving side to encode the video.<br>
><br>
> The following is a command line for the sending side:<br>
><br>
> gst-launch-0.10 -v videotestsrc \<br>
> ! 'video/x-raw-yuv, format=(fourcc)"I420", framerate=30/1, width=1280,<br>
> height=720' \<br>
> ! shmsink socket-path=/tmp/xxx shm-size=10000000 wait-for-connection=0<br>
> sync=false<br>
><br>
> The following is a command line for the receiving side:<br>
><br>
> gst-launch-0.10 -v shmsrc socket-path=/tmp/xxx \<br>
> ! 'video/x-raw-yuv, format=(fourcc)"I420", framerate=30/1, width=1280,<br>
> height=720' \<br>
> ! x264enc<br>
> ! filesink location=/tmp/yyy<br>
><br>
> A problem is that nothing is recorded. It seems that the pipeline is not<br>
> rolling. The below shows the output message:<br>
><br>
<br>
Increase the shmsink size, let's say 100MB. shmsink is waiting for<br>
buffer acknowledgments from the shmsrc, if this one gets behind<br>
shmsink will block and if I'm not wrong this is what's happening if<br>
you use x264 with default values (it's not real time).<br>
<br>
Aleix<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>