CN116418937A - Video resolution adjustment method and device, storage medium and electronic equipment - Google Patents

Video resolution adjustment method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116418937A
CN116418937A CN202111677032.1A CN202111677032A CN116418937A CN 116418937 A CN116418937 A CN 116418937A CN 202111677032 A CN202111677032 A CN 202111677032A CN 116418937 A CN116418937 A CN 116418937A
Authority
CN
China
Prior art keywords
video
resolution
display window
target
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111677032.1A
Other languages
Chinese (zh)
Inventor
刘家翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Maile Information Technology Co ltd
Original Assignee
Guangzhou Maile Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Maile Information Technology Co ltd filed Critical Guangzhou Maile Information Technology Co ltd
Priority to CN202111677032.1A priority Critical patent/CN116418937A/en
Publication of CN116418937A publication Critical patent/CN116418937A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25833Management of client data involving client hardware characteristics, e.g. manufacturer, processing or storage capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities

Abstract

The invention relates to a video resolution adjustment method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining the physical size of a video display window on a display screen and the watching distance from a video viewer to the video display window, and obtaining the minimum distance between two pixels of human eyes under the watching distance according to the watching distance and the minimum resolution angle of human eyes. And obtaining the target resolution of the target video according to the physical size of the video display window and the minimum distance between the two pixel points. And acquiring the target video adjusted to the target resolution, and sending the adjusted target video to the video display window for display, so that the video resolution is dynamically adjusted, and the video definition is improved.

Description

