Problem using omxh264enc in combination with rtpbin on Raspberry Pi

Patrick Nijhuis P.Nijhuis at wearetriple.com
Mon Apr 4 14:51:41 UTC 2016


Hi,

For streaming h264 encoded video over RTP I use the following elements:

                data.pipeline  = gst_pipeline_new ( "my_pipeline" );
                data.source    = gst_element_factory_make ( "v4l2src",       NULL );
                data.videoflip = gst_element_factory_make ( "videoflip",     NULL );
                data.encoder   = gst_element_factory_make ( "omxh264enc",    "encoder1" );
                data.parser    = gst_element_factory_make ( "h264parse",     NULL );
                data.rtp       = gst_element_factory_make ( "rtph264pay",    NULL );
                data.sink      = gst_element_factory_make ( "udpsink", NULL );

When I link these and start the program everything works.

However when I try to add an "rtpbin" element I get the following feedback:


0:00:00.232185933  4623   0xa942c0 WARN                    v4l2 gstv4l2bufferpool.c:658:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> using 3 buffers instead of 2
0:00:00.822579433  4623   0xa942c0 ERROR             omxh264enc gstomxh264enc.c:204:gst_omx_h264_enc_set_format:<encoder1> Unsupported profile constrained-baseline
0:00:00.822898025  4623   0xa942c0 ERROR            omxvideoenc gstomxvideoenc.c:1176:gst_omx_video_enc_set_format:<encoder1> Subclass failed to set the new format
0:00:00.823036878  4623   0xa942c0 WARN            videoencoder gstvideoencoder.c:647:gst_video_encoder_setcaps:<encoder1> rejected caps video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)30/1
0:00:00.823490105  4623   0xa942c0 WARN            videoencoder gstvideoencoder.c:1463:gst_video_encoder_chain:<encoder1> error: encoder not initialized
0:00:00.824441037  4623   0xa942c0 WARN                 basesrc gstbasesrc.c:2933:gst_base_src_loop:<v4l2src0> error: Internal data flow error.
0:00:00.824608744  4623   0xa942c0 WARN                 basesrc gstbasesrc.c:2933:gst_base_src_loop:<v4l2src0> error: streaming task paused, reason not-negotiated (-4)
0:00:00.825509677  4623   0xa942c0 WARN               baseparse gstbaseparse.c:1155:gst_base_parse_sink_event_default:<h264parse0> error: No valid frames found before end of stream

Is there a known issue for using omxh264enc in combination with rtpbin on Raspberry Pi ? Or is there something else I can look into?

Kind Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160404/a01136ea/attachment.html>


More information about the gstreamer-devel mailing list