工具/软件:
我们尝试使用 gstreamer 混合多个视频。 按照 vision_apps 中的 Multicam_codec 示例操作、并希望使用一个接收器和多个源、以便我们可以获得混合视频输出。 您能否支持使用 gstreamer 获取马赛克视频输出? 请提供使用 gstreamer 组合视频的示例代码(如果有)。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
我们尝试使用 gstreamer 混合多个视频。 按照 vision_apps 中的 Multicam_codec 示例操作、并希望使用一个接收器和多个源、以便我们可以获得混合视频输出。 您能否支持使用 gstreamer 获取马赛克视频输出? 请提供使用 gstreamer 组合视频的示例代码(如果有)。
您好 Suresh、
有一个名为 tiovxmosaic 的 GStreamer 插件、其作用是: https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxmosaic
可在以下位置找到示例数据流和流水线: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-am69a/latest/exports/edgeai-docs/common/edgeai_dataflows.html
此致、
Jared
要添加更多详细信息:
我想在 C 代码中将两个以上的视频源(尝试使用静态图形,jpg 和 appsrc)与 gstreamer 混合。 当我尝试使用 Linux shell 命令混合视频 ( jpg、静态模式和 appsrc ) 时,我能够得到一个混合的输出视频。 已执行以下命令:
ST-launch-1.0 -e 合成器名称=MIX SINK_0::xpos=0 SINK_0:::ypos=0 SINK_1::xpos=320 SINK_1:::ypos=0 SINK_2:::xpos=0 SINK_2:::ypos=240 SINK_3:::xpos=320 SINK_3:::::ypos=240! 视频转换! v4l2h264enc! h264parse! mp4mux! filesink location=mixed_video.mp4 videotestsrc pattern=0! 视频/x-RAW、宽度=320、高度=240! mix.sink_0 videotestsrc pattern=1! 视频/x-RAW、宽度=320、高度=240! mix.sink_1 videotestsrc pattern=2! 视频/x-RAW、宽度=320、高度=240! mix.sink_2 videotestsrc pattern=3! 视频/x-RAW、宽度=320、高度=240! MIX.SINK_3
gst-launch-1.0 -e 合成器名称=MIX SINK_0::xpos=0 SINK_0:::ypos=0 SINK_1::xpos=320 SINK_1:::ypos=0 SINK_2:::xpos=0 SINK_2::::ypos=240 SINK_3:::xpos=320 SINK_3:::::ypos=240! 视频转换! v4l2h264enc! h264parse! mp4mux! filesink location=mixed_video.mp4 uridecodebin uri=file://www./opt/vision_apps/image.jpg 视频刻度! 视频/x-RAW、宽度=320、高度=240! 想象中的微风! mix.sink_0 videotestsrc pattern=1! 视频/x-RAW、宽度=320、高度=240! mix.sink_1 videotestsrc pattern=2! 视频/x-RAW、宽度=320、高度=240! mix.sink_2 videotestsrc pattern=3! 视频/x-RAW、宽度=320、高度=240! MIX.SINK_3
gst-launch-1.0 -e 合成器名称=MIX SINK_0::xpos=0 SINK_0:::ypos=0 SINK_1::xpos=320 SINK_1:::ypos=0 SINK_2:::xpos=0 SINK_2::::ypos=240 SINK_3:::xpos=320 SINK_3:::::ypos=240! 视频转换! v4l2h264enc! h264parse! mp4mux! filesink location=mixed_video.mp4 filesrc location=image.jpg! 视频刻度! 视频/x-RAW、宽度=320、高度=240! 想象中的微风! mix.sink_0 videotestsrc pattern=1! 视频/x-RAW、宽度=320、高度=240! mix.sink_1 videotestsrc pattern=2! 视频/x-RAW、宽度=320、高度=240! mix.sink_2 videotestsrc pattern=3! 视频/x-RAW、宽度=320、高度=240! MIX.SINK_3
当我尝试使用 linux-RTOS SDK 9.02 中 vision_apps 中可用的多 AM 编解码器示例应用代码、使用 TI 提供的包装器函数使用 gstreamer 混合视频时、我收到了一个错误“ gst_wrapper:myAppSrc 不是 AppSrc 元素“
代码片段、附加了执行日志。 请支持使用 gstreamer 混合视频。


