mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
dc56472777
commit
0102caf06d
2 changed files with 6 additions and 3 deletions
|
@ -26,7 +26,9 @@
|
|||
* <refsect2>
|
||||
* <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.
|
||||
* </refsect2>
|
||||
*/
|
||||
|
|
|
@ -27,8 +27,9 @@
|
|||
* <title>Example launch lines</title>
|
||||
* |[
|
||||
* 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.
|
||||
* </refsect2>
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue