Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Emit server daemon.
- Dependencies:
- - erlang (minimum R14)
- - ffmpeg (with x264 and faac, version 0.7.1 highly recommended)
- - mkvtoolnix required if you want mkv subtitles to work.
- It should be in your package management system.
- If not: http://www.bunkus.org/videotools/mkvtoolnix/downloads.html
- - miniupnpc: http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz
- 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.
- - FFmpeg in apt is also useless (no x264 and no libfaac). Run "sh ffmpeg.sh".
- It will build packages of latest ffmpeg with the most common codecs. It will
- also remove any existing ffmpeg, x264 and libvpx.
- 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
- - Start as daemon
- emit -d
- - Stop server
- emit stop
- - Pin of server for web access - server has to be running
- emit pin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement