Get percentage completion in gstreamer

Tim Müller tim at centricular.com
Tue Oct 28 07:04:53 PDT 2014


On Tue, 2014-10-28 at 03:25 -0700, Baby Octopus wrote:

Hi,

> I have following pipeline for format conversion
> 
> gst-launch-1.0 filesrc location=test.mp4 ! decodebin ! videoscale !
> video/x-raw,width=640,height=360 ! x264enc bitrate=600 ! mp4mux ! filesink
> location=out.mp4
> 
> I would like to periodically show the percentage completion of this format
> conversion job. Is there a direct way to do this?

Insert a 'progressreport' element somewhere between decodebin and
x264enc. It will regularly send GST_MESSAGE_ELEMENT messages with a
structure named "progress" that contains "percent" (int) and
"percent-double" (double) fields.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list