FROM archlinux:latest

RUN pacman -Syu --noconfirm

RUN pacman -Su --noconfirm \
   gstreamer gst-plugins-base gst-plugins-good gst-plugin-rswebrtc

RUN pacman -Syu --noconfirm \
    mesa mesa-utils xorg-xwayland vulkan-intel vpl-gpu-rt intel-media-driver gst-plugin-va gst-plugins-bad gst-plugin-fmp4 gst-plugin-qsv gst-plugin-pipewire

CMD [ "bash","-c", "gst-launch-1.0  videotestsrc ! openh264enc ! whip0. audiotestsrc ! opusenc ! whip0. whipclientsink name=whip0 signaller::whip-endpoint=http://localhost:8088/api/whip/test" ]
