首页 > 解决方案 > 为什么这些 GST-Compositor caps 过滤会导致图像阴影?

问题描述

我有一个关于大写过滤器的问题。该管道将​​毫无问题地流式传输具有 4 个笑脸 png 的合成。

./test-launch --gst-debug=3 "( imxipucompositor name=c background-color=0x223344 sink_0::xpos=0 sink_0::ypos=0 sink_0::width=720 sink_0::height=480 sink_0::fill_color=0x00000000 \
sink_1::xpos=720 sink_1::ypos=0 sink_1::width=720 sink_1::height=480 sink_1::fill_color=0x11111111 \
sink_2::xpos=0 sink_2::ypos=480 sink_2::width=720 sink_2::height=480 sink_2::fill_color=0x22222222 \
sink_3::xpos=720 sink_3::ypos=480 sink_3::width=720 sink_3::height=480 sink_3::fill_color=0x33333333 \
! queue2 ! video/x-raw, width=1440, height=960 ! queue ! imxvpuenc_h264 idr-interval=32 bitrate=2500 ! rtph264pay name=pay0 pt=96 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_0 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_1 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_2 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_3 )"

但是,我更改了图像宽度和高度的这条管道导致 2 个快乐面孔上有一个奇怪的阴影。就像颜色错位一样。谁能给我解释一下?

./test-launch --gst-debug=3 "( imxipucompositor name=c background-color=0x223344 sink_0::xpos=0 sink_0::ypos=0 sink_0::width=360 sink_0::height=240 sink_0::fill_color=0x00000000 \
sink_1::xpos=360 sink_1::ypos=0 sink_1::width=360 sink_1::height=240 sink_1::fill_color=0x11111111 \
sink_2::xpos=0 sink_2::ypos=240 sink_2::width=360 sink_2::height=240 sink_2::fill_color=0x22222222 \
sink_3::xpos=360 sink_3::ypos=240 sink_3::width=360 sink_3::height=240 sink_3::fill_color=0x33333333 \
! queue2 ! video/x-raw, width=720, height=480 ! queue ! imxvpuenc_h264 idr-interval=32 bitrate=2500 ! rtph264pay name=pay0 pt=96 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze  ! queue2 ! c.sink_0 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_1 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_2 \
filesrc location=happy.jpg ! jpegdec ! imagefreeze ! queue2 ! c.sink_3 )" 

这是阴影快乐的脸的图像。右边的那些被遮住了。左边的都很好。 怪异HappyFaceComposite

标签: streaminggstreamerrtspimx6

解决方案


推荐阅读