Video Tag Resolution Adaptation for Real-Time Streaming
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for displaying video streams, such as those using HTML5 browsers and WebRTC protocols, often result in distorted, cropped, or unreadable video due to mismatched resolutions between the video stream and the client's display window, requiring processing that delays real-time display and affects quality.
Innovation Solution
A method that modifies the layout format of a video tag in real-time to match the provided resolution of the video stream with the client's display window, using a display precision parameter to maintain the original aspect ratio without distortion, and processes the resolution only once at the start of the video stream, allowing for proportional resizing based on the display window's size.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If the video tag resolution is set equal to the equipment providing resolution, then the video quality is maintained, but the video occupies a very small part of the client window when the terminal screen is large
Solution Approach 1:
The patent applies dynamic resolution adaptation by modifying the video tag layout format based on the client window size. The system dynamically calculates a scaling factor comparing the equipment providing resolution to the client window dimensions, and adjusts the video display resolution accordingly. This allows the video to maintain optimal quality while adapting to different screen sizes, preventing it from occupying a small portion of large screens.
2Area of stationary object
If the video tag is resized to occupy the entire client window, then the video display area is maximized, but the video becomes distorted, stretched, or blurry
Solution Approach 1:
The patent changes the resolution parameters of the video tag based on the client window size. By calculating the ratio between the equipment providing resolution and the client window dimensions, the system adjusts the video tag's width and height attributes proportionally. This parameter adaptation ensures the video maintains its aspect ratio and quality while filling the available display space appropriately.
3Area of stationary object
If software resizing is applied to make the video occupy the entire client window without distortion, then the video display area is maximized with maintained quality, but processing time is required and the video must be fully processed before displaying
Solution Approach 1:
The patent performs preliminary calculation of the appropriate video tag layout format immediately upon receiving the equipment providing resolution parameter. By pre-calculating the scaling factor and setting the video tag dimensions before video playback begins, the system avoids real-time processing delays. The video can then be displayed immediately with the pre-determined optimal resolution, eliminating processing bottlenecks.
Data Source
Figure 1
Figure 2
AI summary
The invention concerns a method for adapting the display of a video stream by a client, in particular a client such as an HTML 5.0 browser and/or using a WebRTC communication protocol for receiving the video stream. The subject matter of the invention is a method for adapting the display of a video stream by a client. The adaptation method comprises a modification of a video tag of the client. The modified video tag depends on a resolution of a device providing the video stream, a size of a window for displaying the video stream and an accuracy parameter. The modified video tag has the same relation as the resolution to the size of the display window in which the video stream is displayed by the client. Therefore, the display of a real-time video stream can be resized while retaining the real-time character, without distortion and without loss of quality during the display of the video carried by the video stream. The accuracy parameter makes it possible, in particular, to keep the aspect ratio of the original video, e.g. 4:3, 16:9, etc.