Re: [compiz] video plugin update

2008-01-10 Thread Michael Vogt
On Mon, Dec 03, 2007 at 05:30:02PM -0500, David Reveman wrote:
 On Tue, 2007-09-04 at 15:16 +0200, Dominik 'Rathann' Mierzejewski wrote:
  Hello,
  
  On Friday, 13 July 2007 at 14:11, Colin Guthrie wrote:
   David Reveman wrote:
I had to update the video plugin interface slightly to fix some bugs.
I've attached an updated mplayer patch.
   
   David,
   
   Is this patch ever going to make it upstream to mplayer do you think?
   
   Has it been submitted/reviewed by upstream devs?
  
  Any progress here? Users keep coming and asking why they can't use MPlayer
  with compiz. We do not have the resources to implement this (not to mention
  that none of the core developers use compiz). The current patch is
  unacceptable for inclusion in MPlayer (due to unnecessary code
  duplication). See this document for MPlayer patch submission guidelines:
  http://www.mplayerhq.hu/DOCS/tech/patches.txt
 
 There's going to be a new more appropriate video interface soon, for
 which support is more likely to be included upstream.

That sounds very interessting. Is there more information available how
it will look like (maybe even code to look at)?

Thanks,
 Michael
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-12-03 Thread David Reveman

On Tue, 2007-09-04 at 15:16 +0200, Dominik 'Rathann' Mierzejewski wrote:
 Hello,
 
 On Friday, 13 July 2007 at 14:11, Colin Guthrie wrote:
  David Reveman wrote:
   I had to update the video plugin interface slightly to fix some bugs.
   I've attached an updated mplayer patch.
  
  David,
  
  Is this patch ever going to make it upstream to mplayer do you think?
  
  Has it been submitted/reviewed by upstream devs?
 
 Any progress here? Users keep coming and asking why they can't use MPlayer
 with compiz. We do not have the resources to implement this (not to mention
 that none of the core developers use compiz). The current patch is
 unacceptable for inclusion in MPlayer (due to unnecessary code
 duplication). See this document for MPlayer patch submission guidelines:
 http://www.mplayerhq.hu/DOCS/tech/patches.txt

There's going to be a new more appropriate video interface soon, for
which support is more likely to be included upstream.

-David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-10-29 Thread David
This is in reference to the earlier message.

http://lists.freedesktop.org/archives/compiz/2007-July/002494.html

I don't think I replied to it correctly. Sorry.

David wrote:
 I modified the patch slightly for RC2 of Mplayer
 




signature.asc
Description: OpenPGP digital signature
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-10-29 Thread David
612 @@ -836,6 +1377,9 @@
613  fo = XvListImageFormats(mDisplay, xv_port, (int *) formats);
614
615  mp_input_add_event_fd(ConnectionNumber(mDisplay), check_events);
616 +
617 +   vo_compiz_init ();
618 +
619  return 0;
620  }

All I did was add the mp_input_add_event_fd(ConnectionNumber(mDisplay), 
check_events); part which
was in version RC2 of mplayer. (all other hunks applied cleanly.)

Colin Guthrie wrote:
 David wrote:
 This is in reference to the earlier message.

 http://lists.freedesktop.org/archives/compiz/2007-July/002494.html

 I don't think I replied to it correctly. Sorry.

 David wrote:
 I modified the patch slightly for RC2 of Mplayer

 
 Did you modify it in any other way, or did you just make it
 apply/compile nicely?
 
 Or to put it another way, did you do anything different from:
 http://lists.freedesktop.org/archives/compiz/2007-October/002716.html
 ?
 
 Cheers
 
 Col.
 
 ___
 compiz mailing list
 compiz@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/compiz




signature.asc
Description: OpenPGP digital signature
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Video plugin and patched MPlayer

2007-10-14 Thread Travis Watkins
On 10/13/07, jayan cabatuan [EMAIL PROTECTED] wrote:
 Hey guys,
 I managed to patch mplayer and Xgl to use the video plugin. The video
 plays but the window is just white. I can see the silhouette of the
 people in the video when I make it transparent.
 Do you guys have any idea? Am I missing a step? Can anyone shed any
 light on my situation? Thanks.
 Here is the output:

 [EMAIL PROTECTED] ~]$ /opt/bin/mplayer -v
 Videos/Jordan/Michael.Jordan.-.Ultimate.Jordan.avi | grep compiz
 mplayer: could not connect to socket
 mplayer: No such file or directory
 Failed to open LIRC support. You will not be able to use your remote control.
 Xlib:  extension XFree86-VidModeExtension missing on display :1.0.
 [xv] Detected wm supports compiz video.
 [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource 
 busy
 [xv] using compiz composited yv12 output
 [xv] Detected wm supports compiz video.1 1208/1208  8%  1%  0.8% 0 0 49%
 [xv] using compiz composited yv12 output



Disable yv12 colorspace support in the video plugin.

-- 
Travis Watkins
http://www.realistanew.com
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Video plugin and patched MPlayer

2007-10-14 Thread jayan cabatuan
Thanks! I didn't know it was that simple. duhh

On 10/14/07, Travis Watkins [EMAIL PROTECTED] wrote:
 On 10/13/07, jayan cabatuan [EMAIL PROTECTED] wrote:
  Hey guys,
  I managed to patch mplayer and Xgl to use the video plugin. The video
  plays but the window is just white. I can see the silhouette of the
  people in the video when I make it transparent.
  Do you guys have any idea? Am I missing a step? Can anyone shed any
  light on my situation? Thanks.
  Here is the output:
 
  [EMAIL PROTECTED] ~]$ /opt/bin/mplayer -v
  Videos/Jordan/Michael.Jordan.-.Ultimate.Jordan.avi | grep compiz
  mplayer: could not connect to socket
  mplayer: No such file or directory
  Failed to open LIRC support. You will not be able to use your remote 
  control.
  Xlib:  extension XFree86-VidModeExtension missing on display :1.0.
  [xv] Detected wm supports compiz video.
  [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource 
  busy
  [xv] using compiz composited yv12 output
  [xv] Detected wm supports compiz video.1 1208/1208  8%  1%  0.8% 0 0 49%
  [xv] using compiz composited yv12 output
 
 

 Disable yv12 colorspace support in the video plugin.

 --
 Travis Watkins
 http://www.realistanew.com

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Video plugin and patched MPlayer

2007-10-13 Thread Colin Guthrie
Michał Sawicz wrote:
 Hi,
 
 I'm using compiz-fusion 0.5.4 on openSUSE 10.3 with Xgl and intel 855GM video 
 card.
 
 I've patched and compiled (or so I thought) MPlayer1.0rc2, but I can't see no 
 difference... How can I confirm that it's compiled correctly and how can I 
 check that it actually does work?
 


I've not seen anyone post an updated compiz patch since mplayer 1.0rc2.

I found one on this thread
http://ubuntuforums.org/showthread.php?t=571556 but the patch was not in
unified format nor did it contain the filename.

I've adapted it to be in unifed format and it is here if anyone wants
it:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/mplayer/current/SOURCES/mplayer-1.0rc2-compiz.patch?revision=HEADview=markup

I've not looked at what's changed since the last patch but from what I
read on the forum about it was just a small change.

HTH

Col

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Video plugin and patched MPlayer

2007-10-13 Thread jayan cabatuan
Hey guys,
I managed to patch mplayer and Xgl to use the video plugin. The video
plays but the window is just white. I can see the silhouette of the
people in the video when I make it transparent.
Do you guys have any idea? Am I missing a step? Can anyone shed any
light on my situation? Thanks.
Here is the output:

[EMAIL PROTECTED] ~]$ /opt/bin/mplayer -v
Videos/Jordan/Michael.Jordan.-.Ultimate.Jordan.avi | grep compiz
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Xlib:  extension XFree86-VidModeExtension missing on display :1.0.
[xv] Detected wm supports compiz video.
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[xv] using compiz composited yv12 output
[xv] Detected wm supports compiz video.1 1208/1208  8%  1%  0.8% 0 0 49%
[xv] using compiz composited yv12 output


On 10/13/07, Colin Guthrie [EMAIL PROTECTED] wrote:
 Michał Sawicz wrote:
  Hi,
 
  I'm using compiz-fusion 0.5.4 on openSUSE 10.3 with Xgl and intel 855GM 
  video
  card.
 
  I've patched and compiled (or so I thought) MPlayer1.0rc2, but I can't see 
  no
  difference... How can I confirm that it's compiled correctly and how can I
  check that it actually does work?
 


 I've not seen anyone post an updated compiz patch since mplayer 1.0rc2.

 I found one on this thread
 http://ubuntuforums.org/showthread.php?t=571556 but the patch was not in
 unified format nor did it contain the filename.

 I've adapted it to be in unifed format and it is here if anyone wants
 it:
 http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/mplayer/current/SOURCES/mplayer-1.0rc2-compiz.patch?revision=HEADview=markup

 I've not looked at what's changed since the last patch but from what I
 read on the forum about it was just a small change.

 HTH

 Col

 ___
 compiz mailing list
 compiz@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/compiz

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Video plugin and patched MPlayer

2007-10-10 Thread Treviño
Michał Sawicz ha scritto:
 I've patched and compiled (or so I thought) MPlayer1.0rc2, but I can't see no 
 difference... How can I confirm that it's compiled correctly and how can I 
 check that it actually does work?
   
Wobble the window, and it should move correclty the video too...
Or resize the video window to a very little size, then zoom to it and
you'll see the video at good quality ;)

Bye

-- 
Treviño's Blog - Life and Linux
http://3v1n0.tuxfamily.org/blog/

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-30 Thread Matthias Hopf
On Jul 27, 07 18:07:37 -0400, David Reveman wrote:
  And again, please, could you do something similar for libxine? I've
  started something, but I've not so much knowledge... :/
 
 I'm sure someone else will do this. If not, I might do it some day when
 I have time.

I would, if I had the time ATM :-(

Sorry

Matthias

-- 
Matthias Hopf [EMAIL PROTECTED],  SuSE RD,  Zimmer 3.2.06,  Tel. 74053-715
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-24 Thread David Reveman
On Fri, 2007-07-13 at 10:32 +1000, Christopher Halse Rogers wrote:
 On 7/12/07, David Reveman [EMAIL PROTECTED] wrote:
  I had to update the video plugin interface slightly to fix some bugs.
  I've attached an updated mplayer patch.
 
 Just to check, since I'm interested in applying this to Ubuntu's
 mplayer, but this patch is still not ready for upstream mplayer,
 right?  I remember the last such thread ending in we should probably
 wait for the retained-mode interface - do the same comments apply
 here?
 
 In a related question, any news on such an interface? :)

The communication mechanism will be slightly updated but the mplayer
patch will look much like it does today unless someone wants to put more
work into it.

Upstream mplayer might want to put this in a compiz-xv output backend
rather than in the xv backend itself but that's just some cut-n-paste
work that anyone could do...

-David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-16 Thread Colin Guthrie
David Reveman wrote:
 I had to update the video plugin interface slightly to fix some bugs.
 I've attached an updated mplayer patch.

It seems to work fine for stand alone mplayer but is anyone else having
trouble when using it via mplayerplugin in firefox?

I've not rebuilt mplayerplugin but I believe this is not necessary.

Col

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-13 Thread Colin Guthrie
David Reveman wrote:
 I had to update the video plugin interface slightly to fix some bugs.
 I've attached an updated mplayer patch.

David,

Is this patch ever going to make it upstream to mplayer do you think?

Has it been submitted/reviewed by upstream devs?

Cheers

Col

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-13 Thread Treviño




Christopher Halse Rogers ha scritto:

  On 7/12/07, David Reveman [EMAIL PROTECTED] wrote:
  
  
I had to update the video plugin interface slightly to fix some bugs.
I've attached an updated mplayer patch.


  
  Just to check, since I'm interested in applying this to Ubuntu's
mplayer, but this patch is still not ready for upstream mplayer,
right?  I remember the last such thread ending in "we should probably
wait for the retained-mode interface" - do the same comments apply
here?

If you want I've ubuntu packages patched with it: 
http://3v1n0.tuxfamily.org/dists/feisty/3v1n0

Bye

-- 
Trevio's Blog - Life and Linux
http://3v1n0.tuxfamily.org/blog/



___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-12 Thread Colin Guthrie
David Reveman wrote:
 I had to update the video plugin interface slightly to fix some bugs.
 I've attached an updated mplayer patch.

Feed the Stupid please

I remember reading that this plugin is effectively for Xgl? Does this
also work for AIGLX? I've got intel i945GM and can't use Xv under
compiz, but will enabling the video plugin and applying this patch to
mplayer make it magically work?

Col

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-12 Thread Treviño
Colin Guthrie ha scritto:
 Feed the Stupid please

 I remember reading that this plugin is effectively for Xgl? Does this
 also work for AIGLX? I've got intel i945GM and can't use Xv under
 compiz, but will enabling the video plugin and applying this patch to
 mplayer make it magically work?

 Col
