Skip to content

Instantly share code, notes, and snippets.

View YumingChang02's full-sized avatar

YuMingChang YumingChang02

View GitHub Profile
@YumingChang02
YumingChang02 / gist:4cf17d29fa939005996a89828b78de98
Created October 31, 2023 12:38
use ssh key to clone git in Dockerfile
#!/bin/bash

function handler(){
    echo "Processing the Ctrl+C, trying to kill ssh agent"
    ssh-agent -k
    exit 0
}

trap handler SIGINT
@YumingChang02
YumingChang02 / 91-chmod-mkinitcpio.hook
Created December 19, 2023 02:56
pacman hook to changemod initramfs for pxe server to read
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/initcpio/*
Target = usr/lib/firmware/*
Target = usr/src/*/dkms.conf
[Action]
@YumingChang02
YumingChang02 / gist:122bad30695298c8d38b5725a75fbc20
Created April 28, 2025 01:18
install nyanmisaka ffmpeg on rockchip vender kermel ( rk3399 rk3568 rk3588 )
# Native compilation on ARM/ARM64 host
sudo apt update && sudo apt install -y git meson cmake pkg-config gcc libdrm-dev libasound2-dev libmp3lame-dev libopusenc-dev
# Build MPP
mkdir -p /dev/shm/dev && cd /dev/shm/dev
git clone -b jellyfin-mpp --depth=1 https://github.com/nyanmisaka/mpp.git rkmpp
pushd rkmpp
mkdir rkmpp_build
pushd rkmpp_build
cmake \

TC358743 Radxa Zero 3W Notes

Audio

tc358743-audio.dts overlay allows audio to be captured. I2S audio is a 48kHz sampling rate at 32 bit/sample.

Audio Formats

According to gstreamer, the following caps are supported. This seems to indicate that up to 8-channel audio (likely 7.1) capture is supported by the tc35874x driver. I haven't tested more than stereo, and haven't made sure it isn't just mono.