Grey Color shown before starting a video

45 views
Skip to first unread message

callw...@gmail.com

unread,
May 10, 2013, 12:38:29 AM5/10/13
to gecko-me...@googlegroups.com
Hi all,

Is there a way to not show a grey color before starting a video.  It will show a grey color around 1-2 seconds.
How to disable this?  Or change it to black color?

Thanks in advance,
Wilson

Kevin DeKorte

unread,
May 10, 2013, 9:25:44 AM5/10/13
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You don't say what version of gnome-mplayer/gmtk you are using but I'm
guessing you are probably downlevel a bit.

Normally the screen will be black if you are using the current
version. There were bugs that were fixed in v 1.0.6 and if you use
GTK3 in 1.0.8 that fixed this problem.

Also if you are using vdpau or other hardware acceleration I cannot
set the background color of the widget, and have to let the theme do
it. If I set it in the code, sometimes it causes flickering as the
application and mplayer fight for who is drawing on the window. So I
disable drawing the background in those cases.

Kevin

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGM9VgACgkQ6w2kMH0L1dGE6wCfTbOfGAb8NmfNAE/w9zzbnjFp
BJUAmwXOYInbB9v5BX4FR16y7VtOjOcW
=4pjr
-----END PGP SIGNATURE-----

callw...@gmail.com

unread,
May 13, 2013, 3:14:25 AM5/13/13
to gecko-me...@googlegroups.com
I am using gnome-mplayer 1.08 and gmtk 1.08.
Unfortunate, I need to use vdpau or vaapi for the hardware acceleration.
If I use these two hardware acceleration, I will have no way to get rid of this grey color?
Or I can still set the theme? Right now, the theme is dark color, but still have a grey color box.

Thanks,
Wilson

callw...@gmail.com於 2013年5月10日星期五UTC+8下午12時38分29秒寫道:

Kevin DeKorte

unread,
May 13, 2013, 8:45:48 AM5/13/13
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/13/2013 01:14 AM, callw...@gmail.com wrote:
> I am using gnome-mplayer 1.08 and gmtk 1.08. Unfortunate, I need to
> use vdpau or vaapi for the hardware acceleration. If I use these
> two hardware acceleration, I will have no way to get rid of this
> grey color? Or I can still set the theme? Right now, the theme is
> dark color, but still have a grey color box.
>
> Thanks, Wilson

You might be able to get rid of it with theme tweak. Like making
changes to the GTK rc file. But it is not something I can seem to work
around in the application. vdpau and vaapi with hardware acceleration
draw directly on the screen outside of GTK and so it can cause
problems with the apps.

You can try enabling the background color in the application by
editing gmtk_media_player.c in gmtk and changing the "socket_realized"
function and just changing the code so that the black background is
always used no matter what the vo is.

Kevin


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGQ4HwACgkQ6w2kMH0L1dEFigCffiZ8V2TZ8Mq0TMZ8eSpw9Bdy
37kAnRfFSmZ1w0bcH9t6fKIG+D9G9wzu
=6Fc2
-----END PGP SIGNATURE-----

Kurt Freytag

unread,
May 13, 2013, 12:38:17 PM5/13/13
to gecko-me...@googlegroups.com
Wilson -

  As a work-around, what I've done (using 1.0.6) is render the embed off-screen (say, set the style of the enclosing DIV to left="-2000px"), start the video playing, and then move it immediately on-screen by setting left="0px". It gets rid of the gray (or white) flash before the video plays.

- Kurt

--
You received this message because you are subscribed to the Google Groups "gecko-mediaplayer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gecko-mediapla...@googlegroups.com.
To post to this group, send email to gecko-me...@googlegroups.com.
Visit this group at http://groups.google.com/group/gecko-mediaplayer?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

callw...@gmail.com

unread,
May 14, 2013, 4:06:31 AM5/14/13
to gecko-me...@googlegroups.com
Hi Kevin,
I have another application using 1.04.  Are the modifications the same?  Or something else?

Hi Kurl,
If I use version 1.04, presumably it should work as you just tweak around the style sheet.  Am I correct?

Thanks,
Wilson

callw...@gmail.com於 2013年5月10日星期五UTC+8下午12時38分29秒寫道:
Reply all
Reply to author
Forward
0 new messages