Videoconvert needs to be optimized

Tim Müller tim at centricular.com
Sun Oct 5 06:46:59 PDT 2014


On Sun, 2014-10-05 at 16:23 +0300, Yaroslav Andrusyak wrote:

> CPU time of this pipeline
> gst-launch-1.0 -e ximagesrc display-name=:0 use-damage=0 !
> multiqueue ! video/x-raw,format=BGRx ! videoconvert !
> video/x-raw,format=I420,framerate=30/1 ! multiqueue !
> vaapiencode_h264  ! vaapiparse_h264 ! multiqueue ! matroskamux
> name=muxer muxer. ! progressreport name=Rec_time ! filesink
> location=/disk/tmp//rec_2014-10-05_123757.mkv
> and then
> perf stat -p `pidof gst-launch-1.0`

It might make sense to try and condense the pipeline to the essential
bits that you're trying to benchmark, e.g. something like:

perf stat gst-launch-1.0 videotestsrc !
video/x-raw,format=BGRx,width=1920,height=1080 ! imagefreeze ! queue !
videoconvert ! video/x-raw,format=I420 ! fakesink num-buffers=1000

or just

time gst-launch-1.0 ...

Cheers
 -Tim

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



More information about the gstreamer-devel mailing list