1080p video lagging without full screen on VLC

December 21, 2022, 08:46

PPJ

Hi, I making one application using ElectronJS. On that app my video getting lagging/freezing. For testing purpose I tried play that video on Chrome browser same issue facing in Chrome also. I tried with VLC, If I keep full-screen video is running proper but if it is not full-screen it getting lagging. Any idea how to fix? Is there any way increase performance of a specific application?

eternalliving

If you play the video in its native resolution it doesnā€™t have to ā€˜resizeā€™ each frame. Hence why full screen would probably be smoother. The only fix would be to render the video in the resolution you want to watch it in. Or watch it in fullscreen

eternalliving

Only thought would be the extra requirement to rotate every frame to play it. Iā€™m not sure if thatā€™s the case. Youā€™d also have to watch out to program borders, because if the video is not displaying at exactly 1080x608, even if itā€™s 1 pixel off, itā€™ll have to render all the frames. There might be an option to ā€œcropā€ the video so it just drops pixels outside the boundary? That way itā€™ll display in the native resolution and any overflow will simply be droppedā€¦.maybe?