[Bug 732939] wavenc doesn't create a proper header for data from omxaacdec

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jul 9 07:11:17 PDT 2014


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

--- Comment #11 from Jun Ji <jun.ji at lge.com> 2014-07-09 14:11:12 UTC ---
Created an attachment (id=280272)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=280272)
filesrc ! aacparse ! omxaacdec ! audioconvert ! wavenc ! filesink

this gstomxaacdec.c is what I made based on gstomxmp3dec.c and possibly wrong.


static void
gst_omx_aac_dec_class_init (GstOMXAACDecClass * klass)
{
  GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
  GstOMXAudioDecClass *audiodec_class = GST_OMX_AUDIO_DEC_CLASS (klass);

  audiodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_aac_dec_set_format);
  audiodec_class->is_format_change =
      GST_DEBUG_FUNCPTR (gst_omx_aac_dec_is_format_change);
  audiodec_class->get_samples_per_frame =
      GST_DEBUG_FUNCPTR (gst_omx_aac_dec_get_samples_per_frame);

  audiodec_class->cdata.default_sink_template_caps = "audio/mpeg, "
      "mpegversion=(int)[2,4],"
      "rate=(int)[8000,48000], "
      "channels=(int)[1,2], " "parsed=(boolean) true";


  gst_element_class_set_static_metadata (element_class,
      "OpenMAX AAC Audio Decoder",
      "Codec/Decoder/Audio",
      "Decode AAC audio streams",
      "Sebastian Dröge <sebastian at centricular.com>");

  gst_omx_set_default_role (&audiodec_class->cdata, "audio_decoder.aac");
}

-- 
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