Problem using omxh264enc in combination with rtpbin on Raspberry Pi

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem using omxh264enc in combination with rtpbin on Raspberry Pi

Patrick Nijhuis

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.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Vnd
Reply | Threaded
Open this post in threaded view
|

Re: Problem using omxh264enc in combination with rtpbin on Raspberry Pi

Vnd
Hi,

It seems You are setting unsupported profile value in omxh264enc correct it.

0:00:00.822579433  4623   0xa942c0 ERROR             omxh264enc gstomxh264enc.c:204:gst_omx_h264_enc_set_format:<encoder1> Unsupported profile constrained-baseline

gst-inspect-1.0 omxh264enc will give list of supported profiles.

~ Vinod
Reply | Threaded
Open this post in threaded view
|

RE: Problem using omxh264enc in combination with rtpbin on Raspberry Pi

Patrick Nijhuis
Hi,

Thanks for the reply.
The problem is that the omxh264enc does work if I do not add the rtpbin element. I don't think the rtpbin chances the profile or does it ?

Kind regards,
Patrick Nijhuis

-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Vinod K
Sent: maandag 4 april 2016 17:40
To: [hidden email]
Subject: Re: Problem using omxh264enc in combination with rtpbin on Raspberry Pi

Hi,

It seems You are setting unsupported profile value in omxh264enc correct it.

0:00:00.822579433  4623   0xa942c0 ERROR             omxh264enc
gstomxh264enc.c:204:gst_omx_h264_enc_set_format:<encoder1> Unsupported profile constrained-baseline

gst-inspect-1.0 omxh264enc will give list of supported profiles.

~ Vinod



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problem-using-omxh264enc-in-combination-with-rtpbin-on-Raspberry-Pi-tp4676739p4676740.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: Problem using omxh264enc in combination with rtpbin on Raspberry Pi

pczhu
I have the problem too.
Did you solve it ?

Please help me.
Thanks!