Putting a video on a site

REALLYRICHLIMITED

Free Member
Jul 17, 2007
39
0
Hi,

I have a site provided by streamline with unlimited storage space.

Can anyone tell me how I would add a video to one of my pages?

I would prefer if the video was actually on my page opposed to a link to a YouTube video.

Thank you for your help, it is much appreciated!
 
E

Exclusively You!

Not sure how you do that, but I am pretty sure you could find the answer if you googled it.

On saying that, a link to you tube would take the bandwith problem away from your site though, having a video on your site could potentially make your site a long loader and deter people from using it, where as a link to you tube etc people will expect the video to take a little while to load and would be prepared to wait.

Although I am by no means an expert, somebody on here who can advise you better may just say a video on your site will not be a problem.

Craig.
 
Upvote 0

DuaneJackson

Free Member
Jul 14, 2005
8,642
1,100
Brighton / London
It depends if your host lets you upload videos. You might get away with having it embedded in flash.

If not then have a look at www.streaming-services.co.uk - I think the package you'd need (assumign it's not a really long video) is the 20GB packag which costs £28 a month with a setup fee of £75.

See here for an example of what it can look like embedded on your page.
 
Upvote 0
You might have unlimited storage space with your hosting account but you also have to check what your bandwidth limit is per month, i.e. how much data are people allowed to download from your website, and how fast your hosting is (dependent upon what type of connection the web server has to the internet, and who is sharing it).

If you have standard hosting then you are probably better off using an FTP (file transfer protocol) to do the uploading, filezilla is free.

I recommend using a tool like www.flashvideostudio.com to convert your movie to Flash, that way it is easier for most visitors to see the video, and Flash will also handle streaming so large videos will start to play sooner.

Although we do not have any clients with large videos, we have some client sites with short video clips using flashvideostudio, e.g. www.kamstkd.com video gallery section.

There are some benefits of uploading your video to youtube or google, it doesn't eat into your bandwidth and it can offer viral marketing, but there are downsides too, sometimes it can be quite slow, you cannot stop others, e.g. your competitors, putting the video on their site, and you don't have control over the adverts for other videos, perhaps from competitors, that might be displayed after your video.
 
Upvote 0
Flash is the way to go, although like Paul said using external platforms could be good for viral marketing (some might even make you money)

All depends what you want it for. If it's to make your website look good/more interactive, then you probably don't want to host it elsewhere. :)
 
Upvote 0
Dont use flash, its a waste of time. Below is all the code you need to put a media player on your website.

Code:
<object id="MediaPlayer1" width=400 height=300
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="[URL]http://activex.microsoft.com/activex/controls/mplayer/en/nsm[/URL] p2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..." 
type="application/x-oleobject" align="middle">
<param name="FileName" value="videos/ENTER_FILE_NAME.wmv">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">
<embed type="application/x-mplayer2" 
pluginspage = "[URL]http://www.microsoft.com/Windows/MediaPlayer/[/URL]"
src="videos/ENTER_FILE_NAME.wmv" align="middle"
width=400
height=300
defaultframe="rightFrame"
showstatusbar=true></embed> 
</object>

Just put the code anywhere you want on your page.

I will post an upload code below which will automatically rename user uploaded videos.

Obviously you change the destination path of your video file. The code also works with PHP in the destination path so you can dynamically alter the name of your file.

Dont change anything other than the destination path and dimensions or you will get problems.

Hope that helps.
 
Upvote 0
Code:
<?

if($_POST['upload_video']){
  
  
 

$file_type=$_FILES['userfile']['type'];echo $file_type;?>
                    <?
$file_size=$_FILES['userfile']['size'];echo $file_size;?>
                    <?
$file_tmp_name=$_FILES['userfile']['tmp_name'];echo $file_tmp_name;?>
                    <?
$newname="VIDEO_NAME";
$uploaddir = $_SERVER['DOCUMENT_ROOT']."/videos/";
$uploadfile = $uploaddir . $newname;
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile);
?>
                  </p>
                    <table width="80%" border="0" align="center">
                      <tr>
                        <td>Your video was successfully uploaded.</td>
                      </tr>
                    </table>
                  <? } else { ?>
                    
                    
                    </p>
                    <p><font color="#FF0000">
                      </font></p>
                  <form action="THIS_PAGE.php" method="post" enctype="multipart/form-data" name="form" id="form" >
                      <table width="80%" border="0" align="center">
                        <tr>
                          <td bgcolor="#E5E5E5"><input name="userfile" type="file" id="userfile" />
                              <input name="upload_video" type="submit" class="boldtext" id="upload_video" value="Upload" /></td>
                        </tr>
                      </table>
                  </form>
                  <? } ?>

Very basic PHP video upload code. NEW_NAME will have to be changed depending on how you want to automatically name them e.g. a random number is what You Tube uses or you can link it to a datbase. To test, just write something in there.

Have fun
 
Upvote 0

WHUK

Free Member
Aug 23, 2007
524
28
London, UK
Before getting into video over the web you should ask your host whether they allow you to do so and check for your bandwidth and diskspace though they are having unlimited storage space your host will restrict you for doing something which may affect overall server performance as your videos may eatup most of the server resources which are shared among all the accounts on that server so better check with them first.
{ Most host oversell their products by advertising as " UNLIMITED " but you should know that their is nothing unlimited you have certain limitations for every thing you do;)}
If you are serious about video hosting then you can opt for more versatile resource such as VPS or Dedicated server which will be a good option for hosting videos and other applications.

I think using flash video would be the best choice, you just have to conver your video to flash and it's ready for web... There are many converters available over the net just try them.
 
Upvote 0

Latest Articles

Join UK Business Forums for free business advice