rtsp -> fakesink performance

Nicolas Dufresne nicolas at ndufresne.ca
Mon Nov 21 03:06:37 UTC 2022


Hi,

Le dim. 20 nov. 2022, 21 h 30, Scot Zarkiewicz via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> a écrit :

> Hi-
>
>  I have a pipeline that is configured as below:
>
> rtspsrc location=rtsp://192.168.0.90:554/axis-media/media.amp ! decodebin
> ! fakesink enable-last-sample=true name=sink
>
> I am grabbing frames from the RTSP for processing in my application.  All
> is working well, but I am only able to run at about 10 fps.  The bulk of
> the time is being spent in the code below (commenting this out I get around
> 30 fps):
>
>     caps = gst_caps_from_string ("image/png");
>     pic_sample = gst_video_convert_sample (from_sample, caps,
> GST_CLOCK_TIME_NONE, &err);
>
> This isn't surprising as this is obviously a computationally
> intensive operation, but I was wondering if there was a different plugin or
> set of plugs that might use the hardware decoder to pop out actual
> png/jpg/bmp images w/o having to do this in software?
>

That function simply build a GStreamer pipeline and run it. You can do the
same but using HW acceleration. The remaining details will depend on your
chosen HW.

Regards,
Nicolas


> Thanks in advance for any help on this,
>
> Scot
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221120/83523774/attachment.htm>


More information about the gstreamer-devel mailing list