<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12px"><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr">Hi gstreamer devels</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr"><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr">I am working on a project where I need to display a video with" alpha keying" a region of interest based on color  and run it over an image so the image under the region of interest is visible over the video. </div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr"><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr">
        
        
        


</div><div style="margin-bottom: 0cm; line-height: 100%;" class="" id="yui_3_16_0_1_1424622488477_2501">  gst-launch -e videomixer name=mix ! ffmpegcolorspace ! xvimagesink  
 videotestsrc pattern=0 ! video/x-raw-yuv, framerate=1/1, width=350,
height=250 !      textoverlay font-desc="Sans 24"
text="CAM1" valign=top halign=left shaded-background=true !
     videobox border-alpha=0 top=-200 left=-50 ! mix.   multifilesrc
location="drawing_total_mask_1.jpg"
caps="image/jpeg,framerate=1/1" ! jpegdec !     
textoverlay font-desc="Sans 26" text="Live from Pl"
halign=left shaded-background=true auto-resize=false !     
ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)AYUV ! mix.   </div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""> </div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">searching for it I found something like this which allows me to display the test video(<span style="line-height: 12px;" class="">videotestsrc</span> ) over the image but when I give an alternate video source it wont do that . </div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">The code I used to give my own source and the errors followed by it.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""> gst-launch -e videomixer name=mix ! ffmpegcolorspace ! xvimagesink    filesrc location = "asd.mp4" ! video/x-raw-yuv, framerate=1/1, width=350, height=250 !      textoverlay font-desc="Sans 24" text="CAM1" valign=top halign=left shaded-background=true !      videobox border-alpha=0 top=-200 left=-50 ! mix.   multifilesrc location=drawing_total_mask_1.jpg" caps="image/jpeg,framerate=1/1" ! jpegdec !      textoverlay font-desc="Sans 26" text="Live from Pl" halign=left shaded-background=true auto-resize=false !      ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)AYUV ! mix.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Setting pipeline to PAUSED ...</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Pipeline is PREROLLING ...</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">WARNING: from element /GstPipeline:pipeline0/GstTextOverlay:textoverlay0: Could not multiplex stream.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Additional debug info:</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">gsttextoverlay.c(1848): gst_text_overlay_video_event (): /GstPipeline:pipeline0/GstTextOverlay:textoverlay0:</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">received non-TIME newsegment event on video input</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">WARNING: from element /GstPipeline:pipeline0/GstTextOverlay:textoverlay1: Could not multiplex stream.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Additional debug info:</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">gsttextoverlay.c(1848): gst_text_overlay_video_event (): /GstPipeline:pipeline0/GstTextOverlay:textoverlay1:</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">received non-TIME newsegment event on video input</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter1: Filter caps do not completely specify the output format</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Additional debug info:</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">gstcapsfilter.c(393): gst_capsfilter_prepare_buf (): /GstPipeline:pipeline0/GstCapsFilter:capsfilter1:</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Output caps are unfixed: video/x-raw-yuv, framerate=(fraction)1/1, width=(int)350, height=(int)250, format=(fourcc){ AYUV, YUY2, Y444, UYVY, Y42B, YV12, I420, Y41B }</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">ERROR: pipeline doesn't want to preroll.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Setting pipeline to NULL ...</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">I am not able find what's right I am not doing to make it work.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">So to summarize</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">I want a video sourced by me  with an transparent alpha region , which when run on a image will display the image over the region of interest in video.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Any helps please.</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Thanks in advance</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style="">Krats</div><div id="yui_3_16_0_1_1424622488477_2279" dir="ltr" class="" style=""><br></div></div></body></html>