Skip to content

Commit

Permalink
Support vah264lpenc (Intel Arc)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Feb 22, 2024
1 parent 98c634e commit 7c278ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/selkies_gstreamer/gstwebrtc_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def build_video_pipeline(self):
rtph264pay_capsfilter = Gst.ElementFactory.make("capsfilter")
rtph264pay_capsfilter.set_property("caps", rtph264pay_caps)

elif self.encoder in ["vah264enc"]:
elif self.encoder in ["vah264enc", "vah264lpenc"]:
# color converter
vapostproc = Gst.ElementFactory.make("vapostproc")
vapostproc.set_property("scale-method", "fast")
Expand All @@ -318,7 +318,7 @@ def build_video_pipeline(self):
vapostproc_capsfilter.set_property("caps", vapostproc_caps)

# encoder
vah264enc = Gst.ElementFactory.make("vah264enc", "vaenc")
vah264enc = Gst.ElementFactory.make(self.encoder, "vaenc")
vah264enc.set_property("i-frames", 0)
vah264enc.set_property("b-frames", 0)
vah264enc.set_property("key-int-max", 0)
Expand Down

0 comments on commit 7c278ee

Please sign in to comment.