?
Solved

Viewing .mpg movies quickly.

Posted on 2006-03-19
12
Medium Priority
?
324 Views
Last Modified: 2010-04-07
I have a 45 second mpg movie that I want people to view on my site.  What is the best way to optimize this movie so people aren't waiting long for it to download?

Thanks,
Dave
0
Comment
Question by:livewirewebsolutions
  • 7
  • 5
12 Comments
 
LVL 2

Expert Comment

by:mark_atx
ID: 16232691
Both Google Video and YouTube use Flash Video, if you can convert to FLV that would be the best way for the largest audience to see your movie with minimal initial download.
0
 

Author Comment

by:livewirewebsolutions
ID: 16235277
I converted the mpg to flv and when I test in new browser it loads differently than the mpg.  Before, I had the mpg open in Quicktime in a new browser window.  This isn't happening with the flv file.  What is the best way to show this file to people on the web.  I want them to click on a link and have the movie open in a new browser.

Thanks,
Dave
0
 
LVL 2

Expert Comment

by:mark_atx
ID: 16241047
With FLV most people won't have to download anything to view. If you want to make a popup window try this generator:
http://www.javascriptkit.com/popwin/index.shtml
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:livewirewebsolutions
ID: 16241158
Everytime I put the flv file into the web page a big viewing box appears.  I don't want the box there, I just want a link.  Will this javascript allow me to do this?
0
 
LVL 2

Expert Comment

by:mark_atx
ID: 16241311
Yes, if you specify the size of the window you want, and then have the window open an HTML page with an FLV player (see http://www.flvplayer.com/ for players).

For instance I generated this code to open a 400x300 window with google.com as the page. Just put the <script> block into the <head> section, and use the <a> link in the body.
<script type="text/javascript">

//JK Popup Window Script (version 3.0)- By JavaScript Kit (http://www.javascriptkit.com)
//Visit JavaScriptKit.com for free JavaScripts
//This notice must stay intact for legal use

function openpopup(popurl){
var winpops=window.open(popurl,"","width=,height=,status,resizable,width=400px,height=300px")
}
</script>

In the body...

<a href="javascript:openpopup('http://www.google.com')">Click here to open window</a>
0
 
LVL 2

Accepted Solution

by:
mark_atx earned 600 total points
ID: 16241336
Sorry about that popup generator link, this one is much better:
http://www.dynamicdrive.com/dynamicindex8/popwin.htm
0
 

Author Comment

by:livewirewebsolutions
ID: 16241367
Sorry about the last response.  It works great.

Thanks a million.
Dave
0
 
LVL 2

Expert Comment

by:mark_atx
ID: 16241386
Glad to hear it. Could you please let me know what program you used to create the FLV file, for my own curiosity?
0
 

Author Comment

by:livewirewebsolutions
ID: 16242004
It's called Macromedia Flash 8 Video encoder.  Great program.  Unfortunately, I'm still having problems.

I tried this javascript with a gif animation and it worked great.  However, I just got back to my computer with the .flv file and it's not working.

What I have done:    I have pasted the javascript and now have a link to click.  However, when I click the link, a window opens and asks me to open or save.  When I click open, Flash Player 8 opens and does nothing.  I can't even get the movie to play and I know it works.  The only way I can get the flv file to play is by placing the tv screen like image right on the page.  I do not want this.   Kind of back to square one.  Can you help??

Dave
0
 
LVL 2

Expert Comment

by:mark_atx
ID: 16242201
You need to have the FLV load within an SWF, which you can create in flash or try this free player out:
http://www.flashstreamworks.com/flvplayerweb/index.php
Just change the HTML file by replacing "ENTER_YOUR_FLV_FILENAME_HERE" with the path of your FLV file.
0
 

Author Comment

by:livewirewebsolutions
ID: 16242889
That still ends up with a big movie box on my page.  This is what I want below.

Click this video

I want someone to click the above "click this video" text and have the movie open in a new browser.  I can easily do this with my mpg which opens in quicktime but the file is too big.  When I convert the file to a .flv this no longer works.  Why?

Sorry to be monotonous but I am frustrated.

Thanks,
Dave
0
 
LVL 2

Expert Comment

by:mark_atx
ID: 16243075
It's understandable; I don't think I'm totally clear on what the problem is. My understanding is: When you say "big movie box" you mean the page navigates away from your current page and displays the movie in the center or top of the browser window. And you want to open a popup window with your movie while keeping the current page in the main browser window.

If that's the case, first of all you can open anything in a new window by adding target="_blank" to any <A> tag, like <a href="http://www.google.com" target="_blank">

Your earlier problem with the browser asking you to "save" or "open" suggests you linked directly to the FLV file. Instead you should link to an HTML page which loads a SWF which loads the FLA. That HTML page can be in a new window of any size with the javascript popup.

If your problem is not what I described, please elaborate.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question