Advertisement
Guest User

crtmpserver.lua

a guest
Dec 22nd, 2011
1,164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.81 KB | None | 0 0
  1. {
  2.                         description="FLV Playback Sample",
  3.                         name="flvplayback",
  4.                         protocol="dynamiclinklibrary",
  5.                         aliases=
  6.                         {
  7.                                 "live",
  8.                         }
  9.                         ,acceptors =
  10.                         {
  11.                                 {
  12.                                         ip="0.0.0.0",
  13.                                         port=1935,
  14.                                         protocol="inboundRtmfp"
  15.                                 },
  16.                                 {
  17.                                         ip="0.0.0.0",
  18.                                         port=6666,
  19.                                         protocol="inboundLiveFlv",
  20.                                         waitForMetadata=true,
  21.                                 },
  22.                 {
  23.                                         ip="0.0.0.0",
  24.                                         port=9999,
  25.                                         protocol="inboundTcpTs"
  26.                                 },
  27.                                 {
  28.                                         ip="0.0.0.0",
  29.                                         port=5544,
  30.                                         protocol="inboundRtsp"
  31.                                 },
  32.                         },
  33.                         externalStreams =
  34.                         {
  35.                                 uri="rtsp://192.168.1.50:554/live.sdp",
  36.                                 localStreamName="ip_cam",
  37.                                 forceTcp=true
  38.                         },
  39.                         validateHandshake=true,
  40.                         keyframeSeek=true,
  41.                         seekGranularity=1.5, --in seconds, between 0.1 and 600
  42.                         clientSideBuffer=12, --in seconds, between 5 and 30
  43.                         --generateMetaFiles=true, --this will generate seek/meta files on application startup
  44.                         --renameBadFiles=false,
  45.                         --enableCheckBandwidth=true,
  46.                         --authentication=
  47.                         --{
  48.                         --      rtmp={
  49.                         --              type="adobe",
  50.                         --              encoderAgents=
  51.                         --              {
  52.                         --                      "FMLE/3.0 (compatible; FMSc/1.0)",
  53.                         --                      "My user agent",
  54.                         --              },
  55.                         --              usersFile="users.lua"
  56.                         --      },
  57.                         --      rtsp={
  58.                         --              usersFile="users.lua"
  59.                         --      }
  60.                         --},
  61.                 },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement