<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm trying to put together a green screen application with my Logitech C910 WebCam on Fedora 21. I've managed to get 1080p30 h264 video from the webcam to be displayed with gstreamer using the following command:</div><div><br></div><div>gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! \</div><div>    video/x-h264,width=1920,height=1080,framerate=30/1 ! \</div><div>    h264parse ! avdec_h264 ! xvimagesink sync=false</div><div><br></div><div>This is working great with nice and low latency. The next thing I want to do is Chroma Key-ing of the picture making certain colours transparent before I add an image / video behind the webcam picture. From what I've read I need to use the alpha filter to achieve this. From looking at gst-inspect I can see that it takes in video/x-raw and outputs video/x-raw. The avdec_h264 element outputs video/x-raw so it looks like I should be able to do:</div><div><br></div><div>gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! \</div><div>    video/x-h264,width=1920,height=1080,framerate=30/1 ! \</div><div>    h264parse ! avdec_h264 ! alpha method=green ! \</div><div>    xvimagesink sync=false</div><div><br></div><div>However whenever I run that command I get the following output:</div><div><br></div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is live and does not need PREROLL ...</div><div>Setting pipeline to PLAYING ...</div><div>New clock: GstSystemClock</div><div>Redistribute latency...</div><div>ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.</div><div>Additional debug info:</div><div>gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:</div><div>streaming task paused, reason not-negotiated (-4)</div><div>Execution ended after 0:00:00.437613774</div><div>Setting pipeline to PAUSED ...</div><div>Setting pipeline to READY ...</div><div>Setting pipeline to NULL ...</div><div>Freeing pipeline ...</div><div><br></div><div>Can anyone tell me what I'm missing and why this isn't working correctly?</div><div><br></div><div>Thanks in advance for any help,</div><div><br></div><div>Mike</div></div>