I am unable to get compositor to work when mixing two video streams. The simplest case is to merge two test video sources together, eg:
gst-launch-1.0 compositor name=comp sink_1::xpos=640 ! queue ! videoconvert ! videoscale ! x264enc ! mp4mux ! filesink location=/tmp/testcomp.mp4 -e \
videotestsrc pattern=snow ! videorate ! video/x-raw,width=640,height=480,framerate=10/1,format=RGBx ! queue ! comp.sink_0 \
videotestsrc pattern=pinwheel ! videorate ! video/x-raw,width=640,height=480,framerate=10/1,format=RGBx ! queue ! comp.sink_1
When viewing the output video in the file browser you can see in the thumbnail the two test patterns, but when playing the video back it is just black.
If I don’t use compositor and just encode a single test source everything is ok.
gst-launch-1.0 videotestsrc pattern=snow ! videorate ! video/x-raw,width=640,height=480,framerate=10/1 ! videoconvert ! videoscale ! x264enc ! mp4mux ! filesink location=/tmp/testcomp-sing.mp4 -e
Do you get a black screen video from the top compositor command? Any ideas on how to fix this?