GStreamer&x27;rawvideoparse';元素读取错误的字节数

GStreamer&x27;rawvideoparse';元素读取错误的字节数,gstreamer,Gstreamer,我正在使用以下命令从带有Gstreamer的文件中读取972x720像素的字节流YUV420: gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720 framerate=1/1 ! xvimagesink gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse w

我正在使用以下命令从带有Gstreamer的文件中读取972x720像素的字节流YUV420:

gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720  framerate=1/1 ! xvimagesink
gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720  framerate=1/1 ! multifilesink location="rvp_%d.raw"
目前为止,这项功能可以正常工作,因此我获得了一张图像,但它没有正确显示。使用命令单独导出帧时:

gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720  framerate=1/1 ! xvimagesink
gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720  framerate=1/1 ! multifilesink location="rvp_%d.raw"
我看到,当使用元素“rawvideoparse”时,它将创建一个每帧1051200字节的文件,而不是预期的1049760字节。当我删除“rawvideoparse”时,帧会正确导出,但我的目标是将它们直接从文件读取到“xImage接收器”中

我在哪里搞砸了

多亏了我的回答。问题是rawvideoparse元素无法处理此解析。当我切换到976宽度时,它可以工作