videomixer2, videobox Caps not compatible with other pads' caps
art vanderhoff
gstream at ccc2.com
Sat Nov 30 23:03:28 PST 2013
Hello all,
I am having some trouble figuring out why changing a videobox size causes
Caps not compatible with other pads' caps
if I run this pipeline and make adjustments to videobox, it works as
expected, being able to position the videobox at x/y.
GST_DEBUG=2 gst-launch \
uridecodebin uri=file:///home/content/aaa.mp4 download=false !
ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,format=(fourcc)I420,width=200,height=200,framerate=(fraction)25/1"
\
! videobox border-alpha=0 top=-100 left=-100 ! mix. \
videomixer2 background=black name=mix \
! ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,width=640,height=352,framerate=(fraction)25/1" \
! ffmpegcolorspace ! x264enc pass=pass1 threads=0 bitrate=900
tune=zerolatency ! flvmux name=mux streamable=true \
! filesink location=/home/content/out/zzz.mp4
Now if I add a 2nd input and leave videobox as 0,0,0,0 on both, the
videoscale works as expected and outputs as expected
GST_DEBUG=2 gst-launch \
uridecodebin uri=file:///home/content/aaa.mp4 download=false !
ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,format=(fourcc)I420,width=200,height=200,framerate=(fraction)25/1"
\
! videobox border-alpha=0 top=0 left=0 ! mix. \
videomixer2 background=black name=mix \
! ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,width=640,height=352,framerate=(fraction)25/1" \
! ffmpegcolorspace ! x264enc pass=pass1 threads=0 bitrate=900
tune=zerolatency ! flvmux name=mux streamable=true \
! filesink location=/home/content/out/zzz.mp4 \
uridecodebin uri=file:///home/content/bbb.mp4 download=false !
ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,format=(fourcc)I420,width=200,height=200,framerate=(fraction)25/1"
\
! videobox border-alpha=0 top=0 left=0 ! mix.
The error generates if I change either of the videobox settings, such as,
GST_DEBUG=2 gst-launch \
uridecodebin uri=file:///home/content/aaa.mp4 download=false !
ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,format=(fourcc)I420,width=200,height=200,framerate=(fraction)25/1"
\
! videobox border-alpha=0 top=0 left=0 ! mix. \
videomixer2 background=black name=mix \
! ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,width=640,height=352,framerate=(fraction)25/1" \
! ffmpegcolorspace ! x264enc pass=pass1 threads=0 bitrate=900
tune=zerolatency ! flvmux name=mux streamable=true \
! filesink location=/home/content/out/zzz.mp4 \
uridecodebin uri=file:///home/content/bbb.mp4 download=false !
ffmpegcolorspace ! videoscale \
! capsfilter
caps="video/x-raw-yuv,format=(fourcc)I420,width=200,height=200,framerate=(fraction)25/1"
\
! videobox border-alpha=0 top=-100 left=-100 ! mix.
any ideas would be much appreciated,
thx
Art
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/videomixer2-videobox-Caps-not-compatible-with-other-pads-caps-tp4663734.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list