Video resolution adjustment method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method and apparatus for adjusting video resolution, a storage medium, and an electronic device.
Background
Video conferencing refers to a conference in which people located at two or more sites are talking face-to-face through a communication device and a network. Video conferences typically include several video acquisition terminals, a conference server and several video playback terminals; the video acquisition terminal sends the acquired video to a conference server; and the conference server sends the video to the video playing terminal for playing and displaying. Generally, the resolutions of the videos collected by the video collecting terminals are various, and the conference server converts the collected videos into videos with fixed resolutions and then sends the videos to the video playing terminals for display.
However, for a video with a fixed resolution, if the screen size of the display screen of the video playing terminal is too large, the video becomes blurred and unclear, and the viewing experience of a user is affected; if the display screen of the video playing terminal is too small, bandwidth resources for video transmission are wasted.
Disclosure of Invention
Accordingly, an object of the present invention is to provide a video resolution adjustment method, apparatus, storage medium, and electronic device, which have advantages of dynamically adjusting video resolution and improving video definition.
According to a first aspect of embodiments of the present application, there is provided a video resolution adjustment method, including the steps of:
acquiring the physical size of a video display window on a display screen and the watching distance from a video viewer to the video display window;
obtaining the minimum distance between two pixels resolved by human eyes under the watching distance according to the watching distance and the minimum resolving angle of the human eyes;
obtaining target resolution of the target video according to the physical size of the video display window and the minimum distance between two pixel points;
and acquiring the target video corresponding to the target resolution, and sending the adjusted target video to the video display window for display.
According to a second aspect of embodiments of the present application, there is provided a video resolution adjustment apparatus, including:
the size and viewing distance acquisition module is used for acquiring the physical size of a video display window on a display screen and the viewing distance from a video viewer to the video display window;
the minimum distance obtaining module is used for obtaining the minimum distance between two pixel points resolved by human eyes under the watching distance according to the watching distance and the minimum resolution angle of the human eyes;
the target resolution obtaining module is used for obtaining the target resolution of the target video according to the physical size of the video display window and the minimum distance between the two pixel points;
and the target video display module is used for acquiring the target video corresponding to the target resolution, and sending the adjusted target video to the video display window for display.
According to a third aspect of embodiments of the present application, there is provided an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the video resolution adjustment method according to any one of the preceding claims.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a video resolution adjustment method as described in any one of the above.
According to the embodiment of the invention, the physical size of the video display window on the display screen and the viewing distance from the video viewer to the video display window are obtained, and the minimum distance between two pixels of human eyes is obtained according to the viewing distance and the minimum resolution angle of human eyes. And obtaining the target resolution of the target video according to the physical size of the video display window and the minimum distance between the two pixel points. The target video corresponding to the target resolution is obtained and adjusted, and the adjusted target video is sent to the video display window for display, so that the video resolution is dynamically adjusted according to the physical size change of the video display window and the watching distance change from a video viewer to the video display window, and when the screen size of a display screen is oversized, the video definition is improved; when the screen size of the display screen is undersized, bandwidth resources for video transmission are reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and implementation, the present invention is described in detail below with reference to the drawings.
Drawings
Fig. 1 is a schematic block diagram of an application environment of a video resolution adjustment method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a video resolution adjustment method according to an embodiment of the present application;
fig. 3 is a flowchart of S11 in a video resolution adjustment method according to an embodiment of the present application;
fig. 4 is a flowchart of S12 in the video resolution adjustment method according to an embodiment of the present application;
fig. 5 is a flowchart of S20 in the video resolution adjustment method according to an embodiment of the present application;
fig. 6 is a flowchart of S30 in a video resolution adjustment method according to an embodiment of the present application;
fig. 7 is a block diagram of a video resolution adjustment device according to an embodiment of the present application;
FIG. 8 is a block diagram of a minimum distance acquisition module 52 according to one embodiment of the present application;
FIG. 9 is a block diagram of the target resolution obtaining module 53 according to one embodiment of the present application;
FIG. 10 is a block diagram illustrating a video resolution adjustment system according to one embodiment of the present application;
fig. 11 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which would be apparent to one of ordinary skill in the art without making any inventive effort, are intended to be within the scope of the present application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims. In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Referring to fig. 1, an application environment of a video resolution adjustment method according to an embodiment of the present application includes a plurality of video stream acquisition devices 1000, a plurality of video playing terminals 2000, and a server 3000; the video stream collecting apparatus 1000 and the video playing terminal 2000 are respectively connected with the server 3000 in a communication manner, and the communication manner may be a wired connection and a wireless connection. The application environment of the video resolution adjustment method can be applied to scenes such as conferences and education, the application uses video conference scenes as an example for explanation, video conference software is installed in the video stream acquisition equipment 1000 and the video playing terminal 2000, and by starting the video conference software, a video conference can be established, and video acquisition, transmission and playing are realized.
The video stream collection device 1000 is configured to collect a video stream, where the video stream may be a live video stream, a video stream of an opposite user who is in video communication with the user, or a video stream of a television show, a movie, or a short video that is watched online by the user. In this embodiment of the present application, the video stream is a video stream of two parties of a video call in a video conference, the video stream collecting device 1000 sends the collected video stream to the server 3000, and the video stream collecting device 1000 may be a mobile phone, a tablet, a computer, etc. provided with a camera and a video camera.
The server 3000 may serve as a service server, and may be responsible for further connecting to related audio data servers, video streaming servers, other servers providing related support, and so on, so as to form a logically related service cluster, to provide services for related terminal devices, such as the video streaming collection device 1000 and the video playing terminal 2000. In this embodiment, the server 3000 converts the received video stream into videos with different resolutions, stores the videos, searches for a corresponding target video according to the target resolution sent by the video playing terminal 2000, and sends the target video to the video playing terminal 2000 for display.
The video playing terminal 2000 may be implemented by software and/or hardware, and the video playing terminal 2000 may be configured by two or more physical entities or may be configured by one physical entity. In terms of hardware, the video playing terminal is directed to hardware, which is essentially a computer device with the performance of a personal computer, and the like, and is a hardware device with a central processing unit (comprising an arithmetic unit and a controller), a memory, an input device, an output device and the like, which are necessary components disclosed by von neumann principles; the computer program is stored in the memory, and the central processing unit calls the computer program stored in the memory to run, executes instructions in the computer program and interacts with the input and output equipment, thereby completing specific functions. For example, the video playing terminal 2000 may be an intelligent video conference integrated machine, a mobile phone, a computer, a tablet, a television, etc.
In the embodiment of the present application, the video playing terminal 2000 includes a display screen; the display screen may be incorporated as part of the video playback terminal 2000 and exist integrally with the video playback terminal 2000; the display screen may also exist independently and be connected to the video playing terminal 2000 by a wire. The video display screen is provided with a video display window, the video playing terminal 2000 obtains the physical size of the video display window on the display screen and the viewing distance from a video viewer to the video display window, obtains the minimum distance for the human eyes to resolve two pixels under the viewing distance according to the viewing distance and the minimum resolution angle of the human eyes, obtains the target resolution of the target video according to the physical size of the video display window and the minimum distance of the two pixels, sends the target resolution to the server 3000, the server 3000 searches the target video corresponding to the target resolution, sends the target video to the video playing terminal 2000, and the video playing terminal 2000 obtains the target video adjusted to the target resolution, sends the adjusted target video to the video display window, and the video display window can play the target video.
Example 1
Referring to fig. 2, an embodiment of the present invention provides a video resolution adjustment method, which includes the following steps:
s10, acquiring the physical size of a video display window on a display screen and the watching distance from a video viewer to the video display window.
In this embodiment of the present application, the display screen is a device for displaying video data, and the video display window is a window on which a target video is displayed on the display screen, where a physical size of the video display window is smaller than or equal to a physical size of the display screen.
The watching distance from the video viewer to the video display window is the distance between the position of the video viewer and the central position of the display screen where the video display window is located. Alternatively, the viewing distance may be obtained by actual measurement, for example, the distance between the position of the video viewer to the center position of the display screen where the video display window is located may be measured by providing a distance detecting device such as a distance measuring sensor on the display screen. Optionally, the viewing distance may be obtained according to a mapping relationship between a preset device type of a device where the display screen is located and a viewing distance from a video viewer to a video display window of the display screen. Alternatively, the viewing distance may also be obtained by manual input from a video viewer.
S20, obtaining the minimum distance between two pixel points resolved by human eyes under the watching distance according to the watching distance and the minimum resolving angle of the human eyes.
The minimum resolution angle of the human eye refers to the minimum angular distance between two pixels that the human eye can resolve. Where angular distance refers to the amount of angle between the straight lines directed by the observer to the two objects, as viewed from a position other than the two objects (i.e., the third point). In the embodiment of the application, when the distance between two pixel points in the target video displayed on the video display window is greater than the minimum distance, the video picture image seen by the video viewer becomes blurred and unclear; when the distance between two pixel points in the target video displayed on the video display window is smaller than the minimum distance, the human eye does not feel the reduction of the definition of the video picture.
In this embodiment of the present application, after the viewing distance from the video viewer to the video display window is obtained, the minimum distance between two pixels resolved by the human eye under the viewing distance may be obtained in combination with the minimum resolution angle of the human eye.
S30, obtaining target resolution according to the physical size of the video display window and the minimum distance between the two pixel points.
In this embodiment of the present application, the target resolution is a video resolution that satisfies that a distance between two pixel points in a target video watched by a video viewer is smaller than the minimum distance when a physical size of the video display window and a viewing distance from the video viewer to the video display window are fixed.
S40, acquiring the target video adjusted to the target resolution, and sending the adjusted target video to the video display window for display.
The method for obtaining the target video corresponding to the target resolution can be various. Optionally, after the video playing terminal obtains the video transmitted by the server, the video is adjusted to the target video according to the target resolution, and then the video is sent to the video display window for display. Optionally, after receiving the video, the server may adjust the video to a target video according to the target resolution, and then send the target video to a video playing terminal, where the video playing terminal obtains the target video and sends the target video to the video display window for display. Optionally, after receiving the video, the server stores the video as a plurality of videos with different preset video resolutions, searches a corresponding target video according to the target resolution, and then sends the target video to a video playing terminal, wherein the video playing terminal obtains the target video and sends the target video to the video display window for display.
By applying the embodiment of the invention, the physical size of the video display window on the display screen and the watching distance from the video viewer to the video display window are obtained, and the minimum distance between two pixels of human eyes is obtained according to the watching distance and the minimum resolution angle of human eyes. And obtaining the target resolution of the target video according to the physical size of the video display window and the minimum distance between the two pixel points. The method comprises the steps of obtaining a target video corresponding to the target resolution, and sending the target video to a video display window for display, so that the video resolution is dynamically adjusted according to the physical size change of the video display window and the watching distance change from a video viewer to the video display window, and when the screen size of a display screen is overlarge, the total pixel amount of the target video is consistent with the total pixel amount of the video display window by obtaining the target video with higher resolution which is matched with the window resolution of the video display window on the display screen, so that the definition of video display is improved; when the screen size of the display screen is undersized, the bandwidth resource of video transmission is reduced by acquiring a lower resolution target video matched with the window resolution of a video display window on the display screen.
In an alternative embodiment, the step S10 of obtaining the physical size of the video display window on the display screen includes S11 to S12 specifically includes the following steps:
s11, acquiring the physical size of a display screen;
s12, obtaining the physical size of the video display window according to the ratio of the video display window in the display screen and the physical size of the display screen.
In the embodiment of the application, during the video conference, the video conference software can automatically plan the physical size of the video display windows according to the number of the video display windows. For example, in a full-screen video conference, the duty ratio of the video display window in the display screen is 1, and the physical size of the video display window is the physical size of the display screen. In a multi-person video conference, the ratio of the video display window to the display screen may be 1/4, 1/8, etc., and the physical size of the video display window may be automatically and quickly obtained according to the product of the ratio and the physical size of the display screen.
In an alternative embodiment, referring to fig. 3, the step of obtaining the physical dimensions of the display screen in step S11 includes steps S111 to S112, which are specifically as follows:
S111, when the display screen is an external screen, EDID data of the external screen is obtained through an HDMI interface of the external screen; and acquiring the physical size of the display screen according to the EDID data.
The intelligent video conference integrated machine integrates various devices such as a computer, a sound device, a remote conference terminal and the like, has various functions such as interactive document demonstration, split-screen remote conference, multi-terminal wireless screen transmission, network multimedia playing and the like, integrates various technologies such as high-definition display, man-machine interaction, multimedia information processing, network transmission and the like, and is commonly used in meeting rooms, media studio, education and training institutions and the like. In the embodiment of the application, the video playing terminal can be an intelligent video conference integrated machine; when the intelligent video conference integrated machine is used in a conference room, the intelligent video conference integrated machine is connected with an HDMI interface of an external screen through an HDMI line, and the external screen can be a display screen of a high-definition television. The HDMI (High Definition Multimedia Interface, high-definition multimedia interface) interface is a full digital video and audio transmission interface, and can transmit uncompressed audio and video signals. EDID (Extended display identification data ) is a standard established by VESA in formulating DDC display data channel communication protocols with respect to display identification data. The EDID is an important component of the HDMI interface, and the transmitting end and the receiving end of the HDMI interface negotiate various parameters transmitted by both parties through the EDID.
S112, when the display screen is not an external screen, acquiring the physical size of the display screen according to the parameter information built in the display screen.
For some small-sized discussions in daily life, such as interest and hobbies, video conferences can be performed by using video conference software installed on terminals such as mobile phones, tablets, and computers. And acquiring parameter information built in a display screen of the terminal by adding a detection program to the terminal, so as to acquire the physical size of the display screen. When the display screen is designed, parameters such as physical dimensions of the display screen are stored in parameter information built in the display screen. The physical size of the display screen can be automatically and accurately obtained for video conferences of different scenes.
In an alternative embodiment, referring to fig. 4, the physical dimensions of the display screen in step S12 include a screen width and a screen height, including steps S121 to S123, specifically as follows:
s121, acquiring screen resolution of the display screen and window resolution of the video display window;
s122, calculating the width ratio and the height ratio of the video display window in the display screen according to the window resolution and the screen resolution;
S123, taking the product of the width ratio and the screen width as the width dimension of the video display window, and taking the product of the high ratio and the screen height as the height dimension of the video display window to obtain the physical dimension of the video display window.
In the embodiment of the application, the screen resolution of the display screen can be obtained through a system interface or system built-in parameter information of the video receiving device.
The screen resolution includes a number of horizontal pixels and a number of vertical pixels of the display screen. And acquiring window resolution of a video display window through video conference software, wherein the window resolution comprises the number of horizontal pixels and the number of vertical pixels of the video display window. And taking the ratio of the number of horizontal pixels of the video display window to the number of horizontal pixels of the display screen as the width ratio of the video display window in the display screen. And taking the ratio of the number of vertical pixels of the video display window to the number of vertical pixels of the display screen as the height duty ratio of the video display window in the display screen, further taking the product of the width duty ratio and the screen width as the width dimension of the video display window, and taking the product of the height duty ratio and the screen height as the height dimension of the video display window to obtain the physical dimension of the video display window.
In an alternative embodiment, the step S10 of obtaining the viewing distance from the video viewer to the video display window includes steps S13 to S14, which are specifically as follows:
s13, acquiring the equipment type of the equipment where the display screen is located;
s14, obtaining the viewing distance from the video viewer corresponding to the equipment type to the video display window according to the equipment type and the mapping relation between the preset equipment type and the distance from the video viewer to the video display window of the display screen.
The optimal or appropriate viewing distance suggested to a video viewer is generally different for devices where display screens of different device types are located. The optimal or proper viewing distance refers to a distance that a video viewer can watch a video with good effect and is not easy to generate eye fatigue. In this embodiment of the present application, a mapping relationship between the device type and the viewing distance may be preset in a video playing terminal device, for example, when the device type is a mobile phone, the viewing distance is preset to be 25cm; when the equipment type is television, the watching distance is preset to be 2m, so that the watching distance from the video viewer corresponding to the equipment type to the video display window is obtained according to the equipment type and the mapping relation between the preset equipment type and the distance from the video viewer to the video display window of the display screen. The equipment type of the equipment is obtained through identifying the identification number of the equipment, the identification number of the equipment corresponds to the equipment one by one, and the identification number of the equipment can be an international mobile equipment identification number (IMEI) number.
In an alternative embodiment, the step S10 of obtaining the viewing distance from the video viewer to the video display window includes steps S15 to S16, which are specifically as follows:
s15, responding to triggering operation for adjusting the resolution ratio of the video, and displaying an operation interface on the display screen;
s16, obtaining the watching distance from the video viewer input on the operation interface to the video display window.
In this embodiment of the present application, when the display screen is an external screen, the viewing distance from the video viewer to the video display window will generally be different according to the physical size of the external screen. Therefore, in response to the triggering operation of adjusting the video resolution of the video viewer, an operation interface is displayed on the display screen, and the video viewer can manually input the viewing distance on the operation interface to obtain the viewing distance from the video viewer input on the operation interface to the video display window, so that the viewing distance is obtained more flexibly and accurately.
In an alternative embodiment, referring to fig. 5, the step S20 of obtaining the minimum distance between pixels that can be resolved by the human eye at the viewing distance according to the viewing distance and the minimum resolution angle of the human eye includes steps S21 to S22, specifically includes the following steps:
S21, obtaining the minimum resolution angle of the human eye according to the wavelength of the light waves emitted by the pixel points and the pupil diameter of the human eye.
When a video is played on a screen, each pixel point in the video is equivalent to a point light source, and visible light with a certain light wave wavelength emitted by the point light source is received by human eyes, so that the minimum resolution angle of the human eyes can be obtained according to the light wave wavelength emitted by the pixel point and the pupil diameter of the human eyes by the following formula:
Figure BDA0003452248220000111
wherein θ is the minimum resolution angle of the human eye, λ is the wavelength of the light wave emitted by the pixel point, and D is the diameter of the pupil of the human eye.
Generally, visible light generally refers to electromagnetic waves having a wavelength ranging from 390nm to 780nm, and the visible range of the human eye is: 300 nm-1000 nm. The pupil diameter of the human eye is generally 2mm to 8mm. In the embodiment of the application, the wavelength of light waves emitted by the pixel point is 1000nm, and the pupil diameter of the human eye is 5mm, so that the minimum resolution angle of the human eye can be obtained as follows:
Figure BDA0003452248220000112
s22, obtaining the minimum distance between two pixels resolved by the human eyes according to the product of the viewing distance and the minimum resolution angle of the human eyes.
After obtaining the minimum resolution angle of the human eye, calculating the minimum distance between two pixels resolved by the human eye according to the following formula:
d=f·θ, where d is the minimum distance between two pixels resolved by the human eye, and f is the viewing distance. For example, when the viewing distance f is 2m, the minimum distance between two pixels can be obtained by human eyes:
d=2*10 3 *2.44*10 -4 =0.488mm。
in an alternative embodiment, referring to fig. 6, the step S30 includes steps S31 to S33, which are specifically as follows:
s31, taking the ratio of the width of the video display window to the minimum distance between two pixel points as the target width pixel number of the target video;
s32, taking the ratio of the height of the video display window to the minimum distance between two pixel points as the target height pixel number of the target video;
s33, obtaining target resolution according to the target width pixel number and the target height pixel number.
Taking a 60 inch 4k display screen as an example, the screen width of the display screen is calculated to be 121.92cm and the screen height is calculated to be 91.44cm. The distance from the video viewer to the video display window is 2m, and the minimum distance between two pixels resolved by human eyes is 0.488nm. When the full screen is played, the physical size of the video display window is the physical size of the display screen, namely the width of the video display window is 121.92cm, and the height of the video display window is 91.44cm; then the ratio of the width of the video display window to the minimum distance between two pixels is 2498, i.e. the obtained target width pixel number is 2498. Similarly, the ratio of the height of the video display window to the minimum distance between the two pixels is 1874, i.e. the obtained target height pixel number. At this time, according to the target width pixel number and the target height pixel number, the target resolution 2498×1874 of the target video is obtained and is close to the video resolution 2560×1440 stored in the server, so that the target video with the video resolution 1440p is requested to the server side, and the target video is sent to the video display window for display.
Example 2
The following are examples of apparatus that may be used to perform the method of example 1 of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method in embodiment 1 of the present application.
Fig. 7 is a schematic structural diagram of a video resolution adjustment device according to an embodiment of the present application. The video resolution adjustment device 5 provided in the embodiment of the present application includes:
a size and viewing distance obtaining module 51, configured to obtain a physical size of a video display window on a display screen and a viewing distance from a video viewer to the video display window;
a minimum distance obtaining module 52, configured to obtain a minimum distance for the human eye to resolve two pixels at the viewing distance according to the viewing distance and a minimum resolution angle of the human eye;
a target resolution obtaining module 53, configured to obtain a target resolution of the target video according to a physical size of the video display window and the minimum distance between two pixels;
and the target video display module 54 is configured to acquire a target video corresponding to the target resolution, and send the adjusted target video to the video display window for display.
By applying the embodiment of the application, the physical size of the video display window on the display screen and the watching distance from the video viewer to the video display window are obtained, and the minimum distance between two pixels of human eyes is obtained according to the watching distance and the minimum resolution angle of human eyes. And obtaining the target resolution of the target video according to the physical size of the video display window and the minimum distance between the two pixel points. The method comprises the steps of obtaining a target video corresponding to the target resolution, and sending the target video to a video display window for display, so that the video resolution is dynamically adjusted according to the physical size change of the video display window and the watching distance change from a video viewer to the video display window, and when the screen size of a display screen is overlarge, the total pixel amount of the target video is consistent with the total pixel amount of the video display window by obtaining the target video with higher resolution which is matched with the window resolution of the video display window on the display screen, so that the definition of video display is improved; when the screen size of the display screen is undersized, the bandwidth resource of video transmission is reduced by acquiring a lower resolution target video matched with the window resolution of a video display window on the display screen.
In one embodiment of the present application, referring to fig. 8, the minimum distance obtaining module 52 includes:
a minimum resolution angle obtaining unit 522, configured to obtain a minimum resolution angle of the human eye according to the wavelength of the light wave emitted by the pixel point and the pupil diameter of the human eye;
and a minimum distance obtaining unit 524, configured to obtain a minimum distance between two pixels resolved by the human eye according to a product of the viewing distance and the minimum resolution angle of the human eye.
In one embodiment of the present application, referring to fig. 9, the target resolution obtaining module 53 includes:
a target width pixel number obtaining unit 532, configured to take a ratio of the width of the video display window to the minimum distance between two pixel points as a target width pixel number of the target video;
a target height pixel number obtaining unit 534, configured to use a ratio of the height of the video display window to the minimum distance between two pixel points as a target height pixel number of the target video;
a target resolution obtaining unit 536, configured to obtain a target resolution of the target video according to the target width pixel number and the target height pixel number.
Example 3
The following are system embodiments of the present application that may be used to perform the method of embodiment 1 of the present application. For details not disclosed in the system embodiment of the present application, please refer to the content of the method in embodiment 1 of the present application.
Referring to fig. 10, the present application further provides a video resolution adjustment system 200, including a video stream acquisition device 4000, a video playing terminal 5000, and a server 6000; the video stream acquisition device 4000 and the video playing terminal 5000 are respectively in communication connection with the server 6000;
the video stream collection device 4000 sends the collected video to be adjusted to the server 6000, the server 6000 obtains the video to be adjusted, and the video playing terminal 5000 obtains the physical size of a video display window on a display screen and the watching distance from a video viewer to the video display window; the video display window is used for displaying a target video; obtaining the minimum distance between two pixels resolved by human eyes under the watching distance according to the watching distance and the minimum resolving angle of the human eyes; obtaining target resolution of the target video according to the physical size of the video display window and the minimum distance between two pixel points; and acquiring a target video of which the video to be adjusted is adjusted to the target resolution, and sending the adjusted target video to the video display window for display.
In one embodiment of the present application, the video resolution adjustment system 200 further includes: the server 6000 adjusts the acquired video to be adjusted to a plurality of preset videos with different resolutions, the video playing terminal 5000 sends the target resolution to the server 6000, the server 6000 takes the video with the preset resolution closest to the target resolution as the target video according to the target resolution, and the target video is sent to the video playing terminal 5000. For example, if the server adjusts the acquired video to be adjusted to a preset plurality of videos with different resolutions, such as a video with 720p resolution, a video with 1080p resolution, a video with 1440p resolution, a video with 2160p resolution, and the like. When the target resolution is 2498×1874, when the video playing terminal 5000 sends the target resolution 2498×1874 to the server 6000, the server 6000 takes the video with the preset resolution 1440p closest to the target resolution as the target video according to the target resolution 2498×1874, and sends the target video 1440p to the video playing terminal 5000.
Example 4
The following are device embodiments of the present application that may be used to perform the method of embodiment 1 of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method in embodiment 1 of the present application.
Referring to fig. 11, the present application further provides an electronic device 300, which may be specifically a computer, a mobile phone, a tablet computer, an interactive tablet, etc., in an exemplary embodiment of the present application, the electronic device 300 is a video playing terminal, and the video playing terminal may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, a user interface 304, and at least one communication bus 305.
The user interface 304 is mainly used for providing an input interface for a user, and acquiring data input by the user. Optionally, the user interface may further include a standard wired interface, a wireless interface.
The network interface 303 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the communication bus 305 is used to enable connection communications between these components.
Wherein the processor 301 may comprise one or more processing cores. The processor uses various interfaces and lines to connect various portions of the overall electronic device, perform various functions of the electronic device, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in memory, and invoking data stored in memory. Alternatively, the processor may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented by a single chip.
The Memory 302 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory may be used to store instructions, programs, code sets, or instruction sets. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory may optionally also be at least one storage device located remotely from the aforementioned processor. As shown in fig. 11, an operating system, a network communication module, a user interface module, and an operating application program may be included in a memory as one type of computer storage medium.
The processor may be configured to call an application program of the video resolution adjustment method stored in the memory, and specifically execute the method steps of the foregoing embodiment 1, and the specific execution process may refer to the specific description shown in embodiment 1, which is not repeated herein.
Example 5
The present application further provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the above-described embodiment 1, and the specific execution process may refer to the specific description shown in the embodiment, which is not repeated herein. The storage medium can be an electronic device such as a personal computer, a notebook computer, a smart phone, a tablet personal computer and the like.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (13)

