Adobe
Products
Creative Suite
Photoshop Family
Acrobat Family
Flash Platform
Digital Marketing Suite
Digital Publishing Suite
More products
Solutions
Digital marketing solutions
Digital media solutions
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Store
Adobe Store for home and home office
Education Store for students, educators, and staff
Business Store for small and medium businesses
Other ways to buy
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections   Search  
Solutions Company
Help Learning
Sign in Welcome, My orders My Adobe
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center /

Troubleshooting Flash video encoding and deployment

by Robert Reinhardt

Robert Reinhardt

Created

21 April 2008

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
detection encoding | decoding Flash Professional CS3 streaming video

Requirements

User level

Intermediate

Adobe Flash CS3 Professional Video Studio Techniques covers techniques for creating and sharing optimal Flash video experiences over the web, including capturing and encoding video, creating and using cue points, working with transparency, and deploying and delivering optimal quality video. This article addresses some issues you may encounter during the encoding and deployment process.

Why don't the controls for the FLVPlayback component appear when I test my Flash movie (SWF file) from a live site?

You must upload the skin SWF file along with your Flash movie SWF file and support HTML documents to the web server for a site. The skin file is loaded at runtime. If you do not see the skin displayed when you test your Flash movie live, make sure the skin SWF has been uploaded to the web server.

I've added a filter effect to the FLVPlayback component (or a MovieClip instance containing a FLVPlayback component). Why is my video's frame rate so slow?

Runtime filter effects are very processor-intensive. If you want to add a drop shadow or glow effect to a Flash video, create a MovieClip instance (or Sprite instance in ActionScript 3.0) behind the video, and add the filter effect to the MovieClip or Sprite instance. You should also enable the Use Runtime Bitmap Caching option in the Property inspector for such MovieClip instances. In ActionScript, this option is controlled with the MovieClip.cacheAsBitmap or Sprite.cacheAsBitmap property.

Why is my FLV file's frame rate playing slower than what I specified during the encoding process?

A few factors can affect Flash Player's ability to keep the frame rate of a video consistent during playback. First, make sure your Flash video file was encoded with an audio track, even if it's just audio of a looped silence track. The audio track is the governor for a Flash video's frame rate; without it, the FLV file may not play smoothly.

Another factor is the computer's processing speed. Slower computers such as an Apple PowerMac G3s or a Pentium II may not be able to play video files with large dimensions and fast frame rates. If you are experiencing choppy playback on slower computers, try testing a Flash video encoded with the Sorenson Spark codec. The Spark codec is much less processor-intensive than the On2 VP6 codec.

How can I detect when a Flash video file has finished playing?

The NetStream class dispatches status codes during the initialization and playback of Flash video (FLV) files. To know when a video has reached its end, you should check for two consecutive events: NetStream.Play.Stop and NetStream.Buffer.Empty. The NetStream.Play.Stop event occurs when the video stream has finished loading into the Flash Player buffer, but the video in the buffer has not yet played. Therefore, you can track the event and wait for the NetStream.Buffer.Empty event to know when the remaining video in the buffer has played.

If you're using the FLVPlayback component, you don't have to monitor NetStream events. You can create a listener for the "complete" event (ActionScript 2.0) or Event.COMPLETE (ActionScript 3.0).

If an FLV file has been encoded with an older encoder tool (two or three years old), you may not be able to accurately detect the end of playback. Badly encoded Flash video files may not fire NetStream status events when the video has finished playing. Your best solution is to re-encode the source files with a current Flash video encoding tool.

Why are cue points that I added to my Flash video during the encoding stage not firing in ActionScript?

You may have a problem with the Flash video encoding software. Sorenson Squeeze, in all versions supporting cue points, may not correctly encode cue points for source video files containing an alpha channel. I've also experienced problems with Squeeze's Auto Keyframes Enabled property with alpha channel footage requiring cue points. If you are experiencing problems with cue point events in ActionScript, you may want to try encoding the Flash video file with another encoder.

Why is my real-time streaming Flash video file not playing smoothly on a variety of Internet connection speeds? The video seems to play for a few seconds and then pause for a while before restarting.

Always be mindful of your Flash video (FLV) file's bitrate. If you serve a high-quality, high-bitrate FLV file to a user with a slow Internet connection, the user will likely suffer through several long pauses while the video constantly buffers into the Flash Player and attempts playback. As soon as the buffer is exhausted, the video pauses and rebuffers.

If you're deploying the video with real-time streaming solutions such as Flash Media Server or a Flash Video Streaming Service provider, you must
pay careful attention to the viewer's available bandwidth and serve the appropriate bitrate to that viewer.

