Browse Source

mediamtx scipt added

master
Roxy 11 months ago
parent
commit
ef64b903f3
  1. 3
      README.md
  2. 23
      mediamtx-automation/mediamtx-base.sh

3
README.md

@ -28,3 +28,6 @@ Do not use the Appimage provided on the rockbox website, this will fail as apps
7. Select the applications you wish to install before selecting `Install`
8. Follow the onscreen instructions, if your installation gets stuck after the skipping themes message, retry but uncheck the Themes installation box
9. After the installation is finished you should now have RockBox on your iPod allowing you to use it like any other MP3 player without having to use Apple file formats or iTunes in general
## Automating the installation of mediamtx
Whenever I require to install mediamtx to run USB Webcams over RTSP I am required to install mediamtx this is something that can clearly be automated using bash hence why you will find a basic bash script in the mediamtx folder that automates this process for me.

23
mediamtx-automation/mediamtx-base.sh

@ -0,0 +1,23 @@
#!/bin/bash
#go to home dir
cd ~/
#make a temp dir for the download and enter it
mkdir temp && cd temp
#download server
wget https://github.com/aler9/mediamtx/releases/download/v0.22.2/mediamtx_v0.22.2_linux_amd64.tar.gz
#go to home dir
cd ~/
#go to client and rtsp dir
mkdir client && cd client && mkdir rtsp && cd rtsp
#extract downloaded server to rtsp dir
tar -xf ~/temp/mediamtx_v0.22.2_linux_amd64.tar.gz
#change back to root user and install dependencies
sudo apt install ffmpeg v4l-utils -y
Loading…
Cancel
Save