1

我正在构建一个使用 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有问题?如果需要,我可以提供我的示例数据。

4

1 回答 1

0

如果你得到一个段错误,那么你确实发现了一个错误。在http://bugzilla.gnome.org上提交错误报告。还可以:

gdb --args 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

在 gdb 中键入 'r' 以进行运行,并在崩溃时键入 'bt' 以获取回溯。确保您已安装调试包 fpr gstreamer/glib/libjpeg。将回溯附加到错误报告。

于 2012-11-02T21:16:01.423 回答