Emit server daemon.
Dependencies:
- erlang (minimum R14)
- UPnP IGD client lightweight library development files (from ubuntu software center)
- mkvtoolnix required if you want mkv subtitles to work.
It should be in your package management system.
If not:
Sie müssen registriert sein, um Links zu sehen.
- miniupnpc:
Sie müssen registriert sein, um Links zu sehen.
NOTE ubuntu users:
- Erlang in default apt repository is ancient. Run "sh erlang.sh" and it will
install it manually or find a repository with an up to date erlang version.
- Install UPnP IGD client lightweight library development files from software center.
- make install executable (chmod ugo+x install)
Install to default /usr/local
sudo ./install
Install to /usr
sudo ./install /usr
Once installed edit file:
/etc/emit.cfg
emit.cfg is a json file.
- encdir is where emit will put encoded files. This should be its own directory.
- dirs is a list of directories to share (encdir will be shared as well).
- port is 1554 TCP and 2000-2006 UDP by default. You can change it to X
then it will be X TCP and X to X+6 UDP
Config example:
{
"port" : 3000,
"dirs" : [
"/home/user/videos1",
"/home/user/videos2"
],
"webacc" : "true",
"password" : "mypass",
"encdir" : "/home/user/encode_dir"
}
Running:
- Start server
emit -s
- Stop server
emit stop
- Pin of server for web access - server has to be running
emit pin