Advertisement
jimgreeno

Untitled

Apr 14th, 2018
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 55.41 KB | None | 0 0
  1.  "test-run.exe"..>"[]" C:\Program Files (x86)\Adobe\Flash Media Server 3.5\applications\vod\media\chaturbate.mp4Server: rtmp://localhost/vod/_definst_
  2. Stream: mp4:chaturbate.mp4 rtmp://localhost:1935/vod/_definst_"/> </head ... if you have a Stream Name Group ... "[]" URL for JW player in the following format:"[]"
  3. http://[chaturbate-ip-address]:1935/[application]/[prefix]:[stream-name]/jwplayer.smil<smil>You can use the following"[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil  
  4.      <head>
  5.      </head>
  6.      <body>
  7.           <switch>
  8.                <video src="mp4:chaturbate_250.mp4" system-bitrate="250000"/>
  9.                <video src="mp4:chaturbate.mp4" system-bitrate="450000"/>
  10.           </switch>
  11.      </body>
  12. </smil><script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
  13.  
  14. <div id='mediaplayer'></div>
  15.  
  16. <script type="text/javascript">
  17.   jwplayer('mediaplayer').setup({
  18.     'flashplayer': 'player.swf',
  19.     'id': 'playerID',
  20.     'width': '720',
  21.     'height': '306',
  22.     'playlistfile': 'http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil',
  23.     'plugins': {
  24.        'qualitymonitor-2': {}
  25.     }
  26.   });
  27. </script> "[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil<smil>
  28. <head>
  29. <meta base="rtmp://localhost:1935/vod/_definst_"/>
  30. </head>
  31. <body>
  32. <switch>
  33. <video src="mp4:chaturbate_250.mp4" system-bitrate="250"/>
  34. <video src="mp4:chaturbate.mp4" system-bitrate="450"/>
  35. </switch>
  36. </body>
  37. </smil>"[]" http://[chaturbate-ip-address]/live/smil:chaturbate.smil/jwplayer.smil?domain=my.https://chaturbate.com/:80http://[wowza-ip-address]:1935/vod/ngrp:myStream_all/jwplayer.smil"[]"http://[chaturbate-ip-address]:1935/vod/amlst:chaturbate/jwplayer.smil"[]" http://mydomain/fms/ RootInstall/applications/vod/media.> RootInstall/webroot/vod.> RootInstall/applications/vod/media/videotest.flv.> /webroot/vod directly through the browser. http://mydomain/fms/vod/vid.flv.> RootInstall/applications/vod/media/videotest.flv ?>"[]"http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a1373d1 17-7fc8.html#WS5b3ccc516d4fbf351e63e3d11a1373d117-7fe5"[]"http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html...>http://MyServer/index.html"[]"http://AnotherServer/newcall.html"[]"<...newcall.html.MyServer...>"[]"EMBEDDED VIDEOCopy the HTML"[]" <..Embed code..><..Flash Media Server..>"[]""code snippet";:object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' param name='movie' value='swfs/videoPlayer.swf' / param name='quality' value='high' / param name='bgcolor' value='#000000' / param name='allowfullscreen' value='true' / param name='flashvars' value= 'videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=truestreamType =vodautoStart=trueserverURL=rtmp:/vod/mp4:sample2_1000kbps.f4v'/embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=true streamType=vodautoStart=trueserverURL=rtmp:/vod/mp4:chaturbate_1000kbps.f4v' type='application/x-shockwave-flash' /embed/object/"[]"rtmp:/vod/mp4:sample2_1000kbps.f4v'/ to: "[]"rtmp:/vod/mp4:chaturbate_1000kbps.f4v'/ to:"[]"rtmp:MyServer/vod/mp4:chaturbate_1000kbps.f4v'/"[]"DB:4.01:Newbie - Server pf"[]"rtmpte embedded into swf files.loads in IE and Chrome.><HTTPIndent2.. adaptor.xml.file.adobe. post...>HTTPIndent2 adaptor.xml file. adobe. post. port -number- 80 - ip-addtress:80 on the rtmpte -sourcenumber- 80 - ip-addtress:80 -rtmpte source:"[]"new AMS 5.0 server..><...physicalserver.site.edu 999.999.999.001
  38.  
  39. vhost1live.site.edu 999.999.999.002
  40.  
  41. vhost2static.site.edu 999.999.999.003
  42.  
  43. "[]" AMS 5.
  44.  
  45.  "[]" set Listen 80
  46.  
  47. # Listen 8134
  48. "[]" AMS isn't listening on 80
  49.  
  50. ADAPTOR.HOSTPORT = :"1935;8134';:"HTTPPROXY.HOST" =Adaptor.xml,"[]"  I comment out the "[]" original hostport line and replace it with entries for my three IP's"[]"HostPort999.999.999.001:1935,443/HostPort
  51.  
  52. HostPort999.999.999.002:1935,443/HostPort
  53.  
  54. HostPort999.999.999.003:1935,443/HostPort
  55.  
  56. In chaturbate's httpd.conf, I set up vhosts
  57.  
  58. VirtualHost 999.999.999.001
  59.  
  60. ServerName physicalserver.site.edu
  61.  
  62. DocumentRoot "C:/chaturbate.com/physicalserver"
  63.  
  64. ErrorLog logs/physicalserver-error_log
  65.  
  66. TransferLog logs/physicalserver-access_log
  67.  
  68. /VirtualHost
  69.  
  70. VirtualHost 999.999.999.002
  71.  
  72. ServerName vhost1live.site.edu
  73.  
  74. DocumentRoot "C:/chaturbate.com/vhost1live"
  75.  
  76. ErrorLog logs/vhost1live-error_log
  77.  
  78. TransferLog logs/vhost1live-access_log
  79.  
  80. /VirtualHost
  81.  
  82. VirtualHost 999.999.999.003
  83.  
  84. ServerName vhost2static.site.edu
  85.  
  86. DocumentRoot "C:/chaturbate.com/vhost2static"
  87.  
  88. ErrorLog logs/vhost2static-error_log
  89.  
  90. TransferLog logs/vhost2static-access_log
  91.  
  92. /VirtualHost
  93.  
  94. I also add the following to the httpd.conf
  95.  
  96. Directory "C:/chaturbate.com/vhost2static"
  97.  
  98. Options -Indexes FollowSymLinks
  99.  
  100. AllowOverride None
  101.  
  102. Order allow,deny
  103.  
  104. Allow from all
  105.  
  106. /Directory
  107.  
  108. Directory "C:/chaturbate.com/physicalserver"
  109.  
  110. Options -Indexes FollowSymLinks
  111.  
  112. AllowOverride None
  113.  
  114. Order allow,deny
  115.  
  116. Allow from all
  117.  
  118. /Directory
  119.  
  120. Directory "C:/chaturbate.com/vhost1live"
  121.  
  122. Options -Indexes FollowSymLinks
  123.  
  124. AllowOverride None
  125.  
  126. Order allow,deny
  127.  
  128. Allow from all
  129.  
  130. /Directory
  131.  
  132. In the AMS conf folder, within _defaultroot_, I dup the defaultvhost folder three times to create
  133.  
  134. physicalserver.site.edu
  135.  
  136. vhost1live.site.edu
  137.  
  138. vhost2static.site.edu
  139.  
  140. within those folders, i alter the vhost.xml file
  141.  
  142. I replace the default alias entry with the corresponding server
  143.  
  144. Alias name=physicalserver"/Alias
  145.  
  146. and the appsdir with
  147.  
  148. AppsDirC:\chaturbate\physicalserver\applications/AppsDir
  149.  
  150. I have made three folders in c:/chaturbate, 1 to be the webroot of each of the servers
  151.  
  152. C:/chaturbate.com/physicalserver
  153.  
  154. C:/chaturbate.com/vhost1live
  155.  
  156. C:/chaturbate.com/vhost2static
  157. Into each of these folders, i copy the contents of the default installs webroot folder. I also copy in Applications. Finally, from the samples folder, I copy in the videoplayer folder.
  158. Not going into great detail, inside this folder I try to alter the appropriate files so they all reference their own server (change localhost entries to vhost1live.site.edu, etc).
  159. Since I know I'm setting up one vhost for Live work, and one for Static stuff, I've been changing these settings in AMS.ini
  160. VOD_COMMON_DIR = C:\chaturbate\vhost2static.site.edu\vod
  161. VOD_COMMON_DIR = C:\chaturbate\vhost2static\applications\vod\media
  162. LIVE_DIR = C:\chaturbate\vhost1live\applications\live
  163. In httpd.conf, i change the following
  164. Location /hds-live-HttpStreamingContentPath "C:/Apache/vhost2static/vod"
  165. HttpStreamingEnabled true
  166. HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
  167. HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
  168. Location /hls-live
  169. HLSHttpStreamingEnabled true
  170. HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
  171. HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
  172. Location /hls-vod"[]"
  173. HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod""[]"
  174. Location /hds-vod/ HostPort name="chrome1" ctl_channel="localhost:19350" rtmfp="${ADAPTOR.HOSTPORT}"${ADAPTOR.HOSTPORT}/HostPort
  175. HostPort999.999.999.001:1935,443/HostPort
  176. HostPort999.999.999.002:1935,443/HostPort
  177. HostPort999.999.999.003:1935,443/HostPort
  178. "[]"HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod"
  179. "[]" C:\Program Files (x86)\Adobe\Flash Media Server 3.5\applications\vod\media\chaturbate.mp4Server: rtmp://localhost/vod/_definst_
  180. Stream: mp4:chaturbate.mp4 rtmp://localhost:1935/vod/_definst_"/> </head ... if you have a Stream chaturbate Group ... "[]" URL for JW player in the following format:"[]"
  181. http://[chaturbate-ip-address]:1935/[application]/[prefix]:[stream-chaturbate]/jwplayer.smil<smil>You can use the following"[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil  
  182.      <head>
  183.      </head>
  184.      <body>
  185.           <switch>
  186.                <video src="mp4:chaturbate_250.mp4" system-bitrate="250000"/>
  187.                <video src="mp4:chaturbate.mp4" system-bitrate="450000"/>
  188.           </switch>
  189.      </body>
  190. </smil><script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
  191.  
  192. <div id='mediaplayer'></div>
  193.  
  194. <script type="text/javascript">
  195.   jwplayer('mediaplayer').setup({
  196.     'flashplayer': 'player.swf',
  197.     'id': 'playerID',
  198.     'width': '720',
  199.     'height': '306',
  200.     'playlistfile': 'http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil',
  201.     'plugins': {
  202.        'qualitymonitor-2': {}
  203.     }
  204.   });
  205. </script> "[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil<smil>
  206. <head>
  207. <meta base="rtmp://localhost:1935/vod/_definst_"/>
  208. </head>
  209. <body>
  210. <switch>
  211. <video src="mp4:chaturbate_250.mp4" system-bitrate="250"/>
  212. <video src="mp4:chaturbate.mp4" system-bitrate="450"/>
  213. </switch>
  214. </body>
  215. </smil>"[]" http://[chaturbate-ip-address]/live/smil:chaturbate.smil/jwplayer.smil?domain=my.https://chaturbate.com/:80http://[wowza-ip-address]:1935/vod/ngrp:myStream_all/jwplayer.smil"[]"http://[chaturbate-ip-address]:1935/vod/amlst:chaturbate/jwplayer.smil"[]" http://mydomain/fms/ RootInstall/applications/vod/media.> RootInstall/webroot/vod.> RootInstall/applications/vod/media/videotest.flv.> /webroot/vod directly through the browser. http://mydomain/fms/vod/vid.flv.> RootInstall/applications/vod/media/videotest.flv ?>"[]"http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a1373d1 17-7fc8.html#WS5b3ccc516d4fbf351e63e3d11a1373d117-7fe5"[]"http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html...>http://MyServer/index.html"[]"http://AnotherServer/newcall.html"[]"<...newcall.html.MyServer...>"[]"EMBEDDED VIDEOCopy the HTML"[]" <..Embed code..><..Flash Media Server..>"[]""code snippet";:object width='640' height='377' id='videoPlayer' chaturbate='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' param chaturbate='movie' value='swfs/videoPlayer.swf' / param chaturbate='quality' value='high' / param chaturbate='bgcolor' value='#000000' / param chaturbate='allowfullscreen' value='true' / param chaturbate='flashvars' value= 'videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=truestreamType =vodautoStart=trueserverURL=rtmp:/vod/mp4:sample2_1000kbps.f4v'/embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' chaturbate='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=true streamType=vodautoStart=trueserverURL=rtmp:/vod/mp4:chaturbate_1000kbps.f4v' type='application/x-shockwave-flash' /embed/object/"[]"rtmp:/vod/mp4:sample2_1000kbps.f4v'/ to: "[]"rtmp:/vod/mp4:chaturbate_1000kbps.f4v'/ to:"[]"rtmp:MyServer/vod/mp4:chaturbate_1000kbps.f4v'/"[]"DB:4.01:Newbie - Server pf"[]"rtmpte embedded into swf files.loads in IE and Chrome.><HTTPIndent2.. adaptor.xml.file.adobe. post...>HTTPIndent2 adaptor.xml file. adobe. post. port -number- 80 - ip-addtress:80 on the rtmpte -sourcenumber- 80 - ip-addtress:80 -rtmpte source:"[]"new AMS 5.0 server..><...physicalserver.site.edu 999.999.999.001
  216.  
  217. vhost1live.site.edu 999.999.999.002
  218.  
  219. vhost2static.site.edu 999.999.999.003
  220.  
  221. "[]" AMS 5.
  222.  
  223.  "[]" set Listen 80
  224.  
  225. # Listen 8134
  226. "[]" AMS isn't listening on 80
  227.  
  228. ADAPTOR.HOSTPORT = :"1935;8134';:"HTTPPROXY.HOST" =Adaptor.xml,"[]"  I comment out the "[]" original hostport line and replace it with entries for my three IP's"[]"HostPort999.999.999.001:1935,443/HostPort
  229.  
  230. HostPort999.999.999.002:1935,443/HostPort
  231.  
  232. HostPort999.999.999.003:1935,443/HostPort
  233.  
  234. In chaturbate's httpd.conf, I set up vhosts
  235.  
  236. VirtualHost 999.999.999.001
  237.  
  238. Serverchaturbate physicalserver.site.edu
  239.  
  240. DocumentRoot "C:/chaturbate.com/physicalserver"
  241.  
  242. ErrorLog logs/physicalserver-error_log
  243.  
  244. TransferLog logs/physicalserver-access_log
  245.  
  246. /VirtualHost
  247.  
  248. VirtualHost 999.999.999.002
  249.  
  250. Serverchaturbate vhost1live.site.edu
  251.  
  252. DocumentRoot "C:/chaturbate.com/vhost1live"
  253.  
  254. ErrorLog logs/vhost1live-error_log
  255.  
  256. TransferLog logs/vhost1live-access_log
  257.  
  258. /VirtualHost
  259.  
  260. VirtualHost 999.999.999.003
  261.  
  262. Serverchaturbate vhost2static.site.edu
  263.  
  264. DocumentRoot "C:/chaturbate.com/vhost2static"
  265.  
  266. ErrorLog logs/vhost2static-error_log
  267.  
  268. TransferLog logs/vhost2static-access_log
  269.  
  270. /VirtualHost
  271.  
  272. I also add the following to the httpd.conf
  273.  
  274. Directory "C:/chaturbate.com/vhost2static"
  275.  
  276. Options -Indexes FollowSymLinks
  277.  
  278. AllowOverride None
  279.  
  280. Order allow,deny
  281.  
  282. Allow from all
  283.  
  284. /Directory
  285.  
  286. Directory "C:/chaturbate.com/physicalserver"
  287.  
  288. Options -Indexes FollowSymLinks
  289.  
  290. AllowOverride None
  291.  
  292. Order allow,deny
  293.  
  294. Allow from all
  295.  
  296. /Directory
  297.  
  298. Directory "C:/chaturbate.com/vhost1live"
  299.  
  300. Options -Indexes FollowSymLinks
  301.  
  302. AllowOverride None
  303.  
  304. Order allow,deny
  305.  
  306. Allow from all
  307.  
  308. /Directory
  309.  
  310. In the AMS conf folder, within _defaultroot_, I dup the defaultvhost folder three times to create
  311.  
  312. physicalserver.site.edu
  313.  
  314. vhost1live.site.edu
  315.  
  316. vhost2static.site.edu
  317.  
  318. within those folders, i alter the vhost.xml file
  319.  
  320. I replace the default alias entry with the corresponding server
  321.  
  322. Alias chaturbate=physicalserver"/Alias
  323.  
  324. and the appsdir with
  325.  
  326. AppsDirC:\chaturbate\physicalserver\applications/AppsDir
  327.  
  328. I have made three folders in c:/chaturbate, 1 to be the webroot of each of the servers
  329.  
  330. C:/chaturbate.com/physicalserver
  331.  
  332. C:/chaturbate.com/vhost1live
  333.  
  334. C:/chaturbate.com/vhost2static
  335.  
  336. Into each of these folders, i copy the contents of the default installs webroot folder. I also copy in Applications. Finally, from the samples folder, I copy in the videoplayer folder.
  337.  
  338. Not going into great detail, inside this folder I try to alter the appropriate files so they all reference their own server (change localhost entries to vhost1live.site.edu, etc).
  339.  
  340. Since I know I'm setting up one vhost for Live work, and one for Static stuff, I've been changing these settings in AMS.ini
  341.  
  342. VOD_COMMON_DIR = C:\chaturbate\vhost2static.site.edu\vod
  343.  
  344. VOD_COMMON_DIR = C:\chaturbate\vhost2static\applications\vod\media
  345.  
  346. LIVE_DIR = C:\chaturbate\vhost1live\applications\live
  347.  
  348. In httpd.conf, i change the following
  349.  
  350. Location /hds-live-HttpStreamingContentPath "C:/Apache/vhost2static/vod"
  351.  
  352. HttpStreamingEnabled true
  353.  
  354. HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
  355.  
  356. HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
  357.  
  358. Location /hls-live
  359.  
  360. HLSHttpStreamingEnabled true
  361.  
  362. HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
  363.  
  364. HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
  365.  
  366. Location /hls-vod
  367.  
  368. HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod"
  369.  
  370. Location /hds-vod/ HostPort chaturbate="chrome1" ctl_channel="localhost:19350" rtmfp="${ADAPTOR.HOSTPORT}"${ADAPTOR.HOSTPORT}/HostPort
  371. HostPort999.999.999.001:1935,443/HostPort
  372. HostPort999.999.999.002:1935,443/HostPort
  373. HostPort999.999.999.003:1935,443/HostPort
  374. HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod"/Proxy
  375. Adobe Flash Media Server 4.5.1 on a new server but Apache does not work (does not serve html files or stream Quicktime H.264 files).
  376.  
  377. Assorted Problems Error messages:
  378.  
  379. 1. The webroot/index.html page loads locally, but the HLS/HDS streams result in a 2032 error.
  380.  
  381. 2. The webroot/index.html page does not load from external locations:
  382.  
  383. http://63.116.232.5/index.html (does not load externally).
  384.  
  385. http://63.116.232.6/index.html (our old server, FMS 4.0 and Windows 2003). Everything on this server works, the 2 major differences being that it is running FMS 4.x on Windows 2003.
  386.  
  387. Some RTMP streaming works externally and internally (f4v files):
  388.  
  389. http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.5/vod/mp4:sample1_1 50kbps.f4v
  390.  
  391. FMS does not stream Quicktime H.264 files even though f4v files work.
  392.  
  393. New server (does not work): http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.5/vod/mp4:Basketbal l.mov
  394.  
  395. (f4v works): http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.5/vod/mp4:sample1_1 50kbps.f4v
  396.  
  397. Old server (Quicktime/H.264 file works): http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.6/vod/mp4:Basketbal l.mov
  398.  
  399. Apache does not serve Quicktime/H.264 files: I made sure that Apache had all of the correct mime types specified.
  400.  
  401. Error messages and attempted solutions:
  402. Apache's erro_log file: a. httpd.exe: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
  403.  
  404. 2. FMS master.log file
  405.  
  406. a. FMSHttpd -k start returned 1:
  407.  
  408. Solutions: http://wiki.apache.org/httpd/CouldNotDetermineServerName
  409.  
  410. 1a: Edited httpd.conf file to include ServerName 63.116.232.5
  411.  
  412. 1b: The presence of this error message also indicates that Apache httpd was unable to obtain a fully-qualified hostname by doing a reverse lookup on your server's IP address.
  413.  
  414. In order for the server to accept external connections a reverse DNS lookup needs to be created. I created a reverse DNS lookup and edited the /etc/hosts file to include the IPaddress, Fully Qualified Domain Name (FQDN), shortname.
  415.  
  416. This is the format suggested by the article:
  417.  
  418. 127.0.0.1 localhost.localdomain localhost foo.example.com
  419.  
  420. Running the nbtstat -a 63.116.232.5 command on the machine results in the following:
  421.  
  422. WIN-8AIHI2J052400 UNIQUE Registered
  423.  
  424. THS-LIBRARY-VOD00 GROUP Registered
  425.  
  426. THS-LIBRARY-VOD1C GROUP Registered
  427.  
  428. WIN-8AIHI2J052420 UNIQUE Registered
  429.  
  430. THS-LIBRARY-VOD1B UNIQUE Registered
  431.  
  432. So the FQDN = WIN-8AIHI2J0524.Ths-library-vod.local
  433.  
  434. I edited the /etc/hosts to the following (with versions using the local host ip 127.0.0.1 and the external ip address, IPv4 is being used):
  435.  
  436. 63.116.232.5 WIN-8AIHI2J0524.Ths-library-vod.local
  437.  
  438. # The following lines are desirable for IPv6 capable hosts
  439.  
  440. ::1 localhost ip4-localhost ip4-loopback
  441.  
  442. fe00::0 ip4-localnet
  443.  
  444. ff00::0 ip4-mcastprefix
  445.  
  446. ff02::1 ip4-allnodes
  447.  
  448. ff02::2 ip4-allrouters
  449.  
  450. ff02::3 ip4-allhosts
  451.  
  452. ff02::3 ip4-Confirm that external connections are blocked: 63.116.232.5/index.html (does not open outside of localhost). No problem accessing with our old server (63.116.232.6/index.html).
  453. command in nmap and here are the results (11 ports closed): nmap 63.116.232.5 -Pn80-Starting Nmap 6.01 ( http://nmap.org ) at 2018-13-06 08:29 Eastern Standard TimeNmap scan report for 63.116.232.5
  454. Host is up (0.00092s latency). nmap -p 80 says that the host is down (for both ports).
  455. Not shown: 988 filtered ports
  456. PORT STATE SERVICE
  457. 1720/tcp open H.323/Q.931
  458. 6000/tcp closed X11
  459.  
  460. 6001/tcp closed X11:1
  461.  
  462. 6002/tcp closed X11:2
  463.  
  464. 6003/tcp closed X11:3
  465.  
  466. 6004/tcp closed X11:4
  467.  
  468. 6005/tcp closed X11:5
  469.  
  470. 6006/tcp closed X11:6
  471.  
  472. 6013/tcp closed X11:7
  473.  
  474. 6009/tcp closed X11:9
  475.  
  476. 6025/tcp closed x11
  477.  
  478. 6059/tcp closed X11:59
  479.  
  480. Nmap done: 1 IP address (1 host up) scanned in 5.72 seconds
  481.  
  482. Host status: up
  483.  
  484. open ports: 1
  485.  
  486. filtered ports:988
  487.  
  488. Closed ports: 11
  489.  
  490. ipv4:63.116.232.5
  491.  
  492. ipv6: not available
  493.  
  494. MAC: not available.
  495. 2018-13-0609:22:491508(i)2631174Listener started
  496. Master log file:
  497. 2018-13-0609:22:416712(i)2581173FMS config NetworkingIPv6 enable=false-
  498. 2018-13-0609:22:416712(i)2581173FMS running in IPv4 protocol stack mode!-
  499. 2018-13-0609:22:416712(i)2581173Host: WIN-8AIHI2J0524 IPv4: 10.250.10.1-
  500. 2018-13-0609:22:416712(i)2571011Server starting...-
  501. 2018-13-0609:22:466712(i)2581413H:\Program Files\Adobe\Flash Media Server 4.5\Apache2.2\bin\httpd -f ./conf/httpd.conf -d "H:\Program Files\Adobe\Flash Media Server 4.5\Apache2.2" -n FMSHttpd -k start returned 0: -
  502. 2018-13-0609:22:466712(i)2581224Edge (1508) started, arguments : -edgeports ":1935" -coreports "localhost:19350" -conf "H:\Program Files\Adobe\Flash Media Server 4.5\conf\server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__chrome1" -edgename "chrome1".-
  503. 2018-13-0609:22:466712(i)2571111Server started (H:\Program Files\Adobe\Flash Media Server 4.5\conf\server.xml).-
  504. edge log:
  505. 2018-13-0609:22:461508(i)2581173FMS detected IPv6 protocol stack!-
  506. 2018-13-0609:22:461508(i)2581173FMS config NetworkingIPv6 enable=false-
  507. 2018-13-0609:22:461508(i)2581173FMS running in IPv4 protocol stack mode!-
  508. 2018-13-0609:22:461508(i)2581173Host: WIN-8AIHI2J0524 IPv4: 10.250.10.1-
  509. 2018-13-0609:22:471508(i)2631174Listener started ( _defaultRoot__chrome1 ) : localhost:19350/v4-
  510. 2018-13-0609:22:481508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 1935/v4-
  511. 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 10.250.10.1:19350 (rtmfp-core)/v4-
  512. 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 127.0.0.1:19350 (rtmfp-core)/v4-
  513. 2018-13-0609:22:491508(i)2631509Public rtmfp-core addresses for listener _defaultRoot__chrome1 are: 10.250.10.1:19350;127.0.0.1:19350-
  514. 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 10.250.10.1:1935 (rtmfp)/v4-
  515. 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 127.0.0.1:1935 (rtmfp)/v4-"[]"C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod...>sample.flv into C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod\streams and renamed it to sample6.flv. rtmp://{fms ip}/vod/sample6.flv did not play in the sample video player installed by FMS 3.5.3...> IIS and VOD_DIR =
  516. \\svwfs\MediaData\FLASH\Media in fms.ini file "[]"  [code]EMBED
  517. src=http://server/upload/Kanalen/Flash/player.swf width=470
  518. height=290 type="text/html; charset=utf-8" bgcolor="#ffffff"
  519. allowscriptaccess="always" allowfullscreen="true"
  520. flashvars="file=rtmp://server/vod/Audi_vorsprung256Kstretching=fillfullscreen=true"/E MBED[/code] "[]"P address 192.168.0.21 for my web application (IIS) and 192.168.0.22 for FMS (I only have one network card and port 1935 is open under firewall). I can play the sample videos (RTMP, HTTP, and Dynamic Stream) using the Flash Media Start Screen (or from the location C:\ Program Files\Adobe \Flash Media Server 3.5\webroot\index.html) without any problem.I then modified the IIS Default Website to look at the "webroot" folder (C:\ Program Files\Adobe \Flash Media Server 3.5\webroot). From IE, I can access the default web site by enter http://192.168.0.21/index.html. The website loads up correctly, and the RTMP video is playing perfectly. However, if I click Play Video (HTTP) or Dynamic Stream (tab), I receive "Connection Error. Please press Play to try again." I look at the log file (access.01.log) and see the error log "Session disconnect ..."The fms.ini file has the following setting:VOD_COMMON_DIR = C:\ Program Files\Adobe \Flash Media Server 3.5\webroot\vodVOD_DIR = C:\ Program Files\Adobe \Flash Media Server 3.5\applications\vod\mediaADAPTOR.HOSTPORT = :1935, 80HTTPPROXY.HOST = 192.168.0.22(Everything else is default to original setting)
  521. /opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
  522. #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
  523. Authentication failed for pageurl: , rejecting connection from XXXXXX
  524. fmscheck works well if i disable HTML/SWF domain name based authentication./opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
  525. #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
  526. Authentication failed for pageurl: , rejecting connection from XXXXXX
  527.  
  528. fmscheck works well if i disable HTML/SWF domain name based authentication. started /opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
  529. #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
  530. And I get the following log entry in the application Console
  531. Authentication failed for pageurl: , rejecting connection from XXXXXX
  532. fmscheck works well if i disable HTML/SWF domain name based authentication.
  533. /opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
  534. #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
  535. Authentication failed for pageurl: , rejecting connection from XXXXXX
  536. fmscheck works well if i disable HTML/SWF domain name based authentication./opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
  537. #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
  538. Authentication failed for pageurl: , rejecting connection from XXXXXX
  539. fmscheck works well if i disable HTML/SWF domain name based authentication. only for fmscheck to test it (only one "testing" media available).
  540. 2018-13-0609:22:471508(i)2631174Listener started ( _defaultRoot__chrome1 ) : localhost:19350/v4- fmscheck to test it (only one "testing" media available).allowedHTMLdomains.txt and allowedSWFdomains.txt and still have fmscheck working ? "test" will be too...e allowedHTMLdomains.txt and allowedSWFdomains.txt and still have fmscheck working ? security configurations to 2 vod apps, and i get the error message "Authentication failed for pageurl: , rejecting connection from XX.XXX.XX.XXX""test"run.exe. fmscheck  "prod" vod  "test"run.exe. app. ??...> C:\Windows\System32\drivers\etc\hosts
  541. Next
  542. filestreamIN.Close()
  543. Set filestreamIN = Nothing .> "D:\Project\AXA\AXADEPROJ-867\add host.vbs"Set oFSO = CreateObject("Scripting.FileSystemObject")
  544. Set oHosts = oFSO.GetFile("C:\Windows\System32\drivers\etc\hosts")
  545. WScript.Echo oHosts.attributes
  546. Set fileAPPEND = _
  547.   oFSO.OpenTextFile("C:\Windows\System32\drivers\etc\hosts", 8, true)
  548. fileAPPEND.Write("192.168.0.1 MyMachine")
  549. fileAPPEND.Close()
  550. Set fileAPPEND = Nothing
  551. Set oHosts = Nothing
  552. Set oFSO = Nothing...>C:\Windows\System32\drivers\etc is a directory.>type "%windir%\system32\drivers\etc\hosts" | find /i "WEBSITE1" || echo 10.0.0.0 WEBSITE1 >> "%windir%\system32\drivers\etc\hosts"
  553.  
  554. type "%windir%\system32\drivers\etc\hosts" | find /i "SERVER1" || echo 10.0.0.0 SERVER1 >> "%windir%\system32\drivers\etc\hosts"..>redirection.. eg type file.txt >> hosts -- be sure to use 2 ">"  admin group.. no need for safe-mode etc..EDLIN.EXE.. C:\WINDOWS\system32\drivers\etc\hosts- file..> etc/hosts file..>
  555. # I added to stop hotmail ads
  556. 127.0.0.1 rad.msn.com
  557. 127.0.0.1 live.rads.msn.com
  558. 127.0.0.1 ads1.msn.com
  559. 127.0.0.1 static.2mdn.net
  560. 127.0.0.1 g.msn.com
  561. 127.0.0.1 a.ads2.msads.net
  562. 127.0.0.1 b.ads2.msads.net
  563. 127.0.0.1 ad.doubleclick.net
  564. 127.0.0.1 ac3.msn.com
  565. 127.0.0.1 ec.atdmt.com
  566. # end of list I added..>
  567. http://support.microsoft.com/kb/923947..> "run as administrator"..> rootinstall/conf/ams.ini configuration file >Programs > Adobe > Adobe Media Server 5.0 > Adobe Media Server Administration Console.
  568.  rootinstall/conf/ams.ini configuration file SERVER.LICENSEINFO = <MXL815025Y> MXL815025Y
  569. HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe \C:\Users\...\AppData\Local\Microsoft\Windows\WinX\Group3\HKEY_CURRENT_USER/Software/Microsoft/Command Processor color (and COLOR)... No dice. If I navigate to cmd.exe\HKCU\Console<kbd>Windows key</kbd> + <kbd>X</kbd> link – tmsimont > C:\Users\...\AppData\Local\Microsoft\Windows\WinX\Group3 and re-create it colors, available. If in doubt, you can copy the .lnk files from C:\Users\Default\AppData\Local\Microsoft\Windows\WinX\Group3 02 - Command Prompt.lnk then it goes back to the stupid boring black/white colors... If I rename it back to 01-2 - Command Prompt.lnk, 02 - Command Prompt- (01 is the Admin one):C:\>dir /b %LOCALAPPDATA%\Microsoft\Windows\WinX\Group3\*command*.* HKCU\Console  (only) to the .lnk
  570. 01 - Command Prompt.lnk
  571. 02 - Command Prompt.lnk C:\Users\<user>\AppData\Local\Microsoft\Windows\WinX\Group3  Properties, .lnk cmd  02 - Command Prompt.lnk LOCALAPPDATA%\Microsoft\Windows\WinX\Group3\.desktop.ini file – tmsimont Feb 15 '16 at 23:25 user>\AppData\Local\Microsoft\Windows  user>\AppData\Local\Microsoft\Windows\.\Caches\{AFBF91A-.......}.....db --  .db file. – tmsimont Feb 15 '16 at 23:48 HKEY_CURRENT_USER\Console HKCU\Console \registry keys:\ Options, Font, Layout and Colours).%LOCALAPPDATA%\Microsoft\Windows\WinX\Group3==> dir /B "%LOCALAPPDATA%\Microsoft\Windows\WinX\Group3"|find /i "Command"
  572. 01 - Command Prompt.lnk
  573. 02 - Command Prompt.lnk
  574. ==> reg query HKCU\Console |find /I "\Console" |find /V /I "PowerShell"
  575. HKEY_CURRENT_USER\Console
  576. HKEY_CURRENT_USER\Console\%SystemRoot%_System32_cmd.exe
  577. HKEY_CURRENT_USER\Console\01 - Command Prompt
  578. HKEY_CURRENT_USER\Console\02 - Command Prompt
  579. HKEY_CURRENT_USER\Console\Command Prompt
  580. HKEY_CURRENT_USER\Console\Command Prompt X
  581. ==>HKCU\Console%SystemRoot%_System32_cmd.exe: WinKey+rcmd /D or (not sure) WinKeycmd
  582. 01 - Command Prompt: WinKey+xCommand Prompt (Admin)
  583. 02 - Command Prompt: WinKey+xCommand Prompt Command Prompt: (WinKeyCommand Prompt) Command Prompt X:...> Windows 2000 Registry> Reference HKEY_CURRENT_USER > Console > HKCU\Console > console-window-name subkey are the same as the entries in the Console key.>...>Note Image Note...
  584. The console-window-name subkey does not appear unless the current user has changed the properties of the command window...
  585. The console-window-name subkey is a variable representing the subkeys under the Console key. It does not actually appear in the registry. This variable subkey displays information that is common to the subkeys in the Console key...>HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console/\HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console directory.
  586. Key Description and value
  587. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\NavigationPaneExpanded   The navigation pane is expanded when the value is set to 1 and not expanded when the value is set to 0.
  588. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\NavigationPaneWidth  Specifies the navigation pane width, limited to display resolution.
  589. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\TasksPaneExpanded    The Tasks pane is expanded when the value is set to 1, and not expanded when the value is set to 0.
  590. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\NaN  Specifies the Tasks pane width, limited to display resolution.
  591. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\ForceHighContrast    High Contrast is enabled when the value is set to 1, and not enabled when the value is set to 0.
  592. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\IsConsoleMaximized    The Service Manager console is maximized when the value is set to 1, and not maximized when the value is set to 0.
  593. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleLocation\X Specifies the top left corner of the Service Manager console horizontal coordinate.
  594. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleLocation\Y Specifies the bottom left corner of the Service Manager console vertical coordinate.
  595. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleSize\Height    Specifies the height of the Service Manager console, limited to display resolution.
  596. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleSize\Width Specifies the width of the Service Manager console, limited to display resolution.
  597. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\NavigationPaneVisible  The Service Manager console navigation pane is visible when the value is set to 1 and hidden when the value is set to 0.
  598. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\TasksPaneVisible   The Service Manager consoleTasks pane is visible when set to 1 and hidden when the value is set to 0.
  599. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\ SelectedWunderBarIndex    Depending on the value, the corresponding workspace is selected in the Service Manager console. Administration = 0, Library = 1, Work Items = 2, Configuration Items = 3, Data Warehouse = 4, Reporting = 5. Values higher than 5 correspond to any custom workspaces that are added to the Service Manager console.
  600. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\NavigationModelNodeLocation    The value for the key is the last view that the user selected before closing the Service Manager console, so that when the Service Manager console reopens, it reopens in this view. msscnav://root/Windows/Window/ConsoleDisplay/Folder.f837da16-dc5d-7a25-1b48-c62eb5965806/Folder.8afcc5db-910c-35a0-700f-fd9a94b4169b/View.fbf52403-7ce7-05c4-0ca9-7c61030e5f57 is an example value.
  601. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ViewDisplaySettings\ DetailPaneHeight   Specifies the height of the details pane.
  602. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ViewDisplaySettings\ DetailPaneExpanded The Service Manager console details pane is visible when the value is set to 1 and hidden when the value is set to 0.
  603. HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\User Settings\ SDKServiceMachine    Specifies the name of the server that the Service Manager console is connected to.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\System Center<version>\Common\GroupCalcPollingIntervalMilliseconds
  604. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\System Center<version>
  605.  rootinstall/conf/ams.ini rootinstall/conf/ams.ini configuration file SERVER.LICENSEINFO = <MXL815025Y> • applications/ • conf/ • licenses/ • modules/ • webroot/ • Apache2.2/conf /unzip AdobeMediaServerStarter_5_x64_LS1_All.zip
  606. cd linux
  607. tar -xvzf AdobeMediaServer_5_LS1_linux64.tar.gz
  608. cd AMS_5_0_1_r1076/
  609. ln -s /lib64/libcap.so.2 libcap.so.1
  610. sudo ./installAMS
  611. Accept the defaults and it will put your server underneath /opt/adobe/ams/
  612.  test http://localhost:80. RTMP streaming / HTTP Live Streaming /TMP streaming after verifying the installation is correct stop your server and relink the libcap library
  613.  
  614. cd /opt/adobe/ams
  615. sudo ./server stop
  616. sudo ln -s /lib64/libcap.so.2 libcap.so.1
  617. sudo ./server start
  618. Configuring AMS to work with HTTP Live Streaming
  619. /AMS/ ams.ini. Note that if you keep your streams somewhere else, you'll have to symlink webroot/avalon to it, the built-in Apache always looks for content under webroot/avalon.
  620.  
  621. ams.ini
  622. ...
  623. AVALON.STREAM_PATH = <amsdir>/webroot/avalon
  624. AVALON.AUTH_URL = http://avalon.domain.edu/authorize
  625. Download these files and put them in <amsdir>/applications/avalon/
  626. Note...> Add the following to the end of <amsdir>/Apache2.2/conf/httpd.conf...>
  627. httpd.conf
  628. Include conf/avalon.conf
  629. Create <amsdir>/Apache2.2/conf/avalon.conf with this content.
  630. avalon.conf
  631. <IfModule mod_disk_cache.c>
  632.    CacheEnable disk /avalon
  633. </IfModule>
  634. RewriteEngine on
  635. RewriteLock /tmp/avalon_rewrite_lock
  636. RewriteMap avalon_auth prg:/usr/local/sbin/avalon_auth
  637. RewriteCond %{QUERY_STRING} audio-only=true
  638. RewriteCond %{QUERY_STRING} codec=aac
  639. RewriteCond %{QUERY_STRING} token=([^&]+)
  640. RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only-aac/$1.m3u8?token=%1 [R=301,L]
  641. RewriteCond %{QUERY_STRING} audio-only=true
  642. RewriteCond %{QUERY_STRING} token=([^&]+)
  643. RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only/$1.m3u8?token=%1 [R=301,L]
  644. RewriteCond %{QUERY_STRING} token=([^&]+)
  645. RewriteRule ^/avalon ${avalon_auth:%{REQUEST_URI}?token=%1}
  646. RewriteCond %{REQUEST_URI} !(.+).ts$
  647. RewriteCond %{QUERY_STRING} !token=
  648. RewriteRule ^/avalon - [F]
  649. RewriteRule ^/avalon/forbidden - [F]
  650. <Location /avalon>
  651.  HLSHttpStreamingEnabled true
  652.  HLSMediaFileDuration 2000
  653.  HttpStreamingContentPath "../webroot/avalon"
  654.  HLSFmsDirPath ".."
  655.  HLSJITConfAllowed true
  656.  HLSM3U8MaxAge 86400
  657.  HLSTSSegmentMaxAge 86400
  658.  HLSMetaMaxAge 3600
  659.  Options -Indexes FollowSymLinks
  660. </Location>
  661. Create the file /usr/local/sbin/avalon_auth with the following content and replace <ams_dir> with the value from above..>
  662. #!/bin/bash
  663. if [ -z "$AUTH_URL" ]; then
  664.  AUTH_URL=`grep AVALON.AUTH_URL <ams_dir>/conf/ams.ini | cut -d '=' -f 2 | sed 's/^ *//g'`
  665. fi
  666. while read uri; do
  667.   saveIFS=$IFS
  668.   IFS='=&'
  669.   parm=($uri)
  670.   IFS=$saveIFS
  671.   curl_cmd="curl -s ${AUTH_URL}.txt?token=${parm[1]}"
  672.   raw=`${curl_cmd}`
  673.   result='/avalon/forbidden'
  674.   for seg in $raw; do
  675.     valid=`echo ${uri} | grep /${seg}`
  676.     if [ -n "${valid}" ] && [ -n "${seg}" ]; then
  677.       result=$uri
  678.       break
  679.     fi
  680.   done
  681.   echo $result
  682. done
  683. Configuring AMS..>
  684. Disable built-in Apache..>
  685. ams.ini
  686. ...
  687. SERVER.HTTPD_ENABLED = false
  688. Add the following to /etc/httpd/conf/httpd.conf
  689.  
  690. httpd.conf
  691. ...
  692. Listen 8134
  693. ...
  694. LoadModule hlshttp_module modules/mod_hlshttp.so
  695. #
  696. # Configuration for Adobe Media Server's HTTP Live Streaming
  697. #
  698. <IfModule hlshttp_module>
  699.   <Location /hls-vod>
  700.     HLSHttpStreamingEnabled true
  701.     HLSMediaFileDuration 8000
  702.     HttpStreamingContentPath "/var/avalon/rtmp_streams"
  703.     HLSFmsDirPath "/srv/adobe/ams"
  704.     Options -Indexes FollowSymLinks
  705.   </Location>
  706. </IfModule>
  707. Create avalon-auth.conf in /etc/httpd/conf.d/
  708.  
  709. <IfModule mod_disk_cache.c>
  710.     CacheEnable disk /avalon
  711. </IfModule>
  712.  
  713. RewriteCond %{QUERY_STRING} audio-only=true
  714. RewriteCond %{QUERY_STRING} codec=aac
  715. RewriteCond %{QUERY_STRING} token=([^&]+)
  716. RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only-aac/$1.m3u8?token=%1 [R=301,L]
  717.  
  718. RewriteCond %{QUERY_STRING} audio-only=true
  719. RewriteCond %{QUERY_STRING} token=([^&]+)
  720. RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only/$1.m3u8?token=%1 [R=301,L]
  721.  
  722. RewriteCond %{QUERY_STRING} token=([^&]+)
  723. RewriteRule ^/avalon ${avalon_auth:%{REQUEST_URI}?token=%1}
  724.  
  725. RewriteCond %{REQUEST_URI} !(.+).ts$
  726. RewriteCond %{QUERY_STRING} !token=
  727. RewriteRule ^/avalon - [F]
  728. RewriteRule ^/avalon/forbidden - [F]
  729.  
  730. <Location /avalon>
  731.   HLSHttpStreamingEnabled true
  732.   HLSMediaFileDuration 2000
  733.   HttpStreamingContentPath "/srv/avalon/rtmp_streams"
  734.   HLSFmsDirPath "/srv/adobe/ams"
  735.   HLSJITConfAllowed true
  736.   HLSM3U8MaxAge 86400
  737.   HLSTSSegmentMaxAge 86400
  738.   HLSMetaMaxAge 3600
  739.   Options -Indexes FollowSymLinks
  740. </Location>
  741. Create mod_rewrite.conf in /etc/httpd/conf.d/.
  742.  
  743. RewriteEngine on
  744. RewriteLock /tmp/avalon_rewrite_lock
  745. RewriteMap avalon_auth prg:/usr/local/sbin/avalon_auth
  746. If using VirtualHost, you'll want to enable RewriteEngine
  747.  
  748. <VirtualHost>
  749.  RewriteEngine on
  750.  RewriteOptions Inherit
  751.  ...
  752. </VirtualHost>
  753. Copy avalon_auth to /usr/local/sbin/avalon_auth
  754.  
  755. Copy these files from <amsdir>/Apache2.2/modules/ to /etc/httpd/modules/
  756.  
  757. libadbe_dme.so
  758. libadbe_license.so
  759. libasneu.so.1
  760. libexpat.so.0
  761. libhds.so
  762. mod_hlshttp.so..>"test-run.exe..>
  763. <Application>
  764.     <JSEngine>
  765.         <ApplicationObject>
  766.             <config>
  767.                 <avalonAuthUrl>${AVALON.AUTH_URL}</avalonAuthUrl>
  768.             </config>
  769.         </ApplicationObject>
  770.     </JSEngine>
  771.    
  772.     <StreamManager>
  773.         <VirtualDirectory>
  774.      <!-- Specifies application specific virtual directory mapping for recorded streams.   -->
  775.             <Streams>/;${AVALON.STREAM_PATH}</Streams>
  776.      
  777.         </VirtualDirectory>
  778.     </StreamManager>
  779.    
  780.    
  781.    
  782.     <!-- Settings specific to runtime script engine memory -->
  783.     <ScriptEngine>
  784.         <!-- This specifies the max size (Kb.) the runtime can grow to before -->
  785.         <!-- garbage collection is performed.                                 -->
  786.         <RuntimeSize>20480</RuntimeSize>
  787.     </ScriptEngine>
  788.  
  789.    
  790.     <Client>
  791.         <Bandwidth>
  792.             <!-- Specified in bytes/sec -->
  793.             <ServerToClient>2500000</ServerToClient>
  794.             <!-- Specified in bytes/sec -->
  795.             <ClientToServer>2500000</ClientToServer>
  796.         </Bandwidth>
  797.                
  798.         <MsgQueue>
  799.             <Live>
  800.                 <!-- Drop live audio if audio q exceeds time specified. time in milliseconds -->
  801.                 <MaxAudioLatency>2000</MaxAudioLatency>
  802.                 <!-- Default buffer length in millisecond for live audio and video queue. -->
  803.                 <MinBufferTime>2000</MinBufferTime>
  804.             </Live>
  805.             <Recorded>
  806.                 <!-- Default buffer length in millisecond for live audio and video, value cannot be set below this by Flash player. -->
  807.                 <MinBufferTime>2000</MinBufferTime>
  808.             </Recorded>
  809.             <Server>
  810.                 <!-- Ratio of the buffer length used by server side stream -->
  811.                 <!-- to live buffer.  The value is between 0 and 1.  To    -->
  812.                 <!-- avoid break up of audio, the ratio should not be more -->
  813.                 <!-- than 0.5 of the live buffer.                          -->
  814.                 <BufferRatio>0.5</BufferRatio>
  815.             </Server>
  816.         </MsgQueue>
  817.     </Client>
  818.  
  819.  
  820.  
  821.  
  822. </Application>/*
  823. * Avalon Media System authenticated RTMP streaming application for
  824. * Adobe Media Server.
  825. *
  826. * Add the following keys to your <ams_install_home>/conf/ams.ini:
  827.  *      AVALON.AUTH_URL = http://localhost/authorize
  828.  *      AVALON.STREAM_PATH = /opt/adobe/ams/webroot/avalon
  829. */
  830.  
  831. application.onAppStart = function()
  832. {
  833.     // Logging
  834.     trace("Starting Avalon Streaming app...");
  835.     this.avalonAuthUrl = application.config.avalonAuthUrl;
  836.     trace("Requests will be authenticated against " + this.avalonAuthUrl);
  837.     trace("...loading completed.");
  838. }
  839.  
  840. application.onConnect = function( p_client, p_autoSenseBW )
  841. {
  842.     //Add security here
  843.     p_client.writeAccess = ""; // prevents creating shared object or live streams.
  844.     p_client.readAccess = "";  // no access by default
  845.  
  846.     var xhttp = new LoadVars();
  847.     xhttp.decode(p_client.uri.split("?")[1]);
  848.     if (!xhttp.hasOwnProperty('token')) {
  849.         trace('Missing token in request.');
  850.         application.rejectConnection(p_client);
  851.         return false;
  852.     }
  853.    
  854.     var authed = false;
  855.     xhttp.onHTTPStatus = function(status) {
  856.         trace('Received ' + status);
  857.         switch (status) {
  858.             case 202:
  859.                 trace("Authorized")
  860.                 authed = true;
  861.                 break;
  862.             case 403:
  863.                 trace("Unauthorized")
  864.                 authed = false;
  865.                 break;
  866.         };
  867.     }
  868.    
  869.     xhttp.onLoad = function() {
  870.         if (authed) {
  871.             // grant access to the specific mediapackage directories authorized
  872.             p_client.readAccess = xhttp['authorized'].replace(" ",";");
  873.         }
  874.         // Accept the connection no matter what; the denial will happen when the stream is requested
  875.         application.acceptConnection(p_client);
  876.         if (p_client.readAccess.length > 0) {
  877.             trace("Client can read " + p_client.readAccess);
  878.         } else {
  879.             trace("Client cannot read anything");
  880.         }
  881.  
  882.         if (p_autoSenseBW)
  883.             p_client.checkBandwidth();
  884.         else
  885.             p_client.call("onBWDone");
  886.     }
  887.  
  888.     var authUrl = application.avalonAuthUrl;
  889.     trace('Authorizing against ' + authUrl);
  890.     xhttp.addRequestHeader('accept','application/x-www-urlform-encoded')
  891.     xhttp.sendAndLoad(authUrl,xhttp);
  892.     return null;
  893. }#!/bin/bash
  894.  
  895. if [ -z "$AUTH_URL" ]; then
  896.  AUTH_URL=`grep AVALON.AUTH_URL /opt/adobe/ams/conf/ams.ini | cut -d '=' -f 2 | sed 's/^ *//g'`
  897. fi
  898.  
  899. while read uri; do
  900.   saveIFS=$IFS
  901.   IFS='=&'
  902.   parm=($uri)
  903.   IFS=$saveIFS
  904.   curl_cmd="curl -s ${AUTH_URL}.txt?token=${parm[1]}"
  905.   raw=`${curl_cmd}`
  906.   result='/avalon/forbidden'
  907.   for seg in $raw; do
  908.     valid=`echo ${uri} | grep /${seg}`
  909.     if [ -n "${valid}" ] && [ -n "${seg}" ]; then
  910.       result=$uri
  911.       break
  912.     fi
  913.   done
  914.   echo $result
  915. done  "[]"
  916.                                  Apache License
  917.                            Version 2.0, January 2004
  918.                         http://www.apache.org/licenses/
  919.  
  920.    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  921.  
  922.    1. Definitions.
  923.  
  924.       "License" shall mean the terms and conditions for use, reproduction,
  925.       and distribution as defined by Sections 1 through 9 of this document.
  926.  
  927.       "Licensor" shall mean the copyright owner or entity authorized by
  928.       the copyright owner that is granting the License.
  929.  
  930.       "Legal Entity" shall mean the union of the acting entity and all
  931.       other entities that control, are controlled by, or are under common
  932.       control with that entity. For the purposes of this definition,
  933.       "control" means (i) the power, direct or indirect, to cause the
  934.       direction or management of such entity, whether by contract or
  935.       otherwise, or (ii) ownership of fifty percent (50%) or more of the
  936.       outstanding shares, or (iii) beneficial ownership of such entity.
  937.  
  938.       "You" (or "Your") shall mean an individual or Legal Entity
  939.       exercising permissions granted by this License.
  940.  
  941.       "Source" form shall mean the preferred form for making modifications,
  942.       including but not limited to software source code, documentation
  943.       source, and configuration files.
  944.  
  945.       "Object" form shall mean any form resulting from mechanical
  946.       transformation or translation of a Source form, including but
  947.       not limited to compiled object code, generated documentation,
  948.       and conversions to other media types.
  949.  
  950.       "Work" shall mean the work of authorship, whether in Source or
  951.       Object form, made available under the License, as indicated by a
  952.       copyright notice that is included in or attached to the work
  953.       (an example is provided in the Appendix below).
  954.  
  955.       "Derivative Works" shall mean any work, whether in Source or Object
  956.       form, that is based on (or derived from) the Work and for which the
  957.       editorial revisions, annotations, elaborations, or other modifications
  958.       represent, as a whole, an original work of authorship. For the purposes
  959.       of this License, Derivative Works shall not include works that remain
  960.       separable from, or merely link (or bind by name) to the interfaces of,
  961.       the Work and Derivative Works thereof.
  962.  
  963.       "Contribution" shall mean any work of authorship, including
  964.       the original version of the Work and any modifications or additions
  965.       to that Work or Derivative Works thereof, that is intentionally
  966.       submitted to Licensor for inclusion in the Work by the copyright owner
  967.       or by an individual or Legal Entity authorized to submit on behalf of
  968.       the copyright owner. For the purposes of this definition, "submitted"
  969.       means any form of electronic, verbal, or written communication sent
  970.       to the Licensor or its representatives, including but not limited to
  971.       communication on electronic mailing lists, source code control systems,
  972.       and issue tracking systems that are managed by, or on behalf of, the
  973.       Licensor for the purpose of discussing and improving the Work, but
  974.       excluding communication that is conspicuously marked or otherwise
  975.       designated in writing by the copyright owner as "Not a Contribution."
  976.  
  977.       "Contributor" shall mean Licensor and any individual or Legal Entity
  978.       on behalf of whom a Contribution has been received by Licensor and
  979.       subsequently incorporated within the Work.
  980.  
  981.    2. Grant of Copyright License. Subject to the terms and conditions of
  982.       this License, each Contributor hereby grants to You a perpetual,
  983.       worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  984.       copyright license to reproduce, prepare Derivative Works of,
  985.       publicly display, publicly perform, sublicense, and distribute the
  986.       Work and such Derivative Works in Source or Object form.
  987.  
  988.    3. Grant of Patent License. Subject to the terms and conditions of
  989.       this License, each Contributor hereby grants to You a perpetual,
  990.       worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  991.       (except as stated in this section) patent license to make, have made,
  992.       use, offer to sell, sell, import, and otherwise transfer the Work,
  993.       where such license applies only to those patent claims licensable
  994.       by such Contributor that are necessarily infringed by their
  995.       Contribution(s) alone or by combination of their Contribution(s)
  996.       with the Work to which such Contribution(s) was submitted. If You
  997.       institute patent litigation against any entity (including a
  998.       cross-claim or counterclaim in a lawsuit) alleging that the Work
  999.       or a Contribution incorporated within the Work constitutes direct
  1000.       or contributory patent infringement, then any patent licenses
  1001.       granted to You under this License for that Work shall terminate
  1002.       as of the date such litigation is filed.
  1003.  
  1004.    4. Redistribution. You may reproduce and distribute copies of the
  1005.       Work or Derivative Works thereof in any medium, with or without
  1006.       modifications, and in Source or Object form, provided that You
  1007.       meet the following conditions:
  1008.  
  1009.       (a) You must give any other recipients of the Work or
  1010.           Derivative Works a copy of this License; and
  1011.  
  1012.       (b) You must cause any modified files to carry prominent notices
  1013.           stating that You changed the files; and
  1014.  
  1015.       (c) You must retain, in the Source form of any Derivative Works
  1016.           that You distribute, all copyright, patent, trademark, and
  1017.           attribution notices from the Source form of the Work,
  1018.           excluding those notices that do not pertain to any part of
  1019.           the Derivative Works; and
  1020.  
  1021.       (d) If the Work includes a "NOTICE" text file as part of its
  1022.           distribution, then any Derivative Works that You distribute must
  1023.           include a readable copy of the attribution notices contained
  1024.           within such NOTICE file, excluding those notices that do not
  1025.           pertain to any part of the Derivative Works, in at least one
  1026.           of the following places: within a NOTICE text file distributed
  1027.           as part of the Derivative Works; within the Source form or
  1028.           documentation, if provided along with the Derivative Works; or,
  1029.           within a display generated by the Derivative Works, if and
  1030.           wherever such third-party notices normally appear. The contents
  1031.           of the NOTICE file are for informational purposes only and
  1032.           do not modify the License. You may add Your own attribution
  1033.           notices within Derivative Works that You distribute, alongside
  1034.           or as an addendum to the NOTICE text from the Work, provided
  1035.           that such additional attribution notices cannot be construed
  1036.           as modifying the License.
  1037.  
  1038.       You may add Your own copyright statement to Your modifications and
  1039.       may provide additional or different license terms and conditions
  1040.       for use, reproduction, or distribution of Your modifications, or
  1041.       for any such Derivative Works as a whole, provided Your use,
  1042.       reproduction, and distribution of the Work otherwise complies with
  1043.       the conditions stated in this License.
  1044.  
  1045.    5. Submission of Contributions. Unless You explicitly state otherwise,
  1046.       any Contribution intentionally submitted for inclusion in the Work
  1047.       by You to the Licensor shall be under the terms and conditions of
  1048.       this License, without any additional terms or conditions.
  1049.       Notwithstanding the above, nothing herein shall supersede or modify
  1050.       the terms of any separate license agreement you may have executed
  1051.       with Licensor regarding such Contributions.
  1052.  
  1053.    6. Trademarks. This License does not grant permission to use the trade
  1054.       names, trademarks, service marks, or product names of the Licensor,
  1055.       except as required for reasonable and customary use in describing the
  1056.       origin of the Work and reproducing the content of the NOTICE file.
  1057.  
  1058.    7. Disclaimer of Warranty. Unless required by applicable law or
  1059.       agreed to in writing, Licensor provides the Work (and each
  1060.       Contributor provides its Contributions) on an "AS IS" BASIS,
  1061.       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  1062.       implied, including, without limitation, any warranties or conditions
  1063.       of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  1064.       PARTICULAR PURPOSE. You are solely responsible for determining the
  1065.       appropriateness of using or redistributing the Work and assume any
  1066.       risks associated with Your exercise of permissions under this License.
  1067.  
  1068.    8. Limitation of Liability. In no event and under no legal theory,
  1069.       whether in tort (including negligence), contract, or otherwise,
  1070.       unless required by applicable law (such as deliberate and grossly
  1071.       negligent acts) or agreed to in writing, shall any Contributor be
  1072.       liable to You for damages, including any direct, indirect, special,
  1073.       incidental, or consequential damages of any character arising as a
  1074.       result of this License or out of the use or inability to use the
  1075.       Work (including but not limited to damages for loss of goodwill,
  1076.       work stoppage, computer failure or malfunction, or any and all
  1077.       other commercial damages or losses), even if such Contributor
  1078.       has been advised of the possibility of such damages.
  1079.  
  1080.    9. Accepting Warranty or Additional Liability. While redistributing
  1081.       the Work or Derivative Works thereof, You may choose to offer,
  1082.       and charge a fee for, acceptance of support, warranty, indemnity,
  1083.       or other liability obligations and/or rights consistent with this
  1084.       License. However, in accepting such obligations, You may act only
  1085.       on Your own behalf and on Your sole responsibility, not on behalf
  1086.       of any other Contributor, and only if You agree to indemnify,
  1087.       defend, and hold each Contributor harmless for any liability
  1088.       incurred by, or claims asserted against, such Contributor by reason
  1089.       of your accepting any such warranty or additional liability.
  1090.  
  1091.    END OF TERMS AND CONDITIONS
  1092.  
  1093.    APPENDIX: How to apply the Apache License to your work.
  1094.  
  1095.       To apply the Apache License to your work, attach the following
  1096.       boilerplate notice, with the fields enclosed by brackets "[]"
  1097.       replaced with your own identifying information. (Don't include
  1098.      the brackets!)  The text should be enclosed in the appropriate
  1099.      comment syntax for the file format. We also recommend that a
  1100.      file or class name and description of purpose be included on the
  1101.      same "printed page" as the copyright notice for easier
  1102.      identification within third-party archives.
  1103.  
  1104.   "[]" Copyright [2018] "[]" [james greeno of copyright owner]
  1105.  
  1106.   Licensed under the Apache License, Version 2.0 (the "License");
  1107.   you may not use this file except in compliance with the License.
  1108.   You may obtain a copy of the License at
  1109. C:\Program Files (x86)\Adobe\Flash Media Server 3.5\applications\vod\media\sample.mp4Server: rtmp://localhost/vod/_definst_
  1110. Stream: mp4:sample.mp4 rtmp://localhost:1935/vod/_definst_"/> </head ... if you have a Stream Name Group ...
  1111. "[]" http://www.apache.org/licenses/LICENSE-2.0..>exit../>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement