CN111385607A - Resolution determination method and device, storage medium, client and server - Google Patents

Resolution determination method and device, storage medium, client and server Download PDF

Info

Publication number
CN111385607A
CN111385607A CN201811641300.2A CN201811641300A CN111385607A CN 111385607 A CN111385607 A CN 111385607A CN 201811641300 A CN201811641300 A CN 201811641300A CN 111385607 A CN111385607 A CN 111385607A
Authority
CN
China
Prior art keywords
resolution
video stream
server
video
sending
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
CN201811641300.2A
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201811641300.2A priority Critical patent/CN111385607A/en
Publication of CN111385607A publication Critical patent/CN111385607A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application discloses a resolution determination method, a resolution determination device, a storage medium, a client and a server. The method comprises the following steps: zooming a first-resolution video stream displayed in a local screen according to zooming operation data of a user on the first-resolution video stream, and obtaining a target area; determining a second resolution of the video stream to be displayed at the local end according to the range of the target area; generating and sending an acquisition request of a second resolution video stream to a server; and receiving the second-resolution video stream transmitted by the server. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.

Description

Resolution determination method and device, storage medium, client and server
Technical Field
The embodiment of the application relates to the technical field of video playing, in particular to a resolution determination method, a resolution determination device, a resolution determination storage medium, a resolution determination client and a resolution determination server.
Background
At present, with the rapid development of network communication level, it has become an extremely common thing to monitor a specific area through a camera.
However, the recorded video occupies a large space, and if the resolution of the recording process is too high, the video cannot be displayed according to the recorded resolution on the viewing terminal of the user, which causes unnecessary consumption of data traffic and decoding, rendering, and the like. Conversely, if the resolution of the recording process is too low, some details in the video cannot be clearly shown to the user, which affects the user's viewing of the video.
Disclosure of Invention
The embodiment of the application provides a resolution determination method and device, a storage medium, a client and a server, which can achieve the effect of providing video resolution matched with a watching terminal for a user.
In a first aspect, an embodiment of the present application provides a method for determining resolution, where the method includes:
zooming a first-resolution video stream displayed in a local screen according to zooming operation data of a user on the first-resolution video stream, and obtaining a target area;
determining a second resolution of the video stream to be displayed at the local end according to the range of the target area;
generating and sending an acquisition request of a second resolution video stream to a server;
and receiving the second-resolution video stream transmitted by the server.
Further, generating and sending an acquisition request of the second-resolution video stream to the server includes:
and sending a video stream acquisition request comprising the second resolution and the range of the target area to the server, wherein the video stream acquisition request is used for instructing the server to extract the range of the target area from the range of the original video.
Further, before zooming the first-resolution video stream displayed in the local end screen according to the zoom operation data of the first-resolution video stream by the user and obtaining the target area, the method further includes:
determining a first resolution according to the transverse resolution and the longitudinal resolution of the local end screen;
an acquisition request for the first resolution video stream is generated and sent to the server.
In a second aspect, an embodiment of the present application further provides a resolution determination method, where the method includes:
sending a first resolution video stream to a client;
when an acquisition request of a second-resolution video stream is received, controlling a video source to acquire a video at a second resolution;
and sending the second-resolution video stream to the client.
Further, after controlling the video source to acquire video at the second resolution when the acquisition request of the second resolution video stream is received, the method further comprises:
and extracting the range of the target area from the original video range of the video source acquired at the second resolution according to the range of the target area in the acquisition request of the received second-resolution video stream.
Further, before sending the second-resolution video stream to the client, the method further includes:
judging whether the second resolution is the level supported by the code stream resolution;
if not, determining the resolution of the minimum level higher than the second resolution in the levels supported by the resolution of all the code streams as a second resolution correction value;
correspondingly, sending the second-resolution video stream to the client comprises:
and sending the video stream with the resolution being the second resolution correction value to the client.
In a third aspect, an embodiment of the present application further provides a resolution determination apparatus, configured at a client, where the apparatus includes:
the target area determining module is used for zooming the first resolution video stream displayed in the local end screen according to the zooming operation data of the first resolution video stream displayed by the user and obtaining a target area;
the second resolution determining module is used for determining the second resolution of the video stream to be displayed at the local end according to the range of the target area;
the acquisition request sending module is used for generating and sending an acquisition request of the second-resolution video stream to the server;
and the video stream receiving module is used for receiving the second-resolution video stream sent by the server.
In a fourth aspect, an embodiment of the present application further provides an apparatus for determining a resolution, where the apparatus is configured at a server, and the apparatus includes:
the first resolution video stream sending module is used for sending the first resolution video stream to the client;
the resolution switching module is used for controlling the video source to acquire the video at the second resolution when receiving an acquisition request of the second resolution video stream;
and the second resolution video stream sending module is used for sending the second resolution video stream to the client.
In a fifth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining the resolution according to the first aspect or the second aspect of the present application.
In a sixth aspect, an embodiment of the present application provides a client, where the client is communicatively connected to a server, and the client includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the method for determining the resolution according to the first aspect of the embodiment of the present application.
In a seventh aspect, an embodiment of the present application provides a server, where the server includes: a processor, a memory, a communication interface, and a bus; the processor is connected with the memory and the communication interface through the bus; the memory stores computer-executable instructions; the processor calls the computer-executable instructions stored in the memory to cause the processor to perform the resolution determination method according to the second aspect of the embodiments of the present application.
According to the technical scheme provided by the embodiment of the application, the video stream with the first resolution ratio is zoomed according to the zooming operation data of the video stream with the first resolution ratio displayed in the local end screen by a user, and a target area is obtained; determining a second resolution of the video stream to be displayed at the local end according to the range of the target area; generating and sending an acquisition request of a second resolution video stream to a server; and receiving the second-resolution video stream transmitted by the server. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.
Drawings
Fig. 1 is a flowchart of a resolution determination method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a target area range provided in an embodiment of the present application;
fig. 3 is a flowchart of a resolution determination method provided in the second embodiment of the present application;
fig. 4 is a schematic structural diagram of a resolution determination apparatus provided in the third embodiment of the present application;
fig. 5 is a schematic structural diagram of a resolution determination apparatus provided in the fourth embodiment of the present application;
fig. 6 is a schematic structural diagram of a client provided in the present application;
fig. 7 is a schematic structural diagram of a server provided in the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a resolution determination method provided in an embodiment of the present application, where the present embodiment is applicable to a resolution determination situation, and the method may be executed by a resolution determination apparatus configured on a client provided in an embodiment of the present application, where the apparatus may be implemented by software and/or hardware, and may be integrated in a user terminal.
As shown in fig. 1, the method for determining the resolution includes:
s110, zooming the first-resolution video stream according to zooming operation data of the first-resolution video stream displayed in the local end screen by a user, and obtaining a target area.
The client may be an application program on the user's smart mobile terminal, and the application program may be used to connect to the server, receive the recorded video of the video source, and support general functions of playback and the like for operating video content. The resolution supported by the local end screen may be a first resolution, and since it is necessary to distinguish whether the video is displayed in a full screen or in a split screen at the local end, the embodiment is explained by default as full screen display, and if the video is displayed in a split screen, the supported resolution may be determined according to the size of a split screen display window.
In the technical scheme, the first resolution supported by the local end can be determined according to the local end screen, so that the first resolution video stream can be acquired from the server end. During the process of displaying the video, the zoom operation of the user may be detected, for example, if the content originally displayed is the content of the original video source, and the user performs a touch zoom operation with two fingers, the range of the video displayed in the screen may be relatively small, possibly 1/4, and the obtained target area may be the area range finally displayed on the local screen. In addition, the first resolution may also be a resolution after an enlarging operation, for example, after a user enlarges an original video source range, only the original 1/4 range is displayed, the resolution may be enlarged by 4 times, and the first resolution may be a resolution after the original 1/4 range is enlarged, and the user's enlarging or reducing operation may be received during the playing process.
And S120, determining a second resolution of the video stream to be displayed at the local end according to the range of the target area.
Depending on the extent of the target area, it may be determined that the extent of the current screen presentation determines the display resolution supported for this extent. For example, when originally displaying all the ranges recorded by a video source, the resolution of the display is determined by the maximum display resolution supported by the screen, for example, 100 ten thousand. Then the range now displayed in the screen becomes 1/4 of the original range after zooming in, then the maximum display resolution that can be supported for this 1/4 range is still the display resolution of the local end screen, i.e., 100 ten thousand, and then at the video source the video resolution that can be supported changes from 100 ten thousand originally to 400 ten thousand now. It is thus also determined that after determining the extent of the target region, the second resolution can be determined from this extent.
And S130, generating and sending an acquisition request of the second-resolution video stream to the server.
And after the second resolution is determined, sending a second resolution video stream acquisition request to the server. And enabling the server to perform resolution conversion on the video according to the second resolution and sending the video to the client. The server can receive the video recorded by the video source according to the highest resolution, process the video with the highest resolution into the most suitable resolution (second resolution) according to different resolution requests of different clients, and send the most suitable resolution to the clients.
And S140, receiving the second-resolution video stream sent by the server.
After receiving the second resolution video stream, the video within the target area can be displayed at the second resolution, so that the user can still see a clear picture after zooming.
In the present embodiment, the first resolution is taken as the maximum resolution supported by the screen for example, but the resolution after being enlarged by 4 times can be completely used as the first resolution, that is, 400 ten thousand pixels, and after receiving the reduction operation of the user, for example, the original range of the video source is reduced, the second resolution, that is, 100 ten thousand pixels, can be determined, and then the video stream with the second resolution can be received. The advantage of setting up like this can be according to the video resolution ratio of user's actual needs, come the video resolution ratio of confirming from the transmission of server end, just so can avoid the waste of flow, can also avoid the user to enlarge the back, to some detail content show not clear enough.
According to the technical scheme provided by the embodiment of the application, the video stream with the first resolution ratio is zoomed according to the zooming operation data of the video stream with the first resolution ratio displayed in the local end screen by a user, and a target area is obtained; determining a second resolution of the video stream to be displayed at the local end according to the range of the target area; generating and sending an acquisition request of a second resolution video stream to a server; and receiving the second-resolution video stream transmitted by the server. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.
On the basis of the above technical solution, optionally, generating and sending an acquisition request of the second resolution video stream to the server includes: and sending a video stream acquisition request comprising the second resolution and the range of the target area to the server, wherein the video stream acquisition request is used for instructing the server to extract the range of the target area from the range of the original video.
It should be noted that the range of the target area is relative to the original video range acquired by the video source, and the range of the target area may be determined not only according to the zoom operation of the user, but also according to the zoom and pan operations of the user, where the zoom operation may be determined according to a zoom factor, and the pan operation may perform pan in any direction within the original video range.
Fig. 2 is a schematic view of a target area range according to an embodiment of the present application. As shown in fig. 2, the video source range is the outermost rectangular range, which may be the range captured by the camera. The range of the target area can be an internal rectangular range, and any range in the video source range can be displayed on a screen of a mobile terminal of a user through translation after the video is amplified. In this embodiment, the target area range may be determined by coordinates, for example, the horizontal direction is an x-axis, the vertical direction is a y-axis, and the upper left corner of the video source range is a coordinate origin.
In the technical scheme, the definition PPI (pixel per inch) of the mobile phone screen of the user mobile terminal is used as a screen parameter of the local terminal. The target area range may be determined as follows.
First, assume the resolution supported by the screen is Xmax × Ymax. if enlarged, the video source range can be enlarged to the target area range, at which point the video source resolution is calculated by satisfying the target area resolution optimization, the enlargement factor for the video playback area is alfa, at which point the video source resolution needs to be set to X 'max × Y' max in order to satisfy the target area resolution Xmax × Ymax, as calculated as follows
X’max=Xmax*alfa;
Y’max=Ymax*alfa;
Where alfa is an initial value, alfa >1 when an amplification operation is performed, and alfa <1 when a reduction operation is performed.
Let the coordinates of the center point of the gesture zoom operation be (x0, y0), at this time, the video playing area is zoomed in by the zoom gesture, and when the zoom factor is alfa, the origin coordinates of the target area video in the video source file are ((alfa-1) × x0, (alfa-1) × y 0).
When the server is able to configure video streams of all resolutions, the location and area of the target area in the video source file can be represented by [ x, y, w, h ], as shown in fig. 2. Wherein x and y represent coordinate values of the upper left corner of the target area, w and h represent the width and height of the target area, and the specific calculation formula is as follows:
x=(alfa-1)×x0+k;
y=(alfa-1)×y0+j;
w=Xmax;
h=Ymax;
with the above formula, the range of the target region may be determined, and after the range of the target region is determined, a video stream acquisition request including the second resolution and the range of the target region may be transmitted to the server, where the video stream acquisition request is used to instruct the server to extract the range of the target region from the range of the original video. Specifically, the server can intercept the target area range in the video source range according to [ x, y, w, h ], extract and send the extracted target area range to the client, so that the set advantage is that the flow transmission of the client can be saved, only the video stream in the display range is transmitted, and meanwhile, the decoding burden is reduced.
On the basis of the foregoing technical solution, optionally, before zooming the first-resolution video stream displayed in the local end screen according to the zoom operation data of the first-resolution video stream by the user and obtaining the target region, the method further includes: determining a first resolution according to the transverse resolution and the longitudinal resolution of the local end screen; an acquisition request for the first resolution video stream is generated and sent to the server. Wherein the first resolution may default to the resolution of the unscaled video stream, i.e. determined by the horizontal and vertical resolution of the local end screen.
In this technical solution, specifically, a concept of a point may be defined, where the point: is a standard unit of length, 1 point 1/72 inches. In general, 1 point can represent 1-3 pixels, and the specific situation is determined by the PPI of the mobile phone screen. In order to display the optimal resolution at the client, the resolution of the video playing area can be calculated according to the size of the playing area control and the PPI condition of the mobile phone screen. For example, assume that the play area control is an Xsize point long and a Ysize point wide. The dots here are units of length, each dot representing a Pcount number of pixels. The size of Pcount is determined by the PPI of the cell phone screen, for example, the PPI of iPhone6 screen is 326, each point of which corresponds to 2 pixels, and Pcount is 2; and the PPI of the iPhone6Plus screen is 401, each point of which corresponds to 3 pixels, where Pcount is 3.
The technical scheme has the advantages that the number of points on the screen can be determined according to the size, the model and the like of the screen of the client, and the transverse resolution and the longitudinal resolution of the screen are further determined according to the PPI of the screen. The calculation method is simple, convenient and quick, and can be favorable for determining the resolution of the video source range.
Example two
Fig. 3 is a flowchart of a resolution determination method provided in the second embodiment of the present application. The embodiment can be applied to the determination of the video resolution, and the method can be executed by the resolution determination device configured in the server provided by the embodiment of the application, and the device can be implemented by software and/or hardware and can be integrated in the server.
As shown in fig. 3, the method for determining the resolution includes:
and S310, sending the first-resolution video stream to the client.
After receiving a first resolution video stream acquisition request from the client, the video source acquisition end may be controlled to record a video with the first resolution and send the video to the client. The video source acquisition end can be one or more cameras, and the camera can record according to the highest resolution ratio at the video recording in-process, after sending the video to the server, the server can provide the resolution ratio video stream with resolution ratio demand assorted for the client according to the resolution ratio demand of client. In addition, the server can record only the video source acquisition end at a higher video resolution, and perform downsampling processing on the video according to the received video stream acquisition request of the client, so as to obtain the video resolution matched with the video stream acquisition request.
And S320, controlling the video source to acquire the video at the second resolution when the acquisition request of the second resolution video stream is received.
In this embodiment, the second resolution may be greater than the first resolution or smaller than the first resolution, and when an acquisition request of a video stream of the second resolution is received, the video source is controlled to acquire a video at the second resolution, so that a quick response can be performed on the request of the client.
And S330, sending the second-resolution video stream to the client.
After the second-resolution video stream is sent to the client, the transmission of the first-resolution video stream can be stopped, so that a user can see a smoother video picture, and the use experience of the user is improved.
On the basis of the foregoing technical solution, optionally, after controlling the video source to acquire the video at the second resolution when the acquisition request of the second resolution video stream is received, the method further includes: and extracting the range of the target area from the original video range of the video source acquired at the second resolution according to the range of the target area in the acquisition request of the received second-resolution video stream. The target area range can be extracted from the original range of the video source according to the parameters obtained in the first embodiment, and thus the advantage is that the server only sends the video information of the target area, and the client only needs to receive the video information of the target area, so that the video information outside the target area range is not transmitted, that is, the waste of network bandwidth and traffic is avoided.
On the basis of the above technical solution, optionally, before sending the second-resolution video stream to the client, the method further includes: judging whether the second resolution is the level supported by the code stream resolution; if not, determining the resolution of the minimum level higher than the second resolution in the levels supported by the resolution of all the code streams as a second resolution correction value; correspondingly, sending the second-resolution video stream to the client comprises: and sending the video stream with the resolution being the second resolution correction value to the client. Where, for example, the codestream resolution supported by the server supports n levels. For example, a camera of 1600 ten thousand pixels supports 6 levels, 1600 ten thousand, 1200 ten thousand, 800 ten thousand, 400 ten thousand, 200 ten thousand, 100 ten thousand respectively. The resolution information which can be supported by the server is acquired before the client plays the live condition, and preparation is made for automatic resolution switching later. In this technical solution, if the actual requirement of the acquired second resolution is 380 ten thousand pixels, the minimum resolution that is greater than the second resolution in the levels supported by the code stream resolution may be used as the actually transmitted video resolution, that is, 400 ten thousand pixels in the above example. The advantage of this embodiment is that the minimum resolution that meets the requirements of the client can be provided for the client according to the video resolution supported by the server, so that the requirements of the client can be met, the waste of traffic and performance can be avoided, and the most suitable matching effect can be achieved.
It should be noted that, based on the above technical solution, if the resolution is switched during the amplification process, the amplification factor needs to be calibrated, and the calibration formula is alfa ═ beta. Where beta is the calibration coefficient. beta is the preset video source resolution/the final set video source resolution. Examples are: when the playing is started, 100 ten thousand pixels are used for playing; when the user enlarges 3 times through gesture enlarging operation, the resolution of the video source to be configured is calculated to be 300 ten thousand, but the resolution of the video source is not supported by 300 ten thousand, so that only 400 ten thousand pixels can be configured. At this time, the configured resolution of the video source needs to be scaled, that is, the scaling factor (also called calibration factor) is 300/400 ten thousand. The final scaling factor alfa is therefore 3 (300 ten thousand/400 ten thousand) 2.25.
According to the technical scheme provided by the embodiment of the application, the server side is configured with: sending a first resolution video stream to a client; when an acquisition request of a second-resolution video stream is received, controlling a video source to acquire a video at a second resolution; and sending the second-resolution video stream to the client. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a resolution determination apparatus according to a third embodiment of the present application. The device provided by the embodiment is configured at the client. As shown in fig. 4, the resolution determination device includes:
a target area determining module 410, configured to zoom the first-resolution video stream displayed in the local end screen according to the zoom operation data of the first-resolution video stream by the user, and obtain a target area;
a second resolution determining module 420, configured to determine a second resolution of the video stream to be displayed at the local end according to the range of the target region;
an obtaining request sending module 430, configured to generate and send an obtaining request of the second resolution video stream to the server;
and a video stream receiving module 440, configured to receive the second resolution video stream sent by the server.
According to the technical scheme provided by the embodiment of the application, the video stream with the first resolution ratio is zoomed according to the zooming operation data of the video stream with the first resolution ratio displayed in the local end screen by a user, and a target area is obtained; determining a second resolution of the video stream to be displayed at the local end according to the range of the target area; generating and sending an acquisition request of a second resolution video stream to a server; and receiving the second-resolution video stream transmitted by the server. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.
The resolution determination apparatus may perform the resolution determination method provided in the first embodiment of the present application, and reference may be made to the first embodiment of the present application for details, where the details are not described herein, and the resolution determination apparatus has functional modules and beneficial effects corresponding to the resolution determination method.
Example four
Fig. 5 is a schematic structural diagram of a resolution determination apparatus according to a fourth embodiment of the present application. The device provided by the embodiment is configured on the server. As shown in fig. 5, the resolution determination device includes:
a first resolution video stream sending module 510, configured to send a first resolution video stream to a client;
a resolution switching module 520, configured to control the video source to acquire a video at a second resolution when an acquisition request of a second resolution video stream is received;
a second resolution video stream sending module 530, configured to send the second resolution video stream to the client.
According to the technical scheme provided by the embodiment of the application, the server side is configured with: sending a first resolution video stream to a client; when an acquisition request of a second-resolution video stream is received, controlling a video source to acquire a video at a second resolution; and sending the second-resolution video stream to the client. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.
The resolution determination apparatus may perform the resolution determination method provided in the second embodiment of the present application, and reference may be made to the functional modules and advantageous effects corresponding to the resolution determination method, where the details are not explained in detail.
EXAMPLE five
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a resolution determination method, the method comprising:
zooming a first-resolution video stream displayed in a local screen according to zooming operation data of a user on the first-resolution video stream, and obtaining a target area;
determining a second resolution of the video stream to be displayed at the local end according to the range of the target area;
generating and sending an acquisition request of a second resolution video stream to a server;
and receiving the second-resolution video stream transmitted by the server.
Or performing:
sending a first resolution video stream to a client;
when an acquisition request of a second-resolution video stream is received, controlling a video source to acquire a video at a second resolution;
and sending the second-resolution video stream to the client.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the determination operation of the resolution as described above, and may also perform related operations in the determination method of the resolution provided in any embodiment of the present application.
EXAMPLE six
The application also provides a client, and the client is in communication connection with the server. Fig. 6 is a schematic structural diagram of a client according to the present application. As shown in fig. 6, the client includes a memory 601, a processor 602 and a computer program stored on the memory 601 and executable by the processor, and the processor 602, when executing the computer program, implements the resolution determination method according to the first embodiment of the present application.
Wherein the processor 602 is configured to:
zooming a first-resolution video stream displayed in a local screen according to zooming operation data of a user on the first-resolution video stream, and obtaining a target area;
determining a second resolution of the video stream to be displayed at the local end according to the range of the target area;
generating and sending an acquisition request of a second resolution video stream to a server;
and receiving the second-resolution video stream transmitted by the server.
According to the technical scheme provided by the embodiment of the application, the video stream with the first resolution ratio is zoomed according to the zooming operation data of the video stream with the first resolution ratio displayed in the local end screen by a user, and a target area is obtained; determining a second resolution of the video stream to be displayed at the local end according to the range of the target area; generating and sending an acquisition request of a second resolution video stream to a server; and receiving the second-resolution video stream transmitted by the server. By adopting the technical scheme provided by the embodiment of the application, the effect of providing the video resolution matched with the watching terminal for the user can be realized.
The client may include the resolution determining apparatus provided in the third embodiment of the present application, and may execute the resolution determining method provided in the first embodiment of the present application, and for details, reference may be made to the functional module and the beneficial effect corresponding to the resolution determining method provided in the first embodiment of the present application.
EXAMPLE seven
The application may also provide a server. Fig. 7 is a schematic structural diagram of a server provided in the present application. As shown in fig. 7, the server 700 may include: a processor 701, a memory 702, a communication interface 703, and a bus 704. The processor 701 is connected to a memory 702 and a communication interface 703 through a bus 704.
The processor 701 may be a Central Processing Unit (CPU). The processor 701 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 702 may include a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); the Memory 702 may also include a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk Drive (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); the memory 702 may also comprise a combination of the above types of memory.
The communication interface 703 may be specifically an interface circuit, and is used for receiving and sending signals in the process of receiving and sending information or a request, and after receiving information sent by an external device, the communication interface 703 sends the information to the processor 701 for processing; in addition, the communication interface 703 may communicate with a network and other devices through wireless communication.
And bus 704 may include a data bus, a power bus, a control bus, a signal status bus, and the like. In this embodiment, the various buses are illustrated as a straight line in FIG. 7 for clarity of illustration.
The memory 702 stores computer-executable instructions.
The processor 701 invokes the computer executable instructions stored in the memory 702 to cause the processor 701 to perform any of the resolution determination methods described above.
The server provided by the present application may execute the method for determining resolution, and the specific implementation process and the beneficial effects thereof are similar to those of the second embodiment of the present application and are not described herein again.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (11)

1. A method for resolution determination, comprising:
zooming a first-resolution video stream displayed in a local screen according to zooming operation data of a user on the first-resolution video stream, and obtaining a target area;
determining a second resolution of the video stream to be displayed at the local end according to the range of the target area;
generating and sending an acquisition request of a second resolution video stream to a server;
and receiving the second-resolution video stream transmitted by the server.
2. The method of claim 1, wherein generating and sending an acquisition request for the second resolution video stream to the server comprises:
and sending a video stream acquisition request comprising the second resolution and the range of the target area to the server, wherein the video stream acquisition request is used for instructing the server to extract the range of the target area from the range of the original video.
3. The method of claim 1, wherein before scaling the video stream of the first resolution and obtaining the target region according to the scaling operation data of the video stream of the first resolution displayed in the local end screen by the user, the method further comprises:
determining a first resolution according to the transverse resolution and the longitudinal resolution of the local end screen;
an acquisition request for the first resolution video stream is generated and sent to the server.
4. A method for resolution determination, comprising:
sending a first resolution video stream to a client;
when an acquisition request of a second-resolution video stream is received, controlling a video source to acquire a video at a second resolution;
and sending the second-resolution video stream to the client.
5. The method of claim 4, wherein after controlling the video source to capture video at the second resolution when the capture request for the second resolution video stream is received, the method further comprises:
and extracting the range of the target area from the original video range of the video source acquired at the second resolution according to the range of the target area in the acquisition request of the received second-resolution video stream.
6. The method of claim 4, wherein prior to sending the second resolution video stream to the client, the method further comprises:
judging whether the second resolution is the level supported by the code stream resolution;
if not, determining the resolution of the minimum level higher than the second resolution in the levels supported by the resolution of all the code streams as a second resolution correction value;
correspondingly, sending the second-resolution video stream to the client comprises:
and sending the video stream with the resolution being the second resolution correction value to the client.
7. A resolution determination device, configured at a client, comprising:
the target area determining module is used for zooming the first resolution video stream displayed in the local end screen according to the zooming operation data of the first resolution video stream displayed by the user and obtaining a target area;
the second resolution determining module is used for determining the second resolution of the video stream to be displayed at the local end according to the range of the target area;
the acquisition request sending module is used for generating and sending an acquisition request of the second-resolution video stream to the server;
and the video stream receiving module is used for receiving the second-resolution video stream sent by the server.
8. A resolution determination device, provided in a server, comprising:
the first resolution video stream sending module is used for sending the first resolution video stream to the client;
the resolution switching module is used for controlling the video source to acquire the video at the second resolution when receiving an acquisition request of the second resolution video stream;
and the second resolution video stream sending module is used for sending the second resolution video stream to the client.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method for determining a resolution according to any one of claims 1 to 3 or 4 to 6.
10. A client communicatively connected to a server, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for determining the resolution according to any one of claims 1 to 3 when executing the computer program.
11. A server, comprising: a processor, a memory, a communication interface, and a bus; the processor is connected with the memory and the communication interface through the bus; the memory stores computer-executable instructions; the processor invokes the computer-executable instructions stored in the memory to cause the processor to perform the method of determining a resolution of any of claims 4-6.
CN201811641300.2A 2018-12-29 2018-12-29 Resolution determination method and device, storage medium, client and server Pending CN111385607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811641300.2A CN111385607A (en) 2018-12-29 2018-12-29 Resolution determination method and device, storage medium, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811641300.2A CN111385607A (en) 2018-12-29 2018-12-29 Resolution determination method and device, storage medium, client and server

Publications (1)

Publication Number Publication Date
CN111385607A true CN111385607A (en) 2020-07-07

Family

ID=71219328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811641300.2A Pending CN111385607A (en) 2018-12-29 2018-12-29 Resolution determination method and device, storage medium, client and server

Country Status (1)

Country Link
CN (1) CN111385607A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055170A (en) * 2020-08-05 2020-12-08 浙江大华技术股份有限公司 Video processing method and device and computer storage medium
CN112770050A (en) * 2020-12-31 2021-05-07 Oppo广东移动通信有限公司 Video display method and device, computer readable medium and electronic equipment
CN113259716A (en) * 2021-07-07 2021-08-13 摩尔线程智能科技(北京)有限责任公司 Video issuing method, video acquiring method, server, terminal and system
CN113891112A (en) * 2021-09-29 2022-01-04 北京拙河科技有限公司 Live broadcast method, device, medium and equipment for billion pixel video
CN113891111A (en) * 2021-09-29 2022-01-04 北京拙河科技有限公司 Live broadcast method, device, medium and equipment for billion pixel video
CN114339291A (en) * 2021-12-31 2022-04-12 杭州当虹科技股份有限公司 Method for zooming and playing streaming media video
CN114885182A (en) * 2022-04-18 2022-08-09 武汉斗鱼鱼乐网络科技有限公司 Video live broadcast management method and related equipment
CN114995735A (en) * 2022-04-22 2022-09-02 北京金山云网络技术有限公司 Image display method, system, device, electronic equipment and readable storage medium
CN114339291B (en) * 2021-12-31 2024-05-28 杭州当虹科技股份有限公司 Method for scaling and playing streaming media video

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325040A (en) * 2008-07-16 2008-12-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal capable of adjusting resolution and method for adjusting resolution of the mobile terminal
CN101529910A (en) * 2006-09-29 2009-09-09 卢森特技术有限公司 Method and apparatus for a zooming feature for mobile video service
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
US20130265311A1 (en) * 2012-04-04 2013-10-10 Samsung Electronics Co., Ltd. Apparatus and method for improving quality of enlarged image
CN103546716A (en) * 2012-07-17 2014-01-29 三星电子株式会社 System and method for providing image
US20150070357A1 (en) * 2013-09-09 2015-03-12 Opus Medicus, Inc. Systems and methods for high-resolution image viewing
CN106162232A (en) * 2016-06-29 2016-11-23 乐视控股(北京)有限公司 video playing control method and device
CN106416223A (en) * 2014-06-03 2017-02-15 三星电子株式会社 Imaging device and video generation method by imaging device
CN107148776A (en) * 2015-09-29 2017-09-08 华为技术有限公司 Obtain method, device, system and the computer-readable recording medium of video data
US20170310714A1 (en) * 2015-04-24 2017-10-26 Mersive Technologies, Inc. System and method for interactive and real-time visualization of distributed media
CN107547913A (en) * 2016-06-27 2018-01-05 阿里巴巴集团控股有限公司 Video data plays and processing method, client and equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101529910A (en) * 2006-09-29 2009-09-09 卢森特技术有限公司 Method and apparatus for a zooming feature for mobile video service
CN101325040A (en) * 2008-07-16 2008-12-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal capable of adjusting resolution and method for adjusting resolution of the mobile terminal
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
US20130265311A1 (en) * 2012-04-04 2013-10-10 Samsung Electronics Co., Ltd. Apparatus and method for improving quality of enlarged image
CN103546716A (en) * 2012-07-17 2014-01-29 三星电子株式会社 System and method for providing image
US20150070357A1 (en) * 2013-09-09 2015-03-12 Opus Medicus, Inc. Systems and methods for high-resolution image viewing
CN106416223A (en) * 2014-06-03 2017-02-15 三星电子株式会社 Imaging device and video generation method by imaging device
US20170310714A1 (en) * 2015-04-24 2017-10-26 Mersive Technologies, Inc. System and method for interactive and real-time visualization of distributed media
CN107148776A (en) * 2015-09-29 2017-09-08 华为技术有限公司 Obtain method, device, system and the computer-readable recording medium of video data
CN107547913A (en) * 2016-06-27 2018-01-05 阿里巴巴集团控股有限公司 Video data plays and processing method, client and equipment
CN106162232A (en) * 2016-06-29 2016-11-23 乐视控股(北京)有限公司 video playing control method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055170A (en) * 2020-08-05 2020-12-08 浙江大华技术股份有限公司 Video processing method and device and computer storage medium
CN112770050A (en) * 2020-12-31 2021-05-07 Oppo广东移动通信有限公司 Video display method and device, computer readable medium and electronic equipment
CN113259716A (en) * 2021-07-07 2021-08-13 摩尔线程智能科技(北京)有限责任公司 Video issuing method, video acquiring method, server, terminal and system
CN113891112A (en) * 2021-09-29 2022-01-04 北京拙河科技有限公司 Live broadcast method, device, medium and equipment for billion pixel video
CN113891111A (en) * 2021-09-29 2022-01-04 北京拙河科技有限公司 Live broadcast method, device, medium and equipment for billion pixel video
CN113891111B (en) * 2021-09-29 2023-11-21 北京拙河科技有限公司 Live broadcasting method, device, medium and equipment of billion pixel video
CN113891112B (en) * 2021-09-29 2023-12-05 北京拙河科技有限公司 Live broadcasting method, device, medium and equipment of billion pixel video
CN114339291A (en) * 2021-12-31 2022-04-12 杭州当虹科技股份有限公司 Method for zooming and playing streaming media video
CN114339291B (en) * 2021-12-31 2024-05-28 杭州当虹科技股份有限公司 Method for scaling and playing streaming media video
CN114885182A (en) * 2022-04-18 2022-08-09 武汉斗鱼鱼乐网络科技有限公司 Video live broadcast management method and related equipment
CN114995735A (en) * 2022-04-22 2022-09-02 北京金山云网络技术有限公司 Image display method, system, device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111385607A (en) Resolution determination method and device, storage medium, client and server
US9369678B2 (en) Video streaming method and system
KR101899877B1 (en) Apparatus and method for improving quality of enlarged image
CN108564551B (en) Fisheye image processing method and fisheye image processing device
WO2022083229A1 (en) Image processing method, electronic device, and nonvolatile computer readable storage medium
CN112399123B (en) Video definition adjusting method and device, electronic equipment and storage medium
US20150052200A1 (en) Acquiring Regions of Remote Shared Content with High Resolution
US20140184646A1 (en) Image processor and fisheye image display method thereof
WO2021104394A1 (en) Image processing method and apparatus, electronic device, and storage medium
US9131158B2 (en) Moving-image capturing apparatus and electronic zoom method for moving image
CN112907617B (en) Video processing method and device
US8269859B2 (en) Photographing apparatus that performs distortion correction in association with digital and optical zoom, method of controlling the same, and recording medium having recorded thereon computer program to implement the method
CN105721767A (en) Method For Processing A Video Stream
CN110874809A (en) Image processing method and device, electronic equipment and storage medium
JP5553109B2 (en) Image processing apparatus and image processing program
CN110928509A (en) Display control method, display control device, storage medium, and communication terminal
JP2003076982A (en) Device for graphically processing video objects
WO2020000385A1 (en) Image display method and device, pan/tilt, and storage medium
JP2019149785A (en) Video conversion device and program
WO2017024954A1 (en) Method and device for image display
US11196974B2 (en) Display control apparatus and display control method
CN110602410A (en) Image processing method and device, aerial camera and storage medium
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
US20140354871A1 (en) Output apparatus, method of controlling output apparatus, and recording medium
JP6086656B2 (en) Server system, program, and processing method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200707