1.1 KiB
1.1 KiB
streamupload
Upload videos to be re-encoded and scheduled for streaming
Install
- Prepare a server, set its timezone to the users' timezone
(on deb-based systems:
dpkg-reconfigure tzdata) - On the server,
cdto the place where you want the files - Clone repo:
git clone https://gitlab.com/pepa65/streamupload cd streamupload- Change the value of the
repopathvariable instreamandencodeto the output ofecho $PWD - Run a php/webserver on $PWD/uploadpage
- Get it to restart on reboot
- Setting up basicauth on the page is a good idea if others can get access!
- Change the relevant
php.inito allow large file uploads:post_max_size- Upper limit of uploaded video sizes, say10Gupload_max_filesize- same value aspost_max_size
- Make a crontab-entry: "* * * * * $PWD/encode" (replace $PWD with its value!)
Usage
- Get a streamkey for the target by scheduling a stream (supported are: Restream.io, YouTube.com, Facebook.com)
- Go to the server's IP address in the browser:
http://$ipaddress - Fill in the form, click "Schedule Stream"