How to patch the latest flashplayer? (patch for vdpau) FIXED

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
divisionmd
Posts: 606
Joined: Sat 14 Jul 2007, 20:42

How to patch the latest flashplayer? (patch for vdpau) FIXED

#1 Post by divisionmd »

Hello,

- There is a known bug with the latest Flashplayer (vdpau) - blue bug - quite funny look at the attached image.

- However there is a fix - some sort of patch:
"Implement two workarounds:

1) Swap U and V planes to VdpVideoSurfacePutBitsYCbCr to fix blue-tinged
videos.

2) Disable VdpPresentationQueueSetBackgroundColor, so that Flash doesn't
set the background to pure black or pure white, which would cause the
VDPAU image to bleed through to other parts of the desktop with those
very common colors."
- URL with information on this: http://lists.freedesktop.org/archives/v ... 00022.html
http://www.ubuntuvibes.com/2012/06/fix- ... o-bug.html

- Ubuntu has it easy they only need to type:


sudo add-apt-repository ppa:tikhonov/misc
sudo apt-get update
sudo apt-get install libvdpau1

- However how can this patch be applied to Puppy Linux (Fatdog 64 bit) ?



- Another workaround people mention is to disable hardware accleration - but that is not a fix - because need hardware acceleration so movies play nicely.

- Many thanks for help - and would gladly pay for help on this.


Best regards,
Johan
Attachments
Flash Blue Tint Bug Solved.jpg
(37.24 KiB) Downloaded 849 times
Last edited by divisionmd on Tue 21 Aug 2012, 10:37, edited 3 times in total.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

No idea, but

http://packages.ubuntu.com/search?searc ... =libvdpau1

shows some

nvidia libvdpau .

What for a Grahpics Chip/Card are you using ?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#3 Post by Semme »

Karl's probably right. If you read the replies on Ask Ubuntu, should be one of the two under LTS..

If not those, maybe here? Then again- I suppose you could just as well downgrade.. 10.3.183.19.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post by disciple »

How to patch the latest flashplayer?
Of course, it is a patch for vdpau, not for flashplayer.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
divisionmd
Posts: 606
Joined: Sat 14 Jul 2007, 20:42

#5 Post by divisionmd »

Hello All,

Disciple: Thanks, Can you do this patch to Fatdog64 Puppy?
Of course, it is a patch for vdpau



Karl: Thanks, i am using a Nvidia NVS 420 card - can you get me that file? would like to learn how you did it afterwards if you got time for this of course.. .


Many thanks for help,

Best regards,
JOhan[/quote]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post by Karl Godt »

John, first thing i would try is to "steal" the /usr/sbin/xorgwizard from Lighthouse Puppy to get the proper Xorg driver loaded correctly.

With compiling extra graphic drivers for nvidia as i should now, i had not have the time. Running Xorg-seerver-1.3.0 with the vesa driver .

The nvdia source should compile these nvidia-libvdpau.so* i guess. Don't know which one of the many Nvidia drivers would be best for your Graphics Card.

Shinobar had compiled a couple of nvidia drivers recently.

I am running Macpups based on Puppy 4.3 mainly with 32bit kernels-2.6.30 with and without PAE on my 64bit machine.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#7 Post by disciple »

divisionmd wrote:Hello All,

Disciple: Thanks, Can you do this patch to Fatdog64 Puppy?
Sure you could - grab the source from
http://cgit.freedesktop.org/~aplattner/libvdpau.
I can't - I don't have a 64bit machine.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#8 Post by pemasu »

Jamesbond might be interested. Send the link of this thread to 007 ie Fatdog thread. Jamesbond has created nvidia proprietary driver pet which has 64 bit libvdpau included. He might be interested to patch libvdpau since he has created that nvidia pet manually copying the needed files and.... patching the relevant files into the pet could be something he is interested.

User avatar
divisionmd
Posts: 606
Joined: Sat 14 Jul 2007, 20:42

#9 Post by divisionmd »

Pemasu: Mailing Jamesbond directly - i think this is a most welcomed patch - since the latest player has a lot of speed advantages.


Disciple: Tested to download that: http://cgit.freedesktop.org/~aplattner/libvdpau = got no errors when i compilied it (autogen.sh / configure / make / make install). But still the movies are blue... .


Karld Godt: Ok but have you tested that patch? since everyone on Linux testing the new flashplayer will get this strange blu smurf bug.


Best regards,
Johan

User avatar
divisionmd
Posts: 606
Joined: Sat 14 Jul 2007, 20:42

Got a fix from Jamesbond (fixed)

#10 Post by divisionmd »

Hello All,

- To use the latest flashplayer with "stage video" on Fatdog 64bit you need a patch to fix the "smurf" bug.. .

- Attaching the patch. (only for Fatdog)

- And many thanks to JamesBond!

Best regards,
Johan
Attachments
libvdpau-patched.pet
(19.29 KiB) Downloaded 246 times

wsamh
Posts: 79
Joined: Fri 16 Apr 2010, 20:29
Contact:

#11 Post by wsamh »

Is there anyway to patch it for Slacko?

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#12 Post by 666philb »

here's a patch that patches libflashplayer.so......

Code: Select all

cd /usr/lib/mozilla/plugins
perl -pi.bak -e 's/libvdpau/lixvdpau/g' libflashplayer.so
then restart the browser.

not sure if the devx needs to be installed or not
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#13 Post by amigo »

Prevent Flash Player from finding libvdpau

(Via Daniel Mario Vega on Launchpad)

Run the following commands (given you have adobe-flashplugin package installed):

cd /usr/lib/adobe-flashplugin/
sudo perl -pi.bak -e 's/libvdpau/lixvdpau/g' libflashplayer.so

The change takes effect after restarting the browser.

This will modify Flash Player's binary to search for non-existent "lixvdpau" library instead of "libvdpau". Therefore it won't attempt to use VDPAU presentation at all.

The command creates libflashplayer.so.bak backup of the binary in case you run into any problems.

You need to run this command every time there's a Flash Player update since your change will be overwritten.

With this workaround you can keep HW acceleration on, have libvdpau1 installed and it's very easy to apply compared to patching libvdpau
If you don't have perl installed, the exact same syntax using 'sed', instead of perl, will do the same thing.

Post Reply