omxh264enc doesn't support format

Marianna Smidth Buschle msb at qtec.com
Tue Jun 7 06:54:20 UTC 2022


Hi,


You can try debugging with GST_DEBUG=*:3,GST_CAPS:5 in order to get more 
information about which caps are not being accepted.


Otherwise you can try with videotestsrc instead of appsrc to see if the 
problem is the src or the encoder:

videotestsrc -> capsfilter -> omxh264enc -> fakesink


Best Regards
Marianna

On 04.06.2022 19.50, gstreamer-devel-request at lists.freedesktop.org wrote:
> Hi All,
>
> Please let me know if this is not the right mailing list for this type of
> question.
>
> I started learning GStreamer, and created a pipeline with the following 4
> elements.
>
> appsrc -> capsfilter -> omxh264enc -> fakesink
>
> appsrc elements were set to
>
> caps: "video/x-raw",
>        "format",    G_TYPE_STRING,     "I420",
>        "width",     G_TYPE_INT,        320,
>        "height",    G_TYPE_INT,        240,
>        "framerate", GST_TYPE_FRACTION, 30, 1,
>        NULL
> stream-type: GST_APP_STREAM_TYPE_STREAM
> format:      GST_FORMAT_TIME
> blocksize:   320 * 240 * 3 / 2
> is-live:     TRUE
>
> capsfilter elements were set to
>
> caps: "video/x-raw",
>        "format",    G_TYPE_STRING,     "I420",
>        "width",     G_TYPE_INT,        320,
>        "height",    G_TYPE_INT,        240,
>        "framerate", GST_TYPE_FRACTION, 30, 1,
>        NULL
>
> omxh264enc elements were set to
>
> target-bitrate: 250000
>
> But I'm getting the following erros when I start streaming.
>
> 0:00:00.083272126  2239   0x55c03260a0 WARN             omxvideoenc
> gstomxvideoenc.c:3068:gst_omx_video_enc_propose_allocation:<encoder>
> allocation query does not contain caps
> 0:00:00.084553484  2239   0x55c03260a0 WARN           basetransform
> gstbasetransform.c:1355:gst_base_transform_setcaps:<mYuvFilter> transform
> could not transform video/x-raw, format=(string)I420, width=(int)320
> , height=(int)240, framerate=(fraction)30/1 in anything we support
> Got state-changed message
> 0:00:00.093299248  2239   0x55c03260a0 WARN           basetransform
> gstbasetransform.c:1355:gst_base_transform_setcaps:<mYuvFilter> transform
> could not transform video/x-raw, format=(string)I420, width=(int)320
> , height=(int)240, framerate=(fraction)30/1 in anything we support
> 0:00:00.094138019  2239   0x55c03260a0 WARN           basetransform
> gstbasetransform.c:1355:gst_base_transform_setcaps:<mYuvFilter> transform
> could not transform video/x-raw, format=(string)I420, width=(int)320
> , height=(int)240, framerate=(fraction)30/1 in anything we support
> 0:00:00.094328376  2239   0x55c03260a0 WARN                 basesrc
> gstbasesrc.c:3055:gst_base_src_loop:<source> error: Internal data stream
> error.
> 0:00:00.094491287  2239   0x55c03260a0 WARN                 basesrc
> gstbasesrc.c:3055:gst_base_src_loop:<source> error: streaming stopped,
> reason not-negotiated (-4)
> 0:00:00.095398492  2239   0x55c03260a0 WARN           basetransform
> gstbasetransform.c:1355:gst_base_transform_setcaps:<mYuvFilter> transform
> could not transform video/x-raw, format=(string)I420, width=(int)320
> , height=(int)240, framerate=(fraction)30/1 in anything we support
> 0:00:00.096068675  2239   0x55c03260a0 WARN           basetransform
> gstbasetransform.c:1355:gst_base_transform_setcaps:<mYuvFilter> transform
> could not transform video/x-raw, format=(string)I420, width=(int)320
> , height=(int)240, framerate=(fraction)30/1 in anything we support
> 0:00:00.096643497  2239   0x55c03260a0 WARN           basetransform
> gstbasetransform.c:1355:gst_base_transform_setcaps:<mYuvFilter> transform
> could not transform video/x-raw, format=(string)I420, width=(int)320
> , height=(int)240, framerate=(fraction)30/1 in anything we support
>
> Any idea how to fix those errors?
>
> Bellow are descriptions of the elements in the pipeline I got using
> gst-streamer-1.0
>
> Thanks:-)

-- 
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”



More information about the gstreamer-devel mailing list