Viewing .mpg movies quickly.

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
livewirewebsolutionsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mark_atxCommented:
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
livewirewebsolutionsAuthor Commented:
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
mark_atxCommented:
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

livewirewebsolutionsAuthor Commented:
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
mark_atxCommented:
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
mark_atxCommented:
Sorry about that popup generator link, this one is much better:
http://www.dynamicdrive.com/dynamicindex8/popwin.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
livewirewebsolutionsAuthor Commented:
Sorry about the last response.  It works great.

Thanks a million.
Dave
0
mark_atxCommented:
Glad to hear it. Could you please let me know what program you used to create the FLV file, for my own curiosity?
0
livewirewebsolutionsAuthor Commented:
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
mark_atxCommented:
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
livewirewebsolutionsAuthor Commented:
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
mark_atxCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.