If I'm not wrong the X patch is for Xgl (also if I've applied to my Xorg
and it works well), I've tested the previous patch with AIGLX and it
works really well.
At the countrary, this new patch doesn't work anymore :(

Bye

-- 
Treviño's Blog - Life and Linux
http://3v1n0.tuxfamily.org/blog/

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-12 Thread Colin Guthrie
Treviño wrote:
 If I'm not wrong the X patch is for Xgl (also if I've applied to my Xorg
 and it works well), I've tested the previous patch with AIGLX and it
 works really well.
 At the countrary, this new patch doesn't work anymore :(

Just tried it. Works great for me :) Thanks David (and iXce for the
private mail!)

Teviño I'm guessing from David's comments that the updated patch for
mplayer will also require git-tip of compiz for the video plugin updates
that go with it. If I was less lazy I'd go and look at gitweb. :)

Col

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-12 Thread Guillaume Seguin
2007/7/12, Colin Guthrie [EMAIL PROTECTED]:
 Treviño wrote:
  If I'm not wrong the X patch is for Xgl (also if I've applied to my Xorg
  and it works well), I've tested the previous patch with AIGLX and it
  works really well.
  At the countrary, this new patch doesn't work anymore :(

 Just tried it. Works great for me :) Thanks David (and iXce for the
 private mail!)


Arg, I hit the Reply button instead of Reply to all again :p

Regards,
Guillaume

 Teviño I'm guessing from David's comments that the updated patch for
 mplayer will also require git-tip of compiz for the video plugin updates
 that go with it. If I was less lazy I'd go and look at gitweb. :)

 Col

 ___
 compiz mailing list
 compiz@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/compiz

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-12 Thread Christopher Halse Rogers
On 7/12/07, David Reveman [EMAIL PROTECTED] wrote:
 I had to update the video plugin interface slightly to fix some bugs.
 I've attached an updated mplayer patch.

Just to check, since I'm interested in applying this to Ubuntu's
mplayer, but this patch is still not ready for upstream mplayer,
right?  I remember the last such thread ending in we should probably
wait for the retained-mode interface - do the same comments apply
here?

In a related question, any news on such an interface? :)

Chris Halse Rogers
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin update

2007-07-11 Thread Treviño
David Reveman ha scritto:
 I've attached an updated mplayer patch.
   
I've just finished compilig mplayer rc1 patched with this, but now it
doesn't work! :(

Do maybe I need a newer mplayer version? However I don't have any
compilation problem...
Any idea? Checking the differencies between this and the past patch I
can't find so much data... Wich are the changes exactly?

Thanks...

-- 
Treviño's Blog - Life and Linux
http://3v1n0.tuxfamily.org/blog/

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Video Plugin

2007-06-19 Thread Young-Ho Cha
2007/6/20, Jeffrey K. [EMAIL PROTECTED]:
 Hi,
 I've read the following message concerning the compiz video plugin:
 http://lists.freedesktop.org/archives/compiz/2007-March/001576.html

 I've patched mplayer, but the xserver patch doesn't seem to apply
 cleanly to xserver-1.3.  Is there an updated patch for this, or is one
 even still necessary?

use http://ftp.mizi.com/~ganadist/xserver-composite-pict-a8-alt-visual.diff

 Also, is there any work in something like a gstreamer plugin for the
 compiz video?

see http://bugzilla.gnome.org/show_bug.cgi?id=447544

 Thanks for your time,
 Jeff
 ___
 compiz mailing list
 compiz@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/compiz

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-13 Thread Matthias Hopf
On Mar 12, 07 13:27:25 +0100, David Reveman wrote:
 No that's not possible. The best solution I could think of right now is
 to create a top-level ARGB window and position it above your video
 window.

I thought so.

 We could add another interface for OSD and subtitles but I think we
 should just wait until we've got proper retained mode graphics support
 in compiz before we add that.

Agreed.

Matthias

-- 
Matthias Hopf [EMAIL PROTECTED],  SuSE RD,  Zimmer 3.2.06,  Tel. 74053-715
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-12 Thread Matthias Hopf
On Mar 09, 07 14:20:08 +0100, David Reveman wrote:
  Have you mailed this patch to the mplayer mailing list? Though I doubt
  they will allow a patch that interferes with the xv output plugin. It
  probably should go into a new output plugin.
 
 No I haven't mailed it to the mplayer list. I don't think it should be
 included in it's current state. Yes, it should go into a new plugin but
 this new plugin should still support xv output as you want to
 dynamically fall-back to that when the compiz interface isn't available.
 It should probably go into an xv-compiz output plugin but some code
 sharing between the existing xv module should probably be done then.

