Professional Web Applications Themes

h.264/mp4 videos enormous CPU usage - Macromedia Flash Player

I can watch my TV-quality h.264/mp4 640x480px / 25fps videos in fullscreen (encoded in MPEG Streamclip, multipass, b-frames, deinterlaced) on my seven years old G4 Digital Audio, 466 Mhz without any dropped frames. As long as I use QuickTime, I can do that. On the other hand the same video plays less smooth on my G5 Dual 2.7 Ghz if I watch it in the flashplayer (newest update...). I just wonder, if Adobe realizes that they really should work on the high CPU usage of their flashplayer while playing back h.264 videos. Or is this the price for the smal ...

Sponsored Links
  1. #1

    Default h.264/mp4 videos enormous CPU usage

    I can watch my TV-quality h.264/mp4 640x480px / 25fps videos in fullscreen
    (encoded in MPEG Streamclip, multipass, b-frames, deinterlaced)
    on my seven years old G4 Digital Audio, 466 Mhz without any dropped frames.

    As long as I use QuickTime, I can do that.
    On the other hand the same video plays less smooth on my G5 Dual 2.7 Ghz
    if I watch it in the flashplayer (newest update...).

    I just wonder, if Adobe realizes that they really should work on
    the high CPU usage of their flashplayer while playing back h.264 videos.
    Or is this the price for the smal flashplayer size and can't be changed?

    After doing several tests, I am afraid TV-quality h.264/mp4 vidoes do stutter
    for about 50%
    of the current online viewers.

    Does anybody know, if the developers at Adobe are working on that?

    Thank you for any replay

    Sponsored Links
    head9 Guest

  2. #2

    Default Re: h.264/mp4 videos enormous CPU usage

    I think part of the problem here is that flash allows to compose additional
    graphical elements onto the video. So it has to do colorspace transformations
    and scaling in software.

    Recently I ran OProfile while watching a flash video (not H.264) and found
    that it spends a significant amount of time in a routine that does BGR32 to
    RGBA32 conversion. For fun I tried to write a faster version and ended up with
    a MMX version that is 40% faster and a MMXext version that is 67% faster. For
    reference, plain memcpy is 44% faster. (all values for memory blocks >> L2
    cache, MMXext can faster than memcpy because of prefetchnta/movntq).

    Nobody at Adobe reads this forum.


    wj89zgh Guest

  3. #3

    Default Re: h.264/mp4 videos enormous CPU usage

    wj89zgh

    Thank you for your replay.

    I don't know programming, so I can't really understand
    what you have done to improve the video playback performance.

    Have you made your changes in the software Flash or in the Flash Player?

    To show my podcast videos on my website, I would not need
    any grafiphics on them...
    To have a Flash-Export playing videos without the routine you mentioned would
    be really great.



    head9 Guest

  4. #4

    Default Re: h.264/mp4 videos enormous CPU usage

    [q]Originally posted by: head9
    Have you made your changes in the software Flash or in the Flash Player?
    [/q]
    No, I benchmarked the routine in a separate application.

    wj89zgh Guest

  5. #5

    Default Re: h.264/mp4 videos enormous CPU usage

    So how did you manage to get a version which is 67% faster.
    What do you exactly mean with MMX and MMXext?




    head9 Guest

  6. #6

    Default Re: h.264/mp4 videos enormous CPU usage

    I didn't mean Flash Player was 67% faster.
    The BGR32 to RGBA32 conversion became 67% faster.
    wj89zgh Guest

  7. #7

    Default Re: h.264/mp4 videos enormous CPU usage

    [Q]For fun I tried to write a faster version and ended up with a MMX version
    that is 40% faster and a MMXext version that is 67% faster[/Q]
    Of what did you write a faster version?
    What do you exactly mean with MMX and MMXext?

    (still hoping of getting somehow Flash Player to play my videos without
    stuttering on non top of the line PCs/Macs...).




    head9 Guest

  8. #8

    Default Re: h.264/mp4 videos enormous CPU usage

    Ignore everything I said
    It won't help you
    wj89zgh Guest

  9. #9

    Default Re: h.264/mp4 videos enormous CPU usage

    OK - bye bye
    head9 Guest

Similar Threads

  1. Enormous print file sizes
    By andrew_Knowland@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 29th, 02:09 PM
  2. VERY long videos - memory usage / stability?
    By in forum Macromedia Flash
    Replies: 5
    Last Post: August 19th, 11:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139