根据这的说法,gstreamer管道
gst-发射视频测试!视频method=clockwise!无色空间!近链
顺时针旋转视频流。过去,我在嵌入式Linux Leopardboard上成功地测试了这个视频管道,但是我需要旋转单个图像,所以我对管道进行了如下修改:
启动文件gst location=test.jpeg!视频method=clockwise!无色空间!文件墨迹location=testClockwise.jpeg
修改后的管道会导致以下错误:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstVideoFlip:videoflip0:
not negotiated
Additional debug info:
../../../../src/libs/gst/base/gstbasetransform.c(2253):
gst_base_transform_handle_buffer ():
/GstPipeline:pipeline0/GstVideoFlip:videoflip0:
not negotiated
ERROR: pipeline doesn't want to preroll.为什么GstVideoFlip0没有经过谈判?为什么输油管道不想进行预录?如何纠正这些错误?
编辑:那么。我将jpegdec和jpegenc添加到管道中,如下所示:
启动文件gst location=test.jpeg!jpegdec!视频method=clockwise!无色空间!jpegenc!文件墨迹location=testClockwise.jpeg
但是现在得到这个错误:
警告:管道错误:没有"jpegdec“元素
但是为什么呢,因为jpegdec和jpegenc都在gst-插件-好元素中。
发布于 2012-08-24 06:29:04
你的管道读的是jpeg。不是YUV/RGB。因此,您需要解码jpeg文件,按所做的方式翻转它,将其重新编码为jpeg,然后将其写入文件。
https://stackoverflow.com/questions/12097944
复制相似问题