lossless1024 / StreaMonitor

Adult live stream downloader for advanced people. I could have chosen a better name.
GNU General Public License v3.0
172 stars 42 forks source link

How do i add a NAS based Mount to config save all the videos? #128

Open damncryptic opened 6 months ago

damncryptic commented 6 months ago

I wanted to add an external NAS based mount point to configuration of StreaMonitor to save all the videos. I have enabled auto mount in the fstab.

DerBunteBall commented 6 months ago

Hi

To do so you need to change DOWNLOADS_FOLDER in parameters.py. Set it to the mountpoint of your network share.

But keep the following things in mind:

  1. You will have to test if you get clean files. It's not clear whether ffmpeg will produce working files on network shares. This will depend on the used technology (SMB, NFS, AFP...), the OS, the versions and the way how ffmpeg works with files. It's possible that the Filesystem check of StreaMonitor doesn't work.
  2. I would recommand using two different networks but at least two network adapters. StreaMonitor produces much data transfer. Dpending on your internet connection this can lead to much traffic also for your local network. Due to the fact that network filer technologys produce also heavy loads you can get load problems on your network. You can get around this by using two separate networks with two separate adapters.
  3. A better solution - actually not supported by stream monitor - would be moving stuff. So you would need to implement this by yourself. E.g. when files are not associated to a running ffmpeg process move them to the network share. This could be implemented by a python script which runs every hour by a cronjob. For the recording system use SSDs. HDDs are a really bad idea for a recording box (that's my experience).

Best Regards

Acenl12 commented 6 months ago

Just download the latest release into the filesystem of that mount and start it. I have tested it with ext4 and xfs filesystem so make sure you format your nas disk with that filesystem. Or mount it using the nfs client