Skip to content

Artifacts on background when using pad #168

@m-herrera

Description

@m-herrera

The following pipeline produces artifacts on the background every other frame on the develop branch:

gst-launch-1.0 \
videotestsrc is-live=true num-buffers=5 ! "video/x-raw,format=NV12, width=640, height=480,framerate=30/1" ! queue ! mosaic.sink_0 \
videotestsrc is-live=true pattern=ball num-buffers=5 ! "video/x-raw,format=NV12, width=640, height=480, framerate=30/1" ! queue ! mosaic.sink_1 \
videotestsrc pattern=ball num-buffers=2 ! "video/x-raw,format=NV12, width=1290, height=970, framerate=30/1" ! queue ! mosaic.background \
tiovxmosaic name=mosaic \
sink_0::startx=650 \
sink_0::starty=0 \
sink_1::startx=0 \
sink_1::starty=490 \
! "video/x-raw,format=NV12" ! videoconvert ! pngenc ! multifilesink location=/tmp/image_%d.png

This only happens if the source of the background pad has num-buffers=2. However, when using more buffers the background stream only alternates between two frames.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions