From 0102caf06ddaa92ef4633924040464dcd9257529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 13 Feb 2017 13:32:14 +0200 Subject: [PATCH] shm: Change example pipelines to something that actually works Enforce exactly the same raw video format on both sides, include a videoconvert and queue before the video sink and make the shm area a little bit bigger so that things don't get stuck. --- sys/shm/gstshmsink.c | 4 +++- sys/shm/gstshmsrc.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/shm/gstshmsink.c b/sys/shm/gstshmsink.c index a44097b6ec..c3514c7829 100644 --- a/sys/shm/gstshmsink.c +++ b/sys/shm/gstshmsink.c @@ -26,7 +26,9 @@ * * Example launch lines * |[ - * gst-launch-1.0 -v videotestsrc ! shmsink socket-path=/tmp/blah shm-size=1000000 + * gst-launch-1.0 -v videotestsrc ! "video/x-raw, format=YUY2, color-matrix=sdtv, \ + * chroma-site=mpeg2, width=(int)320, height=(int)240, framerate=(fraction)30/1" \ + * ! shmsink socket-path=/tmp/blah shm-size=2000000 * ]| Send video to shm buffers. * */ diff --git a/sys/shm/gstshmsrc.c b/sys/shm/gstshmsrc.c index 59fe44d09c..86955602ae 100644 --- a/sys/shm/gstshmsrc.c +++ b/sys/shm/gstshmsrc.c @@ -27,8 +27,9 @@ * Example launch lines * |[ * gst-launch-1.0 shmsrc socket-path=/tmp/blah ! \ - * "video/x-yuv, format=YUY2, color-matrix=sdtv, \ - * chroma-site=mpeg2, width=(int)320, height=(int)240, framerate=(fraction)30/1" ! autovideosink + * "video/x-raw, format=YUY2, color-matrix=sdtv, \ + * chroma-site=mpeg2, width=(int)320, height=(int)240, framerate=(fraction)30/1" \ + * ! queue ! videoconvert ! autovideosink * ]| Render video from shm buffers. * */