Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the "Sidebar" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 4139

Notice: The called constructor method for WP_Widget in mts_Widget_Tabs is deprecated since version 4.3.0! Use
__construct()
instead. in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 3894

Notice: The called constructor method for WP_Widget in mts_ad_widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 3894

Notice: The called constructor method for WP_Widget in mts_ad_300_widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 3894

Notice: The called constructor method for WP_Widget in swt_tweet_widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 3894

Notice: The called constructor method for WP_Widget in Facebook_Like_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 3894
Cleaning Up After Adobe Media Server Live HDS Events

Cleaning Up After Adobe Media Server Live HDS Events


Notice: Undefined index: mts_posttop_adcode in /home1/jccrosby/public_html/admin.crsby.com/wp-content/themes/playbook/single.php on line 19

After broadcasting a live event using using Adobe Media Server (AMS 5) you’re left with a bunch of files (.control, .meta, .bootstrap, .f4f .f4x). When you start the live event back up, things can get wonky and you won’t be able to use that live event again. This can be problematic if you have a regular live event that you want to broadcast and don’t feel like setting up a live event or don’t want to have a bunch of live events hanging around on your server all the time.

Telling AMS to Clean Up

There is an easy solution – you can tell AMS to clean up after it’s self when the application is terminated. Meaning that the files that are deposited in the /streams directory are removed and ready for another live event. This saves space on your server and it saves you the headache of having to manually clean up the files.

The Clean-up Command

To get AMS to clean up the live event files, add the following directive to the application’s Application.xml file:

<ScriptEngine> 
 <ApplicationObject> 
 <config> 
 <clearOnAppStop>true</clearOnAppStop> 
 </config> 
 </ApplicationObject> 
</ScriptEngine>

After you restart the application, broadcast a live event, then stop the live event and then unload the application, you should see that the files have been cleared from the stream directory.

NOTE: You can add this directive to the server level Application.xml, but I would suggest keeping it on the application level.

Configuring AMS for Real

For a default install of AMS using the “livepkgr” application, open the Application.xml file in the {AMS_INSTALL}/applications/livepkgr directory.

Add the following xml as a child of the <application> node:

<ScriptEngine> 
 <ApplicationObject> 
 <config> 
 <clearOnAppStop>true</clearOnAppStop> 
 </config> 
 </ApplicationObject> 
</ScriptEngine>

Save and close the file.

Do a little live streaming and notice the files being created in the {AMS_INSTALL}/applications/livepkgr/streams/_definst_/livestream directory.

Before Clean Up

Stop broadcasting your live stream and either wait for the livepkgr application to unload or use the admin concole to unload the application. As soon as the application is unloaded, the livestream directory should be removed from {AMS_INSTALL}/applications/livepkgr/streams/_definst_ effectivley cleaning up your server for you.

Clean Up After

I thought this was a nice little find, what do you think?

Let me know in the comments.


Notice: Undefined variable: defaults in /home1/jccrosby/public_html/admin.crsby.com/wp-content/themes/playbook/functions.php on line 340

Notice: Undefined index: mts_postend_adcode in /home1/jccrosby/public_html/admin.crsby.com/wp-content/themes/playbook/single.php on line 28

Notice: WP_Query was called with an argument that is deprecated since version 3.1.0! caller_get_posts is deprecated. Use ignore_sticky_posts instead. in /home1/jccrosby/public_html/admin.crsby.com/wp-includes/functions.php on line 4023
Comments
  1. garybruckheimer
  2. John Crosby
  3. agillette2014
  4. M.Yazdian

Leave a Reply

Your email address will not be published. Required fields are marked *