get compressed video frame size (x264 or omxh264enc)

Jake Zhang zjpseudo at gmail.com
Wed Aug 24 16:39:04 UTC 2016


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.




On Wed, Aug 24, 2016 at 6:38 AM, Tim Müller <tim at centricular.com> wrote:

> On Wed, 2016-08-24 at 06:22 -0400, Jake Zhang wrote:
>
> 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.
>
> That sounds like a bug in your encoders then.
>
>
> e.g. see
>
>
> gst-launch-1.0 videotestsrc ! identity silent=false ! x264enc ! fakesink silent=false -v
>
>
> shows size in bytes for each buffer going into the encoder (identity) and coming out of it (fakesink).
>
>
> Cheers
>
>  -Tim
>
>
> --
>
> Tim Müller, Centricular Ltd - http://www.centricular.com
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160824/c3cf1dee/attachment.html>


More information about the gstreamer-devel mailing list