Gstreamer:Appsink 生成带有额外行的输出?

问题描述

我准备了一个示例代码来从文件 src 中提取图像。
拉图像在顶部包含线条。
任何人都可以指导我了解这一点。

pipeline = gst_parse_launch
("filesrc location=/bunny-1080.mp4 !"
 "qtdemux !"
 "h264parse !"
 "v4l2h264dec capture-io-mode=4 !"
 "v4l2convert output-io-mode=5 capture-io-mode=4 !"
 "capsfilter caps=\"video/x-raw,format=BGR\" !"
 "appsink name=appsink",NULL); 

仅当我在 output-io-mode=5 插件添加 v4l2convert 时才会生成额外的行。
输入:bunny.mp4 https://streamable.com/o09pls
输出Image With top lines
使用 gst-launch-1.0 运行时出现同样的问题

gst-launch-1.0 filesrc location=/bunny-1080.mp4 ! qtdemux !  h264parse ! v4l2h264dec capture-io-mode=4 !  v4l2convert output-io-mode=5 capture-io-mode=4 ! capsfilter caps=video/x-raw,format=BGR ! jpegenc ! multifilesink location=img%d.jpg

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)