#!/bin/bash #Issues: # Sometimes the pipeline will not begin prerolling and hangs. If this occurs # terminate and try again. GST_VAAPI_ALL_DRIVERS=1 gst-launch-1.0 -v rtmpsrc location="rtmp://localhost:1935/live/video" ! flvdemux name=demux \ demux.audio ! queue ! decodebin ! audioconvert ! fakesink \ demux.video ! queue ! decodebin ! videoconvert ! "video/x-raw,format=I420" ! v4l2sink device=/dev/video0