streaming - 为什么这些 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
解决方案
推荐阅读
- python - 手动构造日期时间对象时出现意外的时区偏移
- php - 来自 html 周输入的 PHP 日期字符串
- node.js - 您如何获取在 firebase .on 中更新的孩子?
- express - 如何在 MERN 堆栈中发送响应模式?
- devops - jFrog 构建 - 如何不删除生产工件
- c# - 我如何误用 NotThrowAsync
- python - 使用集合中的值命名递归创建的数据框
- javascript - keydown 上的滚动事件,如向下箭头和向上箭头
- node.js - 为什么当 node_modules 包含在卷中时找不到任何开发库?
- delphi - Delphi RIO 更改旧的 _TLB.pas 参数数据类型定义