get compressed video frame size (x264 or omxh264enc)

Tim Müller tim at centricular.com
Wed Aug 24 10:38:01 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160824/f4153de2/attachment.html>


More information about the gstreamer-devel mailing list