1. A method for adjusting video resolution, comprising:
acquiring the physical size of a video display window on a display screen and the watching distance from a video viewer to the video display window;
obtaining the minimum distance between two pixels resolved by human eyes under the watching distance according to the watching distance and the minimum resolving angle of the human eyes;
Obtaining target resolution according to the physical size of the video display window and the minimum distance between two pixel points;
and acquiring the target video adjusted to the target resolution, and sending the adjusted target video to the video display window for display.
2. The video resolution adjustment method according to claim 1, characterized in that:
the step of obtaining the minimum distance between the pixels which can be resolved by the human eyes under the watching distance according to the watching distance and the minimum resolution angle of the human eyes comprises the following steps:
obtaining the minimum resolution angle of the human eye according to the wavelength of the light waves emitted by the pixel points and the pupil diameter of the human eye;
and obtaining the minimum distance between two pixels resolved by the human eyes according to the product of the viewing distance and the minimum resolution angle of the human eyes.
3. The video resolution adjustment method according to claim 1, characterized in that:
the physical size of the video display window comprises the width of the video display window and the height of the video display window; the step of obtaining the target resolution according to the physical size of the video display window and the minimum distance between two pixels includes:
taking the ratio of the width of the video display window to the minimum distance between two pixel points as the target width pixel number of the target video;
Taking the ratio of the height of the video display window to the minimum distance between two pixel points as the target height pixel number of the target video;
and obtaining the target resolution according to the target width pixel number and the target height pixel number.
4. The video resolution adjustment method according to claim 1, characterized in that:
the step of obtaining the physical size of the video display window on the display screen comprises the following steps:
acquiring the physical size of a display screen;
and obtaining the physical size of the video display window according to the ratio of the video display window in the display screen and the physical size of the display screen.
5. The video resolution adjustment method according to claim 4, wherein:
the physical dimensions of the display screen include screen width and screen height; the step of obtaining the physical size of the video display window according to the ratio of the video display window in the display screen and the physical size of the display screen comprises the following steps:
acquiring the screen resolution of the display screen and the window resolution of the video display window;
calculating the width ratio and the height ratio of the video display window in the display screen according to the window resolution and the screen resolution;
And taking the product of the width ratio and the screen width as the width dimension of the video display window, and taking the product of the high ratio and the screen height as the height dimension of the video display window to obtain the physical dimension of the video display window.
6. The video resolution adjustment method according to claim 4, wherein:
the step of obtaining the physical size of the display screen comprises the following steps:
when the display screen is an external screen, EDID data of the external screen is obtained through an HDMI interface of the external screen; according to the EDID data, acquiring the physical size of a display screen;
and when the display screen is not an external screen, acquiring the physical size of the display screen according to the parameter information built in the display screen.
7. The video resolution adjustment method according to claim 1, characterized in that:
the step of obtaining the viewing distance from the video viewer to the video display window includes:
acquiring the equipment type of the equipment where the display screen is located;
and obtaining the viewing distance from the video viewer corresponding to the equipment type to the video display window according to the equipment type and the mapping relation between the preset equipment type and the viewing distance from the video viewer to the video display window of the display screen.
8. The video resolution adjustment method according to claim 1, characterized in that:
the step of obtaining the distance from the video viewer to the video display window comprises the following steps:
responding to a triggering operation for adjusting the resolution of the video, and displaying an operation interface on the display screen;
and acquiring the watching distance from the video viewer input on the operation interface to the video display window.
9. A video resolution adjustment apparatus, comprising:
the size and viewing distance acquisition module is used for acquiring the physical size of a video display window on a display screen and the viewing distance from a video viewer to the video display window;
the minimum distance obtaining module is used for obtaining the minimum distance between two pixel points resolved by human eyes under the watching distance according to the watching distance and the minimum resolution angle of the human eyes;
the target resolution obtaining module is used for obtaining target resolution according to the physical size of the video display window and the minimum distance between the two pixel points;
and the target video display module is used for acquiring the target video corresponding to the target resolution, and sending the adjusted target video to the video display window for display.
10. A video resolution adjustment system, comprising:
video stream acquisition equipment, a video playing terminal and a server; the video stream acquisition equipment and the video playing terminal are respectively in communication connection with the server;
the video stream acquisition equipment sends acquired videos to be adjusted to the server; the server acquires a video to be adjusted;
the video playing terminal obtains the physical size of a video display window on a display screen and the watching distance from a video viewer to the video display window; the video display window is used for displaying a target video; obtaining the minimum distance between two pixels resolved by human eyes under the watching distance according to the watching distance and the minimum resolving angle of the human eyes; obtaining target resolution of the target video according to the physical size of the video display window and the minimum distance between two pixel points; and acquiring a target video of which the video to be adjusted is adjusted to the target resolution, and sending the adjusted target video to the video display window for display.
11. The video resolution adjustment system according to claim 10, further comprising:
The server adjusts the acquired video to be adjusted to a plurality of preset videos with different resolutions;
the video playing terminal sends the target resolution to the server;
and the server takes the video with the preset resolution closest to the target resolution as a target video according to the target resolution, and sends the target video to the video playing terminal.
12. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the video resolution adjustment method according to any one of claims 1 to 8.
13. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the video resolution adjustment method according to any one of claims 1 to 8.
CN202111677032.1A 2021-12-31 2021-12-31 Video resolution adjustment method and device, storage medium and electronic equipment Pending CN116418937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111677032.1A CN116418937A (en) 2021-12-31 2021-12-31 Video resolution adjustment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111677032.1A CN116418937A (en) 2021-12-31 2021-12-31 Video resolution adjustment method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116418937A true CN116418937A (en) 2023-07-11

