[Bug 698049] omxh264enc openmax API ignore output bitrate on Raspberry Pi

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jun 6 13:22:39 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=698049
  GStreamer | gst-omx | 1.0.7

m][sko <xlazom00> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.0.6                       |1.0.7

--- Comment #3 from m][sko <xlazom00 at gmail.com> 2013-06-06 20:22:34 UTC ---
I found solution
it looks like rpi openmax api need to specify targetbitrate on output port 

static gboolean
gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
    GstVideoCodecState * state)
{

...........

  if (klass->set_format) {
    if (!klass->set_format (self, self->enc_in_port, state)) {
      GST_ERROR_OBJECT (self, "Subclass failed to set the new format");
      return FALSE;
    }
  }

  GST_DEBUG_OBJECT (self, "Updating outport port definition");
  if (gst_omx_port_update_port_definition (self->enc_out_port,
          NULL) != OMX_ErrorNone)
    return FALSE;


  if(self->target_bitrate != 0xffffffff){
      GST_DEBUG_OBJECT (self, "Set up output bitrate");
      self->enc_out_port->port_def.format.video.nBitrate =
self->target_bitrate;
      if (gst_omx_port_update_port_definition (self->enc_out_port,
              &self->enc_out_port->port_def) != OMX_ErrorNone)
        return FALSE;
  }

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list