当前位置: 首页 > 知识库问答 >
问题:

无法在gstream er中将I420转换为RGB

王高超
2023-03-14

此命令工作正常:

<代码>gst-launch-1.0-v--gst调试级别=2 udpsrc端口=1234!decodebin!视频/x-raw,格式=I420!自动视频接收器

此命令无效:

<代码>gst-launch-1.0-v--gst调试级别=2 udpsrc端口=1234!decodebin!视频/x-raw,格式=I420!视频转换!视频/x-raw,格式=RGB!自动视频接收器

错误:将名为decodebin0的GstDecodeBin的某个pad延迟链接到名为videoconvert0的GstVideoConvert的某个pad失败

怎么了?

重要性日志:

/GstPipeline:Pipeline0/GstDecodeBin:DecDebin0/avdec_mpeg4:avdec_mpeg4-0。GstPad:src:caps=video/x-raw,格式=(string)I420,宽度=(int)1920,高度=(int)1080,交错模式=(string)渐进式,multiview模式=(string)mono,multiview标志=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/左翻转/右翻转/右翻转/半纵横/混合单声道,像素纵横比=(分数)1/1,色度站点=(string)mpeg2,色度=(string)bt709,帧速率=(分数)10/1

所有日志

正在将管道设置为暂停。。。管道处于活动状态,不需要预滚。。。正在将管道设置为播放。。。新时钟:GstSystemClock/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind。GstPad:src:caps=视频/mpegts,systemstream=(布尔值)true,packetsize=(int)188/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTSDemux:tsdemux0。GstPad:sink:caps=视频/mpegts,systemstream=(布尔)true,packetsize=(int)188/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0。GstPad:src\u 0:caps=视频/mpeg,mpegversion=(int)4,systemstream=(布尔值)false/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg4VParse:mpeg4vparse0。GstPad:sink:caps=视频/mpeg,mpegversion=(int)4,systemstream=(布尔)false/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:max size buffers=5/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:max size time=0/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:max size bytes=2097152/gstpipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0。GstMultiQueuePad:sink\u 0:caps=视频/mpeg,mpegversion=(int)4,systemstream=(布尔值)false/GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec\u mpeg4:avdec\u mpeg4-0。GstPad:sink:caps=视频/mpeg,mpegversion=(int)4,systemstream=(boolean)false,parsed=(boolean)true/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg4VParse:mpeg4vparse0。GstPad:src:caps=视频/mpeg,mpegversion=(int)4,systemstream=(布尔)false,parsed=(布尔)true/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpeg4VParse:mpeg4vparse0。GstPad:src:caps=视频/mpeg,mpegversion=(int)4,systemstream=(boolean)false,parsed=(boolean)true,profile=(string)simple,level=(string)1,codec\u data=(buffer)000001B01000001B5891300000000012000C48D8800553C04871443,width=(int)1920,height=(int)1080,像素纵横比=(分数)1/1/GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec\u mpeg4:avdec\u mpeg4-0是的。GstPad:接收器:caps=视频/mpeg,mpegversion=(int)4,systemstream=(布尔)false,parsed=(布尔)true,profile=(字符串)simple,level=(字符串)1,codec\u data=(buffer)000001B0100001B58913000001000012000C48D880053C04871443,width=(int)1920,height=(int)1080,pixel aspect ratio=(分数)1/1/GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec\u mpeg4:avdec\u mpeg4-0。GstPad:src:caps=视频/x-raw,格式=(string)I420,宽度=(int)1920,高度=(int)1080,交错模式=(string)渐进,多视图模式=(string)mono,多视图标志=(GstVideoMultiviewFlagsSet)0:ffffffff:/right view first/left fliped/left fliped/right fliped/right fliped/half aspect/mixed mono,像素纵横比=(分数)1/1,色度站点=(string)mpeg2,色度=(string)bt709,帧率=(分数)10/1/GstCapsFilter:capsfilter2:caps=视频/x-raw,格式=(字符串)I420 0:00:01.480704357 3721 0x7f3f9809a230警告默认语法。y: 510:gst\u parse\u no\u more\u pads:警告:延迟链接失败。0:00:01.480728456 3721 0x7f3f9809a230警告默认语法。y: 510:gst\u parse\u no\u more\u pads:警告:将名为decodebin0的GstDecodeBin的某个pad延迟链接到名为videoconvert0的GstVideoConvert的某个pad失败警告:来自元素/GstPipeline:pipeline0/GstDecodeBin:decodebin0:延迟链接失败。其他调试信息:/语法y(510):gst\u parse\u no\u more\u pads():/GstPipeline:pipeline0/GstDecodeBin:decodebin0:将名为decodebin0的GstDecodeBin的某个pad延迟链接到名为videoconvert0的GstVideoConvert的某个pad/GstPipeline:pipeline0/GstDecodeBin:decodebin0失败。GstDecodePad:src\u 0。GstProxyPad:proxypad3:caps=视频/x-raw,格式=(字符串)I420,宽度=(int)1920,高度=(int)1080,隔行模式=(字符串)渐进,多视图模式=(字符串)单声道,多视图标志=(GstVideoMultiviewFlagsSet)0:ffffffff:/right view first/left flipped/left flipped/right flipped/right flopped/half aspect/mixed mono,像素纵横比=(分数)1/1,chroma site=(字符串)mpeg2,色度=(字符串)bt709,帧率=(分数)10/1重新分配延迟。。。0:00:01.564689538 3721 0x5644dfac2f70 WARN basesrc gstbasesrc。c: 3055:gst\U base\U src\U循环:错误:内部数据流错误。0:00:01.564741097 3721 0x5644dfac2f70 WARN basesrc gstbasesrc。c: 3055:gst\u base\u src\u循环:错误:流停止,原因未链接(-1)错误:来自元素/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:内部数据流错误。其他调试信息:gstbasesrc。c(3055):gst\u base\u src\u loop():/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:流停止,原因未链接(-1)执行在0:00:01.516699193将管道设置为暂停后结束。。。正在将管道设置为就绪。。。正在将管道设置为NULL。。。正在释放管道。。。