Family

ID=87050124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111677032.1A Pending CN116418937A (en) 2021-12-31 2021-12-31 Video resolution adjustment method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116418937A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926874A (en) * 2004-03-04 2007-03-07 三星电子株式会社 Method and apparatus for video coding, predecoding, and video decoding for video streaming service, and image filtering method
CN102246458A (en) * 2008-12-15 2011-11-16 微软公司 Video conferencing subscription using multiple bit rate streams
CN110536176A (en) * 2019-07-31 2019-12-03 深圳银澎云计算有限公司 A kind of video resolution method of adjustment, electronic equipment and storage medium
CN111078347A (en) * 2019-12-23 2020-04-28 维沃移动通信有限公司 Screen display method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926874A (en) * 2004-03-04 2007-03-07 三星电子株式会社 Method and apparatus for video coding, predecoding, and video decoding for video streaming service, and image filtering method
CN102246458A (en) * 2008-12-15 2011-11-16 微软公司 Video conferencing subscription using multiple bit rate streams
CN110536176A (en) * 2019-07-31 2019-12-03 深圳银澎云计算有限公司 A kind of video resolution method of adjustment, electronic equipment and storage medium
CN111078347A (en) * 2019-12-23 2020-04-28 维沃移动通信有限公司 Screen display method and electronic equipment

