<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:14pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;">my code here for Gstreamer 1.0 :</div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 19px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><span style="font-size: 19px;">#include <stdio.h></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">#include <stdlib.h></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">#include <gtk/gtk.h></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">#include <gst/gst.h></span></div><div style="background-color: transparent;"><span
style="font-size: 19px;">#include <gst/pbutils/pbutils.h></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">typedef struct _UserData UserData;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">struct _userData</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstElement* encode;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstElement* decode;</span></div><div style="background-color: transparent;"><span
style="font-size: 19px;"> guint video_pad_num;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> guint audio_pad_num;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">};</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">void pad_added_on_decode(GstElement* decode, GstPad* new_pad, gpointer data)</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">{</span></div><div style="background-color: transparent;"><span
style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>UserData *priv = (UserData *)data;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>GstCaps* caps = gst_pad_query_caps(new_pad, NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstPad* pad = NULL;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>if(g_str_has_prefix(caps_repr, "video"))</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre">
</span>{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> gchar* encode_video_sink_pad_name = g_strdup_printf("video_%"G_GUINT64_FORMAT, priv->video_pad_num);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstStaticPadTemplate static_tmpl = GST_STATIC_PAD_TEMPLATE("video_%u",</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GST_PAD_SINK,</span></div><div style="background-color: transparent;"><span
style="font-size: 19px;"> GST_PAD_REQUEST,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GST_STATIC_CAPS_ANY);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstPadTemplate* video_tmpl = gst_static_pad_template_get(&static_tmpl);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> pad = gst_element_request_pad(
priv->encode,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> video_tmpl,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> encode_video_sink_pad_name,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> g_free(encode_video_sink_pad_name);</span></div><div style="background-color: transparent;"><span
style="font-size: 19px;"> if(pad == NULL) goto not_handled;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> priv->video_pad_num++;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>}</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>if(g_str_has_prefix(caps_repr, "audio"))</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>
gchar* encode_audio_sink_pad_name = g_strdup_printf("audio_%"G_GUINT64_FORMAT, priv->audio_pad_num);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstStaticPadTemplate static_tmpl = GST_STATIC_PAD_TEMPLATE("audio_%u",</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GST_PAD_SINK,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">
GST_PAD_REQUEST,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GST_STATIC_CAPS_ANY);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstPadTemplate* audio_tmpl = gst_static_pad_template_get(&static_tmpl);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> pad = gst_element_request_pad( priv->encode,</span></div><div style="background-color: transparent;"><span
style="font-size: 19px;"> audio_tmpl,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> encode_audio_sink_pad_name,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> g_free(encode_audio_sink_pad_name);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> if(pad == NULL) goto
not_handled;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> priv->audio_pad_num++;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>}</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> if(gst_pad_can_link (new_pad, pad) && !gst_pad_is_linked(pad))</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> {</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gst_pad_link(new_pad, pad);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> priv->pad_list =
g_slist_append(priv->pad_list, (gpointer)pad);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> }</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> else goto not_handled;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_caps_unref(caps);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>return;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size:
19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>not_handled:;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gst_element_release_request_pad(priv->encode, pad);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> }</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">}</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">void watch_on_bus(GstBus *bus, GstMessage* msg, gpointer data)</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">{</span></div><div style="background-color:
transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>if(GST_MESSAGE_TYPE(msg) == GST_MESSAGE_EOS)</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> gst_element_set_state (GST_ELEMENT(priv->pipe), GST_STATE_NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> gst_element_get_state (GST_ELEMENT(priv->pipe), NULL, NULL, GST_CLOCK_TIME_NONE);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>}</span></div><div
style="background-color: transparent;"><span style="font-size: 19px;">}</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;">int main(int argc, char* argv[])</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gtk_init(&argc, &argv);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gst_init(&argc, &argv);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GFile* file;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> UserData *p ,
user_data;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> if(argc < 2)</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> {</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> printf("Gives a file name to encode in AVI container and Mpeg audio and video datas\n\n");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> return -1;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> }</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> else</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">
{</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> file = g_file_new_for_path(argv[1]);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> if(!g_file_query_exists(file, NULL))</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> {</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> printf("Gives one valid file name\n\n");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> return -1;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> }</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> }</span></div><div
style="background-color: transparent;"><span style="font-size: 19px;"> // define a conatiner profile for encodebin</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> GstCaps* caps = gst_caps_from_string("video/x-msvideo");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>GstEncodingContainerProfile* container = gst_encoding_container_profile_new ("AVI_CONVERTER",</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>
"AVI_PROFILE", caps, NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gst_caps_unref(caps);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> g_object_ref(container);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> //create an audio profile</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>caps = gst_caps_new_simple("audio/mpeg", "mpegversion", G_TYPE_INT , 4, "layer", G_TYPE_INT , 3,</span></div><div style="background-color: transparent;"><span
style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> "rate", G_TYPE_INT, 8000, NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>GstEncodingAudio audio_profile = gst_encoding_audio_profile_new(caps,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> NULL, NULL, 0);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gst_caps_unref(caps);</span></div><div style="background-color:
transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>//create video profile</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>caps = gst_caps_new_simple("video/mpeg", "mpegversion", G_TYPE_INT, 4, "width", G_TYPE_INT, 1024,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> "height", G_TYPE_INT, 576, "framerate", GST_TYPE_FRACTION, 25, 1, NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>video_profile =
gst_encoding_video_profile_new(caps,</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> NULL, NULL, 0);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> gst_caps_unref(caps);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> //add audio and vido profile to container profile</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre">
</span>gst_encoding_container_profile_add_profile(priv->container, (GstEncodingProfile *)priv->video_profile);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_encoding_container_profile_add_profile(priv->container, (GstEncodingProfile *)priv->audio_profile);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>//define elements for the pipeline</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>GstPipeline* pipe = GST_PIPELINE(gst_pipeline_new("pipe"));</span></div><div
style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>g_object_ref(priv->pipe);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>encode = gst_element_factory_make("encodebin", "encode");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>decode = gst_element_factory_make("decodebin", "decode");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>sink = gst_element_factory_make("filesink", "sink");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>src = gst_element_factory_make("filesrc",
"src");</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_bin_add_many(GST_BIN(pipe), src, decode, encode, sink, NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>//set the defined profile on encode</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>g_object_set(G_OBJECT(priv->encode), "profile", priv->container, NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color:
transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>//link elements together</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_element_link(src, decode);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_element_link(encode, sink);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>bus = gst_pipeline_get_bus (pipe);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span
class="Apple-tab-span" style="white-space:pre"> </span>//set a watch on bus a define some handler on it</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_bus_add_signal_watch (bus);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>g_signal_connect(G_OBJECT(priv->bus), "message", G_CALLBACK(watch_on_bus), NULL);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>//sets a callback to handle the "pad-added" signal on decode</span></div><div style="background-color:
transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span> //set user data to past to the handler</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> user_data.encode = encode;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> user_data.decode = decode;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> user_data.video_pad_num = 0;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> user_data.audio_pad_num = 0;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> p = &user_data;</span></div><div style="background-color: transparent;"><span style="font-size:
19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>g_signal_connect(G_OBJECT(priv->decode), "pad-added", G_CALLBACK(padd_added_on_decode), (gpointer)p);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>//place pipeline in a playing state</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre"> </span>gst_element_set_state (GST_ELEMENT(priv->pipe), GST_STATE_PLAYING);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">
gst_element_get_state (GST_ELEMENT(priv->pipe), NULL, NULL, GST_CLOCK_TIME_NONE);</span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 19px;"> return 0;</span></div><div style="background-color: transparent;"><span style="font-size: 19px;">}</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;"><span><div style="background-color:transparent;"><br></div></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;"><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div
dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">De :</span></b> narcisse doudieu siewe <wambenarcisse@yahoo.fr><br> <b><span style="font-weight: bold;">À :</span></b> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org> <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Samedi 5 octobre 2013 11h52<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: cannot encode raw audio data to mpeg 4<br> </font> </div> <div class="y_msg_container"><br><div id="yiv8681511630"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: arial, helvetica, sans-serif; font-size: 14pt;"><div>some codes in attachement</div><div><br clear="none"></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 14pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">
<div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">De :</span></b> Tim-Philipp Müller <t.i.m@zen.co.uk><br clear="none"> <b><span style="font-weight:bold;">À :</span></b> gstreamer-devel@lists.freedesktop.org <br clear="none"> <b><span style="font-weight:bold;">Envoyé le :</span></b> Samedi 5 octobre 2013 8h42<br clear="none"> <b><span style="font-weight:bold;">Objet :</span></b> Re: cannot encode raw audio data to mpeg 4<br clear="none"> </font> </div> <div class="yiv8681511630yqt0077409601" id="yiv8681511630yqt77906"><div class="yiv8681511630y_msg_container"><br clear="none">On Fri, 2013-10-04 at 21:31 +0100, narcisse doudieu siewe wrote:<br clear="none"><br clear="none">Hi,<br clear="none"><br clear="none">> I don't know but it seems that you cannot encode raw audio data to<br clear="none">> mpeg4 using encodebin<br clear="none">> <br clear="none">> <br clear="none">>
another point: you cannot request encodebin to convert change your<br clear="none">> audio sample rate to another sample rate say: 48000 samples/s to<br clear="none">> 8000samples/s<br clear="none">> Can some body test it??<br clear="none"><br clear="none">Maybe you could make available a minimal test application that<br clear="none">demonstrates what doesn't work. That way people don't have to write<br clear="none">their own code to verify your claims.<br clear="none"><br clear="none">It would also be good to mention your GStreamer version, and how things<br clear="none">fail.<br clear="none"><br clear="none">Cheers<br clear="none"> -Tim<div class="yiv8681511630yqt8851967941" id="yiv8681511630yqtfd18940"><br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a rel="nofollow" shape="rect"
ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"></div><br clear="none"><br clear="none"></div></div> </div> </div> </div></div></div><br><div class="yqt0077409601" id="yqt71064">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"></div><br><br></div> </div> </div> </div></body></html>