shmsink changes from 1.0.10 to 1.1.4
Peter Maersk-Moller
pmaersk at gmail.com
Wed Sep 18 16:26:26 PDT 2013
Hi Olivier
Tried your pipelines and it works (ie. not locking). However experimented a
bit further and ended up with these two pipelines
gst-launch-1.0 -v videotestsrc ! $RAWVIDEO ! queue ! identity ! shmsink
wait-for-connection=1 socket-path=/tmp/tmpsock shm-size=15000000 sync=true
gst-launch-1.0 shmsrc socket-path=/tmp/tmpsock ! $RAWVIDEO ! queue !
fakesink
Now if I first define RAWVIDEO as shown below:
RAWVIDEO='video/x-raw, format=(string)I420, width=(int)1280,
height=(int)720, framerate=(fraction)30/1'
Then around 9-10 frames give or take are acknowledged in shmpipe.c before
freezing. 15000000 is 10.8 frames in that size in I420.
If i increase shm-size to shm-size=20000000, then it will run without
freezing. And I can't see why.
On Wed, Sep 18, 2013 at 11:29 PM, Olivier Crête <olivier.crete at collabora.com
> wrote:
> Hi,
>
> On Wed, 2013-09-18 at 22:03 +0200, Peter Maersk-Moller wrote:
>
> > It turns out that GStreamer 1.1.4 is a bit more pedantic about timing
> > compared to 1.0.x and 0.10. The following pipeline will use the shared
> > memory area and then freeze in 1.1.4 while working in 1.0.x and 0.10
> >
> > gst-launch-1.0 -v videotestsrc is-live=true ! $RAWVIDEO ! queue !
> > identity ! shmsink socket-path=/tmp/feed1-control-pipe
> > shm-size=20000000 wait-for-connection=0 sync=true
> >
> >
> > However if you add 'do-timestamp=true' to videotestsrc, it will flow
> > again, also in 1.1.4.
> >
> > gst-launch-1.0 -v videotestsrc is-live=true do-timestamp=true !
> > $RAWVIDEO ! queue ! identity ! shmsink
> > socket-path=/tmp/feed1-control-pipe shm-size=20000000
> > wait-for-connection=0 sync=true
>
> I'm curious to know how your pipeline is different from these ones which
> work fine for me using git master:
>
> gst-launch-1.0 -v videotestsrc ! 'video/x-raw, format=(string)I420,
> width=(int)320, height=(int)240, framerate=(fraction)30/1' ! queue !
> identity ! shmsink wait-for-connection=1 socket-path=/tmp/tmpsock
> shm-size=20000000 sync=true
>
> gst-launch-1.0 shmsrc socket-path=/tmp/tmpsock ! 'video/x-raw,
> format=(string)I420, width=(int)320, height=(int)240,
> framerate=(fraction)30/1' ! xvimagesink
>
>
> --
> Olivier Crête
> olivier.crete at collabora.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/20130919/1b5e7414/attachment.html>
More information about the gstreamer-devel
mailing list