Similar Documents

Publication Publication Date Title
Rehman et al. Display device-adapted video quality-of-experience assessment
US9165535B2 (en) System and method for determining a zoom factor of content displayed on a display device
US10638194B2 (en) Embedding interactive objects into a video session
EP2840800A1 (en) Content-based audio/video adjustment
US9674516B2 (en) Systems and methods for picture quality monitoring
US20180077461A1 (en) Electronic device, interractive mehotd therefor, user terminal and server
US10110647B2 (en) Method and apparatus for altering bandwidth consumption
US10531153B2 (en) Cognitive image obstruction
CA2923949A1 (en) Methods and systems for content presentation optimization
US11706465B2 (en) ATSC 3.0 advertising notification using event streams
US20150325210A1 (en) Method for real-time multimedia interface management
US11683442B2 (en) Methods, systems and apparatus for providing video communications
US10771855B1 (en) Deep characterization of content playback systems
CN109076251B (en) Teleconferencing transmission
CN112770171A (en) Content display method, device, system, equipment and storage medium
Kara et al. The perceived quality of light-field video services
CN116418937A (en) Video resolution adjustment method and device, storage medium and electronic equipment
US20150220978A1 (en) Intelligent multichannel advertisement server
JP7339435B2 (en) Foveal Optimization of TV Streaming and Rendering Content Assisted by Personal Devices
US10440266B2 (en) Display apparatus and method for generating capture image
US11908340B2 (en) Magnification enhancement of video for visually impaired viewers
TW202236845A (en) Video display method, device, equipment, and storage medium to see the video images of the host and the audience at the same time and perceive each other's behavior for facilitating more forms of interaction
CN117499577A (en) Classroom remote monitoring method, device, equipment and medium based on web browser
TW202034151A (en) Display device and screen capture system with which a user may conveniently access a video file from a remote site
KR20170092239A (en) Method, server and computer-readable recording media for providing home shopping broadcasting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination