Ubuntu & Adobe Flash Issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigbeark
    Badcaps Veteran
    • Jan 2010
    • 661
    • Canada

    #1

    Ubuntu & Adobe Flash Issues

    When i run Adobe Flash (YouTube default player) on a Windows XP machine, video playback, even with a 16MB video card, is smooth.

    When I play a YouTube video on my P3 Ubuntu Linux box with more ram, more Vram, and a faster CPU, the video is jerky. If I use the Movie Player Application to play YouTube videos, video quality is MUCH better, but I have to do that outside the browser and Movie Player will not play all sites.

    I tried changing Firefox preferences to use a different player, but YouTube insists on using Flash 10.

    Is there any way around this problem? I also note that dual CPU or Hyperthread 478s seem to play Flash video really badly, black banding everywhere.

    Any suggestions other than more power?
  • ratdude747
    Black Sheep
    • Nov 2008
    • 17136
    • USA

    #2
    Re: Ubuntu & Adobe Flash Issues

    google chrome. it is beta, but it doesn't have that issue in ubuntu.

    FYI, firefox is BLOATED. or at least since 3.0. hence why i recommend that all ubuntu users switch to opera or chrome.
    sigpic

    (Insert witty quote here)

    Comment

    • washu
      Badcaps Veteran
      • Jul 2009
      • 310

      #3
      Re: Ubuntu & Adobe Flash Issues

      Adobe Flash does not use proper video acceleration under any OS except Windows. It sucks but that's the way it is. The only solution other than using Windows is to throw hardware at it.

      Comment

      • mockingbird
        Badcaps Legend
        • Dec 2008
        • 5484
        • -

        #4
        Re: Ubuntu & Adobe Flash Issues

        You're pointing him in the wrong direction.

        First of all, you're right. Flash Player does not play videos (With the exception of a recent Beta) through overlay, it renders them itself which takes a relatively large cpu load.

        Now when you're playing them in Linux through your system's overlay, it's working fine. But when you're trying to render them with the systems raw power, it's slowing to a crawl. Why? Your video drivers ar enot installed correctly. Make sure MesaGL is working properly. Go to a console and type GLXGears and post the results.

        Comment

        • stj
          Great Sage 齊天大聖
          • Dec 2009
          • 30963
          • Albion

          #5
          Re: Ubuntu & Adobe Flash Issues

          dont use chrome - use iron instead.

          Comment

          • washu
            Badcaps Veteran
            • Jul 2009
            • 310

            #6
            Re: Ubuntu & Adobe Flash Issues

            mockingbird: bigbeark said that videos play fine outside flash, thus his video drivers are already working correctly. Messing with them won't fix the flash problem. It doesn't matter what kind of video acceleration his drivers support or not, flash wont use it and will always use lots of CPU to render.

            The newer beta versions of flash might help, but from what I've seen they won't do much, especially on such an old machine.

            Comment

            • mockingbird
              Badcaps Legend
              • Dec 2008
              • 5484
              • -

              #7
              Re: Ubuntu & Adobe Flash Issues

              It doesn't matter what kind of video acceleration his drivers support or not, flash wont use it and will always use lots of CPU to render
              Wrong. The fact that it is playing through the overlay shows that the drivers are functioning correctly in that respect but are not when he relies on the video card's OpenGL.

              If it were the case that his hardware isn't up to par, it wouldn't work smoothly in Windows.

              Comment

              • ratdude747
                Black Sheep
                • Nov 2008
                • 17136
                • USA

                #8
                Re: Ubuntu & Adobe Flash Issues

                Originally posted by stj
                dont use chrome - use iron instead.
                i disasgree

                iron= no .deb= PITA to use.

                and why should the privacy stuff they claim matter? what would a timestamp even do for them? maybe to estimate the # of users?

                also, i like it saving my past searches... makes re-searching easier.

                to me, iron seemed good on paper but sucky when used. the lack of a .deb was the icing on the cake.

                unless you are a tarball whore, i do not recommend iron at this time.

                FYI, i posted this from chrome.
                sigpic

                (Insert witty quote here)

                Comment

                • bigbeark
                  Badcaps Veteran
                  • Jan 2010
                  • 661
                  • Canada

                  #9
                  Re: Ubuntu & Adobe Flash Issues

                  Thanks for the input. I did see somewhere on the Adobe Site that the system requirements for the Linux player are much more demanding than for the Windows player. I believe they called for a minimum 2Ghz CPU and 128MB video ram.

                  The Totem movie player must use the same video Drivers as does Flash. If i could direct the YouTube application to use the Totem Movie Player instead of Adobe Flash there would be no problem. Another brutal site is the WarnerBros.com movie trailers - awful because they use Flash.

                  But I can and do watch movies on Icefilms with no video issues, using my dual CPU Asus CUR-DLS machine (2 times 866Mhz CPUS, 2GB SDRAM). I just recapped this board and anything I recap I use, at least for a while.

                  I could always capture the YouTube video and play the captured version, just seems like a hassle.

                  Comment

                  • washu
                    Badcaps Veteran
                    • Jul 2009
                    • 310

                    #10
                    Re: Ubuntu & Adobe Flash Issues

                    Originally posted by mockingbird
                    Wrong. The fact that it is playing through the overlay shows that the drivers are functioning correctly in that respect but are not when he relies on the video card's OpenGL.

                    If it were the case that his hardware isn't up to par, it wouldn't work smoothly in Windows.
                    OpenGL doesn't have anything to do with this. You think his 16MB video card has fast enough OpenGL support to meaningfully accelerate video using it? Which would be a stupid way of decoding video even if it was. Flash works fine in Windows with Microsoft's own drivers with NO OPENGL SUPPORT!

                    Flash doesn't use OpenGL for video playback on any OS. There is more to video acceleration than just 3D and overlays. Flash is not using the video card's overlays or iDCT or OpenGL or anything on Linux. It's just dumping pixels into a pixmap and nothing more.

                    Other video players (IE, anything but flash) on Linux do use overlays and other video acceleration techniques that the drivers provide. That's why his videos play outside of Flash.

                    On Windows and Windows only Flash uses overlays and other video acceleration techniques. On Linux it does not. Don't like it complain to Adobe.
                    Last edited by washu; 03-19-2010, 08:44 PM.

                    Comment

                    • washu
                      Badcaps Veteran
                      • Jul 2009
                      • 310

                      #11
                      Re: Ubuntu & Adobe Flash Issues

                      Originally posted by bigbeark

                      The Totem movie player must use the same video Drivers as does Flash. If i could direct the YouTube application to use the Totem Movie Player instead of Adobe Flash there would be no problem. Another brutal site is the WarnerBros.com movie trailers - awful because they use Flash.
                      Totem uses the video acceleration features of your video card and drivers. Flash does not. Simple as that. If your drivers were not working properly then both Totem and Flash would fail.

                      Comment

                      • washu
                        Badcaps Veteran
                        • Jul 2009
                        • 310

                        #12
                        Re: Ubuntu & Adobe Flash Issues

                        Originally posted by bigbeark
                        But I can and do watch movies on Icefilms with no video issues, using my dual CPU Asus CUR-DLS machine (2 times 866Mhz CPUS, 2GB SDRAM). I just recapped this board and anything I recap I use, at least for a while.
                        I haven't used Icefilms myself, but it says right on their page that they use DIVX. That certainly is not being decoded by flash. Some other player like Totem is decoding that.

                        Comment

                        • stj
                          Great Sage 齊天大聖
                          • Dec 2009
                          • 30963
                          • Albion

                          #13
                          Re: Ubuntu & Adobe Flash Issues

                          utube uses flv, you can play it with Mplayer.

                          Comment

                          • mockingbird
                            Badcaps Legend
                            • Dec 2008
                            • 5484
                            • -

                            #14
                            Re: Ubuntu & Adobe Flash Issues

                            OpenGL doesn't have anything to do with this. You think his 16MB video card has fast enough OpenGL support to meaningfully accelerate video using it? Which would be a stupid way of decoding video even if it was. Flash works fine in Windows with Microsoft's own drivers with NO OPENGL SUPPORT!
                            Yes! I think a 16mb videocard can do it. And you're wrong thinking that MesaGL has nothing to do with video rendering on X. Just like Microsoft uses Direct3D to render video, Linux uses MesaGL to render video on X. And the reason why it works in Windows with non-OpenGL Microsoft drivers, is because Microsofts own WDM drivers DO HAVE some form of Direct3D support.

                            Flash doesn't use OpenGL for video playback on any OS. There is more to video acceleration than just 3D and overlays. Flash is not using the video card's overlays or iDCT or OpenGL or anything on Linux. It's just dumping pixels into a pixmap and nothing more.
                            From what I understand, an overlay is a special interface created by the system through the PCI bus to improve the speed with which video data is transmitted. The old video cards had a special place where you could attach a cable and the most notable case where this was used that I can remember was the old ISA TV Wonder.

                            So in essence, even an overlay is just "dumping pixels into a pixmap" albeit at a much faster speed. Of course don't quote me on any of this.

                            Comment

                            • washu
                              Badcaps Veteran
                              • Jul 2009
                              • 310

                              #15
                              Re: Ubuntu & Adobe Flash Issues

                              Originally posted by mockingbird
                              Yes! I think a 16mb videocard can do it. And you're wrong thinking that MesaGL has nothing to do with video rendering on X. Just like Microsoft uses Direct3D to render video, Linux uses MesaGL to render video on X. And the reason why it works in Windows with non-OpenGL Microsoft drivers, is because Microsofts own WDM drivers DO HAVE some form of Direct3D support.
                              You are again wrong. Direct3D is not used on Windows to render video* and MesaGL is not used on Linux. Why would it be used? Overlay has existed and used on Windows and Linux before Direct3D even existed. An S3 Trio or Mach64 with NO 3D SUPPORT AT ALL can render flash video on Windows and not Linux.

                              Second, a 16 MB card would not have any kind of pixel shaders or any type of programmable processing. It could not render video itself. The only thing such an old card can do for video is overlay and maybe iDCT for MPEG1/2. Flash on Linux uses neither.

                              * Yes, a Direct3D surface is used when doing Flip3D in Aero on Vista or 7. Since even 98/NT4 can render Flash video this is not used in the general case.

                              From what I understand, an overlay is a special interface created by the system through the PCI bus to improve the speed with which video data is transmitted. The old video cards had a special place where you could attach a cable and the most notable case where this was used that I can remember was the old ISA TV Wonder.

                              So in essence, even an overlay is just "dumping pixels into a pixmap" albeit at a much faster speed. Of course don't quote me on any of this.
                              An overlay is an access to video memory which bypasses the rendering system and most CPU processing. Basicaly the video app can write it's data directly into video memory. The cable was used to dump data into the video card's memory without even using the bus. Any video rendering bigger than a postage stamp needs overlay so that the CPU does not have to copy each pixel one at a time. Flash on Linux doesn't use it so the CPU has to do much more work.

                              When Flash on Linux is "dumping pixels into a pixmap" it is writing into SYSTEM memory (not video memory ) which then the X system has to process and copy to video memory itself. This is very CPU intensive for something that updates so frequently like video.

                              Comment

                              • mockingbird
                                Badcaps Legend
                                • Dec 2008
                                • 5484
                                • -

                                #16
                                Re: Ubuntu & Adobe Flash Issues

                                True a Mach64 or a Trio3D or a Trident had no Direct3D support, and I agree the fastest video card with only 16mb would have to be a voodoo3, but isn't there some sort of acceleration with DirectDraw?

                                The question still remains, what would be causing the video to slow down only in Linux but not in Windows? And I don't buy it that Flash Player works better on Windows. YouTube videos actually play better on Debian on my laptop with X3100 Graphics.

                                Comment

                                • washu
                                  Badcaps Veteran
                                  • Jul 2009
                                  • 310

                                  #17
                                  Re: Ubuntu & Adobe Flash Issues

                                  Originally posted by mockingbird
                                  True a Mach64 or a Trio3D or a Trident had no Direct3D support, and I agree the fastest video card with only 16mb would have to be a voodoo3, but isn't there some sort of acceleration with DirectDraw?
                                  DirectDraw can be used for video, but it is still using overlay in the background as the main acceleration feature. iDCT and maybe motion compensation can be thrown in there for some help too. For full bore video decode acceleration on Windows you need DXVA (DirectX Video Acceleration). That is only on very recent cards. Nothing even approaching a voodoo3.

                                  However, three important points:

                                  Overlay has existed and worked before DirectX existed. Windows 3.1 could play videos with overlay.
                                  DirectDraw IS NOT Direct3D. They are both part of DirectX but not the same.
                                  OpenGL and thus MesaGL does not provide anything equivalent to DirectDraw. MesaGL would be pretty useless for video decoding. Other stuff on Linux can provide the equivalent of DirectDraw, but not Open/MesaGL. Flash still does not use any of them.

                                  The question still remains, what would be causing the video to slow down only in Linux but not in Windows? And I don't buy it that Flash Player works better on Windows. YouTube videos actually play better on Debian on my laptop with X3100 Graphics.
                                  You can not believe it all you want, Flash works better on Windows than anything else and that's a fact. Adobe fully admits this. Complain to Adobe if you don't like it but denying the truth won't help any. If Flash actually does work better on your Linux install then either you are not playing the exact same video (h264 on Windows, h263 on Linux) or your Windows install is seriously screwed up.

                                  Ars Technica did a benchmark of Flash on the three major platforms. They used a quad core Mac Pro so no problem with CPU grunt.

                                  OSX: 28 FPS
                                  Linux: 22 FPS
                                  Windows: 46 FPS

                                  The windows install also needed significantly less CPU time to do the same job faster in Flash.
                                  Last edited by washu; 03-21-2010, 08:52 AM.

                                  Comment

                                  • bigbeark
                                    Badcaps Veteran
                                    • Jan 2010
                                    • 661
                                    • Canada

                                    #18
                                    Re: Ubuntu & Adobe Flash Issues

                                    Washu, thanks for your explanation of the problem. Thanks to everyone who contributed.
                                    So the answer is, surprisingly, if you want to use Linux for flash, use a later model computer. Or use XP if you can find the drivers for your old machine. Maybe Windows 2000 is better.
                                    Is anyone still using Win2000?

                                    Strangely enough, I think earlier versions of Flash worked better on old machines. I have a computer that I loaded with Mandriva 2008 and it plays Youtube without jerkiness, but at a lower resolution, which perhaps reduces the need for video acceleration.

                                    Comment

                                    • washu
                                      Badcaps Veteran
                                      • Jul 2009
                                      • 310

                                      #19
                                      Re: Ubuntu & Adobe Flash Issues

                                      Originally posted by bigbeark
                                      Washu, thanks for your explanation of the problem. Thanks to everyone who contributed.
                                      So the answer is, surprisingly, if you want to use Linux for flash, use a later model computer. Or use XP if you can find the drivers for your old machine. Maybe Windows 2000 is better.
                                      Is anyone still using Win2000?
                                      If you are specifically using Flash to play high definition video and you have a modern card then you want to use Vista or 7. Vista and 7 support DXVA version 2 which Flash can use.

                                      Otherwise it doesn't matter much which version of Windows you use. XP and 2000 use the same drivers so either should be the same.

                                      Strangely enough, I think earlier versions of Flash worked better on old machines. I have a computer that I loaded with Mandriva 2008 and it plays Youtube without jerkiness, but at a lower resolution, which perhaps reduces the need for video acceleration.
                                      As much as older versions of Flash may work better it is a very bad idea. Flash is riddled with security bugs so keeping up with the latest versions is important if you don't want to get infected.

                                      Comment

                                      • mockingbird
                                        Badcaps Legend
                                        • Dec 2008
                                        • 5484
                                        • -

                                        #20
                                        Re: Ubuntu & Adobe Flash Issues

                                        washu:

                                        If you install the hacked DX 10 for Windows XP, can you get DXVA 2 on XP?

                                        Comment

                                        Related Topics

                                        Collapse

                                        • ekozeko333
                                          [Help] Lenovo Yoga Slim 7-14ARE05 (DA0LS3MBAF0) – 25Q80DVN1G Flash Is All FF, USB-C PD Stuck at 5V
                                          by ekozeko333
                                          Hi all,
                                          I’m trying to recover a Lenovo Yoga Slim 7-14ARE05 with board DA0LS3MBAF0 Rev:F. I’ve run into an unusual issue where USB-C PD is stuck at 4.7–5V and the system won’t boot (keyboard lights flash briefly, then nothing).
                                          🔥 The Problem Started After Suspected ESD/PD Fault
                                          I experienced a power issue or ESD event through a USB-C charger
                                          After that, the NX20P5090 power switch was visibly burned and was replaced
                                          Now the PD controller always negotiates 5V @ 2A, even with known-good chargers
                                          🧠 What I’ve Done So Far
                                          Flashed...
                                          06-21-2025, 02:48 AM
                                        • corrize
                                          Nikon D800 camera - flash don’t work and capacitor don’t charge
                                          by corrize
                                          Hello, I'm stuck in troubleshooting…
                                          The flash system works like that : when the (mechanic) flash button is pressed, the flash mecanically pop up, and a circuit buck boost elevate 7v (batt) to 200-300v (?) for charging the big capacitor. And when the photo shoot button is pressed, the capacitor is discharged in the xeon light.

                                          In the D800, there is a first « power board » close to the battery. 2 wires (batt 7v) goes to another little « flash board ». I measured 7v, so ok.
                                          When I press the flash button, it's detected by the system, flash icon appear on LDC display....
                                          10-01-2022, 10:02 AM
                                        • tsavpyn
                                          Requests to Intel Flash Programming Tool for Linux Ubuntu x86_64
                                          by tsavpyn
                                          Dear all,
                                          I forgot my BIOS password of my Surface Pro 3, I searched for solutions for a long time and knew that by using FPT to dump my bios to bin file and using decryptor, I can get my BIOS password.
                                          Now I have a problem that I am unable to dump my BIOS into bin file.

                                          My Surface Pro 3 currently runs on Ubuntu 22.04, with Secure Boot enabled and Boot From SSD Only.

                                          I searched for FPT but there is no Linux version and none of them work.
                                          I hereby request a copy of Intel Flash Programming Tool for Linux x64.
                                          I would really appreciate it if anyone...
                                          05-28-2024, 11:18 PM
                                        • i19
                                          Asus UX3402 / Q409Z - No sound, no TPM, Boot issues: Bios flash?
                                          by i19
                                          Hi
                                          I got an Asus UX3402 / Q409Z and after a BSOD I lost sound, tpm 2.0, and if it turns off it can take HOURS before I can boot again.

                                          Reading here and on reddit I figured its a BIOS issue, and that reflashing it may fix the problem.

                                          I want to use an CH341A (new model with 3.3v) to flash it.

                                          My problem is that I'm not sure if the SOIC8/SOP8 clips will attach to the chip and hold properly? (haven't opened my laptop yet, I'm basing this assumption on a picture from the same thread I attached).

                                          Any tips on how to connect to it? Maybe something...
                                          08-20-2024, 06:50 AM
                                        • SuperAman
                                          Corolla FM CD Cassette Player issues
                                          by SuperAman
                                          Hi guys got a Corolla factory cd cassette player that was giving a lot of issues. It's from 06 Corolla, my friend the same unit in his corolla and he has the same issues.

                                          1. Stereo restarts by itself (thought loose connection but does this on bumpy and non bumpy surfaces) ''ST'' letters would blink on off on the radio when this would happen.
                                          2. Audio cuts in and out randomly for a second or a few minutes at a time.
                                          3. Shows MTL ERROR (randomly or after turning it on) assuming to do with tape deck which actually plays.
                                          4. Shows ERROR 3 (randomly or after turning...
                                          07-18-2022, 01:18 PM
                                        • Loading...
                                        • No more items.
                                        Working...