diff --git a/Dockerfile b/Dockerfile index abd40cf..a647e65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,19 @@ rpm-ostree install ksshaskpass uksmd clang clang-devel cronie distrobox fish fla RUN mkdir /var/opt && cd /tmp && wget https://mullvad.net/da/download/app/rpm/latest -O mullvad.rpm && rpm-ostree install mullvad.rpm && \ mv "/opt/Mullvad VPN" /usr/lib/opt/ +# install gpu screen recorder +COPY gpu-screen-recorder/ /tmp/gpu-screen-recorder/ +RUN cd /tmp/gpu-screen-recorder && \ +./install.sh && \ +setcap cap_sys_admin+ep '/usr/bin/gsr-kms-server' + +# install RPM-fusion +RUN rpm-ostree install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm + +# install nonfree codecs +RUN rpm-ostree override remove libavcodec-free libavfilter-free libavformat-free libavutil-free libpostproc-free libswresample-free libswscale-free mesa-va-drivers --install libavcodec-freeworld && \ +rpm-ostree install ffmpeg ffmpeg-libs intel-media-driver pipewire-codec-aptx libva-intel-driver libva-utils mesa-va-drivers-freeworld + RUN rpm-ostree cleanup -m && \ rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \ ostree container commit \ No newline at end of file diff --git a/gpu-screen-recorder/gpu-screen-recorder b/gpu-screen-recorder/gpu-screen-recorder new file mode 100755 index 0000000..cf39057 Binary files /dev/null and b/gpu-screen-recorder/gpu-screen-recorder differ