我正在构建一个使用 gstreamer 作为媒体后端的应用程序。我想我可能已经隔离了 gstreamer 中的一个错误。是这种情况还是我做错了什么?
如果我使用以下方法解码并立即编码 jpeg 图像:
gst-launch filesrc location=../front_thumbnail_1976.jpg ! jpegdec ! colorspace ! video/x-raw-yuv,format='(fourcc)'UYVY,width=2592,height=1936,framerate='(fraction)'0/1 ! jpegenc ! filesink location=sample.jpeg
一切正常。但是,如果我尝试使用中间文件拆分管道,如下所示:
gst-launch filesrc location=../front_thumbnail_1976.jpg ! jpegdec ! colorspace ! video/x-raw-yuv,format='(fourcc)'UYVY,width=2592,height=1936,framerate='(fraction)'0/1 ! filesink location=sample.yuv
gst-launch filesrc location=sample.yuv ! video/x-raw-yuv,format='(fourcc)'UYVY,width=2592,height=1936,framerate='(fraction)'0/1 ! jpegenc ! filesink location=sample.jpeg
我得到一个段错误(在第二行)。我错过了一步吗?还是gstreamer有问题?如果需要,我可以提供我的示例数据。