Jump to content


Photo

Active video has small gap on side and bottom of screen


  • Please log in to reply
322 replies to this topic

#61 xryptic OFFLINE  

xryptic

    Newbie

  • Members
  • 6 posts
  • Local time: 03:01 PM

Posted 28 June 2018 - 09:50 AM

5b34e66c9c23b_emby301videoartifectsonedg

Just to report that I also have this problem as well. See this on 3.0.1 for both NUC Skull Canyon and Hades Canyon Windows 10 1803. Same issue with the guys here that the tiny length of pixels on the right and bottom is corrupted until I minimize and maximize it back. I am also using framerate refresh. Back to 2.9.6 is fine, remaining there until this is fixed, thanks.


Edited by xryptic, 28 June 2018 - 09:51 AM.

  • ShoutingMan likes this

#62 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 04 July 2018 - 06:04 PM

I also noticed this artifact after upgrading to ET 3.0.1. It's definitely due to Electron 2.x but in my case (and maybe others) it only occurs after I wake up my NUC from sleep mode. I have tried my NUC on different TV's and I get different results on different models. On Samsung and LG the problem occurs but on a really old Insignia no problems at all.

 

Also when I wake up the NUC from sleep mode on the LG and Samsung the taskbar become visible.

 

The fix for me is to start Emby Theatre then click the square window button (upper right) and put ET into window mode then click it again and put it back into full screen mode. After I do this I never see the taskbar when I wake up my NUC and I never get small gap around MPV when I play a video.

 

It seems starting ET in full screen mode isn't really full screen since I get different behavior by flipping it into window mode/full screen after starting ET.

 



#63 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 04 July 2018 - 07:38 PM

Does anyone know what the Hotkey is to toggle windows/full screen mode in ET? If I knew this I could use AutoHotKey to start Emby and automatically flip it between window and full screen mode.



#64 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 10961 posts
  • Local time: 12:01 AM

Posted 04 July 2018 - 07:48 PM

You can use F when playing 

 

https://github.com/M... Remote Support



#65 stettler OFFLINE  

stettler

    Advanced Member

  • Members
  • 321 posts
  • Local time: 07:01 AM

Posted 05 July 2018 - 02:27 AM

Happen also on Win7 since a long time (and with old version of ET). It's one of the thing that is fixed by adding an automatic minimize/maximize in the lua script.



#66 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 10961 posts
  • Local time: 12:01 AM

Posted 05 July 2018 - 02:49 AM

Electron 2.0.4 is released. Give it a try.

 

https://github.com/e...ases/tag/v2.0.4

 

5b3dbf5e87764_Snapshot_153.jpg



#67 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 05 July 2018 - 07:49 AM

Still happens on Electron 2.0.4. 

It also only seems to occur when you connect the PC to an HDCP capable display and only after waking the computer from sleep mode.

If I use a really old TV or a computer monitor everything works perfectly.

This seems to be a known problem with Microsoft Windows not resizing the display properly or having other issues after waking the PC when connected to an HDCP display.



#68 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 05 July 2018 - 07:50 AM

Happen also on Win7 since a long time (and with old version of ET). It's one of the thing that is fixed by adding an automatic minimize/maximize in the lua script.

 

How do you add an automatic minimize/maximize in the lua script?


Edited by echoxxzz, 05 July 2018 - 07:50 AM.


#69 serpi OFFLINE  

serpi

    Advanced Member

  • Members
  • 184 posts
  • Local time: 08:01 AM

Posted 05 July 2018 - 11:14 AM

I also noticed this artifact after upgrading to ET 3.0.1. It's definitely due to Electron 2.x but in my case (and maybe others) it only occurs after I wake up my NUC from sleep mode. I have tried my NUC on different TV's and I get different results on different models. On Samsung and LG the problem occurs but on a really old Insignia no problems at all.

 

Happens for me also, when I wake up my HTPC, but only, if it starts before the tv is switched on.

This is because the Intel gfx chip seems to use a different screen mode (that can be adjusted in the registry), if there is no monitor connected (or tv still off) when starting up and then switches screen mode when tv is ready.

This leads to the same as switching refresh rate when ET is running and so you get the gap at right/bottom.

 

For me it works, if I first switch on tv, then wake up pc -> no gaps.

Give it a try, might work for you too.

 

With my AMD based htpc this was not a problem, it seemed to already use the right screen mode when turned on, even when the tv was still off.

 

Ciao, Alfred



#70 serpi OFFLINE  

serpi

    Advanced Member

  • Members
  • 184 posts
  • Local time: 08:01 AM

Posted 05 July 2018 - 11:20 AM

Happen also on Win7 since a long time (and with old version of ET). It's one of the thing that is fixed by adding an automatic minimize/maximize in the lua script.

 

Do you really mean the small (only a few pixel) gap on right/bottom of screen or do you mean ET has smaller window when pc wakes up?

 

The latter is caused by the Intel gfx card using a (normally) 1024x768 dummy screen mode if display is not recognized (e.g. still switched off), so ET changes it size for full screen, but then display is on, full hd, but ET doesn't change it's "full screen" size and stays on left upper corner. This can be "fixed" by minimize/maximize ET.

 

Or, if you prefer a permanent fix, go to the registry and change the resolution of the dummy display to the resolution of the real display.

 

Ciao, Alfred



#71 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 05 July 2018 - 11:23 AM

Happens for me also, when I wake up my HTPC, but only, if it starts before the tv is switched on.

This is because the Intel gfx chip seems to use a different screen mode (that can be adjusted in the registry), if there is no monitor connected (or tv still off) when starting up and then switches screen mode when tv is ready.

This leads to the same as switching refresh rate when ET is running and so you get the gap at right/bottom.

 

For me it works, if I first switch on tv, then wake up pc -> no gaps.

Give it a try, might work for you too.

 

With my AMD based htpc this was not a problem, it seemed to already use the right screen mode when turned on, even when the tv was still off.

 

Ciao, Alfred

On my NUC6CAYH I had a lot of problems with appsgetting resized into a 1024x768 screen if the TV was powered off when I woke up the NUC. I fixed it by editing the NOEDID graphics profile in the registry and changed the resolution to match my TV.  Unfortunately powering on the TV first still doesn't resolve the issue with the gap running Electron 2.x. My fix for now is to go back to Electron 1.x.



#72 stettler OFFLINE  

stettler

    Advanced Member

  • Members
  • 321 posts
  • Local time: 07:01 AM

Posted 05 July 2018 - 12:13 PM

How do you add an automatic minimize/maximize in the lua script?

 

I don't know how it is now. But the original script was using the "nircmdc" utility to set refresh rate. I modified that script to call nircmdc with the "min" argument and then call it again with the "max" argument. I was not sure how to find the right windows to minimize/maximize so I was just doing it on the one with "Emby" in the title. The function was something like that:

  _global.utils.subprocess({    ["cancellable"] 
= false,    ["args"] = 
{     [1] = 
_global.options["nircmdc"],     [2] = 
"win",     [3] = 
"min",     [4] = 
"stitle",     [5] = 
"Emby"    }   })
   _global.utils.subprocess({    ["cancellable"] 
= false,    ["args"] = 
{     [1] = 
_global.options["nircmdc"],     [2] = 
"win",     [3] = 
"max",     [4] = 
"stitle",     [5] = 
"Emby"    }   })


#73 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 10961 posts
  • Local time: 12:01 AM

Posted 05 July 2018 - 12:15 PM

It's a different program, now. It was written for emby.

#74 stettler OFFLINE  

stettler

    Advanced Member

  • Members
  • 321 posts
  • Local time: 07:01 AM

Posted 05 July 2018 - 12:21 PM

Do you really mean the small (only a few pixel) gap on right/bottom of screen or do you mean ET has smaller window when pc wakes up?

 

The latter is caused by the Intel gfx card using a (normally) 1024x768 dummy screen mode if display is not recognized (e.g. still switched off), so ET changes it size for full screen, but then display is on, full hd, but ET doesn't change it's "full screen" size and stays on left upper corner. This can be "fixed" by minimize/maximize ET.

 

Or, if you prefer a permanent fix, go to the registry and change the resolution of the dummy display to the resolution of the real display.

 

Ciao, Alfred

 

Yes, I really mean the few pixel width line that is at the bottom and right side of the Windows. That happen sometime because the Windows isn't really in full screen anymore. That problem was already happening, at least with Win7, on version of ET from last year or even earlier.

 

Naturally, the minimize/maximize also fix the wrong size of the Windows after the TV was turned off/on. If you don't want to mess with Windows default resolution in the registery, you can just put a dummy VGA dongle in one of the graphic card output so that it will think there is always something connected to it. (or use a monitor instead of a TV: they always advertise the resolution even when turned off) That problem wasn't happening with graphic card that had a VGA output because they weren't providing any kind of plug-and-play so Windows wasn't expecting it.



#75 stettler OFFLINE  

stettler

    Advanced Member

  • Members
  • 321 posts
  • Local time: 07:01 AM

Posted 05 July 2018 - 12:26 PM

It's a different program, now. It was written for emby.

 

 

Yeah I know but I never looked into it: Remember when ET couldn't upgrade itself automatically and we had to do it manually? My system has never been soo stable since it was stuck into that version so I never upgraded it ;)

 

Anyway, if the new method is using something else to set refresh rate, nothing prevent you to also use nircmdc in the script if want to.



#76 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 05 July 2018 - 02:55 PM

Still happens on Electron 2.0.4. 

It also only seems to occur when you connect the PC to an HDCP capable display and only after waking the computer from sleep mode.

If I use a really old TV or a computer monitor everything works perfectly.

This seems to be a known problem with Microsoft Windows not resizing the display properly or having other issues after waking the PC when connected to an HDCP display.

 

I just picked up a new VIZIO 32" TV to replace the old LG LCD bedroom TV (which has this problem) and everything works perfectly!!!!

Still have the problem on my Samsung 65" inch living room TV but I think this rules out my theory that it only occurs on displays with HDCP.



#77 stettler OFFLINE  

stettler

    Advanced Member

  • Members
  • 321 posts
  • Local time: 07:01 AM

Posted 05 July 2018 - 05:18 PM

I just picked up a new VIZIO 32" TV to replace the old LG LCD bedroom TV (which has this problem) and everything works perfectly!!!!

Still have the problem on my Samsung 65" inch living room TV but I think this rules out my theory that it only occurs on displays with HDCP.

 

 

There is really 2 problems that are somewhat linked:

 

Computer monitors have a chip that advertise the available resolutions and refresh to the computer. It's powered by the graphic card itself so it works even if the monitor is off.

 

Most TV don't have that chip so when they are off, the computer doesn't know what it is connected to and so revert to a "safe" resolution/refresh (ie: something that should be supported by nearly any device on the market).

 

That's why you have that problem with TV and not with computer monitors. Naturally, some TV have that chip so they don't that problem.

 

The other problem is that full screen windowed mode is not the same as exclusive full screen. When using full screen windowed mode (which is what ET is using when playing a video), sometime Windows mess-up things and display things in "nearly" full screen which is why you see that line on the right and bottom part of the screen (It's actually the frame of the window that wasn't removed as it should have been). It is still related to the change of state when you turn off your TV or when Windows want to display something else. Ie: It may happen even if your computer is configured to never go to sleep and never turn off the screen. It probably won't happen with a computer monitor even if you turn it off/on. Something like Windows notifications poping-up may be enough to go out of "full screen windowed" mode and end-up into a nearly full screen window when playing the video. (If you want, it's the difference between telling the OS to play the video at a resolution that take the full screen, whatever it is, or to play it at a resolution of 1920x1080)



#78 stettler OFFLINE  

stettler

    Advanced Member

  • Members
  • 321 posts
  • Local time: 07:01 AM

Posted 05 July 2018 - 05:49 PM

By the way, one way to mitigate the border problem is to change your desktop theme so that windows have a solid black border. It won't really fix the problem but you won't notice it anymore.



#79 echoxxzz OFFLINE  

echoxxzz

    Advanced Member

  • Members
  • 96 posts
  • Local time: 03:01 AM
  • LocationOntario, Canada

Posted 05 July 2018 - 09:27 PM

There is really 2 problems that are somewhat linked:

 

Computer monitors have a chip that advertise the available resolutions and refresh to the computer. It's powered by the graphic card itself so it works even if the monitor is off.

 

Most TV don't have that chip so when they are off, the computer doesn't know what it is connected to and so revert to a "safe" resolution/refresh (ie: something that should be supported by nearly any device on the market).

 

That's why you have that problem with TV and not with computer monitors. Naturally, some TV have that chip so they don't that problem.

 

The other problem is that full screen windowed mode is not the same as exclusive full screen. When using full screen windowed mode (which is what ET is using when playing a video), sometime Windows mess-up things and display things in "nearly" full screen which is why you see that line on the right and bottom part of the screen (It's actually the frame of the window that wasn't removed as it should have been). It is still related to the change of state when you turn off your TV or when Windows want to display something else. Ie: It may happen even if your computer is configured to never go to sleep and never turn off the screen. It probably won't happen with a computer monitor even if you turn it off/on. Something like Windows notifications poping-up may be enough to go out of "full screen windowed" mode and end-up into a nearly full screen window when playing the video. (If you want, it's the difference between telling the OS to play the video at a resolution that take the full screen, whatever it is, or to play it at a resolution of 1920x1080

 

But that doesn't explain why clicking the window/fullscreen button before I turn off the TV fixes the problem.

Even if Emby starts in fullscreen mode the problem exists until I click the button and change to window mode than back to fullscreen, then it never occurs again until I restart Emby.

 

Other apps like KODI don't have this problem.


Edited by echoxxzz, 05 July 2018 - 09:28 PM.


#80 PrincessClevage OFFLINE  

PrincessClevage

    Advanced Member

  • Members
  • 945 posts
  • Local time: 05:01 PM

Posted 05 July 2018 - 11:00 PM

There is really 2 problems that are somewhat linked:

Computer monitors have a chip that advertise the available resolutions and refresh to the computer. It's powered by the graphic card itself so it works even if the monitor is off.

Most TV don't have that chip so when they are off, the computer doesn't know what it is connected to and so revert to a "safe" resolution/refresh (ie: something that should be supported by nearly any device on the market).

That's why you have that problem with TV and not with computer monitors. Naturally, some TV have that chip so they don't that problem.

The other problem is that full screen windowed mode is not the same as exclusive full screen. When using full screen windowed mode (which is what ET is using when playing a video), sometime Windows mess-up things and display things in "nearly" full screen which is why you see that line on the right and bottom part of the screen (It's actually the frame of the window that wasn't removed as it should have been). It is still related to the change of state when you turn off your TV or when Windows want to display something else. Ie: It may happen even if your computer is configured to never go to sleep and never turn off the screen. It probably won't happen with a computer monitor even if you turn it off/on. Something like Windows notifications poping-up may be enough to go out of "full screen windowed" mode and end-up into a nearly full screen window when playing the video. (If you want, it's the difference between telling the OS to play the video at a resolution that take the full screen, whatever it is, or to play it at a resolution of 1920x1080)

On my system this was never an issue until the date that I started this thread and I believe there was an update. Also your thesis does not explain why we all see the line only on the right and bottom of our screens

Edited by PrincessClevage, 05 July 2018 - 11:01 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users