coolguylentz

Crtmp conf.lua

May 24th, 2012
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.88 KB | None | 0 0
  1. configuration= {
  2.         daemon=true,
  3.         pathSeparator="/",
  4.         logAppenders=
  5.         {
  6.                 {
  7.                         name="console appender",
  8.                         type="coloredConsole",
  9.                         level=6
  10.                 },
  11.                 {
  12.                         name="file appender",
  13.                         type="file",
  14.                         level=6,
  15.                         fileName="/home/cooldude/logs/crtmpserver/crtmpserver",
  16.                         fileHistorySize=10,
  17.                         fileLength=1024*1024,
  18.                         singleLine=true
  19.                 }
  20.         },
  21.  
  22.         applications=
  23.         {
  24.                 rootDirectory="applications",
  25.                 {
  26.                         description="FLV Playback Sample",
  27.                         name="flvplayback",
  28.                         library="/home/cooldude/Programs/crtmpserver/lib/crtmpserver/applications/flvplayback/libflvplayback.so",
  29.                         protocol="dynamiclinklibrary",
  30.                         default=true,
  31.                         aliases=
  32.                         {
  33.                                 "simpleLive",
  34.                                 "vod",
  35.                                 "live",
  36.                                 "WeeklyQuest",
  37.                                 "SOSample",
  38.                                 "oflaDemo",
  39.                         },
  40.                         acceptors =
  41.                         {
  42.                                 {
  43.                                         ip="50.7.18.166",
  44.                                         port=1935,
  45.                                         protocol="inboundRtmp"
  46.                                 },
  47.                                 --[[{
  48.                                         ip="50.7.18.166",
  49.                                         port=8081,
  50.                                         protocol="inboundRtmps",
  51.                                         sslKey="server.key",
  52.                                         sslCert="server.crt"
  53.                                 },
  54.                                 {
  55.                                         ip="50.7.18.166",
  56.                                         port=8080,
  57.                                         protocol="inboundRtmpt"
  58.                                 },]]--
  59.                                 --[[{
  60.                                         ip="50.7.18.166",
  61.                                         port=6666,
  62.                                         protocol="inboundLiveFlv",
  63.                                         waitForMetadata=true,
  64.                                 },]]--
  65.                                 --[[{
  66.                                         ip="50.7.18.166",
  67.                                         port=9999,
  68.                                         protocol="inboundTcpTs"
  69.                                 },]]--
  70.                                 --[[{
  71.                                         ip="50.7.18.166",
  72.                                         port=8081,
  73.                                         protocol="inboundRtmps",
  74.                                         sslKey="server.key",
  75.                                         sslCert="server.crt"
  76.                                 },
  77.                                 {
  78.                                         ip="50.7.18.166",
  79.                                         port=8080,
  80.                                         protocol="inboundRtmpt"
  81.                                 },]]--
  82.                                 {
  83.                                         ip="50.7.18.166",
  84.                                         port=6666,
  85.                                         protocol="inboundLiveFlv",
  86.                                         waitForMetadata=true,
  87.                                 },
  88.                                 {
  89.                                         ip="50.7.18.166",
  90.                                         port=9999,
  91.                                         protocol="inboundTcpTs"
  92.                                 },
  93.                                 {
  94.                                         ip="50.7.18.166",
  95.                                         port=5554,
  96.                                         protocol="inboundRtsp"
  97.                                 },
  98.                         },
  99.                         externalStreams =
  100.                         {
  101.                                 --[[{
  102.                                         uri="rtmp://edge01.fms.dutchview.nl/botr/bunny",
  103.                                         localStreamName="test1",
  104.                                 }]]--
  105.                         },
  106.                         validateHandshake=true,
  107.                         keyframeSeek=true,
  108.                         seekGranularity=1.5, --in seconds, between 0.1 and 600
  109.                         clientSideBuffer=12, --in seconds, between 5 and 30
  110.                         --generateMetaFiles=true, --this will generate seek/meta files on application startup
  111.                         --renameBadFiles=false,
  112.                         mediaFolder="/home/cooldude/Programs/crtmpserver/media",
  113.                         authentication=
  114.                         {
  115.                                 rtmp={
  116.                                         type="adobe",
  117.                                         encoderAgents=
  118.                                         {
  119.                                                 "FMLE/3.0 (compatible; FMSc/1.0)",
  120.                                         },
  121.                                         usersFile="/home/cooldude/Programs/crtmpserver/conf/users.lua"
  122.                                 },
  123.                                  --[[rtsp={
  124.                                         usersFile="/home/cooldude/Programs/crtmpserver/conf/users.lua"
  125.                                 }]]--
  126.                         },
  127.                 },
  128.         }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment