# High cpu usage!

**URL:** <https://discourse.gstreamer.org/t/high-cpu-usage/5487>\
**Category:** General Discussion\
**Created:** [November 1, 2025, 6:22pm UTC](https://discourse.gstreamer.org/t/high-cpu-usage/5487 "2025-11-01T18:22:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggwebrc](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/ggwebrc/32/1533_2.png) [@ggwebrc](https://discourse.gstreamer.org/u/ggwebrc)\
**Post date:** [November 1, 2025, 6:22pm UTC](https://discourse.gstreamer.org/t/high-cpu-usage/5487/1 "2025-11-01T18:22:28Z")

</div>

Hello guys,

I’m currently running the following GStreamer pipeline to mix two VP8 video streams and play audio.

The problem is that the CPU usage is kind of high, likely because of decoding, scaling, and compositing VP8 streams in software.

Does anyone have suggestions or tweaks to **minimize CPU usage** while doing this? Any tips for optimizing this pipeline would be greatly appreciated.

```auto
gst-launch-1.0 \
    compositor name=mix \
        sink_0::xpos=0 sink_0::ypos=0 sink_0::width=640 sink_0::height=360 \
        sink_1::xpos=640 sink_1::ypos=0 sink_1::width=640 sink_1::height=360 ! \
    video/x-raw,width=1280,height=360 ! \
    autovideosink sync=false \
    \
    udpsrc port=5010 caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=VP8" ! \
    rtpjitterbuffer drop-on-latency=true ! \
    rtpvp8depay ! vp8dec ! videoconvert ! videoscale ! \
    video/x-raw,width=640,height=360 ! mix.sink_0 \
    \
    udpsrc port=5012 caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=VP8" ! \
    rtpjitterbuffer drop-on-latency=true ! \
    rtpvp8depay ! vp8dec ! videoconvert ! videoscale ! \
    video/x-raw,width=640,height=360 ! mix.sink_1 \
    \
    udpsrc port=5014 caps="application/x-rtp,payload=111" ! \
    rtpjitterbuffer drop-on-latency=true ! \
    rtpopusdepay ! opusdec ! \
    audioconvert ! \
    autoaudiosink

```

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/honey_patouceul/32/365_2.png) [@Honey\_Patouceul](https://discourse.gstreamer.org/u/Honey_Patouceul)\
**Post date:** [November 2, 2025, 9:18pm UTC](https://discourse.gstreamer.org/t/high-cpu-usage/5487/2 "2025-11-02T21:18:28Z")

</div>

You may say if you have multiple CPUs and if the CPU usage is one core only. With Linux, tools like `htop` would show that. In such case, you may try adding a `queue`element before each compositor’s `mix.sink`.

Furthermore, if you have a specific target HW, you may also investigate if this one provides HW VP8 decoder or HW converter or HW scaler.
