Skip to content

Instantly share code, notes, and snippets.

@tvidal-net
Last active November 29, 2023 14:22
Show Gist options
  • Save tvidal-net/dda93291eb5898d43ae268e063c928be to your computer and use it in GitHub Desktop.
Save tvidal-net/dda93291eb5898d43ae268e063c928be to your computer and use it in GitHub Desktop.
Chiaki4Deck PKGBUILD
# based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=chiaki-git
pkgname=chiaki4deck-git
_gitname=chiaki4deck
pkgver=1.3.0
pkgrel=1
pkgdesc="Unofficial PlayStation 4 remote play client"
arch=(x86_64)
url="https://github.com/streetpea/chiaki4deck"
license=('AGPL3')
depends=('qt5-base' 'qt5-multimedia' 'qt5-svg' 'sdl2' 'opus' 'ffmpeg' 'openssl' 'gcc-libs' 'fftw')
makedepends=('git' 'cmake' 'python-protobuf' 'libva' 'python-setuptools')
optdepends=(
'intel-media-driver: vaapi backend for Intel GPUs [>= Broadwell]'
'libva-intel-driver: vaapi backend for Intel GPUs [<= Haswell]'
'libva-vdpau-driver: vaapi backend for Nvidia and AMD GPUs'
'libva-mesa-driver: alternative vaapi backend for AMD GPUs'
)
provides=('chiaki')
conflicts=('chiaki')
source=(git+"${url}")
md5sums=("SKIP")
pkgver() {
cd ${_gitname}
git describe --long --tags | sed 's:^v::;s:\([^-]*-g\):r\1:;s:-:.:g'
}
prepare() {
cd ${_gitname}
mkdir build
git submodule update --init
}
build() {
cd ${_gitname}/build
cmake .. -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE="Release"
make -j
}
package() {
cd ${_gitname}/build
make -j DESTDIR="${pkgdir}" install
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
for lic in ../LICENSES/*; do
install -m644 ${lic} "${pkgdir}/usr/share/licenses/${pkgname}/${lic##*/}"
done
}
@IgnacioBerm
Copy link

I tried your tutorial, but chiaki keeps freezing after a few minutes on steam deck. Could you help me?
Thanks.

@tvidal-net
Copy link
Author

@IgnacioBerm if the defaults are not really working, I would recommend you try setting 30000 for video bitrate and 19200 audio buffer size, hardware acceleration as NVAPI is the most important change. I am going to try again with the most recent steamdeck version and check if anything has changed.

@IgnacioBerm
Copy link

Thanks for the reply. Yes, my configuration is as you mention. But my decoding setting is "vaapi", I can't find NVAPI like you said.

Best regards

@IgnacioBerm
Copy link

Yesterday i installed chiaki4deck in normal mode (searching it for install in desktop mode). And now works perfect.
Thanks.

@tvidal-net
Copy link
Author

It looks like recent steam deck upgrade broke this yet again. I'll try to get a more permanent solution for this issue.

@ccatx2323
Copy link

ive tried to follow the readme but i have no idea how to set this up. Can you please explain

@tvidal-net
Copy link
Author

ive tried to follow the readme but i have no idea how to set this up. Can you please explain

No problem, how far were you able to get? Were you able to download and extract the files?

@ccatx2323
Copy link

ccatx2323 commented Nov 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment