SEARCH
 
FREE NEWSLETTER
Sign up for a Free WebVideoUniverse HTML newsletter.

IT Channel
internet.com
internet.commerce

Featured Solutions for Technology Professionals from Internet.com
Whitepaper: Storage Management Costs in the Enterprise
Sponsored by HP
This report should be read by anyone responsible for choosing storage solutions for their organizations or for making administrative personnel decisions in the data center. Many factors contribute to the ownership cost for enterprise storage. Get the comparison of Mid-Range Array Solutions here. Learn more.


Most Popular

Video Glossary Terms

Products: Web Video

Related Articles

Verisign Whitepaper: Maximizing Site Visitor Trust Using Extended Validation SSL. Increase confidence on your site and see more conversions. Learn how by downloading this whitepaper.
Editing / EncodingView Archives

The Flash Guru: Serving FLV Files Over Slow Connections


April 30, 2008
By Troy Dreier

In this latest installment of our popular monthly series, we again turn to our favorite Flash Video expert, Stefan Richter, to answer a question from our forum. This time: How to serve video to users with slow Internet connections.

Stefan Richter

If you're not familiar with him, Stefan Richter is a certified Flash developer and he's been involved with Flash since it first began. Regular readers to this site will recognize the excerpt "Everything You Don't Know About Flash" from his book Hands-On Guide to Flash Video, (co-written with Jan Ozer).

Reader "cantthinkofanic" Asked:

I am not an experienced Flash user. I have converted a mpeg video of some 75Mb using Flash 8 to a set of files (FLV, SWF - not sure what they all do). I find that the FLV downloads and plays intermittently on slower PCs even to the point where the picture freezes and the sound works OK.

Is there a way to synchronize the download (pre-download?) to get it smooth for low bit rate connections. I.e. what do you experts do?

The FLV file which is the one I've uploaded is about 8Mb.

Stefan's Reply:
The user is likely serving a progressive download, where the video downloads when the viewer clicks Play. There are two things to do to help smooth the streaming: reduce the encoding bit rate or pre-buffer the video.

A new user might not understand that when they encode an FLV file, they're choosing a bit rate for that file. If you've encoded your file at 300kbps, then anyone with a slower Internet connection (like someone using a 56kbps dial-up connection) will get stuttering, jerky playback. Try encoding your file at 256kbps, where you'll get a decent picture and still stream well over slow connections. That's still too much data for dial-up, but dial-up really isn't suited to video. If you've mistakenly encoded your work at a high rate, like 1000kbps, this is likely the problem. Most Internet users will have trouble getting a 1000kbps FLV file to play smoothly.

If changing the encoding rate doesn't take care of the problem, you may want to set your FLV player to pre-buffer the video. Pre-buffering means that the video will load for a given length of time before playback begins. For perfectly smooth playback, you can have the entire video load first, although this might keep your viewers waiting for too long a time.

There are two ways to initiate a buffer, and both are a little bit involved. You'll need to learn some ActionScript to get them to work. First, you can use the wizard within Adobe Flash to create a SWF file that includes both the player and the video. Choose File Import and then Video from the program's File menu. The wizard will walk you through the necessary steps. When you're done, you'll have a SWF file than you can embed in your page. The wizard itself doesn't create the buffer, though, You'll need to use ActionScript to select a keyframe and set the buffer time. The second way to create a customized player from scratch using ActionScript and build a buffer into it.

ActionScript is too complex to go into here, but you can learn the needed coding with the documentation that comes with Flash. Alternatively, Richter recommends going to the Flash section of the Adobe Developer Center and selecting the Video category. You'll find plenty of examples that will get you started.

If you're not sure about how much buffer to use, Richter recommends going big. "If in doubt, use a slightly larger buffer," he says.

Other Flash Guru articles:

Go to page:

Tools:
Add webvideouniverse.com to your favorites
Add webvideouniverse.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES