phoboslab / jsmpeg-vnc

A low latency, high framerate screen sharing server for Windows and client for browsers
2.39k stars 397 forks source link

Grey screen/first frame #28

Open erikhric opened 8 years ago

erikhric commented 8 years ago

Whole desktop works as a stream, even Windows file browser windows are working. When I try something 3D like Wolfenstein - grey screen appears On Minecraft only first frame is shown.

Is this a bug, or am I doing something wrong?

I tried different settings of Bitrate and fps but nothing works.

phoboslab commented 8 years ago

The server sometimes has problems capturing hardware accelerated windows. Try disabling Aero, i.e. chose a Windows "Classic Theme".

erikhric commented 8 years ago

I tried it, but also overlapping command prompt is shown on that screen. I'm trying to use this in my school assignment. jsmpegvnc

ir-g commented 8 years ago

Does it still do that if you minimise the command prompt?

On Tue, 19 Apr 2016 09:52 Erik Hric, notifications@github.com wrote:

I tried it, but also overlapping command prompt is shown on that screen. I'm trying to use this in my school assignment. [image: jsmpegvnc] https://cloud.githubusercontent.com/assets/5880119/14633091/4ed48e26-061c-11e6-98e8-12aab967c1be.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/phoboslab/jsmpeg-vnc/issues/28#issuecomment-211806968

erikhric commented 8 years ago

Sadly, yes. Overlapping isn't problem, but windows under is frozen in stream. I have tried this on windows 7&8.1 with no luck.

erikhric commented 8 years ago

Are there any requirements for window itself, or it shouldn't depend on that? What makes the difference between capturing whole desktop and single window? In code it look almost the same to me. Why whole desktop works perfectly, but single windows does not?

lafegob commented 8 years ago

I got the same issue, =/. i´m using win 10.

erikhric commented 8 years ago

lafegob I had this issue on Windows 8. Theme of windows doesn't look like aero on Win7 but it is. Try switching to one of the high contrast Windows themes and restart your computer. It should work immediately.

thesauri commented 8 years ago

Anyone having this problem even with aero turned off?

For some reason the program works fine on my laptop, but on my desktop computer I only get a gray screen when trying to stream any OpenGL applications. However, if I run the same program with software rendering the stream works just fine..

Both computers run Windows 10 and are set to use a high-contrast theme.

One difference between the systems is that the laptop has two graphics cards: an integrated Intel 4600 and a discrete NVIDIA Quadro K1100M, while the desktop computer is running an Nvidia GTX 580. OpenGL Extensions Viewer lists version OpenGL version 4.3 for the laptop and OpenGL version 4.4 for the desktop. The laptop is set to use the discrete graphics card for the OpenGL application.

Also tried recompiling the program with the dwRop flag set to SRCCOPY | CAPTUREBLT (from SRCCOPY) in grabber.c: BitBlt(self->memoryDC, 0, 0, self->width, self->height, self->windowDC, 0, 0, SRCCOPY | CAPTUREBLT); (inspired by these two posts), but to no avail.