upload

Uploading a video or file to LHF website

Overview: Need to upload a file(s) to our website (LHF) so that a customer can download it or view it.

Creating The Film File:

Render the file as small as one can for the customer to view it.  The last time I created an mp4 file using "Mainconcept AVC/AAC - Export for G1".  A file CineCap processed 1.04GB 16mm HD 2.09 minute B&W file rendered to 8.72MB.  Another CineCap processed 14.4GB Reg8 HD 33:18 minute colour file rendered to 135MB.

Two Options For Upload:

If the file is less than 1000MB (almost 1GB), then you can use the Cpanel - file manger - upload process.  Just logon using lifeti15 and follow the steps.

The other option is to use Smartftp.

Using SmartFTP:

Use SmartFTP to access our website:

address: lifetimeheritagefilms.com/

login: lifeti15

password: pwd

port: 21

Uploading (info for both methods):

Go to the following path and place your file….the last two folders are obviously the year and month that you are in….

domains/lifetimeheritagefilms.com/public_html/wp-content/uploads/YEAR/MONTH/

When sending someone a link for a file to download, here is an example…….

http://www.lifetimeheritagefilms.com/wp-content/uploads/2011/04/some_download_file.zip

The person that you send the link to will only be able to download the one file because they cannot look at any of the directory.

Name of the file should not have spaces….this may or may not cause a problem.

Related:

Check out upload speed

Download or Upload Speed Calculator

Here's a cool download or upload speed calculator that can quickly calculate how much time it takes to upload a certain sized file: http://www.t1shopper.com/tools/calculate/downloadcalculator.php

Our Internet Stats

Our current (Nov 2012) internet speeds (according to http://www.speedtest.net/)  are:

Upload: 2.94Mbps

Download: 48.61Mbps

Current speeds July 23, 2105 at 11:36am (I am running a large upload to dropbox currenly that may be affecting the results of the upload speed):

Upload: 2.51Mbps

Download: 57.95Mbps

With these speeds a 1GB file would take:

1 hour to upload.

3 minutes to download.

Uploading file to our website

Use SmartFTP to access our website: address: s89628.gridserver.com/

login: tmmedia.ca or fractelferns.com

password: month!

port: 21

Go to the following path and place your file....the last two folders are obviously the year and month that you are in....

domains/tmmedia.ca/html/wp-content/m_uploads/YEAR/MONTH/

When sending someone a link for a file to download, here is an example.......

http://www.lifetimeheritagefilms.com/wp-content/m_uploads/2010/07/some_download_file.zip

The person that you send the link to will only be able to download the one file because they cannot look at any of the directory.

Name of the file should not have spaces....this may or may not cause a problem.

Zipping Files for Upload

When you want to zip something as a ZIP, TAR, TAR.GZ, or even TAR.BZ2, here's a good and easy article on how to do it:

  • http://www.simplehelp.net/2008/12/15/how-to-create-and-extract-zip-tar-targz-and-tarbz2-files-in-linux/

Here's the meat and potatos for when we want to upload stuff this was to media temple:

  1. SSH into drone (192.168.0.103) and browse into the directory you want to compress
  2. Type:sudo tar -zcvf archivename.tar.gz *
  3. Upload the file into the folder you wish the files to be located on our web server (Likely with SmartFTP)
  4. SSH into media temple and browse to the folder with the archive.
  5. Type: tar -zxvf archivename.tar.gz

Here's the text from the website:


ZIP

Zip is probably the most commonly used archiving format out there today. Its biggest advantage is the fact that it is available on all operating system platforms such as Linux, Windows, and Mac OS, and generally supported out of the box. The downside of the zip format is that it does not offer the best level of compression. Tar.gz and tar.bz2 are far superior in that respect. Let’s move on to usage now.

To compress a directory with zip do the following:

# zip -r archive_name.zip directory_to_compress

Here’s how you extract a zip archive:

# unzip archive_name.zip

TAR

Tar is a very commonly used archiving format on Linux systems. The advantage with tar is that it consumes very little time and CPU to compress files, but the compression isn’t very much either. Tar is probably the Linux/UNIX version of zip – quick and dirty. Here’s how you compress a directory:

# tar -cvf archive_name.tar directory_to_compress

And to extract the archive:

# tar -xvf archive_name.tar.gz

This will extract the files in the archive_name.tar archive in the current directory. Like with the tar format you can optionally extract the files to a different directory:

# tar -xvf archive_name.tar -C /tmp/extract_here/

TAR.GZ

This format is my weapon of choice for most compression. It gives very good compression while not utilizing too much of the CPU while it is compressing the data. To compress a directory use the following syntax:

# tar -zcvf archive_name.tar.gz directory_to_compress

To decompress an archive use the following syntax:

# tar -zxvf archive_name.tar.gz

This will extract the files in the archive_name.tar.gz archive in the current directory. Like with the tar format you can optionally extract the files to a different directory:

# tar -zxvf archive_name.tar.gz -C /tmp/extract_here/

TAR.BZ2

This format has the best level of compression among all of the formats I’ve mentioned here. But this comes at a cost – in time and in CPU. Here’s how you compress a directory using tar.bz2:

# tar -jcvf archive_name.tar.bz2 directory_to_compress

This will extract the files in the archive_name.tar.bz2 archive in the current directory. To extract the files to a different directory use:

# tar -jxvf archive_name.tar.bz2 -C /tmp/extract_here/

Data compression is very handy particularly for backups. So if you have a shell script that takes a backup of your files on a regular basis you should think about using one of the compression formats you learned about here to shrink your backup size.

Over time you will realize that there is a trade-off between the level of compression and the the time and CPU taken to compress. You will learn to judge where you need a quick but less effective compression, and when you need the compression to be of a high level and you can afford to wait a little while longer.

Guest FTP Access for TMM.com

In some cases, emailing or uploading files won't cut it.  We created a guest FTP login for tmmedia.ca.

  1. Open a program capable of FTP.  If you don't have one, you can download either SmartFTP for Windows or Classic FTP for Mac.
  2. Login with the following credentials:
    Address: ftp.tmmedia.ca
    Login: tmm_guest
    Password: coff33!
  3. Upload your file to this root directory