For more information about taking into account the varying network conditions that users may encounter while viewing streaming content, read David Hassoun's article, Dynamic stream switching with Flash Media Server 3.

Why does my Flash video encoding tool not let me encode the audio portion of an MPEG file?

Most Flash video encoders cannot fully process MPEG files. Most MPEG files are muxed, which means that the audio and video portions of the file are mixed into one track instead of two distinct and separate tracks. As such, most Flash video encoders can only recognize the video portion and not the audio portion.

The best way to encode a muxed MPEG file is to demux, or separate, the audio and video portions into two separate files without recompressing the data. You can use MPEG Streamclip, a free tool for demuxing MPEG files into video and audio files. Once you have an MPEG video file (usually a file with an .mpv extension) and an MPEG audio file (usually a file with an .mpa extension), you can use Sorenson Squeeze to encode the two files into an FLV file. Squeeze is one of the only Flash video encoders that can import a video file and link an audio file to the video.

The other alternative is to transcode the MPEG file to another format, such as a QuickTime MOV file or a Windows AVI file, with a lossless or near lossless codec. Then encode that video file to Flash video with your preferred encoding tool.

When I preview a source file in QuickTime Player, I can hear the audio track but the video track displays nothing except a white background color. What's wrong?

Typically, not being able to view the video portion of a source file indicates that your computer does not have the necessary video codec installed. You can find the video codec information in Apple QuickTime Player by opening the file and choosing Window > Show Movie Info (free QuickTime Player) or Window > Show Movie Properties (QuickTime Player Pro only).

Some QuickTime codecs are not freely available for download, nor are they included with the QuickTime Player installer. For example, the Apple HDV codec and the DVCPro HD codec for QuickTime are only available if you have purchased and installed Apple Final Cut Pro on a Mac OS X computer.

After I've uploaded my FLV and SWF files to my web server, the video does not load or play in the Flash SWF file when I'm testing the experience in a web browser. How can I fix this problem?

Confirm that you can access the FLV file directly in a web browser by typing the full URL to the file in the web browser. If the browser can locate and download the file, then you know that the URL is valid and should be accessible by the Flash SWF file.

If the browser can find the file but displays several lines of random text and numbers, your web server is not configured correctly to serve FLV files. To fix this problem, you need to add a MIME type header for the .flv file extension. If you do not administer your own web server, you may need to contact the technical support staff at your web hosting service to add the MIME type. For more information on this procedure, visit the Flash Video Hosting Providers section on my book's support page.

Tip: You can solve some problems with older FLV files by checking and correcting any errors with the metadata. The FLV MetaData Injector for Windows, available for free at www.buraks.com, can analyze and fix metadata. Adobe released FLVCheck, a free command-line utility for Windows that also can check FLV files for errors. FLVCheck Tool ships as part of Adobe Flash Media Development Server.

Where to go from here

For more Flash video troubleshooting tips, read my Flash video FAQ at Community MX. For more information about Flash video, visit the Video Technology Center.

You can also find troubleshooting help in the Flash Support Center and more answers to quesitons in the Flash Support Forums.

Note: Excerpted from Adobe Flash CS3 Professional Video Studio Techniques by Robert Reinhardt. Copyright © 2008. Used with permission of Pearson Education, Inc. and Adobe Press. For more information about this book, visit adobepress.com.

More Like This

  • Web video template: Media presentation with details
  • Using the Flash OSMF Media Player template
  • Flash glossary: F4V
  • Flash glossary: Flash detection
  • Flash glossary: Embedded video
  • Flash glossary: FLV
  • Flash glossary: FLVPlayback component
  • Flash glossary: SWFObject 2
  • Flash glossary: Streaming video
  • Presenting video with the Flash video component in Dreamweaver CS3

Flash User Forum

More
02/11/2012 Flash File moves on load in ie browser
02/10/2012 php form not sending any data
05/24/2010 Flash CS5 instance name problems
02/12/2012 What are the best settings when producing for CD-ROM

Flash Cookbooks

More
02/11/2012 How to create facebook fan page with flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive
12/12/2011 Date calculations using 'out-of-the-box' functions

Products

  • Creative Suite
  • Photoshop Family
  • Acrobat Family
  • Flash Platform
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Mobile apps

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • Adobe Store
  • For students and educators
  • For small and medium businesses
  • For enterprises
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Pacific - English
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).

Ad Choices

Reviewed by TRUSTe: site privacy statement