共有1个答案

穆远
2023-03-14

这很可能是由于正在选择的渲染设备不支持RGB作为输出格式。

 类似资料:
  • 问题内容: 我写了一个函数将字符串转换为整数 我有一个字符串6042076399,它给了我错误: 这不是将字符串转换为整数的正确方法吗? 问题答案: 这是我更喜欢的方式: 编辑(2015年4月4日): 如下面的评论所述,实际上这样做更好:

  • 我有以下代码: DTO: 控制器 JSON请求: 如果我以yyyy-mm-dd的形式发送请求,将自动转换为日期对象。控制器中的输出:-dateOfBirth=2014年9月4日星期四05:30:00 但是当我以dd-mm-yyyy格式发送DateofBirth时,它不会自动将String转换为Date。所以我如何处理这种情况。 JSON请求: 输出:控制台中的任何输出都不会到达控制器。 我尝试过@

  • 我在拔头发。 我试过用猫鼬: NodeJs本地mongoDb驱动程序

  • 问题内容: 我正在尝试将文件保存到SQL Server数据库中,该文件将保存在其中的列是datatype 。 我目前这样做的方式是通过获取文件路径并将文件转换为字节数组。 然后,我使用插入查询和convert函数将字节插入数据库,以将转换为: 但是,在SQL Server数据库中,的值始终为 而且,无论选择哪个文件,都始终是该数字。因此,如果您能告诉我为什么会这样,以及我应该采取什么措施来防止这种

  • 问题内容: 我想将SQL COUNT的结果存储在变量中,然后将它们除,但是出现错误: 注意:类mysqli_result的对象无法在----中转换为int 我曾经在测试时显示结果…我该如何解决? 问题答案: 您需要先获取结果并将其存储在变量中,然后再进行数学运算。

  • 我曾尝试使用GStreamer管道将mp4视频转换为avi视频,但它是在没有声音的情况下转换的 gst launch-t-v filesrc location=源。mp4!qtdemux!ffdec\U h264!视频/x-raw-yuv!avimux!filesink location=结果yuv。avi公司