Videoconvert needs to be optimized

Yaroslav Andrusyak pontostroy at gmail.com
Mon May 19 09:19:13 PDT 2014


2014-05-19 15:17 GMT+00:00 Mart Raudsepp <leio at gentoo.org>:

> On P, 2014-05-18 at 18:46 -0400, Nicolas Dufresne wrote:
> > Le dimanche 18 mai 2014 à 18:33 +0000, Yaroslav Andrusyak a écrit :
> > > Gstreamer is are great software, i use it for srcreencastin with
> > > hardware vaapi and omx h264 encoding.
> > > But conversion  from ximagesrc (BGRx) --> vaapi\omx (NV12) with
> > > videoconvert (videoconvert_convert_matrix8)
> > > uses too many CPU resources.
> >
> > The biggest gain would be to get an HW accelerated post process method
> > to do the work. Basically a way to replace videoconvert with an
> > accelerated version.
> >
> > Videoconvert already has a lot of optimization, we can't trade
> > correctness for speed, hence there will always be a certain amount of
> > work to do. Though you have an interesting typo, "many CPU", an option
> > could be to add some parallel processing to videoconvert so the load
> > could be spread across multiple cores. This will for sure require a
> > lot of work, but could enabled real time processing of larger images
> > in certain cases.
>
> I did some test gstreamer(omx\vaapi\x264enc  vs
http://www.maartenbaert.be/simplescreenrecorder/)
simplescreenrecorder has  Convert_BGRA_YUV420_SSSE3
https://github.com/MaartenBaert/ssr/blob/master/src/AV/FastScaler_Convert_SSSE3.cppand
looks very good.
Gstreamer has hardware h264 encoders, but slow BGRx NV12 convert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140519/015c7888/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu13.png
Type: image/png
Size: 127611 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140519/015c7888/attachment-0001.png>


More information about the gstreamer-devel mailing list