egress icon indicating copy to clipboard operation
egress copied to clipboard

Support GPU encode

Open nitedani opened this issue 2 years ago • 2 comments

Gstreamer has built-in support for various GPU accelerated encoders. There could be multiple gstreamer pipelines pre-defined in the egress code(x264enc, nvh264enc, openh264enc, vp8enc, ...) and then selected using the egress configuration/ selected by auto-detecting the hardware. This would be very useful, a single machine could handle much more egress load and reduce operational costs.

nitedani avatar Nov 15 '22 13:11 nitedani

Is x264enc always faster than openh264enc and vp8enc? Have you experimented with how their configuration affects their speed?

nitedani avatar Nov 15 '22 17:11 nitedani

x264enc is much faster than vp8enc (we weren't able to run vp8enc in real time without hardware acceleration), but I have not tested against openh264enc. We have experimented a bit with configuration, and landed on speed-preset = veryfast

frostbyte73 avatar Jan 04 '23 05:01 frostbyte73