mediamtx scipt added

This commit is contained in:
Roxy 2023-06-09 10:16:09 +02:00
parent a543684727
commit ef64b903f3
2 changed files with 26 additions and 0 deletions

View File

@ -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` 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 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 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.

View File

@ -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