<div dir="ltr">Thanks Tim and Arjen. I made a silly mistake by adding the probe function on sinkpad instead of srcpad. After fixing that I got the correct compressed video frame size. <div><br></div><div><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 24, 2016 at 6:38 AM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span class=""><div>On Wed, 2016-08-24 at 06:22 -0400, Jake Zhang wrote:</div><div><br></div><blockquote type="cite"><div dir="ltr">I believe I have tried that and the gst_buffer_get_size() will return the raw video frame size even you polling it on encoder source pad. </div><div class="gmail_extra"><br><div class="gmail_quote"></div></div></blockquote><pre></pre></span><pre>That sounds like a bug in your encoders then.</pre><pre><br></pre><pre>e.g. see</pre><pre><br></pre><pre>gst-launch-1.0 videotestsrc ! identity silent=false ! x264enc ! fakesink silent=false -v</pre><pre><br></pre><pre>shows size in bytes for each buffer going into the encoder (identity) and coming out of it (fakesink).</pre><pre><br></pre><pre>Cheers</pre><span class="HOEnZb"><font color="#888888"><pre> -Tim</pre><pre><br></pre><div><span><pre><pre>-- <br></pre>Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a>
</pre></span></div></font></span></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>