[英]using encodebin in a gstreamer pipeline
I have a gstreamer pipeline 我有一个gstreamer管道
appsrc ! video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, framerate=(fraction)30/1 ! encodebin ! filesink location=default.raw
This pipeline fetches raw yuv-420 frames, of width 1280 and height 720 with the help of appsrc plugin, and push it to decodebin. 该管道在appsrc插件的帮助下获取宽度为1280和高度为720的原始yuv-420帧,并将其推送到decodebin。 The encodebin encodes it into h264 and the filesink will dump it into a file.
encodebin将其编码为h264,文件接收器会将其转储到文件中。
But this pipeline is not working as I am not specifying the profile for encodebin. 但是该管道不起作用,因为我没有为encodebin指定配置文件。 I am working on android with gstreamer, the platform I'm using is OMAP4460, I want to make use of the hardware encoder.
我正在使用gstreamer在android上工作,我使用的平台是OMAP4460,我想使用硬件编码器。 But I don't know to which profile I should set the encodebin.
但是我不知道应该将哪个编码设置为bin。
If someone knows about the profile of encodebin, please help me 如果有人知道encodebin的资料,请帮助我
Unfortunately, you can't specify a profile on the command line. 不幸的是,您不能在命令行上指定配置文件。
Have a look here for inspiration : 在这里看看灵感:
http://cgit.freedesktop.org/gstreamer/gst-editing-services/tree/tests/check/ges/integration.c#n95 http://cgit.freedesktop.org/gstreamer/gst-editing-services/tree/tests/check/ges/integration.c#n95
and there : 那里:
http://cgit.freedesktop.org/gstreamer/gst-editing-services/tree/ges/ges-pipeline.c#n844 http://cgit.freedesktop.org/gstreamer/gst-editing-services/tree/ges/ges-pipeline.c#n844
Have a nice day ! 祝你今天愉快 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.