Considering that mjpg-streamer is losing steam on being maintained, I am looking for alternatives. I have webcams on several AP’s in my home. I was looking into ustreamer as an alternative. I use the below script to build OpenWRT for my AP:
#wget build
rm *.tar.xz
rm *.zst
clear
wget https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-imagebuilder-ramips-mt7621.Linux-x86_64.tar.zst
#Extract and remove
tar --zstd -xvf openwrt-imagebuilder-ramips-mt7621.Linux-x86_64.tar.zst
rm openwrt-imagebuilder-ramips-mt7621.Linux-x86_64.tar.zst
mv openwrt-imagebuilder-ramips-mt7621.Linux-x86_64 builder
chmod -R 777 builder
clear
#Add backup to image
sudo mkdir /home/sr_guy/Downloads/WR1200JS/builder/files
sudo chmod -R 777 /home/sr_guy/Downloads/WR1200JS/builder/files
sudo chmod -R 777 /home/sr_guy/Downloads/WR1200JS/builder
sudo cp -Rv /home/sr_guy/Downloads/WR1200JS/backups/dap1/*.tar.gz /home/sr_guy/Downloads/WR1200JS/builder/files
cd /home/sr_guy/Downloads/WR1200JS/builder/files
sudo tar -xvzf /home/sr_guy/Downloads/WR1200JS/backups/dap1/*.tar.gz
sudo chmod -R 777 /home/sr_guy/Downloads/WR1200JS/builder/files/etc
sudo chmod -R 777 /home/sr_guy/Downloads/WR1200JS/builder/files/usr
#BUILD
cd /home/sr_guy/Downloads/WR1200JS/builder
clear
sudo make clean
sudo make image RELEASE="" PROFILE="youhua_wr1200js" FILES="files" PACKAGES="block-mount kmod-fs-ext4 kmod-usb-storage kmod-usb2 kmod-usb3 nano e2fsprogs dmesg htop tcpdump usbutils kmod-usb-core kmod-usb2 ntpd"
cd /home/sr_guy/Downloads/WR1200JS/builder/bin/targets/ramips/mt7621
sudo mv *.bin /home/sr_guy/Downloads/WR1200JS/images/snap/dap1
sudo chmod -R 777 /home/sr_guy/Downloads/WR1200JS/images/
#rsync -av /home/sr_guy/Downloads /mnt/2TB
#clear
sudo chmod -R o+rwx /home/sr_guy/Downloads/WR1200JS/images/
What would be the easiest way to buildustreamer inside that script, and build it directly into the OpenWRT image? Or at minimum, buiding it as a apk to install from CLI.