[SCM] crtmpserver/master: Add more application conf scripts

jet-guest at users.alioth.debian.org jet-guest at users.alioth.debian.org
Mon Oct 10 17:50:45 UTC 2011


The following commit has been merged in the master branch:
commit dc87388a435b087de4f6387120d5991c20994b95
Author: Andriy Beregovenko <jet at jet.kiev.ua>
Date:   Mon Oct 10 20:49:23 2011 +0300

    Add more application conf scripts

diff --git a/debian/crtmpserver-apps-scripts/admin.lua b/debian/crtmpserver-apps-scripts/admin.lua
new file mode 100644
index 0000000..b53cc28
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/admin.lua
@@ -0,0 +1,23 @@
+application=
+{
+	name="admin",
+	description="Application for administering",
+	protocol="dynamiclinklibrary",
+	aliases=
+	{
+		"admin_alias1",
+		"admin_alias2",
+		"admin_alias3",
+	},
+	acceptors = 
+	{
+		{
+			ip="0.0.0.0",
+			port=1112,
+			protocol="inboundJsonCli",
+			useLengthPadding=true
+		},
+	}
+	--validateHandshake=true,
+	--default=true,
+}
\ No newline at end of file
diff --git a/debian/crtmpserver-apps-scripts/applestreamingclient.lua b/debian/crtmpserver-apps-scripts/applestreamingclient.lua
new file mode 100644
index 0000000..906c98c
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/applestreamingclient.lua
@@ -0,0 +1,20 @@
+application=
+{
+	name="applestreamingclient",
+	description="Apple Streaming Client",
+	protocol="dynamiclinklibrary",
+	--[[acceptors = 
+	{
+		{
+			ip="0.0.0.0",
+			port=5544,
+			protocol="inboundRtsp"
+		}
+	},]]--
+	aliases=
+	{
+		"asc",
+	},
+	--validateHandshake=true,
+	--default=true,
+}
diff --git a/applications/flvplayback/users.lua b/debian/crtmpserver-apps-scripts/conf.d/users.lua
similarity index 100%
copy from applications/flvplayback/users.lua
copy to debian/crtmpserver-apps-scripts/conf.d/users.lua
diff --git a/debian/crtmpserver-apps-scripts/flvplayback.lua b/debian/crtmpserver-apps-scripts/flvplayback.lua
new file mode 100644
index 0000000..e93f0aa
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/flvplayback.lua
@@ -0,0 +1,124 @@
+application= 
+{
+	description="FLV Playback Sample",
+	name="flvplayback",
+	protocol="dynamiclinklibrary",
+	mediaFolder="/var/lib/crtmpserver/mediaFolder",
+	aliases=
+	{
+		"simpleLive",
+		"vod",
+		"live",
+		"WeeklyQuest",
+		"SOSample",
+		"oflaDemo",
+	},
+	validateHandshake=true,
+	keyframeSeek=true,
+	seekGranularity=1.5, --in seconds, between 0.1 and 600
+	clientSideBuffer=12, --in seconds, between 5 and 30
+	--generateMetaFiles=true, --this will generate seek/meta files on application startup
+	--renameBadFiles=false,
+	authentication=
+	{
+		rtmp=
+		{
+			type="adobe",
+			encoderAgents=
+			{
+				"FMLE/3.0 (compatible; FMSc/1.0)",
+			},
+			usersFile="/etc/crtmpserver/conf.d/users.lua"
+		},
+		rtsp=
+		{
+			usersFile="/etc/crtmpserver/conf.d/users.lua"
+		}
+	},
+	acceptors = 
+	{
+		{
+			ip="0.0.0.0",
+			port=6666,
+			protocol="inboundLiveFlv",
+			waitForMetadata=true,
+		},
+		{
+			ip="0.0.0.0",
+			port=9999,
+			protocol="inboundTcpTs"
+		},
+		--[[{
+			ip="0.0.0.0",
+			port=7654,
+			protocol="inboundRawHttpStream",
+			crossDomainFile="/tmp/crossdomain.xml"
+		},
+		{
+			ip="0.0.0.0",
+			port=554,
+			protocol="inboundRtsp"
+		},]]--
+	},
+	externalStreams = 
+	{
+		-- Example streams
+		--[[{
+			uri="mms://channels.webradio.antenne.de/chillout",
+			localStreamName="myMms",
+			enableAAC=false,
+			enableMP3=true
+		},
+		{
+			uri="rtsp://a1956.l1857055475.c18570.g.lq.akamaistream.net/D/1956/18570/v0001/reflector:55475",
+			localStreamName="test_aaa",
+		},
+		{
+			uri="rtsp://0.0.0.0:2323/test.sdp",
+			localStreamName="stream-1-udp"
+		},
+		{
+			uri="rtsp://stream01.qt.slamtv.true.nl/slamtv.sdp",
+			localStreamName="stream0-udp"
+		},
+		{
+			uri="rtsp://stream01.qt.slamtv.true.nl/slamtv.sdp",
+			localStreamName="stream0-tcp",
+			forceTcp=true
+		},
+		{
+			uri="rtmp://10.0.1.15/vod/mp4:test_mp4",
+			localStreamName="stream1"
+		},
+		{
+			uri="rtmp://10.0.1.15/vod/test_flv",
+			localStreamName="stream2"
+		},
+		{
+			uri="rtsp://media-us-2.soundreach.net/slcn_lifestyle.sdp",
+			localStreamName="stream3",
+			forceTcp=true
+		},
+		{
+			uri="rtsp://82.177.67.61/axis-media/media.amp",
+			localStreamName="stream4",
+			forceTcp=false
+		},
+		{
+			uri="http://v13.nonxt6.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dXSlFSVl9FSkNNN19JTFpF&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1285178400&key=yt1&signature=548764ECB414E3CA08BDD414F4B633853F9051AC.D8FFF913C9B3BF1C339BD1A60A77C5D1790775EE&factor=1.25&id=bcdad173a3ba8daa&redirect_counter=1",
+			localStreamName="stream5",
+		}
+		{
+			uri="rtmp://edge01.fms.dutchview.nl/botr/bunny",
+			localStreamName="stream6",
+			emulateUserAgent="MAC 10,1,82,76",
+		}
+		{
+			uri="rtmp://edge01.fms.dutchview.nl/botr/bunny",
+			localStreamName="stream6",
+			swfUrl="http://www.example.com/example.swf";
+			pageUrl="http://www.example.com/";
+			emulateUserAgent="MAC 10,1,82,76",
+		}]]--
+	},
+}
\ No newline at end of file
diff --git a/debian/crtmpserver-apps-scripts/proxypublish.lua b/debian/crtmpserver-apps-scripts/proxypublish.lua
new file mode 100644
index 0000000..3a9eed8
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/proxypublish.lua
@@ -0,0 +1,46 @@
+application=
+{
+	name="proxypublish",
+	description="Application for forwarding streams to another RTMP server",
+	protocol="dynamiclinklibrary",
+	acceptors =
+	{
+		{	
+			ip="0.0.0.0",
+			port=6665,
+			protocol="inboundLiveFlv"
+		},
+	},
+	abortOnConnectError=true,
+	targetServers=
+	{
+		--[[{
+			targetUri="rtmp://x.xxxxxxx.fme.ustream.tv/ustreamVideo/xxxxxxx",
+			targetStreamName="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
+			localStreamName="gigi",
+			emulateUserAgent="FMLE/3.0 (compatible; FMSc/1.0 http://www.rtmpd.com)"
+		},]]--
+		{
+			targetUri="rtmp://localhost/vod",
+			targetStreamType="live", -- (live, record or append)
+			emulateUserAgent="My user agent",
+			localStreamName="stream1"
+		},
+	},
+	--[[
+	externalStreams = 
+	{
+		{
+			uri="rtsp://82.177.67.61/axis-media/media.amp",
+			localStreamName="stream4",
+			forceTcp=false
+		},
+		{
+			uri="rtmp://edge01.fms.dutchview.nl/botr/bunny",
+			localStreamName="stream1"
+		},
+	},
+	]]--
+	--validateHandshake=true,
+	--default=true,
+}
diff --git a/debian/crtmpserver-apps-scripts/samplefactory.lua b/debian/crtmpserver-apps-scripts/samplefactory.lua
new file mode 100644
index 0000000..f144864
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/samplefactory.lua
@@ -0,0 +1,25 @@
+application=
+{
+	name="samplefactory",
+	description="asdsadasdsa",
+	protocol="dynamiclinklibrary",
+	aliases=
+	{
+		"httpOutboundTest"
+	},
+	acceptors = 
+	{
+		{
+			ip="0.0.0.0",
+			port=8989,
+			protocol="httpEchoProtocol"
+		},
+		{
+			ip="0.0.0.0",
+			port=8988,
+			protocol="echoProtocol"
+		}
+	}
+	--validateHandshake=true,
+	--default=true,
+}
\ No newline at end of file
diff --git a/debian/crtmpserver-apps-scripts/stresstest.lua b/debian/crtmpserver-apps-scripts/stresstest.lua
new file mode 100644
index 0000000..e3ea82a
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/stresstest.lua
@@ -0,0 +1,24 @@
+application=
+{
+	name="stresstest",
+	description="Application for stressing a streaming server",
+	protocol="dynamiclinklibrary",
+	targetServer="localhost",
+	targetApp="vod",
+	active=false,
+	--[[streams = 
+	{
+		"lg00","lg01","lg02","lg03","lg04","lg05","lg06","lg07","lg08",
+		"lg09","lg10","lg11","lg12","lg13","lg14","lg15","lg16","lg17",
+		"lg18","lg19","lg20","lg21","lg22","lg23","lg24","lg25","lg26",
+		"lg27","lg28","lg29","lg30","lg31","lg32","lg33","lg34","lg35",
+		"lg36","lg37","lg38","lg39","lg40","lg41","lg42","lg43","lg44",
+		"lg45","lg46","lg47","lg48","lg49"
+	},]]--
+	streams = 
+	{
+		"mp4:lg.mp4"
+	},
+	numberOfConnections=10,
+	randomAccessStreams=false
+}
diff --git a/debian/crtmpserver-apps-scripts/vptests.lua b/debian/crtmpserver-apps-scripts/vptests.lua
new file mode 100644
index 0000000..f99ad72
--- /dev/null
+++ b/debian/crtmpserver-apps-scripts/vptests.lua
@@ -0,0 +1,22 @@
+application=
+{
+	name="vptests",
+	description="Variant protocol tests",
+	protocol="dynamiclinklibrary",
+	aliases=
+	{
+		"vptests_alias1",
+		"vptests_alias2",
+		"vptests_alias3",
+	},
+	acceptors = 
+	{
+		{
+			ip="0.0.0.0",
+			port=1111,
+			protocol="inboundHttpXmlVariant"
+		}
+	}
+	--validateHandshake=true,
+	--default=true,
+}
\ No newline at end of file

-- 
crtmpserver packaging



More information about the pkg-multimedia-commits mailing list