Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.02k stars 1.5k forks source link

Separate directory for live videos #5843

Open Alterak opened 1 year ago

Alterak commented 1 year ago

Describe the problem to be solved

All videos (uploaded videos and live videos) are stored in the /storage/streaming-playlists/hls/... directory

When I run a live video, the processing speed of the live video depends on my storage, which I have on regular HDD drives. Sometimes live videos can give an error, I'm sure it depends on the speed of my hard drives.

image

Describe the solution you would like

I suggest making a separate directory for live videos so that I can specify a directory on another disk in the PeerTube configuration settings (for example, on SSD/NVME).

This will help a lot for the stable operation of live videos.

vid-bin commented 1 year ago

IMO all transcoding jobs should be able to run on a separate disk. This would be especially helpful for network-mounted filesystems such as cephfs/glusterfs/etc.

Alterak commented 1 year ago

IMO all transcoding jobs should be able to run on a separate disk. This would be especially helpful for network-mounted filesystems such as cephfs/glusterfs/etc.

In the configuration file settings, you can specify any location for your files. But unfortunately there is no way for live videos to specify a separate directory. I hope this will be implemented in the near future, I'm really looking forward to it!