Advertisement
Guest User

Untitled

a guest
Nov 18th, 2011
1,623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Emit server daemon.
  2. Dependencies:
  3. - erlang (minimum R14)
  4. - ffmpeg (with x264 and faac, version 0.7.1 highly recommended)
  5. - mkvtoolnix required if you want mkv subtitles to work.
  6. It should be in your package management system.
  7. If not: http://www.bunkus.org/videotools/mkvtoolnix/downloads.html
  8. - miniupnpc: http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz
  9.  
  10. NOTE ubuntu users:
  11. - Erlang in default apt repository is ancient. Run "sh erlang.sh" and it will
  12. install it manually or find a repository with an up to date erlang version.
  13. - FFmpeg in apt is also useless (no x264 and no libfaac). Run "sh ffmpeg.sh".
  14. It will build packages of latest ffmpeg with the most common codecs. It will
  15. also remove any existing ffmpeg, x264 and libvpx.
  16.  
  17. Install to default /usr/local
  18. sudo ./install
  19.  
  20. Install to /usr
  21. sudo ./install /usr
  22.  
  23.  
  24. Once installed edit file:
  25. /etc/emit.cfg
  26. emit.cfg is a json file.
  27. - encdir is where emit will put encoded files. This should be its own directory.
  28. - dirs is a list of directories to share (encdir will be shared as well).
  29. - port is 1554 TCP and 2000-2006 UDP by default. You can change it to X
  30. then it will be X TCP and X to X+6 UDP
  31.  
  32. Config example:
  33. {
  34. "port" : 3000,
  35. "dirs" : [
  36. "/home/user/videos1",
  37. "/home/user/videos2"
  38. ],
  39. "webacc" : "true",
  40. "password" : "mypass",
  41. "encdir" : "/home/user/encode_dir"
  42. }
  43.  
  44.  
  45. Running:
  46. - Start server
  47. emit -s
  48.  
  49. - Start as daemon
  50. emit -d
  51.  
  52. - Stop server
  53. emit stop
  54.  
  55. - Pin of server for web access - server has to be running
  56. emit pin
  57.  
  58.  
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement