Update Scanner AV Streaming on VM in Unraid
parent
4d232537e5
commit
03181984e1
@ -10,13 +10,13 @@ This article will go through my setup for hosting a scanner A/V stream from an U
|
|||||||
* Logitech C90 webcam
|
* Logitech C90 webcam
|
||||||
|
|
||||||
# Guide
|
# Guide
|
||||||
## Assign devices to VM
|
### Assign devices to VM
|
||||||
(This is only necessary if your sound card is PCI-connected)
|
(This is only necessary if your sound card is PCI-connected)
|
||||||
1. In UnRAID go to Tools -> System Devices
|
1. In UnRAID go to Tools -> System Devices
|
||||||
2. Check the box(ex) for the IOMMU group(s) for your audio card
|
2. Check the box(ex) for the IOMMU group(s) for your audio card
|
||||||
3. Reboot the server
|
3. Reboot the server
|
||||||
|
|
||||||
## Set up the VM
|
### Set up the VM
|
||||||
1. Download Ubuntu Server ISO to UnRAID server
|
1. Download Ubuntu Server ISO to UnRAID server
|
||||||
2. Create an Ubuntu VM in UnRAID
|
2. Create an Ubuntu VM in UnRAID
|
||||||
* Pass through a few CPU cores, at least to start with, this will make installation faster
|
* Pass through a few CPU cores, at least to start with, this will make installation faster
|
||||||
@ -28,7 +28,7 @@ This article will go through my setup for hosting a scanner A/V stream from an U
|
|||||||
3. Start up the VM and proceed through installation of Ubuntu Server
|
3. Start up the VM and proceed through installation of Ubuntu Server
|
||||||
4. (Optional) Shutdown the VM and adjust the specs back to minimal (1G RAM, 1-2CPU cores)
|
4. (Optional) Shutdown the VM and adjust the specs back to minimal (1G RAM, 1-2CPU cores)
|
||||||
|
|
||||||
## Set up the Software Stack
|
### Set up the Software Stack
|
||||||
1. Run these commands
|
1. Run these commands
|
||||||
```
|
```
|
||||||
sudo apt update && sudo apt upgrade -y
|
sudo apt update && sudo apt upgrade -y
|
||||||
@ -48,7 +48,7 @@ paths:
|
|||||||
```
|
```
|
||||||
3. Run it with `mediamtx /usr/local/share/mediamtx/mediamtx.yml` and test, adjusting configuration as needed.
|
3. Run it with `mediamtx /usr/local/share/mediamtx/mediamtx.yml` and test, adjusting configuration as needed.
|
||||||
|
|
||||||
## Daemonize the Stream
|
### Daemonize the Stream
|
||||||
1. Create a service file: `sudo nano /etc/systemd/system/mediamtx.service`
|
1. Create a service file: `sudo nano /etc/systemd/system/mediamtx.service`
|
||||||
2. Place the following in the file:
|
2. Place the following in the file:
|
||||||
```ini
|
```ini
|
||||||
@ -72,7 +72,7 @@ WantedBy=multi-user.target
|
|||||||
6. Check on the status: `sudo service mediamtx status`
|
6. Check on the status: `sudo service mediamtx status`
|
||||||
7. Get more log info: `journalctl -u mediamtx`
|
7. Get more log info: `journalctl -u mediamtx`
|
||||||
|
|
||||||
## [Coming Soon] Accessing the Stream
|
### [Coming Soon] Accessing the Stream
|
||||||
|
|
||||||
# `mediamtx` and `ffmpeg` Configuration Information
|
# `mediamtx` and `ffmpeg` Configuration Information
|
||||||
### Paths Section:
|
### Paths Section:
|
||||||
|
Loading…
Reference in New Issue
Block a user