Lemon Streaming Server
What is Lemon?
Lemon is the new streaming server on the College of Charleston campus. It is a delivery system that can be used to stream many different formats of videos across websites for users to view.
Lemon is not a file system, and it is also not backed up. What this means is it should only be used for the purpose of streaming videos, and you should make sure to have your own copy of your videos incase something should happen to the copy on Lemon.
Why would I want to stream video?
How do I get a personal folder on Lemon?
Note: if you wish your Instructional Technologist to have access as well you may request that at the same time.
How to connect to lemon to upload your files
The College uses Secure FTP (SFTP) to connect to the server. Programs that use standard FTP only will not work with this server. Secure FTP protects your username and password as it is sent over the Internet. The College recommends Dreamweaver, a popular full Web development suite, or FileZilla, a cross-platform Secure FTP client; however, any Secure FTP program will work. Instructions for FileZilla and Dreamweaver are listed below.
FileZilla
FileZilla is a free, Open Source, program which supports SFTP. It runs on Windows PCs, Apple Computers running OSX, and many other platforms.GET FILEZILLA
- FileZilla is available for free from http://filezilla-project.org.
- Use the "Download FileZilla Client" to obtain the proper version of FileZilla for your operating system.
- Run the installer, accepting default settings.
CONNECT TO THE SERVER
- Open FileZilla.
- Fill in the fields:
- Host: sftp://lemon.cofc.edu
- Username: your COUGARS username
- Password: your COUGARS password
- Port: 22
- Click Quickconnect to connect to the Faculty/Staff Web Page Server.
MANAGING FILES
- The FileZilla window is split into two columns. The left column shows files on your computer, while the right column shows files on the server.
- To upload a file:
- First, navigate to that file in the "Local site" tree.
- Next, make sure that you've selected the appropriate folder in "Remote site" (/Volumes/RAID/streaming/YOURUSERNAME)
- Then, just drag and drop the files you'd like onto the server.
How to include a stream on your personal site
- Paste the following code inside the <body></body> tags of your website. Make sure to change content that is dynamic (indicated by red and blue colors) in order for your video to be viewed correctly. if you are pasting inside of cascade surround your code with
<!--#START-CODE {code} #END-CODE-->
Flash Playback (.flv)
<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="http://cofc.edu/scripts/mediaplayer/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://cofc.edu/scripts/mediaplayer/player.swf","ply","328","200","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=flv:cofc/videoName.flv&streamer=rtmp://lemon.cofc.edu:1935/cofc/&image=http://cofc.edu/livethelife/images/2010-04-01_1415.jpg&skin=http://cofc.edu/scripts/mediaplayer/modieus/modieus.swf&plugins=sharing-3");
s1.write("container");
</script>
If you wish to have the code generated for you automatically, visit: http://webdev.cofc.edu/tools/streaming.php
Flash Playback with Mobile support (.flv and .mp4)
<div id="container">
<video controls="controls" width="432" height="240">
<source src="http://lemon.cofc.edu:1935/cofc/yourUsername/yourUsername/yourvideo.mp4/playlist.m3u8" type="video/quicktime" />
<source src="http://lemon.cofc.edu/yourUsername/yourvideo.mp4" type="video/mp4" />
</video>
</div>
<script type="text/javascript" src="http://cofc.edu/scripts/mediaplayer/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://cofc.edu/scripts/mediaplayer/player.swf","ply","328","200","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=flv:cofc/videoName.flv&streamer=rtmp://lemon.cofc.edu:1935/cofc/&image=http://cofc.edu/livethelife/images/2010-04-01_1415.jpg&skin=http://cofc.edu/scripts/mediaplayer/modieus/modieus.swf&plugins=sharing-3");
s1.write("container");
</script>
To provide mobile support you will have to convert two copies of the video file, one for flash and one for mp4. You cannot convert a flv file to an mp4 using Magnolia. If you wish to have the code generated for you automatically, visit: http://webdev.cofc.edu/tools/mobile-streaming.php
- Red areas indicate dynamic fields in which you must change the data in order for your content to show up correctly.
- Example: flv:cofc/videoName.mov = videoPlaybackType:yourUsername/yourVideoName
- Blue areas indicate the starting image for a video, and must be changed to pull in the correct content. It is a URL to an image on your site, which can be a relative or absolute path.
- Example: http://cofc.edu/ = your site domain. /livethelife/images/2010-04-01_1415.jpg = path on your server to static image
What if my video is not in one of these formats?
Video Encoding Server
Uploading and encoding Flash video
- Connect to server "Magnolia" (smb://magnolia for Mac and \\magnolia for Windows), and then go to the folder called "incoming". If you do not have access, email webmaster@cofc.edu.
- Upload your file. Make sure your filenames use all lowercase letters and dashes for spaces. No other characters, please. Also, please prefix the filename with your department name. Example: admissions-my-video.mov
- Then email webmaster@cofc.edu with the name of your file(s).
Processing & Pick Up
Encoding Specs for .flv
Hinted Quicktime and MPEG-4
Note: We cannot convert .swf or .rm files.
Authenticating Pages
.htaccess file
- Create .htaccess/.htpasswd combination
Robots.txt
- Create a text file and name it: robots.txt
- Add the following content (in the blockquote) to it.
- Save, and put the file in the root directory of your website.
#robots.txt for disallowing search engines to index authenticated pages
User-agent: *
Disallow: pathToAuthenticatedPage/authenticatedPage.php
Meta tag
- Edit your authenticated page.
- Place the following text (in the blockquote) in your page <head></head> section.
- Save your file and upload it to your site.
<meta name="robots" content="noindex">
Frequently Asked Questions
What if my video is not in a desired format to stream, and I only want to have it downloadable?
You can still put these videos in your folder. The URL to this video will be: http://lemon.cofc.edu/yourfolder/yourvideoname