I guess the best thing would be if the new module would call the xv
plugin dynamically if needed. So the code paths would remain clean.

At least that's what I'll try to do with xine.

David, one more question about this rendering technique (have to admit
that I haven't looked at the code yet): are overlays still possible,
that is can I render with standard X / OpenGL calls over an YUV image
that has been blitted by compiz? That is needed for about all
on-screen-displays and subtitles, because they are typically rendered in
different resolutions than the main video.

CU

Matthias

-- 
Matthias Hopf [EMAIL PROTECTED],  SuSE RD,  Zimmer 3.2.06,  Tel. 74053-715
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-12 Thread David Reveman
On Mon, 2007-03-12 at 17:05 +0100, Matthias Hopf wrote:
 On Mar 09, 07 14:20:08 +0100, David Reveman wrote:
   Have you mailed this patch to the mplayer mailing list? Though I doubt
   they will allow a patch that interferes with the xv output plugin. It
   probably should go into a new output plugin.
  
  No I haven't mailed it to the mplayer list. I don't think it should be
  included in it's current state. Yes, it should go into a new plugin but
  this new plugin should still support xv output as you want to
  dynamically fall-back to that when the compiz interface isn't available.
  It should probably go into an xv-compiz output plugin but some code
  sharing between the existing xv module should probably be done then.
 
 I guess the best thing would be if the new module would call the xv
 plugin dynamically if needed. So the code paths would remain clean.
 
 At least that's what I'll try to do with xine.
 
 David, one more question about this rendering technique (have to admit
 that I haven't looked at the code yet): are overlays still possible,
 that is can I render with standard X / OpenGL calls over an YUV image
 that has been blitted by compiz? That is needed for about all
 on-screen-displays and subtitles, because they are typically rendered in
 different resolutions than the main video.

No that's not possible. The best solution I could think of right now is
to create a top-level ARGB window and position it above your video
window.

We could add another interface for OSD and subtitles but I think we
should just wait until we've got proper retained mode graphics support
in compiz before we add that.

- David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-09 Thread David Reveman
On Thu, 2007-03-08 at 15:05 +0100, Matthias Hopf wrote:
 On Mar 07, 07 21:15:39 +0100, dragoran wrote:
  thx I missed this mail...
 
 I apparently didn't receive this mail as well...
 
  I've created a patch to mplayer's xv output code that makes it use
  compiz video interface when available. Works pretty well and it even
  dynamically detects when the compiz video interface isn't available
  anymore and then switches to xv instead. Similar patches can easily be
  created for other video playback clients, of course.
 
 Have you mailed this patch to the mplayer mailing list? Though I doubt
 they will allow a patch that interferes with the xv output plugin. It
 probably should go into a new output plugin.

No I haven't mailed it to the mplayer list. I don't think it should be
included in it's current state. Yes, it should go into a new plugin but
this new plugin should still support xv output as you want to
dynamically fall-back to that when the compiz interface isn't available.
It should probably go into an xv-compiz output plugin but some code
sharing between the existing xv module should probably be done then.

 
 I'll go for xine and create an according output plugin.

Great!

- David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-08 Thread Matthias Hopf
On Mar 07, 07 21:15:39 +0100, dragoran wrote:
 thx I missed this mail...

I apparently didn't receive this mail as well...

 I've created a patch to mplayer's xv output code that makes it use
 compiz video interface when available. Works pretty well and it even
 dynamically detects when the compiz video interface isn't available
 anymore and then switches to xv instead. Similar patches can easily be
 created for other video playback clients, of course.

Have you mailed this patch to the mplayer mailing list? Though I doubt
they will allow a patch that interferes with the xv output plugin. It
probably should go into a new output plugin.

I'll go for xine and create an according output plugin.

Matthias

-- 
Matthias Hopf [EMAIL PROTECTED]  ____   __
Maxfeldstr. 5 / 90409 Nuernberg   (_   | |  (_   |__  [EMAIL PROTECTED]
Phone +49-911-74053-715   __)  |_|  __)  |__  R  D   www.mshopf.de
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-07 Thread Andres Blanco

David wrote:

On 3/5/07, David Reveman [EMAIL PROTECTED] wrote:I've added a simple
plugin to compiz that provides a way to render video
efficiently on a composited desktop.

A video playback client basically copies video data to a pixmap and sets
an X property on a client window that describes the image format of the
data and where it should be rendered.

The compiz video plugin will scale and perform necessary colorspace
conversions when compositing the desktop.

It provides very efficient playback of video on a composited desktop and
it requires much less resources than e.g. XVideo as no intermediate
buffer is required and hence also no accelerated offscreen rendering.

RGB and YV12 image formats are currently supported but it's of course
very easy to add support for additional formats.

YV12 format requires GL_ARB_fragment_program and 8 bpp alpha only GLX
pixmap support. The server doesn't provide alpha only pixmaps today. The
attached patch adds an alternative PICT_a8 visual to composite and that
is enough for xgl to support alpha only GLX pixmaps (not sure it will
work with aiglx or nvidia's driver, I would guess not).

Adding an alpha only X visual might be a bad idea. It doesn't cause any
issues with the clients I've been running but I've seen that GDK thinks
the server is broken and spits out some warnings when it finds a visual
with masks set to 0. Might be a better idea to just add the fbconfig and
no visual but the current GLX code in the server relies on every
fbconfig having a matching X visual so it will need a bit more work and
I'd like some feedback before I start doing anything like that.

I've created a patch to mplayer's xv output code that makes it use
compiz video interface when available. Works pretty well and it even
dynamically detects when the compiz video interface isn't available
anymore and then switches to xv instead. Similar patches can easily be
created for other video playback clients, of course.

- David

__


_
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz




On 3/7/07, dragoran [EMAIL PROTECTED] wrote:


Hello,
I updated to current git and find the video plugin.
What exactly is it supposed to do?
I want to test it but I don't know exactly what to test
Enabling it did not make any difference (it loaded successfully).

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz





--
Andrés Blanco Morales
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-07 Thread Mike Dransfield

dragoran wrote:

Hello,
I updated to current git and find the video plugin.
What exactly is it supposed to do?
I want to test it but I don't know exactly what to test
Enabling it did not make any difference (it loaded successfully). 


All the information you need is here.  You will need to patch xorg
and mplayer for it to work.

http://lists.freedesktop.org/archives/compiz/2007-March/001576.html

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] video plugin?

2007-03-07 Thread dragoran

thx I missed this mail...
Andres Blanco wrote:

David wrote:

On 3/5/07, David Reveman [EMAIL PROTECTED] wrote:I've added a simple
plugin to compiz that provides a way to render video
efficiently on a composited desktop.

A video playback client basically copies video data to a pixmap and sets
an X property on a client window that describes the image format of the
data and where it should be rendered.

The compiz video plugin will scale and perform necessary colorspace
conversions when compositing the desktop.

It provides very efficient playback of video on a composited desktop and
it requires much less resources than e.g. XVideo as no intermediate
buffer is required and hence also no accelerated offscreen rendering.

RGB and YV12 image formats are currently supported but it's of course
very easy to add support for additional formats.

YV12 format requires GL_ARB_fragment_program and 8 bpp alpha only GLX
pixmap support. The server doesn't provide alpha only pixmaps today. The
attached patch adds an alternative PICT_a8 visual to composite and that
is enough for xgl to support alpha only GLX pixmaps (not sure it will
work with aiglx or nvidia's driver, I would guess not).

Adding an alpha only X visual might be a bad idea. It doesn't cause any
issues with the clients I've been running but I've seen that GDK thinks
the server is broken and spits out some warnings when it finds a visual
with masks set to 0. Might be a better idea to just add the fbconfig and
no visual but the current GLX code in the server relies on every
fbconfig having a matching X visual so it will need a bit more work and
I'd like some feedback before I start doing anything like that.

I've created a patch to mplayer's xv output code that makes it use
compiz video interface when available. Works pretty well and it even
dynamically detects when the compiz video interface isn't available
anymore and then switches to xv instead. Similar patches can easily be
created for other video playback clients, of course.

- David

__


_
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz




On 3/7/07, dragoran [EMAIL PROTECTED] wrote:


Hello,
I updated to current git and find the video plugin.
What exactly is it supposed to do?
I want to test it but I don't know exactly what to test
Enabling it did not make any difference (it loaded successfully).

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz







___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz