≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #327

Bug #327: Full-screen H.264 videos stutter during Floater fades (optimization required)

Kind bug
Product Synergy
When Created 2005-11-06T06:29:37Z, updated 2006-07-05T02:06:51Z
Status open
Reporter Tony Padgett
Tags no tags

Description

When I watch some higher quality music videos via iTunes and the floater is on, the video stops (audio continues) and stutters while the floater is showing the name,etc.

I have a G4 PowerMac 867 MHz with 1gig+ of SDRAM.

Comments

  1. Greg Hurrell 2005-11-06T17:24:20Z

    Thanks for the report, Tony. Have you tried taking a sample (using the Activity Monitor utility) to see what iTunes is doing during the laggy periods?

    I haven't actually used iTunes to watch music videos yet so I'll try to get a hold of some and do some testing. In the meantime, can anyone else confirm that they've seen this problem?

  2. Tony Padgett 2005-11-07T07:41:22Z

    I can't see the activity monitor since I am viewing the video at full screen. When I play a new song, the floater appears, and while it is displayed, video is very stuttery. Once the floater disappears (or if I have it turned off), the video plays normally.

    Please keep in mind that I have decode my videos in H.264 with a resolution of 640 x 480. My processor is running at 867MHz, so I think the video is just too large to process for the power of my machine maybe, unless I have everything else turned off.

  3. Tony Padgett 2005-11-07T07:52:44Z

    Let me make a minor adjustment to my last comment. The video is stuttery when the floater fades in and fades out only--not when it is still and full. Again, most likely the processing power of my Mac when using 640x480 video?

  4. Greg Hurrell 2005-11-09T02:34:17Z

    Ok, so it sounds like this is definitely a case of asking too much of the machine (video too large, quality too high, not enough processing power). There are two parts to this problem:

    (1) Apple needs to do more optimization of its QuickTime and Quartz layers (I suspect the problem is unlikely to be in iTunes itself and more likely to be in the underlying APIs that it uses).

    (2) I can try to optimize Synergy's drawing routines so that they require less CPU cycles, with particular emphasis on when fading (seeing as you note that the stuttering only occurs during fading).

    So one thing you can do is file a bug report with Apple encouraging them to work on the efficiency of their H.264 decoding on older machines:

    https://bugreport.apple.com/ (requires at least online ADC membership, which is free)

    http://www.apple.com/feedback/itunes.html

    The other thing we can do is try to optimize Synergy. From what you say it looks like the optimization will need to be done at the drawing level, but it might be possible to reduce the amount of Apple Event communication between Synergy and iTunes as well which could have a positive impact. I've reworded the summary to reflect what needs to be done.

  5. Tony Padgett 2005-11-09T07:11:09Z

    Wincent,

    The more I play around with the videos I ripped/encoded in H.264, the more I am convinced that a major issue is with QT. If I play the videos in QT directly, I still notice a sluggish video and the controls don't respond very quickly. I am thinking about upgrading my G4 processor to something faster, but I checked the videos out on a Windows machine that runs at 3 GHz using QT, and while the controls seem to work normally, the video does have some minor trouble playing (stutter), so upgrading my processor might not be the solution. In addition, this seems to be only in the beginning 15 seconds or so for both, but after it plays for a while, there are no problems (except the controls are still slow to respond on my Mac).

    That being said, I do notice that when Synergy's floater is turned off the problem becomes less (but does not go away entirely), so it does seem to be a (minor) problem, especially with the fade-in and fade-out.

    Are there reports that QT and Quartz layers (not really sure what the second part is) is due to Apple not optimizing them?

  6. Greg Hurrell 2006-07-05T02:06:51Z

    Changing assignment to reflect my new email address.

    https://wincent.dev/a/news/archives/2006/05/change_of_email.php

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets