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.
This commit is contained in:
Sebastian Dröge 2017-02-13 13:32:14 +02:00
parent dc56472777
commit 0102caf06d
2 changed files with 6 additions and 3 deletions

View file

@ -26,7 +26,9 @@
* <refsect2> * <refsect2>
* <title>Example launch lines</title> * <title>Example launch lines</title>
* |[ * |[
* 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. * ]| Send video to shm buffers.
* </refsect2> * </refsect2>
*/ */

View file

@ -27,8 +27,9 @@
* <title>Example launch lines</title> * <title>Example launch lines</title>
* |[ * |[
* gst-launch-1.0 shmsrc socket-path=/tmp/blah ! \ * gst-launch-1.0 shmsrc socket-path=/tmp/blah ! \
* "video/x-yuv, format=YUY2, color-matrix=sdtv, \ * "video/x-raw, format=YUY2, color-matrix=sdtv, \
* chroma-site=mpeg2, width=(int)320, height=(int)240, framerate=(fraction)30/1" ! autovideosink * chroma-site=mpeg2, width=(int)320, height=(int)240, framerate=(fraction)30/1" \
* ! queue ! videoconvert ! autovideosink
* ]| Render video from shm buffers. * ]| Render video from shm buffers.
* </refsect2> * </refsect2>
*/ */