• About
  • Blog News

  • Online Video
    • Trends
    • Showcase
    • Flash Video
    • HTML5 Video
    • Live Video
    • Media Servers
    • Streaming
    • Content Protection
  • Mobile
    • Trends
    • Adobe AIR
    • Showcase
    • Devices
    • Android
    • Apple
    • RIM
    • Digital Home
  • Interactive Web
    • Trends
    • Fun
    • Showcase
    • Gaming
    • 3D
    • HTML5
    • Flash/Flex
  • Advertisement
  • Articles
  • Events

Home » Online Video » Video Flash » Performance comparison of Flash fullscreen techniques

Performance comparison of Flash fullscreen techniques

Posted by: Jens Loeffler    Tags:  Video    Posted date:  September 24, 2009  |  No comment

With more and more HD content on the web, the performance requirements to play video increase. Dynamic streaming is an important way to circumvent those issues by automatically adjusting the video quality based on performance and bandwidth.

But it’s not just the performance impact of the video decoding (which is related to the video encoding settings) could slow down fullscreen playback – there are a couple of things you can do in the fullscreen mode to improve performance. This is specially important for HD playback, e.g. if you are planning to connect your computer to your 1080p television to play video, and you want perfectly smooth playback.

I wrote a blog post outlining some best practices, but here is a

demo to add a little more color:

This is a comparison of 3 common techniques. All of them use the fullScreenSourceRect to switch to fullscreen mode (Flash Player 9 feature).

1. Fullscreen mode with software scaled video and smoothing
In the this case the fullScreenSourceRect matches the screen resolution of the current screen, and the player scales the video with smoothing to fill the area. This is a common approach to keep the controls and UI crisp, but the slowest mode because the video scaling and the smoothing are done through the CPU. In most cases the performance is still acceptable, but it might not be ideal for high end use cases with a lot of scaling.

This mode was originally used for SD, but is less effective for HD. First the difference between the HD video size and the screen resolution might not be as significant anymore (therefore the controls won’t scale/blur too much), and also for “lean back” use cases where the display is e.g. a television, it might not be desired to have crip 1:1 pixel controls – since they are simply too small.

2. Fullscreen mode with software scaled video without smoothing
This approach uses the same technique as the first mode, but without the smoothing for the fullscreen video scaling. Although the quality will suffer (more pixelation during scaling), the performance will increase. Since it’s possible to measure the video performance during playback, you could adjust smoothing based on the current playback performance. If e.g. the framerate drops under 20 fps, you could seamlessly turn off smoothing in fullscreen.

This improves the performance, but is still not as fast as the last mode.

3. Fullscreen mode with hardware scaled and smoothed video
This is the fastest possible mode – the fullScreenSourceRect matches the video area (1:1 pixel mapping), and although the controls might appear slightly blurrier, the GPU will take care of the video scaling as well as smoothing. This is supported by Flash Player 9.

For SD content the mode has UI overlay scaling disadvantages, but for HD content the advantages to have smoother playback might outweigh the only slightly blurrier controls.

Conclusion
All modes perform relatively well for their use cases, but it’s important to know the differences and to prioritize according to the use case. Again, this is all for Flash Player 9 – you can find more details about the FP10 GPU mode here and here. The demo allows you to specify your own H.264 RTMP URL for performance tests. Enjoy!

Flash Fullscreen performance application.
Source code.

About the author
Jens Loeffler
Technology enthusiast and evangelist, with a passion for online video and mobile. Senior technical evangelist on Adobe's Media Solutions product management team focusing on online video and services. The views expressed on this blog are personal views.



Related Posts

How to Solve Your Video Fragmentation Challenge of 4k Distinct Android Devices
As I pointed out in my previous Guide to Mobile Video Delivery, Android fragmentation is a challenge for mobile delivery. OpenSignalMaps ran an interesting study that provides some mind-blowing numbers. Over the past...


Online Video and Close Captioning – It’s Getting Real
Solving the challenges of close captioning on the web is not optional anymore, but a requirement as part of the 21st Century Communications and Video Accessibility Act of 2010. Without getting into the specific government requirements...


Why Cord Cutting Is Great for Cable Subscribers
The digital video world is moving fast with connected devices and smart TVs. While a couple of years ago a Saturday night trip to a spacious Blockbuster rental store was part of the "movie night" tradition, it mostly got replaced...


Sign in
Livefyre logo
  • Comment help
  • Get Livefyre
Post comment as
twitter logo facebook logo
Sort: Newest | Oldest
  • Find Articles

  • Recent Posts

    • Primetime Simulcast, Adobe Media Server 5 (formerly FMS), and Adobe Access 4 Announced
      Jeremy Helfand, Vice President of Video Monetization at Adobe, announced Primetime...
    • How to Solve Your Video Fragmentation Challenge of 4k Distinct Android Devices
      As I pointed out in my previous Guide to Mobile Video Delivery, Android fragmentation...
    • Indie Game: The Movie - Must See Gaming Documentary
      In case you are remotely interested in independent gaming (or gaming in general),...
  • Popular Posts

    • The Ultimate Guide to Understanding Advanced Video Delivery with AIR for Mobile
      Adobe AIR provides a very attractive abstraction layer for video playback on mobile...
    • HLS vs. HDS - What Is the Difference and Why You Should Care
      Unless you work daily in the streaming business, it's sometimes hard to get into...
    • The 54th Grammy's Rock with Stage3D
      Literally. The new site "We are music" for the 54th Grammy's, airing on CBS on Sunday,...
  • News in Pictures

  • Social Media





 
  • Online Video

    • Primetime Simulcast, Adobe Media Server 5 (formerly...
      Jeremy Helfand, Vice President of Video Monetization at Adobe, announced Primetime...

    • 2012 AMGEN Tour of California Tour Tracker
      Although there have been many iterations of the Tour Tracker during the last years...

    • Online Video and Close Captioning - It's Getting Real
      Solving the challenges of close captioning on the web is not optional anymore, but a requirement...

    • Accenture Video-Over-Internet Consumer Survey 2012
      Accenture published a study called "Heart, Minds and Wallets - Winning the Battle...

  • Mobile

    • How to Solve Your Video Fragmentation Challenge of 4k Distinct...
      As I pointed out in my previous Guide to Mobile Video Delivery, Android fragmentation...

    • Machinarium Now Available for Android Tablets via Google...
      One of the best AIR games is available on Google Play now. Interestingly it's not featured...

    • Monster's Socks on the iPad with Adobe AIR
      A very cute Adobe AIR based book for iOS about a little monster trying to find its socks....

    • Walking Dead: Dead Reckoning with Adobe AIR
      If you are hooked on Walking Dead, AMC's blockbuster zombie TV series, you will enjoy...

  • Interactive Web

    • Indie Game: The Movie - Must See Gaming Documentary
      In case you are remotely interested in independent gaming (or gaming in general),...

    • The King of Fighter - Stunning Stage3D Game from China
      Some interesting Stage3D news from China. Adobe's Gary Zhu highlighted the Stage3D...

    • Silent Hunter Online Comes to the Web with Flash Player...
      Silent Hunter is one of the games I grew up with, and it is amazing to see it going...

    • Feel the Wrath with the "Wrath of the Titans" Augmented...
      Very interesting use of augmented reality for the movie "Wrath of the Titans". It combines...

  • Contact Us

    CAPTCHA Image
    Refresh Image

 
The views expressed on this blog are personal views and should not be taken to represent corporate strategy or official Adobe positions.
The content of the posts at this site should not be re-distributed by commercial media.
(c) 2012 Overdigital.com | Logo Design Stiehl/Over