<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=114122615-06112008>Hi 
Sudarshan,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=114122615-06112008>I was 
not able to do changes as&nbsp;you suggested to me. Instead i tried the 
following. Since i just needed a flag or something which my next plug-in element 
should recognize i used following.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=114122615-06112008>&nbsp; 
for(m=0; m&lt;pkt-&gt;payload_count; m++)<BR>&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(pkt-&gt;payloads[m].key_frame == 
1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
g_print("Inside 
IF\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
GST_BUFFER_OFFSET(outputbuf) = 
1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;/*Segmentation 
fault*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
GST_BUFFER_FLAG_SET (outputbuf, 
GST_BUFFER_FLAG_DELTA_UNIT);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/*Segmentation 
fault*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
GST_BUFFER_DURATION(outputbuf)=(GstClockTime)1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/*Segmentation 
fault*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
At RTP ASF payloader check 
using...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
GST_BUFFER_FLAG_IS_SET(buf, 
GST_BUFFER_FLAG_DELTA_UNIT);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
g_print("In Packet Payload %d consists of KEY FRAME\n", 
m);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp; 
&nbsp;}<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=114122615-06112008>I am 
not able to use any of the macros, if i use them i get a segmentation fault. How 
shall i avoid Segmentation fault.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008>Irfan</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=114122615-06112008></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> sudarshan bisht 
  [mailto:bisht.sudarshan@gmail.com]<BR><B>Sent:</B> Thursday, November 06, 2008 
  2:14 PM<BR><B>To:</B> Discussion of the development of 
  GStreamer<BR><B>Subject:</B> Re: [gst-devel] Size of output 
  buffer<BR><BR></FONT></DIV>
  <DIV>Hi Irfan&nbsp; , </DIV>
  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Yes this can&nbsp;be 
  done in better way . Use&nbsp; gst_caps_new_simple&nbsp;()&nbsp; to set the 
  flag for key frame . You can see how asfdemux sends extradata to decoder .( 
  see gstasfdemux.c file ) , </DIV>
  <DIV>&nbsp;&nbsp;&nbsp;&nbsp; Once you do this , you can receive the same data 
  in decoder or next element . So in order to receive this information next 
  element has to register funtion using gst_pad_set_setcaps_function( ) &nbsp;( 
  just check some decode's code which gets frame height and width from demuxer 
  in this manner )&nbsp; . </DIV>
  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR><BR></DIV>
  <DIV class=gmail_quote>On Thu, Nov 6, 2008 at 11:23 AM, Irfan Shaikh <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:irfanshaikh@tataelxsi.co.in">irfanshaikh@tataelxsi.co.in</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><BR>Hi 
    sudarshan,<BR><BR>&nbsp; &nbsp; &nbsp;I have completed the asfparser plug-in 
    code now itz working fine as per requirrement :-)<BR><BR>I am only facing a 
    small problem. I want to convey to next Plug-in element. Whether ASF data 
    packet i m sending to next element consists of Key frame or no 
    ?<BR><BR><BR>For conveying this information i have thought of using 
    following field of GstBuffer.<BR>&nbsp; guint64 offset;<BR>I would either 
    SET it or RESET it while pushing the data gst_pad_push(asfparse-&gt;srcpad, 
    outputbuf)<BR><BR><BR>Is there any other convinent{feasible} way of 
    conveying the above information to next plug-in element {Is there some macro 
    or Some flag that i can use using GstBuffer before pushing outputbuf}<BR>So 
    as to convey to next element whether the outputbuf {consisting ASF data 
    packet} has a KEY frame or no ??<BR>
    <DIV class=Ih2E3d><BR>Regards,<BR>Irfan<BR><BR><BR>-----Original 
    Message-----<BR>From: sudarshan bisht [mailto:<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>]<BR></DIV>
    <DIV class=Ih2E3d>Sent: Thu 11/6/2008 10:55 AM<BR>To: Discussion of the 
    development of GStreamer<BR>Subject: Re: [gst-devel] Size of output 
    buffer<BR><BR>Hi Irfan ,<BR></DIV>
    <DIV class=Ih2E3d>&nbsp; &nbsp; &nbsp; &nbsp; U r right data is pushed on 
    src pad .<BR><BR>On Tue, Oct 21, 2008 at 6:58 PM, Irfan Shaikh<BR>&lt;<A 
    href="mailto:irfanshaikh@tataelxsi.co.in">irfanshaikh@tataelxsi.co.in</A>&gt;wrote:<BR><BR>&gt;<BR>&gt; 
    Thanks a lot Sudarshan....<BR>&gt;<BR>&gt; The sample code which you have 
    send is really helping me a lot.<BR>&gt;<BR>&gt; If i am not wrong, I 
    think-------- gst_pad_push(sinkpad, my_buffer) should<BR>&gt; be like------ 
    gst_pad_push(asfparse-&gt;srcpad, my_buffer).<BR>&gt;<BR>&gt; Am i corrrect 
    ?<BR>&gt;<BR>&gt; Thanks a lot for your help and support,<BR>&gt; 
    Regards,<BR>&gt; Irfan<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; -----Original 
    Message-----<BR></DIV>
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c>&gt; From: sudarshan bisht [mailto:<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&lt;<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&gt;<BR>&gt; 
    ]<BR>&gt; Sent: Tue 10/21/2008 6:44 PM<BR>&gt; To: Discussion of the 
    development of GStreamer<BR>&gt; Subject: Re: [gst-devel] Size of output 
    buffer<BR>&gt;<BR>&gt; &nbsp;Hi Irfan ,<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; 
    &nbsp; &nbsp; I think here no need to use circular buffer , because the 
    buffer<BR>&gt; which u receive in ur plugin , u have to unref that after 
    properly copying<BR>&gt; required buffer from that . And the buffer which ul 
    allocate in your<BR>&gt; plugin<BR>&gt; will be sent u next element thus 
    will be unref by the next element .<BR>&gt;<BR>&gt; &nbsp; I am writing a 
    piece of code , may give u some hint &nbsp;:-<BR>&gt;<BR>&gt; 
    &nbsp;asf_parser_plugin_chain(GstPad pad, GstBuffer *buffer)<BR>&gt; 
    &nbsp;{<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; gint packet_size=0;<BR>&gt; 
    &nbsp; &nbsp; &nbsp; GstBuffer *my_buffer=NULL;<BR>&gt;<BR>&gt; &nbsp; 
    &nbsp; &nbsp; packet_size = parse_buffer(GST_BUFFER_DATA(buffer) ); // 
    get<BR>&gt; the packet size<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; 
    my_buffer=gst_buffer_new_and_alloc ( packet_size );<BR>&gt;<BR>&gt;<BR>&gt; 
    memcpy(GST_BUFFER_DATA( my_buffer), &nbsp;GST_BUFFER_DATA(buffer), &nbsp; 
    packet_size<BR>&gt; ); // can use other APIs also provided by GstBuffer 
    (<BR>&gt;<BR>&gt; <A 
    href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html" 
    target=_blank>http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html</A><BR>&gt; 
    )<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; gst_pad_push(sinkpad, 
    my_buffer);<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; 
    gst_buffer_unref(buffer) ; // check if u have copied all the 
    data<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; return GST_FLOW_OK 
    ;<BR>&gt; &nbsp; &nbsp; &nbsp; 
    }<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    On Tue, Oct 21, 2008 at 5:13 PM, Irfan Shaikh<BR>&gt; &lt;<A 
    href="mailto:irfanshaikh@tataelxsi.co.in">irfanshaikh@tataelxsi.co.in</A>&gt;wrote:<BR>&gt;<BR>&gt; 
    &gt; &nbsp;Hi sudarshan,<BR>&gt; &gt;<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; 
    &nbsp; &nbsp; Thanks a lot for your reply. I am pretty clear now.<BR>&gt; 
    &gt;<BR>&gt; &gt; Earlier i had decided some other appoach as 
    follows:<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SO now i think i 
    should not use A circular buffer, directly i<BR>&gt; can<BR>&gt; &gt; use 
    the existing Gstreamer buffer ritee ??<BR>&gt; &gt;<BR>&gt; &gt; Thanks for 
    your reply.<BR>&gt; &gt;<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; Regarding my 
    query :<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; 1)I have written an ASF parser 
    code which reads an ASF file from a<BR>&gt; &gt; file location path.<BR>&gt; 
    &gt; &nbsp; &nbsp; &nbsp; 2)It uses fseek and fread to read the data from 
    file in a temperory<BR>&gt; &gt; buffer<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; 
    3)It uses the temporary buffer to parse the ASf headers<BR>&gt; &gt; &nbsp; 
    &nbsp; &nbsp; 4)Lastly collect the ASF data packets after parsing the 
    headers<BR>&gt; into<BR>&gt; &gt; another temperory bufffer 
    (tempbuf).<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; 5) When i make ASF parser as 
    gstreamer plugin, i will use<BR>&gt; &gt; gst_pad_push (asfparse-&gt;srcpad, 
    tempbuf);<BR>&gt; &gt;<BR>&gt; &gt; I am clear about the output interface 
    when i make the ASF parser as<BR>&gt; &gt; gstreamer plug-in.<BR>&gt; 
    &gt;<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; Actual scenario:<BR>&gt; &gt;<BR>&gt; 
    &gt; &nbsp; &nbsp; &nbsp; 1) Input module to ASF parser plug-in is output 
    from "ffmux_asf"<BR>&gt; &gt; which will be in form of data buffers.<BR>&gt; 
    &gt; &nbsp; &nbsp; &nbsp; 2) I will need some buffer to collect these data 
    buffers<BR>&gt; &gt; &nbsp; &nbsp; &nbsp; 3) I thought of having a "Circular 
    buffer" to take input from<BR>&gt; &gt; ffmux_asf.{Is it feasible to use a 
    normal buffer like uint8_t *Newbuf to<BR>&gt; &gt; collect<BR>&gt; &gt; 
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data buffers from ffmux_asf ?? {If YES. 
    How much memory should i<BR>&gt; &gt; allocate for NewBuf}}<BR>&gt; &gt; 
    &nbsp; &nbsp; &nbsp; 4) Since my application is related to Live Streaming 
    the buffer<BR>&gt; &gt; NewBuf size can be huge.<BR>&gt; &gt; &nbsp; &nbsp; 
    &nbsp; 5) Circular buffer would have been useful.Since i will free 
    the<BR>&gt; &gt; memory as soon as i read the Circular buffer.<BR>&gt; &gt; 
    &nbsp; &nbsp; &nbsp; 6) I can use pointer operations similar to file 
    operations<BR>&gt; &gt;<BR>&gt; &gt; In gstreamer i have GstBuffer *buf, If 
    i use circular buffer how can i<BR>&gt; use<BR>&gt; &gt; the existing 
    "buf".<BR>&gt; &gt;<BR>&gt; &gt; Regards,<BR>&gt; &gt; Irfan.<BR>&gt; 
    &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
    &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
    &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
    &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; 
    -----Original Message-----<BR>&gt; &nbsp;&gt; From: sudarshan bisht 
    [mailto:<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&lt;<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&gt;<BR>&gt; 
    &lt;<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&gt;<BR>&gt; 
    &gt; ]<BR>&gt; &gt; Sent: Tue 10/21/2008 4:53 PM<BR>&gt; &gt; To: Discussion 
    of the development of GStreamer<BR>&gt; &gt; Subject: Re: [gst-devel] Size 
    of output buffer<BR>&gt; &gt;<BR>&gt; &gt; HI Irfan ,<BR>&gt; &gt; &nbsp; 
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; You are trying to write a ASF 
    Parser plugin which will be<BR>&gt; &gt; used<BR>&gt; &gt; after ffmux_asf 
    in pipeline .<BR>&gt; &gt; &nbsp;Now you want to parse data packets and send 
    them to next element .<BR>&gt; &gt;<BR>&gt; &gt; &nbsp; &nbsp;The buffer you 
    get from ffmux_asf is already allocated so you dont<BR>&gt; need<BR>&gt; 
    &gt; to allocated a separate buffer for that .<BR>&gt; &gt; &nbsp; &nbsp;To 
    know the size of input buffer in your ASF Parser plugin you can use<BR>&gt; 
    &gt; GST_BUFFER_SIZE(buffer) .<BR>&gt; &gt; &nbsp; &nbsp; &nbsp;So now you 
    have to parse data part of this buffer , because data<BR>&gt; part<BR>&gt; 
    &gt; of the buffer have the actual data .<BR>&gt; &gt; &nbsp; &nbsp; 
    &nbsp;For your outgoing packets allocate one more GstBuffer and copy 
    the<BR>&gt; &gt; required number of bytes of data from received buffer to 
    this buffer and<BR>&gt; &gt; push this buffer to next element.<BR>&gt; 
    &gt;<BR>&gt; &gt; &nbsp;You can use adapter APIs also to make it simpler . 
    Read GstBuffer APIs<BR>&gt; &gt; thoroughly for good practice.<BR>&gt; 
    &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; On Tue, Oct 21, 2008 at 3:59 PM, 
    Irfan Shaikh<BR>&gt; &gt; &lt;<A 
    href="mailto:irfanshaikh@tataelxsi.co.in">irfanshaikh@tataelxsi.co.in</A>&gt;wrote:<BR>&gt; 
    &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 
    &nbsp;-----Original Message-----<BR>&gt; &gt; &nbsp;&gt; From: sudarshan 
    bisht [mailto:<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&lt;<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&gt;<BR>&gt; 
    &lt;<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&gt;<BR>&gt; 
    &gt; &lt;<A 
    href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</A>&gt;<BR>&gt; 
    &gt; &gt; ]<BR>&gt; &gt; &gt; Sent: Tue 10/21/2008 2:25 PM<BR>&gt; &gt; &gt; 
    To: Discussion of the development of GStreamer<BR>&gt; &gt; &gt; Subject: 
    Re: [gst-devel] Size of output buffer<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 
    &nbsp;Hi<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; &nbsp;"gst_pad_push_event" 
    function pushes only events ( EOS , new segment<BR>&gt; etc<BR>&gt; &gt; 
    )<BR>&gt; &gt; &gt; not buffer , in order to push buffer use "gst_pad_push" 
    &nbsp;api .<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; On Tue, Oct 21, 2008 at 1:58 
    PM, Irfan Shaikh<BR>&gt; &gt; &gt; &lt;<A 
    href="mailto:irfanshaikh@tataelxsi.co.in">irfanshaikh@tataelxsi.co.in</A>&gt;wrote:<BR>&gt; 
    &gt; &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Hi Julien,<BR>&gt; 
    &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &nbsp; &nbsp; &nbsp;Thanks for your 
    reply..<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &nbsp; &nbsp; 
    &nbsp;For ffmux_asf plug-in in gstffmpegmux.c.<BR>&gt; &gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; &gt; &nbsp; &nbsp; &nbsp;Is "gst_pad_push_event" is 
    the fuction which pushes the buffer<BR>&gt; &gt; which<BR>&gt; &gt; &gt; 
    &gt; has ASF data into sink pad of next elemnt ?<BR>&gt; &gt; &gt; &gt; 
    &nbsp; &nbsp; &nbsp;i.e. gst_pad_push_event (ffmpegmux-&gt;srcpad, 
    gst_event_new_eos<BR>&gt; ());<BR>&gt; &gt; &gt; &gt; When i checked the 
    sise of buffer its variable in size.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; 
    &gt; &gt;<BR>&gt; &gt; &gt; &gt; &nbsp; &nbsp; &nbsp; I need to allocate 
    buffer for the next module to "ffmux_asf".<BR>&gt; &gt; Which<BR>&gt; &gt; 
    &gt; &gt; is an asf parse. i need to allocate buffer in asf parser plugin. 
    I<BR>&gt; &gt; wanted<BR>&gt; &gt; &gt; to<BR>&gt; &gt; &gt; &gt; know what 
    size of buffer should i allocate for ASF parser plug-in to<BR>&gt; &gt; 
    take<BR>&gt; &gt; &gt; &gt; i/p from ffmux_asf<BR>&gt; &gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; &gt; I checked the buffer size in ffmux_asf in 
    gst_ffmpegmux_collected<BR>&gt; &gt; &gt; &gt; (GstCollectPads * pads, 
    gpointer user_data)<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; But it 
    shows variable part. Tell me whether i am right ??<BR>&gt; &gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; &gt; Size of buf:5757<BR>&gt; &gt; &gt; &gt; Size of 
    buf:7134<BR>&gt; &gt; &gt; &gt; Size of buf:6927<BR>&gt; &gt; &gt; &gt; Size 
    of buf:5670<BR>&gt; &gt; &gt; &gt; Size of buf:4989<BR>&gt; &gt; &gt; &gt; 
    Size of buf:4004<BR>&gt; &gt; &gt; &gt; Size of buf:3615<BR>&gt; &gt; &gt; 
    &gt; Size of buf:3188<BR>&gt; &gt; &gt; &gt; Size of buf:3022<BR>&gt; &gt; 
    &gt; &gt; Size of buf:2703<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; 
    Thanks and regards,<BR>&gt; &gt; &gt; &gt; Irfan<BR>&gt; &gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; 
    -----Original Message-----<BR>&gt; &gt; &gt; &nbsp;&gt; From: Julien Puydt 
    [mailto:<A href="mailto:jpuydt@free.fr">jpuydt@free.fr</A> &lt;<A 
    href="mailto:jpuydt@free.fr">jpuydt@free.fr</A>&gt; &lt;<BR>&gt; <A 
    href="mailto:jpuydt@free.fr">jpuydt@free.fr</A>&gt; &lt;<BR>&gt; &gt; <A 
    href="mailto:jpuydt@free.fr">jpuydt@free.fr</A>&gt; &lt;<BR>&gt; &gt; &gt; 
    <A href="mailto:jpuydt@free.fr">jpuydt@free.fr</A>&gt;]<BR>&gt; &gt; &gt; 
    &gt; Sent: Mon 10/20/2008 3:29 PM<BR>&gt; &gt; &gt; &gt; To: Discussion of 
    the development of GStreamer<BR>&gt; &gt; &gt; &gt; Subject: Re: [gst-devel] 
    Size of output buffer<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; 
    irfanshaikh a écrit :<BR>&gt; &gt; &gt; &gt; &gt; &nbsp; &nbsp; &nbsp; 
    &nbsp; How can i find size of output buffer in "ffmux_asf" which<BR>&gt; 
    is<BR>&gt; &gt; &gt; &gt; pushed<BR>&gt; &gt; &gt; &gt; &gt; to the sink pad 
    of next element ?<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; 
    GST_BUFFER_SIZE (buffer) ?<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; 
    Snark on #gstreamer<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; 
    &gt; 
    -------------------------------------------------------------------------<BR>&gt; 
    &gt; &gt; &gt; This SF.Net email is sponsored by the Moblin Your Move 
    Developer's<BR>&gt; &gt; &gt; &gt; challenge<BR>&gt; &gt; &gt; &gt; Build 
    the coolest Linux based applications with Moblin SDK &amp; win<BR>&gt; 
    great<BR>&gt; &gt; &gt; &gt; prizes<BR>&gt; &gt; &gt; &gt; Grand prize is a 
    trip for two to an Open Source event anywhere in the<BR>&gt; &gt; &gt; 
    world<BR>&gt; &gt; &gt; &gt; <A 
    href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" 
    target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>&gt; 
    &gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; 
    &gt; &gt; gstreamer-devel mailing list<BR>&gt; &gt; &gt; &gt; <A 
    href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
    &gt; &gt; &gt; <A 
    href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt; 
    &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &nbsp;This message (including any 
    attachment) is confidential and may be<BR>&gt; &gt; &gt; &gt; legally 
    privileged. Access to this message by anyone other than the<BR>&gt; &gt; 
    &gt; intended<BR>&gt; &gt; &gt; &gt; recipient(s) listed above is 
    unauthorized. If you are not the<BR>&gt; intended<BR>&gt; &gt; &gt; &gt; 
    recipient you are hereby notified that any disclosure, copying, or<BR>&gt; 
    &gt; &gt; &gt; distribution of the message, or any action taken or omission 
    of<BR>&gt; action<BR>&gt; &gt; by<BR>&gt; &gt; &gt; &gt; you in reliance 
    upon it, is prohibited and may be unlawful. Please<BR>&gt; &gt; &gt; &gt; 
    immediately notify the sender by reply e-mail and permanently delete<BR>&gt; 
    &gt; all<BR>&gt; &gt; &gt; &gt; copies of the message if you have received 
    this message in error.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; 
    &gt; 
    -------------------------------------------------------------------------<BR>&gt; 
    &gt; &gt; &gt; This SF.Net email is sponsored by the Moblin Your Move 
    Developer's<BR>&gt; &gt; &gt; &gt; challenge<BR>&gt; &gt; &gt; &gt; Build 
    the coolest Linux based applications with Moblin SDK &amp; win<BR>&gt; 
    great<BR>&gt; &gt; &gt; &gt; prizes<BR>&gt; &gt; &gt; &gt; Grand prize is a 
    trip for two to an Open Source event anywhere in the<BR>&gt; &gt; &gt; 
    world<BR>&gt; &gt; &gt; &gt; <A 
    href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" 
    target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>&gt; 
    &gt; &gt; &gt; _______________________________________________<BR>&gt; &gt; 
    &gt; &gt; gstreamer-devel mailing list<BR>&gt; &gt; &gt; &gt; <A 
    href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
    &gt; &gt; &gt; <A 
    href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt; 
    &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; --<BR>&gt; &gt; &gt; Regards,<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; Sudarshan Bisht<BR>&gt; &gt; &gt;<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; Hi sudarshan/Ved,<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 
    &nbsp; &nbsp; &nbsp; In gstffmpegmux.c {gst-ffmpeg-0.10.5/ext/ffmpeg} i do 
    not see any<BR>&gt; &gt; &gt; "gst_pad_push" function.<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; I understand we need a function something like 
    "gst_pad_push<BR>&gt; &gt; &gt; (asfmux-&gt;srcpad, buf)", so as to push the 
    buffer to the sink pad of<BR>&gt; next<BR>&gt; &gt; &gt; module.<BR>&gt; 
    &gt; &gt;<BR>&gt; &gt; &gt; But i do not find any such api in 
    gstffmpegmux.c.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; So i am unable to find 
    the size of output buffer which is send to the<BR>&gt; &gt; next<BR>&gt; 
    &gt; &gt; module.So i got confused with "gst_pad_push_event"<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; Please can you help me regarding this issue.<BR>&gt; 
    &gt; &gt;<BR>&gt; &gt; &gt; I need all this information to allocate buffer 
    size for my module "ASF<BR>&gt; &gt; &gt; parser" which is built from 
    scratch in C. rite know i am reading from<BR>&gt; &gt; file.<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt; I need to do same processing in ASF parser when i use 
    ffmux_asf as<BR>&gt; input<BR>&gt; &gt; &gt; module for ASF parser.<BR>&gt; 
    &gt; &gt;<BR>&gt; &gt; &gt; Please help me regarding this.<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Regards,<BR>&gt; &gt; &gt; 
    Irfan<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; &nbsp;This message (including any 
    attachment) is confidential and may be<BR>&gt; &gt; &gt; legally privileged. 
    Access to this message by anyone other than the<BR>&gt; &gt; 
    intended<BR>&gt; &gt; &gt; recipient(s) listed above is unauthorized. If you 
    are not the intended<BR>&gt; &gt; &gt; recipient you are hereby notified 
    that any disclosure, copying, or<BR>&gt; &gt; &gt; distribution of the 
    message, or any action taken or omission of action<BR>&gt; by<BR>&gt; &gt; 
    &gt; you in reliance upon it, is prohibited and may be unlawful. 
    Please<BR>&gt; &gt; &gt; immediately notify the sender by reply e-mail and 
    permanently delete<BR>&gt; all<BR>&gt; &gt; &gt; copies of the message if 
    you have received this message in error.<BR>&gt; &gt; &gt;<BR>&gt; &gt; 
    &gt;<BR>&gt; 
    -------------------------------------------------------------------------<BR>&gt; 
    &gt; &gt; This SF.Net email is sponsored by the Moblin Your Move 
    Developer's<BR>&gt; &gt; &gt; challenge<BR>&gt; &gt; &gt; Build the coolest 
    Linux based applications with Moblin SDK &amp; win great<BR>&gt; &gt; &gt; 
    prizes<BR>&gt; &gt; &gt; Grand prize is a trip for two to an Open Source 
    event anywhere in the<BR>&gt; &gt; world<BR>&gt; &gt; &gt; <A 
    href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" 
    target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>&gt; 
    &gt; &gt; _______________________________________________<BR>&gt; &gt; &gt; 
    gstreamer-devel mailing list<BR>&gt; &gt; &gt; <A 
    href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
    &gt; &gt; <A 
    href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt; 
    &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; 
    --<BR>&gt; &gt; Regards,<BR>&gt; &gt;<BR>&gt; &gt; Sudarshan Bisht<BR>&gt; 
    &gt;<BR>&gt; &gt; &nbsp; This message (including any attachment) is 
    confidential and may be<BR>&gt; &gt; legally privileged. Access to this 
    message by anyone other than the<BR>&gt; intended<BR>&gt; &gt; recipient(s) 
    listed above is unauthorized. If you are not the intended<BR>&gt; &gt; 
    recipient you are hereby notified that any disclosure, copying, or<BR>&gt; 
    &gt; distribution of the message, or any action taken or omission of action 
    by<BR>&gt; &gt; you in reliance upon it, is prohibited and may be unlawful. 
    Please<BR>&gt; &gt; immediately notify the sender by reply e-mail and 
    permanently delete all<BR>&gt; &gt; copies of the message if you have 
    received this message in error.<BR>&gt; &gt;<BR>&gt; &gt; 
    -------------------------------------------------------------------------<BR>&gt; 
    &gt; This SF.Net email is sponsored by the Moblin Your Move 
    Developer's<BR>&gt; &gt; challenge<BR>&gt; &gt; Build the coolest Linux 
    based applications with Moblin SDK &amp; win great<BR>&gt; &gt; 
    prizes<BR>&gt; &gt; Grand prize is a trip for two to an Open Source event 
    anywhere in the<BR>&gt; world<BR>&gt; &gt; <A 
    href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" 
    target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>&gt; 
    &gt; _______________________________________________<BR>&gt; &gt; 
    gstreamer-devel mailing list<BR>&gt; &gt; <A 
    href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
    &gt; <A href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt; 
    &gt;<BR>&gt; &gt;<BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt; 
    Regards,<BR>&gt;<BR>&gt; Sudarshan Bisht<BR>&gt;<BR>&gt; &nbsp; This message 
    (including any attachment) is confidential and may be<BR>&gt; legally 
    privileged. Access to this message by anyone other than the intended<BR>&gt; 
    recipient(s) listed above is unauthorized. If you are not the 
    intended<BR>&gt; recipient you are hereby notified that any disclosure, 
    copying, or<BR>&gt; distribution of the message, or any action taken or 
    omission of action by<BR>&gt; you in reliance upon it, is prohibited and may 
    be unlawful. Please<BR>&gt; immediately notify the sender by reply e-mail 
    and permanently delete all<BR>&gt; copies of the message if you have 
    received this message in error.<BR>&gt;<BR>&gt; 
    -------------------------------------------------------------------------<BR>&gt; 
    This SF.Net email is sponsored by the Moblin Your Move Developer's<BR>&gt; 
    challenge<BR>&gt; Build the coolest Linux based applications with Moblin SDK 
    &amp; win great<BR>&gt; prizes<BR>&gt; Grand prize is a trip for two to an 
    Open Source event anywhere in the world<BR>&gt; <A 
    href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" 
    target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>&gt; 
    _______________________________________________<BR>&gt; gstreamer-devel 
    mailing list<BR>&gt; <A 
    href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>&gt; 
    <A href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>&gt;<BR>&gt;<BR><BR><BR>--<BR>Regards,<BR><BR>Sudarshan 
    Bisht<BR><BR><BR>This message (including any attachment) is confidential and 
    may be legally privileged. &nbsp;Access to this message by anyone other than 
    the intended recipient(s) listed above is unauthorized. &nbsp;If you are not 
    the intended recipient you are hereby notified that any disclosure, copying, 
    or distribution of the message, or any action taken or omission of action by 
    you in reliance upon it, is prohibited and may be unlawful. &nbsp;Please 
    immediately notify the sender by reply e-mail and permanently delete all 
    copies of the message if you have received this message in 
    error.<BR></DIV></DIV><BR>-------------------------------------------------------------------------<BR>This 
    SF.Net email is sponsored by the Moblin Your Move Developer's 
    challenge<BR>Build the coolest Linux based applications with Moblin SDK 
    &amp; win great prizes<BR>Grand prize is a trip for two to an Open Source 
    event anywhere in the world<BR><A 
    href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" 
    target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>_______________________________________________<BR>gstreamer-devel 
    mailing list<BR><A 
    href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR><A 
    href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" 
    target=_blank>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>Regards,<BR><BR>Sudarshan 
Bisht<BR></BLOCKQUOTE><p>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.</p>
</BODY></HTML>