shmsrc and x264enc do not work together
Peter Maersk-Moller
pmaersk at gmail.com
Tue Apr 8 01:50:50 PDT 2014
See mail on the topic with shmsink locking/blocking
http://lists.freedesktop.org/archives/gstreamer-devel/2013-September/043049.html
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.
Regards
Peter Maersk-Moller
On Tue, Apr 8, 2014 at 1:41 AM, Aleix Conchillo Flaqué <aconchillo at gmail.com
> wrote:
> On Thu, Apr 3, 2014 at 11:42 AM, Cheolho Park <cheolhop at gmail.com> wrote:
> > Hi,
> >
> > I am trying to forward a video between two GStreamer pipelines by using
> > shmsink/shmsrc, and make the receiving side to encode the video.
> >
> > The following is a command line for the sending side:
> >
> > gst-launch-0.10 -v videotestsrc \
> > ! 'video/x-raw-yuv, format=(fourcc)"I420", framerate=30/1, width=1280,
> > height=720' \
> > ! shmsink socket-path=/tmp/xxx shm-size=10000000 wait-for-connection=0
> > sync=false
> >
> > The following is a command line for the receiving side:
> >
> > gst-launch-0.10 -v shmsrc socket-path=/tmp/xxx \
> > ! 'video/x-raw-yuv, format=(fourcc)"I420", framerate=30/1, width=1280,
> > height=720' \
> > ! x264enc
> > ! filesink location=/tmp/yyy
> >
> > A problem is that nothing is recorded. It seems that the pipeline is not
> > rolling. The below shows the output message:
> >
>
> Increase the shmsink size, let's say 100MB. shmsink is waiting for
> buffer acknowledgments from the shmsrc, if this one gets behind
> shmsink will block and if I'm not wrong this is what's happening if
> you use x264 with default values (it's not real time).
>
> Aleix
> _______________________________________________
> 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/20140408/47ab9839/attachment.html>
More information about the gstreamer-devel
mailing list