[go: up one dir, main page]

CN114257861B - Video processing method, device, storage medium and equipment - Google Patents

Video processing method, device, storage medium and equipment Download PDF

Info

Publication number
CN114257861B
CN114257861B CN202011016843.2A CN202011016843A CN114257861B CN 114257861 B CN114257861 B CN 114257861B CN 202011016843 A CN202011016843 A CN 202011016843A CN 114257861 B CN114257861 B CN 114257861B
Authority
CN
China
Prior art keywords
video
definition
video data
window
playing
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.)
Active
Application number
CN202011016843.2A
Other languages
Chinese (zh)
Other versions
CN114257861A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011016843.2A priority Critical patent/CN114257861B/en
Publication of CN114257861A publication Critical patent/CN114257861A/en
Application granted granted Critical
Publication of CN114257861B publication Critical patent/CN114257861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • 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
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a video processing method, a device, a storage medium and equipment, wherein the method comprises the following steps: responding to an adjustment request for a play window of video data, and adjusting the play window of the video data to obtain an adjusted play window; the video data has a first video definition; acquiring a second video definition for performing definition switching according to the adjustment request; if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition; and playing the video data with the second video definition in the adjusted playing window. In the application, the video definition of the video data can be adaptively adjusted, and the video playing effect is improved.

Description

Video processing method, device, storage medium and equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a video processing method, apparatus, storage medium, and device.
Background
With the rapid development of internet technology, video data is a channel for users to quickly and intuitively acquire information. Therefore, more and more video data institutions are developing video data services, where video data obtained by shooting or editing is uploaded to a multimedia data platform by a video data institution or a person, and a user can play video data on the multimedia data platform. In practice, it is found that in the process of playing video data, if the video definition corresponding to the video data is too high, the phenomenon of stagnation or blocking of video pictures is easy to occur; if the video definition corresponding to the video data is too low, information in the video data is easily lost. Therefore, how to effectively adjust the video sharpness of video data is a current urgent problem to be solved.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present application is to provide a video processing method, apparatus, storage medium and device, which can adaptively adjust video definition of video data and improve video playing effect.
An aspect of an embodiment of the present application provides a video processing method, including:
responding to an adjustment request for a play window of video data, and adjusting the play window of the video data to obtain an adjusted play window; the video data has a first video definition;
acquiring a second video definition for performing definition switching according to the adjustment request;
if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition;
and playing the video data with the second video definition in the adjusted playing window.
An aspect of an embodiment of the present application provides a video processing apparatus, including:
the adjusting module is used for responding to an adjusting request of the playing window of the video data, adjusting the playing window of the video data and obtaining an adjusted playing window; the video data has a first video definition;
The acquisition module is used for acquiring second video definition for performing definition switching according to the adjustment request;
a switching module, configured to switch the video data from the first video definition to the second video definition if the first video definition is different from the second video definition;
and the first playing module is used for playing the video data with the second video definition in the adjusted playing window.
Optionally, the adjusting module may include:
a dividing unit, configured to respond to an adjustment request for a playing window of the video data, and divide a display interface of a terminal for playing the video data to obtain at least two display areas;
and the first determining unit is used for determining any one of the at least two display areas as an adjusted play window.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for running a split-screen application program, and the split-screen application program is different from the application program running in the adjusted play window;
The acquiring module may include:
the first obtaining unit is used for obtaining the program type of the split screen application program operated in the second display area and the window size of the adjusted play window according to the adjustment request;
and the second determining unit is used for determining a second video definition for performing definition switching according to the program type of the split-screen application program and the window size of the adjusted playing window.
Alternatively, the second determining unit may include:
the first sub-determining unit is used for determining the network resource quantity occupied by running the split-screen application program according to the program type of the split-screen application program;
a first sub-acquisition unit, configured to acquire a mapping table for describing a mapping relationship between video definition and network resource amount, window size;
and the searching subunit is used for searching the video definition with the mapping relation with the network resource amount occupied by the split screen application program and the window size of the adjusted playing window from the mapping table, and taking the searched video definition as a second video definition for performing definition switching.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for displaying comment information about the video data;
The acquiring module may include:
a second obtaining unit, configured to obtain a window size of the adjusted play window according to the adjustment request;
a detection unit configured to detect a browsing speed of a browsing operation of comment information for the video data;
and the third determining unit is used for determining the second video definition for performing definition switching according to the window size of the adjusted playing window and the browsing speed.
Optionally, the third determining unit includes:
a second sub-acquisition unit configured to acquire an area size of the second display area;
a prediction subunit, configured to predict a comment information preload according to the area size of the second display area and the browsing speed;
and the inquiring subunit is used for inquiring the video definition corresponding to the preloaded amount of the evaluation information and the window size of the adjusted playing window, and taking the inquired video definition as a second video definition for performing definition switching.
Optionally, the window size of the adjusted playing window is the same as the interface size of the display interface of the terminal for playing the video data;
the acquiring module may include:
A third obtaining unit, configured to obtain network condition information of the terminal according to the adjustment request;
and a fourth determining unit, configured to determine, according to the network condition information of the terminal, a second video definition for performing definition switching.
Optionally, the acquiring module may include:
a fourth obtaining unit, configured to obtain, according to the adjustment request, a historical video definition of video data played in the adjusted play window in a historical time period;
a statistics unit, configured to count a play duration of the video data having the historical video definition in the historical time period and a play number of times of the video data having the historical video definition;
a fifth determining unit, configured to determine a definition weight of the historical video definition according to the play duration and the play number; and taking the historical video definition with the largest definition weight in the historical video definition as a second video definition for performing definition switching.
Optionally, the switching module may include:
a fifth obtaining unit configured to obtain a pixel value of an image in the video data having the first video definition if the first video definition is different from the second video definition;
An adjusting unit, configured to adjust image pixel values in the video data having the first video definition according to the second video definition, to obtain the video data having the second video definition;
and a first switching unit configured to switch the video data having the first video definition to the video data having the second video definition.
Optionally, the switching module may include:
a sixth determining unit configured to determine, if the first video definition is different from the second video definition, a video address for loading the video data having the second video definition according to the second video definition;
a loading unit for loading the video data with the second video definition according to the video address;
and a second switching unit configured to switch the video data having the first video definition to the video data having the second video definition.
Optionally, the apparatus may further include:
a pause module for pausing the playing of the video data having the second video definition in response to switching a play mode of the video data having the second video definition to a background play mode;
And the second playing module is used for acquiring the audio data in the video data and playing the audio data in the video data. In one aspect, the present application provides a computer device comprising: a processor and a memory;
wherein the memory is configured to store a computer program, and the processor is configured to call the computer program to perform the following steps:
responding to an adjustment request for a play window of video data, and adjusting the play window of the video data to obtain an adjusted play window; the video data has a first video definition;
acquiring a second video definition for performing definition switching according to the adjustment request;
if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition;
and playing the video data with the second video definition in the adjusted playing window.
In one aspect, the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from a computer-readable storage medium, the processor executing the computer instructions to cause the computer device to perform the steps of:
Responding to an adjustment request for a play window of video data, and adjusting the play window of the video data to obtain an adjusted play window; the video data has a first video definition;
acquiring a second video definition for performing definition switching according to the adjustment request;
if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition;
and playing the video data with the second video definition in the adjusted playing window.
In this application, the computer device may obtain the second video definition for performing definition switching after the play window of the video data is adjusted, and when the first video definition is different from the second video definition, switch the video data from the first video definition to the second video definition, and play the video data with the second video definition in the adjusted play window. The video definition of the video data can be adaptively adjusted according to the playing window of the video data, the problems that the video data is blocked and the information quantity in the video data is lost in the process of playing the video data can be effectively avoided, and the playing effect of the video data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a video data processing system architecture provided herein;
FIG. 2a is a schematic diagram of a scenario in which data interaction between devices in a video data processing system is provided herein;
FIG. 2b is a schematic illustration of a scenario in which data interaction between devices in a video data processing system is provided herein;
fig. 3 is a flowchart of a video data processing method according to an embodiment of the present application;
fig. 4 is a schematic view of a scene for obtaining a second video definition for performing definition switching provided in the present application;
fig. 5 is a schematic view of a scene for obtaining a second video definition for definition switching provided in the present application;
fig. 6 is a schematic view of a scene for obtaining a second video definition for definition switching provided in the present application;
Fig. 7 is a schematic structural diagram of a video data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a video data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
First, a video processing system for implementing the video processing method of the present application is described, and as shown in fig. 1, the video processing system includes a server and a terminal.
The terminal may refer to a user-oriented device, and the terminal may include a multimedia data application platform (i.e., a multimedia data application program) for playing video data and shooting video data, that is, the terminal may call the multimedia application platform to play video data; the multimedia data platform may refer to a multimedia website platform (e.g., forum, bar, etc.), a social application platform, a shopping application platform, a content interaction platform (e.g., video application platform), and so forth. The server may refer to a device for providing a background service of video data, and may specifically be used for processing video data in a terminal, and uploading the processed video data to a multimedia data platform, so that a user may play the video data in the multimedia data platform.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligence platforms, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart television, etc. The terminals and the servers may be directly or indirectly connected through wired or wireless communication, and meanwhile, the number of the terminals and the servers may be one or more, which is not limited herein. The service scenario applicable to the video processing data system may specifically include: video program on-demand scenes, video teaching scenes, video live scenes, self-media video playing scenes and the like, and service scenes suitable for the video data processing system will not be listed one by one.
For example, in a video-on-demand scenario, the video data herein may refer to a video program of interest selected by the user in a video program list, e.g., a television show or movie of interest to the user. Also for example, in a self-media video play scenario, the video data herein may refer to short videos of interest to the user, including short video of food, short video of travel, and short video of daily life, among others. As another example, in a live video scene, the video data herein may refer to live video data for interest, including: shopping live video data, conference live video data, event live video data, and the like.
Any video data has a plurality of video resolutions, and the video definition (also referred to as resolution) may be a parameter for measuring the amount of information carried by an image in the video data; i.e. the higher the video definition, the more information the image in the video data carries; conversely, the lower the video definition, the less information the image in the video data carries. Video sharpness may include, in particular, 270P (which may be referred to as standard definition), 480P (which may be referred to as high definition), 720P (which may be referred to as ultra high definition), 1080P (which may be referred to as blue light), and high dynamic range images (High Dynamic Range Imaging, HDR), where P represents that the video data is scanned in a progressive manner.
The video data has various playing windows, such as a full-screen playing window, a small-window playing window and the like; the full-screen playing window means that the window size of the playing window of the video data is the same as the interface size of the display interface of the terminal, and the small-window playing window means that the window size of the playing window of the video data is smaller than the interface size of the display interface of the terminal, for example, the window size of the playing window of the video data is three-fourths, one-half, one-fifth, and the like of the interface size of the display interface of the terminal.
In the process of playing video data, the terminal can adaptively adjust the video definition of the video data according to the playing window of the video data. For ease of understanding, please refer to fig. 2a and 2b, and fig. 2a and 2b are each a scene interaction diagram for data interaction according to an embodiment of the present application. The terminal in fig. 2a and fig. 2b may be any terminal in fig. 1, and the server in fig. 2a and fig. 2b may be the server in fig. 1. As shown in fig. 2a, a playing window 11 of video data is displayed in a display interface 10 of the terminal, the video data with the first video definition is played in the playing window 11 of the video data, and the playing window 11 of the video data is a full-screen playing window, that is, the window size of the playing window 11 of the video data is the same as the interface size of the display interface of the terminal. The playing window 11 of the video data further includes a video configuration option 12, and when the user needs to shrink the playing window of the video data in the process of playing the video data, a selection operation can be performed on the video configuration option 12; accordingly, the terminal may display the configuration interface 13 in the play window 11 of the video data in response to the selection operation for the video configuration option 12, where the configuration interface 13 includes a collection option, a background play option, a full screen play option, a widget play option, and so on. The collection options are used for a user to collect the played video data so that the video data played last time can be quickly searched for next time; the background playing option is used for switching the playing mode of the video data to a background playing mode, wherein the background playing mode is a playing mode for pausing playing of the video data and playing of audio data in the video data. The full-screen play option refers to an option for enlarging a play window of video data, and the small-window play option refers to an option for reducing a play window of video data.
After the terminal displays the configuration interface 13, the user can execute a selection operation on the widget playing options; correspondingly, the terminal can respond to the selection operation of the small window playing option to generate an adjustment request of the playing window of the video data, respond to the adjustment request, and adjust (i.e. reduce) the playing window of the video data to obtain an adjusted playing window. As shown in fig. 2a, the window size of the adjusted playing window 14 is smaller than the interface size of the display interface of the terminal, that is, the window size of the playing window of the video data becomes smaller; the adjusted play window 14 is located above the display interface, and of course, the adjusted play window may also be located at the left, right, or middle area of the display interface of the terminal, and the user may adjust the position of the adjusted play window on the display interface of the terminal by sliding or dragging.
When the size of the play window of the video data becomes smaller, it is indicated that the user performs other operations on the display interface of the terminal, which are operations other than playing the video data, such as browsing comment information of the video data or applying other application programs (other application programs are application programs other than the application program playing the video data in the terminal). Because the terminal needs to occupy network resources of the terminal in response to other operations, if the current video definition of the video data is not matched with the adjusted playing window 14 (e.g. the current video definition of the video data is too large), the video data is easy to be blocked. Therefore, the second video definition for performing the definition switching can be obtained according to the adjustment request, and the second video definition is the video definition matched with the adjusted playing window 14, and is sent to the server. The server compares the first video definition with the second video definition and if the first video definition is different from the second video definition, indicating that the first video definition does not match the adjusted play window 14, the video data having the second video definition may be returned to the terminal. The video data with the first video definition is switched by the terminal to the video data with the second video definition, which can be played in the adjusted play window 14. If the first video definition is the same as the second video definition, indicating that the first video definition matches the adjusted playback window 14, the video data of the first video definition may be played in the adjusted playback window 14.
As another example, as shown in fig. 2b, the playing window 15 of the video data is a playing window of a small window, that is, the window size of the current playing window 15 of the video data is smaller than the interface size of the display interface of the terminal, and the current video definition of the video data is the first video definition. When the user needs to enlarge the playing window of the video data in the process of playing the video data, a selection operation can be performed on the video configuration options 12; accordingly, the terminal can present the configuration interface 13 in the play window 11 of the video data in response to the selection operation for the video configuration option 12. After the terminal displays the configuration interface 13, the user can execute a selection operation on the full-screen playing option; correspondingly, the terminal can respond to the selection operation for the full-screen playing option to generate an adjustment request for the playing window of the video data, and respond to the adjustment request to adjust (i.e. amplify) the playing window of the video data so as to obtain the adjusted playing window. As shown in fig. 2b, the window size of the adjusted playing window 16 is the same as the interface size of the display interface of the terminal, i.e. the adjusted playing window 16 covers the display interface of the terminal, i.e. the window size of the playing window of the video data becomes larger.
When the size of the playing window of the video data becomes larger, it indicates that the user does not perform other operations on the display interface of the terminal, that is, in this case, the video data is not easy to get stuck during the process of playing the video data. However, if the current video definition of the video data does not match the play window of the adjusted video data (e.g., the current video pre-definition of the video data is too small), the information content in the video data is easily lost. Therefore, the second video definition for performing the definition switching can be obtained according to the adjustment request, and the second video definition is the video definition matched with the adjusted playing window 16, and is sent to the server. The server compares the first video definition with the second video definition and if the first video definition is different from the second video definition, indicating that the first video definition does not match the adjusted play window 16, the video data having the second video definition may be returned to the terminal. The video data with the first video definition is switched by the terminal to the video data with the second video definition, which can be played in the adjusted play window 16. If the first video definition is the same as the second video definition, it may be indicated that the first video definition matches the adjusted playback window 16, and video data of the first video definition may be played in the adjusted playback window 16.
In summary, after the play window of the video data is adjusted, acquiring a second video definition for performing definition switching, and if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition; the video definition of the video data can be adaptively adjusted according to the playing window of the video data, the problems that the video data is blocked and the information quantity in the video data is lost in the process of playing the video data can be effectively avoided, and the playing effect of the video data is improved.
Based on the above description, please refer to fig. 3, which is a schematic flow chart of a video processing method according to an embodiment of the present application. The method may be performed by a computer device, which may refer to a terminal in fig. 1, or the computer device may refer to a server in fig. 1, or the computer device may comprise a terminal and a server in fig. 1, i.e. the method may be performed jointly by a terminal and a server in fig. 1. For easy understanding, in the embodiment of the present application, a computer device is taken as an example of a terminal, and as shown in fig. 3, the video processing method may include the following steps S101 to S104.
S101, responding to an adjustment request for a play window of video data, and adjusting the play window of the video data to obtain an adjusted play window; the video data has a first video definition.
As shown in fig. 2a and 2b, when the user needs to adjust the playing window of the video data, a selection operation may be performed on a playing window adjustment option (i.e., a full-screen playing option or a small-window playing option) of the playing interface of the video data; correspondingly, when the terminal detects that the selection operation is executed for the play window adjustment option, an adjustment request for the play window of the video data can be generated, and the play window of the video data is adjusted in response to the adjustment request, so that the adjusted play window is obtained.
Optionally, when the user needs to adjust the playing window of the video data, a split-screen operation may be performed on the display interface of the terminal, where the split-screen operation may refer to sliding the display interface of the terminal, or performing the split-screen operation on the display interface of the terminal in other manners, which is not limited. Correspondingly, if the terminal detects the split operation aiming at the display interface, a split request can be generated, namely the adjustment request can be a split request, the split processing can be performed on the display interface of the terminal in response to the split request, at least two display areas (namely at least two sub-display screens) are obtained, and any display area in the at least two display areas is used as an adjusted play window.
The adjustment request may be used to instruct the playing window of the video data to be reduced, for example, the current playing window of the video data is a full-screen playing window, that is, the window size of the current playing window of the video data is the same as the interface size of the display interface of the terminal, and the adjustment request may be used to reduce the window size of the playing window of the video data by three quarters, one half, one fifth, or the like of the interface size of the display interface of the terminal. Optionally, the adjustment request may be used to instruct to zoom in on a playing window of the video data, for example, the window size of the current playing window of the video data is one half of the interface size of the terminal display interface, and the adjustment request may be used to instruct to zoom in on the window size of the playing window of the video data by three quarters of the interface size of the terminal display interface, or instruct to zoom in on the window size of the playing window of the video data by three quarters of the interface size of the terminal display interface.
S102, acquiring second video definition for performing definition switching according to the adjustment request.
S103, if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition.
And S104, playing the video data with the second video definition in the adjusted playing window.
In steps S102 to S103, after the play window of the video data is adjusted, if the video definition of the video data is not matched with the play window after adjustment, during the process of playing the video data, the problem of blocking the video data or the problem of losing the information amount of the video data is easily caused. For example, after the playing window of the video data is enlarged, the size of the image in the video data is enlarged, if the video definition of the video data is not matched with the adjusted playing window (for example, the definition of the video data is smaller than the definition of the video matched with the adjusted playing window), the playing picture of the video data is easy to be blurred, and the information amount in the video data is lost. For another example, after the playing window of the video data is reduced, the size of the image in the video data is also reduced, if the video definition of the video data is not matched with the adjusted playing window (for example, the definition of the video data is greater than the definition of the video matched with the adjusted playing window), the viewing experience of the user on the video data cannot be improved; in contrast, the phenomenon of video data jamming is easy to occur, and even the phenomenon of video data loading failure is easy to occur.
Therefore, after the play window of the video data is adjusted, the computer device may obtain the second video definition for performing the definition switching according to the adjustment request, that is, obtain, as the second video definition, the video definition matching the adjusted play window according to the adjustment request. And comparing the first video definition with the second video definition, if the first video definition is the same as the second video definition, indicating that the current video definition of the video data is matched with the adjusted play window, switching the video definition of the video data can not be performed, and playing the video data with the first video definition in the adjusted play window. If the first video definition is different from the second video definition, indicating that the current video definition of the video data is not matched with the adjusted playing window, the video data can be switched from the first video definition to the second video definition, and the video data with the second video definition is played in the adjusted playing window.
In this application, the computer device may obtain the second video definition for performing definition switching after the play window of the video data is adjusted, and when the first video definition is different from the second video definition, switch the video data from the first video definition to the second video definition, and play the video data with the second video definition in the adjusted play window. The video definition of the video data can be adaptively adjusted according to the playing window of the video data, the problems that the video data is blocked and the information quantity in the video data is lost in the process of playing the video data can be effectively avoided, and the playing effect of the video data is improved.
Alternatively, the step S101 may include the following steps S11 and S12.
And s11, responding to an adjustment request of a playing window of the video data, and dividing a display interface of a terminal for playing the video data to obtain at least two display areas.
And s12, determining any one of the at least two display areas as an adjusted play window.
In steps s11 and s12, the computer device may respond to the adjustment request for the playing window of the video data, and perform equal-size division on the display interface of the terminal for playing the video data, so as to obtain at least two display areas, where the area sizes (such as the area sizes) of the respective display areas in the at least two display areas are the same; or, the display interface of the terminal for playing the video data is divided into at least two display areas in unequal sizes, and at this time, the area sizes (such as the area sizes) of the respective display areas in the at least two display areas are different. Further, any one of the at least two display areas may be determined as an adjusted play window.
For example, as shown in fig. 4, when a user needs to open other applications during the course of playing video data, a social application is taken as an example. The user can execute split screen operation on the display interface of the terminal by sliding the display interface of the terminal; correspondingly, the terminal responds to a split screen request aiming at the display interface of the terminal, and the display interface of the terminal is divided into two display areas according to the sliding position of the user, wherein the two display areas comprise a first display area and a second display area. The first display area and the second display area are arranged in a column manner in the display interface of the terminal, and of course, the first display area and the second display area may be arranged in other manners in the display interface of the terminal, such as in a row manner; further, the computer device may take either of the two display areas as an adjusted play window. If the first display area can be used as an adjusted play window, that is, video data is played in the adjusted play window; and running the social application program in the second display area.
For another example, as shown in fig. 5, when the user wants to view comment information of video data during the process of playing the video data, the user may perform a selection operation on a widget playing option in a configuration interface of the video data; correspondingly, the terminal can respond to the selection operation for the small window playing option to divide the display interface of the terminal into at least two display areas. In fig. 5, two display areas are illustrated as examples, and each of the two display areas includes a first display area and a second display area, and the computer device may use any one of the two display areas as the adjusted play window. If the first display area can be used as an adjusted play window, that is, video data is played in the adjusted play window; comment information of the video data is displayed in the second display area.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for running a split-screen application program, and the split-screen application program is different from the application program running in the adjusted play window; the step S102 includes the following steps S21 to S22.
And s21, acquiring the program type of the split screen application program operated in the second display area and the window size of the adjusted play window according to the adjustment request.
And s22, determining a second video definition for performing definition switching according to the program type of the split screen application program and the window size of the adjusted play window.
In steps s21 to s22, the adjustment is clearly used for indicating that the display interface of the terminal is subjected to split-screen processing, that is, the at least two display areas are obtained by performing split-screen processing on the display interface of the terminal, and the adjusted play window is the first display area; the second display area is used for running a split-screen application program, and the split-screen application program is different from the application program running in the adjusted play window. The application program operated in the adjusted window is an application program used for playing video data, and can be a video application program, a social application program, a shopping application program or a browser application program and the like; the split-screen application program can be any application program except the application program operated in the adjusted play window in the terminal. When the computer equipment plays the video data, a split screen application program is operated in the second display area, more network resources and electric quantity of the computer equipment are required to be consumed, if the video definition of the video data is overlarge at this time, the video data is easy to be blocked, the electric quantity of the terminal is consumed too quickly, and the endurance time of the computer equipment is reduced. Thus, the computer device may determine the second sharpness for sharpness switching based on the split-screen application and the adjusted window size of the play window. Specifically, the program type of the split-screen application program running in the second display area and the window size of the adjusted play window can be obtained according to the adjustment request; the program types of the split screen application program are classified according to the consumed network resource amount of the split screen application program, and the consumed network resource type may include a consumed network resource type and a saved network resource type, wherein the consumed network resource type may refer to an application program (such as a browser application program and a game application program) consuming a network resource amount greater than a network resource amount threshold, and the saved network resource type may refer to an application program (such as an offline picture browsing program and an offline office application program) consuming a network resource amount less than or equal to the network resource amount threshold. Further, the second video definition for performing definition switching may be determined according to the program type of the split-screen application program and the window size of the adjusted play window. The second video definition for switching the definition is determined according to the split-screen application program and the window size of the adjusted play window, so that the phenomenon that the video data is blocked due to overlarge video definition of the video data can be effectively avoided, and the fluency of video data play is improved.
For example, as shown in fig. 4, the social application is run in the second display area, and the terminal may obtain the program type of the social application and the window size of the adjusted playing window; the second video definition for performing the definition switching may be determined according to the program type of the social application and the window size of the adjusted play window.
It should be noted that, under the condition that the window sizes of the adjusted play windows are the same, the second video definition corresponding to the second display area when the application program consuming the network resource type is operated is smaller than the second video definition corresponding to the second display area when the application program saving the network resource type is operated.
The step s22 includes the following steps s31 to s33.
And S31, determining the network resource quantity occupied by running the split-screen application program according to the program type of the split-screen application program.
s32, obtaining a mapping table for describing the mapping relation between the video definition and the network resource quantity and window size.
And s33, searching the video definition having a mapping relation with the network resource amount occupied by the split screen application program and the window size of the adjusted playing window from the mapping table, and taking the searched video definition as a second video definition for performing definition switching.
In steps s31 to s33, the computer device may determine, according to the program type of the split-screen application, an amount of network resources occupied by running the split-screen application, and obtain a mapping table for describing a mapping relationship between the video definition and the amount of network resources, and the size of the window, that is, the mapping table is used for describing a mapping relationship between the video definition, the amount of network resources, and the size of the window. As shown in table 1, as can be seen from table 1, when the amount of network resources occupied by the split-screen application program is 10MB to 30MB and the playing window of the video data is 3 inches, the corresponding video definition is 1080P; when the network resource amount occupied by the split screen application program is 30 MB-60 MB and the playing window of the video data is 3 inches, the corresponding video definition is 720P; when the network resource amount occupied by the split screen application program is 30-60 MB and the playing window of the video data is 2 inches, the corresponding video definition is 480P, … … and the like. As can be seen from table 1, under the condition that the network resources occupied by the split screen application program are the same, the smaller the window size of the playing window of the video data is, the smaller the corresponding video definition is; meanwhile, under the condition that the window sizes of the playing windows of the video data are the same, the more the network resource amount occupied by the split screen application program is, the smaller the corresponding video definition is. Further, the video definition having a mapping relation with the network resource amount occupied by the split screen application program and the window size of the adjusted playing window can be searched from the mapping table, and the searched video definition is used as a second video definition for performing definition switching.
Table 1:
network resource amount Window size Video definition
10MB~30MB 3 inches 1080P
30MB~60MB 3 inches 720P
30MB~60MB 2 inches 480P
…… …… ……
In one embodiment, as shown in fig. 5, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for displaying comment information about the video data; the step S102 includes the following steps S41 to S43.
And S41, acquiring the window size of the adjusted play window according to the adjustment request.
s42, detecting a browsing speed of a browsing operation of comment information for the video data.
And s43, determining a second video definition for performing definition switching according to the window size of the adjusted play window and the browsing speed.
In steps s41 to s43, the adjustment request is used to instruct the playing window of the video data to be reduced, that is, the adjusted playing window is a playing window after the reduction process, and the adjusted playing window is located in a first display area, and the second display area is used to display comment information about the video data. The comment information of the video data allows a user to execute browsing operation on the comment information, and the user needs to consume network resources and electric quantity of the computer equipment in the process of browsing the comment information of the video data, if the video definition of the video data is overlarge at this time, the video data is easy to be blocked, the electric quantity of the terminal is consumed too quickly, and the endurance time of the computer equipment is reduced. Accordingly, the computer device may determine the second video definition for performing the definition switching according to the browsing operation of the comment information of the video data and the window size of the adjusted play window. Specifically, the computer device may obtain the window size of the adjusted play window according to the adjustment request, and detect the browsing speed of the browsing operation for the comment information of the video data. The faster the browsing speed is, the more network resources are consumed for browsing comment information of video data; conversely, the slower the browsing speed, the less network resources are consumed to browse the comment information of the video data. Therefore, determining a second video definition for performing definition switching according to the window size of the adjusted play window and the browsing speed; the second video definition for switching the definition is determined according to the browsing operation of comment information of the video data and the window size of the adjusted playing window, so that the phenomenon that the video data is blocked due to overlarge video definition of the video data can be effectively avoided, and the smoothness of video data playing is improved.
Optionally, the step s43 includes the following steps s51 to s53.
s51, obtaining the area size of the second display area.
s52, predicting the comment information preloading amount according to the area size of the second display area and the browsing speed.
And s53, inquiring the video definition corresponding to the preloaded amount of the comment information and the window size of the adjusted playing window, and taking the inquired video definition as a second video definition for performing definition switching.
In steps s51 to s53, the computer device may obtain the interface size of the display interface of the terminal, and obtain the difference between the interface size of the display interface of the terminal and the window size of the adjusted play window, as the area size of the second display area. Predicting comment information preloading quantity according to the area size of the second display area and the browsing speed, namely, the larger the comment information preloading quantity is, the more network resources are consumed for loading the comment information; conversely, the smaller the comment information preload, the less network resources are consumed to load the comment information. Accordingly, the computer device may query the video definition corresponding to the comment information preload amount and the window size of the adjusted play window as the second video definition for performing the definition switching.
Optionally, the window size of the adjusted playing window is the same as the interface size of the display interface of the terminal for playing the video data; the step S102 includes the following steps S61 to S62.
And s61, acquiring the network condition information of the terminal according to the adjustment request.
And s62, determining a second video definition for performing definition switching according to the network condition information of the terminal.
In steps s61 to s62, as shown in fig. 6, the adjustment request is used to instruct to perform an amplifying process on the playing window of the video data, that is, the adjusted playing window is obtained by performing an amplifying process on the playing window of the video data; the window size of the adjusted play window is the same as the interface size of the display interface of the terminal for playing the video data. At this time, the split screen application program is not run in the computer device, comment information of the video data is not displayed, and factors mainly influencing the playing effect of the video data are network condition information of the terminal (i.e. the computer device), wherein the network condition information is used for reflecting the network condition of the terminal, and network condition parameters of the terminal are measured and comprise network bandwidth, signal strength and the like. If the network condition of the terminal is poor and the video definition of the video data is too large, the video data is easy to cause a clamping phenomenon; if the network condition of the terminal is good and the video definition of the video data is too small, the blurring phenomenon of the video data is easy to occur, and the information quantity in the video data is lost. Accordingly, the computer device may determine the second video definition for performing the definition switching according to the network condition information of the terminal. Specifically, the computer device may obtain the network condition information of the terminal according to the adjustment request, and determine the second video definition for performing definition switching according to the network condition information of the terminal. I.e. the better the network condition of the terminal, the greater the second video definition; conversely, the worse the network state of the terminal, the less the second video definition. By determining the second video definition for performing definition switching according to the network condition information of the terminal, the phenomenon of blocking of video data can be effectively avoided, the phenomenon of information loss of the video data can be avoided, and the playing effect of the video data is improved.
Optionally, the step S102 includes the following steps S71 to S74.
And s71, acquiring the historical video definition of the video data played in the adjusted playing window in the historical time period according to the adjustment request.
s72, counting the playing time of the video data with the historical video definition in the historical time period, and playing times of the video data with the historical video definition.
And S73, determining the definition weight of the historical video definition according to the play duration and the play times.
And s74, taking the historical video definition with the largest definition weight in the historical video definition as a second video definition for performing definition switching.
In steps s 71-s 74, the computer device may determine a second video definition for performing the definition switching according to a playing habit of the user to play the video data in the adjusted playing window. Specifically, the computer device may obtain, according to the adjustment request, a historical video definition of video data played in the adjusted play window in a historical period, where the historical period may be near one week, near one month, near two months, and so on. Further, the playing time length of the video data with the historical video definition in the historical time period and the playing times of the video data with the historical video definition can be counted, and the definition weight of the historical video definition is determined according to the playing time length and the playing times. The definition weight can be used for reflecting the preference degree of the user for playing the video data with the historical video definition in the adjusted playing window, namely, the larger the definition weight is, the more the user prefers to play the video data with the historical video definition in the adjusted playing window; conversely, the smaller the sharpness weight, the less habitual the user is to play video data having historical video sharpness in the adjusted play window. Thus, the computer device may use the historical video definition with the greatest definition weight of the historical video definition as the second video definition for performing definition switching; and determining the second video definition for switching the definition according to the playing habit of the user for playing the video data in the adjusted playing window, so that the habit of the user for playing the video data is matched, and the video playing experience is improved.
Optionally, the step S103 includes the following steps S81 to S83.
s81, if the first video definition is different from the second video definition, acquiring a pixel value of an image in the video data with the first video definition.
And s82, adjusting the pixel values of the images in the video data with the first video definition according to the second video definition to obtain the video data with the second video definition.
s83, switching the video data with the first video definition to the video data with the second video definition.
In steps s 81-s 83, the computer device may switch the video data from the first video definition to the second video definition by adjusting pixel values corresponding to images in the video data. Specifically, if the first video definition is different from the second video definition, the pixel value of the image in the video data with the first video definition may be obtained. If the first video definition is greater than the second video definition, the pixel value of the image in the video data can be reduced according to the second video definition, so that the video data with the second video definition is obtained; if the first video definition is smaller than the second video definition, the pixel value of the image in the video data can be amplified according to the second video definition, so that the video data with the second video definition can be obtained. Further, the video data having the first video definition may be switched to the video data having the second video definition.
Optionally, the step S103 includes the following steps S91 to S93.
s91, if the first video definition is different from the second video definition, determining a video address for loading the video data with the second video definition according to the second video definition.
s92, loading the video data with the second video definition according to the video address.
s93, switching the video data having the first video definition to the video data having the second video definition.
In steps s 91-s 93, video data with different video definitions are stored in the server, and the video data with different video definitions correspond to different video addresses; thus, the computer device may switch the video data from the first video definition to the second video definition based on the video address of the video data. Specifically, the mapping table of video definition and video address of the video data in the computer device is shown in table 2, and video definition 1080P, 720P, 480P respectively corresponds to video address 1, video address 2, and video address 3. If the first video definition is different from the second video definition, searching a video address corresponding to the second video definition from a mapping table of the video definition and the video address of the video data, loading the video data with the second video definition from a server according to the video address, and switching the video data with the first video definition to the video data with the second video definition, namely replacing the video data with the first video definition by the video data with the second video definition. By switching the video data from the first video definition to the second video definition according to the video address of the video data, seamless switching of the video definition of the video data can be realized, and the continuity of video data playing is improved.
Table 2:
video definition Video addresses
1080P Video address 1
720P Video address 2
480P Video address 3
…… ……
Optionally, the method may further comprise the following steps s111 to s112.
s111, in response to switching the playing mode of the video data with the second video definition to a background playing mode, pausing playing of the video data with the second video definition.
And s112, acquiring the audio data in the video data, and playing the audio data in the video data.
In steps s111 to s112, as in fig. 2a, if the user needs to switch the video data to the background play mode, a selection operation may be performed on the background play option in the configuration interface 13; accordingly, the computer device may determine, in response to a selection operation for a background playback option, that a playback mode of the video data having the second video definition needs to be switched to a background playback mode, pause playback of the video data having the second video definition, acquire audio data in the video data, and play audio data in the video data. By suspending playing the video data with the second video definition, network resources of the computing device are saved, electric quantity is saved, and the endurance time of the computing device is prolonged.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a video data processing apparatus according to an embodiment of the present application. As shown in fig. 7, the video data processing apparatus may include: an adjusting module 701, an acquiring module 702, a switching module 703 and a first playing module 704.
An adjustment module 701, configured to respond to an adjustment request for a play window of video data, and adjust the play window of the video data to obtain an adjusted play window; the video data has a first video definition;
an obtaining module 702, configured to obtain a second video definition for performing definition switching according to the adjustment request;
a switching module 703, configured to switch the video data from the first video definition to the second video definition if the first video definition is different from the second video definition;
a first playing module 704, configured to play the video data with the second video definition in the adjusted playing window.
Optionally, as shown in fig. 8, fig. 8 is a schematic structural diagram of a video data processing apparatus provided in the embodiment of the present application, where the adjusting module 701, the obtaining module 702, and the switching module 703 may include:
Optionally, the adjusting module 701 may include:
a dividing unit 801, configured to respond to an adjustment request for a playing window of the video data, and divide a display interface of a terminal for playing the video data, so as to obtain at least two display areas;
a first determining unit 802, configured to determine any one of the at least two display areas as an adjusted play window.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for running a split-screen application program, and the split-screen application program is different from the application program running in the adjusted play window;
the acquisition module 702 may include:
a first obtaining unit 803, configured to obtain, according to the adjustment request, a program type of the split-screen application running in the second display area, and a window size of the adjusted play window;
a second determining unit 804, configured to determine a second video definition for performing definition switching according to the program type of the split-screen application program and the adjusted window size of the play window.
Optionally, the second determining unit 804 may include:
a first determining subunit 8041, configured to determine, according to a program type of the split-screen application, an amount of network resource occupied by running the split-screen application;
a first obtaining subunit 8042, configured to obtain a mapping table for describing a mapping relationship between video definition and network resource amount, and window size;
and a searching subunit 8043, configured to search, from the mapping table, a video definition having a mapping relationship with the amount of network resources occupied by the split-screen application program and the window size of the adjusted play window, and use the searched video definition as a second video definition for performing definition switching.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for displaying comment information about the video data;
the acquisition module 702 may include:
a second obtaining unit 805, configured to obtain a window size of the adjusted play window according to the adjustment request;
a detecting unit 806 for detecting a browsing speed of a browsing operation of comment information for the above-described video data;
A third determining unit 807 configured to determine a second video definition for performing definition switching according to the window size of the adjusted playback window and the browsing speed.
Optionally, the third determining unit 807 includes:
a second sub-acquisition unit 8071 for acquiring an area size of the second display area;
a prediction subunit 8072 configured to predict a comment information preload amount according to the area size of the second display area and the browsing speed;
and a query subunit 8073, configured to query video definition corresponding to the preloaded amount of the comment information and the window size of the adjusted play window, and use the queried video definition as a second video definition for performing definition switching.
Optionally, the window size of the adjusted playing window is the same as the interface size of the display interface of the terminal for playing the video data;
the acquisition module 702 may include:
a third acquiring unit 808, configured to acquire network condition information of the terminal according to the adjustment request;
a fourth determining unit 809 for determining a second video definition for performing definition switching according to the network condition information of the terminal.
Optionally, the acquiring module 702 may include:
a fourth obtaining unit 810, configured to obtain, according to the adjustment request, a historical video definition of video data played in the adjusted play window in a historical time period;
a statistics unit 811 for counting a play time period of the video data having the historical video definition and a play frequency of the video data having the historical video definition in the historical period;
a fifth determining unit 812, configured to determine a definition weight of the historical video definition according to the play duration and the play number; and taking the historical video definition with the largest definition weight in the historical video definition as a second video definition for performing definition switching.
Optionally, the switching module 703 may include:
a fifth obtaining unit 813, configured to obtain a pixel value of an image in the video data having the first video definition if the first video definition is different from the second video definition;
an adjusting unit 814, configured to adjust image pixel values in the video data having the first video definition according to the second video definition, so as to obtain the video data having the second video definition;
A first switching unit 815 for switching the video data having the first video definition to the video data having the second video definition.
Optionally, the switching module 703 may include:
a sixth determining unit 816, configured to determine, if the first video definition is different from the second video definition, a video address for loading the video data having the second video definition according to the second video definition;
a loading unit 817 for loading the video data with the second video definition according to the video address;
a second switching unit 818 for switching the video data having the first video definition to the video data having the second video definition.
Optionally, the apparatus may further include:
a pause module 819 for pausing the playing of the video data having the second video definition in response to switching a play mode of the video data having the second video definition to a background play mode;
the second playing module 820 is configured to obtain audio data in the video data, and play the audio data in the video data.
According to one embodiment of the present application, the steps involved in the video data processing method shown in fig. 3 may be performed by respective modules in the video data processing apparatus shown in fig. 7. For example, step S101 shown in fig. 3 may be performed by the adjustment module 701 in fig. 7, and step S102 shown in fig. 3 may be performed by the acquisition module 702 in fig. 7; step S103 shown in fig. 3 may be performed by the switching module 703 in fig. 7; step S104 shown in fig. 3 may be performed by the first playing module 704 in fig. 7.
According to an embodiment of the present application, each module in the video data processing apparatus shown in fig. 7 may be separately or completely combined into one or several units to form a structure, or some module(s) as shown in fig. 8 may be further split into a plurality of units and sub-units with smaller functions, so that the same operation may be implemented without affecting the implementation of the technical effects of the embodiments of the present application. The above modules are divided based on logic functions, and in practical applications, the functions of one module may be implemented by a plurality of units, or the functions of a plurality of modules may be implemented by one unit. In other embodiments of the present application, the video data processing apparatus may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of a plurality of units.
According to one embodiment of the present application, the video data processing apparatus as shown in fig. 7 and 8, and the video data processing method of the embodiment of the present application, may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 3 on a general-purpose computer device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and executed by the computing device via the computer-readable recording medium.
In this application, the computer device may obtain the second video definition for performing definition switching after the play window of the video data is adjusted, and when the first video definition is different from the second video definition, switch the video data from the first video definition to the second video definition, and play the video data with the second video definition in the adjusted play window. The video definition of the video data can be adaptively adjusted according to the playing window of the video data, the problems that the video data is blocked and the information quantity in the video data is lost in the process of playing the video data can be effectively avoided, and the playing effect of the video data is improved.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 9, the above-mentioned computer device 1000 may include: processor 1001, network interface 1004, and memory 1005, and in addition, the above-described computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a nonvolatile memory (non-volatile memory), such as at least one magnetic disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 9, an operating system, a network communication module, a user interface module, and a device control application may be included in a memory 1005, which is one type of computer-readable storage medium.
In the computer device 1000 shown in fig. 9, the network interface 1004 may provide network communication functions; while user interface 1003 is primarily used as an interface for providing input to a user; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
responding to an adjustment request for a play window of video data, and adjusting the play window of the video data to obtain an adjusted play window; the video data has a first video definition;
acquiring a second video definition for performing definition switching according to the adjustment request;
if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition;
and playing the video data with the second video definition in the adjusted playing window.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
responding to an adjustment request for a playing window of the video data, dividing a display interface of a terminal for playing the video data to obtain at least two display areas;
And determining any one of the at least two display areas as an adjusted play window.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for running a split-screen application program, and the split-screen application program is different from the application program running in the adjusted play window;
the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring the program type of the split screen application program operated in the second display area and the window size of the adjusted play window according to the adjustment request;
and determining a second video definition for performing definition switching according to the program type of the split-screen application program and the window size of the adjusted playing window.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
determining the network resource quantity occupied by running the split-screen application program according to the program type of the split-screen application program;
Obtaining a mapping table for describing the mapping relation between the video definition and the network resource quantity and the window size;
searching the video definition having a mapping relation with the network resource amount occupied by the split screen application program and the window size of the adjusted playing window from the mapping table, and taking the searched video definition as a second video definition for performing definition switching.
Optionally, the at least two display areas include a first display area and a second display area, and the adjusted playing window is the first display area; the second display area is used for displaying comment information about the video data;
alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
acquiring the window size of the adjusted play window according to the adjustment request;
detecting browsing speed of browsing operation of comment information of the video data;
and determining a second video definition for performing definition switching according to the window size of the adjusted play window and the browsing speed.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
Acquiring the area size of the second display area;
predicting comment information preloading amount according to the area size of the second display area and the browsing speed;
and inquiring video definition corresponding to the preloaded amount of the evaluation information and the window size of the adjusted playing window, and taking the inquired video definition as a second video definition for performing definition switching.
Optionally, the window size of the adjusted playing window is the same as the interface size of the display interface of the terminal for playing the video data;
alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
acquiring network condition information of the terminal according to the adjustment request;
and determining a second video definition for performing definition switching according to the network condition information of the terminal.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
acquiring historical video definition of video data played in the adjusted play window in a historical time period according to the adjustment request;
counting the playing time of the video data with the historical video definition in the historical time period and the playing times of the video data with the historical video definition;
Determining definition weight of the definition of the historical video according to the play duration and the play times;
and taking the historical video definition with the largest definition weight in the historical video definition as a second video definition for performing definition switching.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
if the first video definition is different from the second video definition, acquiring pixel values of images in the video data with the first video definition;
respectively adjusting image pixel values in the video data with the first video definition according to the second video definition to obtain the video data with the second video definition;
switching the video data having the first video definition to the video data having the second video definition.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
if the first video definition is different from the second video definition, determining a video address for loading the video data with the second video definition according to the second video definition;
Loading the video data with the second video definition according to the video address;
switching the video data having the first video definition to the video data having the second video definition.
Alternatively, the processor 1001 may be configured to invoke a device control application program stored in the memory 1005 to implement:
in response to switching a playback mode of the video data having the second video definition to a background playback mode, suspending playback of the video data having the second video definition;
and acquiring the audio data in the video data and playing the audio data in the video data.
In this application, the computer device may obtain the second video definition for performing definition switching after the play window of the video data is adjusted, and when the first video definition is different from the second video definition, switch the video data from the first video definition to the second video definition, and play the video data with the second video definition in the adjusted play window. The video definition of the video data can be adaptively adjusted according to the playing window of the video data, the problems that the video data is blocked and the information quantity in the video data is lost in the process of playing the video data can be effectively avoided, and the playing effect of the video data is improved.
It should be understood that the computer device 1000 described in the embodiment of the present application may perform the description of the video data processing method in the embodiment corresponding to fig. 3, and may also perform the description of the video data processing apparatus in the embodiment corresponding to fig. 7 and 8, which are not repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
In itself, a computer program product or a computer program is provided, which comprises computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above description of the video data processing method in the embodiment of fig. 3, and thus, a detailed description thereof will not be provided herein. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application.
As an example, the above-described program instructions may be executed on one computer device or on a plurality of computer devices disposed at one site, or alternatively, on a plurality of computer devices distributed at a plurality of sites and interconnected by a communication network, which may constitute a blockchain network.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (11)

1. A video processing method, comprising:
responding to an adjustment request for a play window of video data, dividing a display interface of a terminal for playing the video data to obtain at least two display areas, and determining a first display area in the at least two display areas as an adjusted play window; the video data has a first video definition, the at least two display areas comprise a first display area and a second display area, the second display area is used for running a split-screen application program, and the split-screen application program is any application program except for the application program running in the adjusted play window in the terminal;
Acquiring the second video definition for performing definition switching according to the adjustment request, wherein the acquiring the second video definition for performing definition switching according to the adjustment request comprises the following steps: acquiring the program type of the split screen application program operated in the second display area and the window size of the adjusted play window according to the adjustment request; the program types of the split-screen application program are obtained by classifying according to the network resource amount consumed by the split-screen application program; determining a second video definition for performing definition switching according to the program type of the split-screen application program and the window size of the adjusted play window;
if the first video definition is different from the second video definition, switching the video data from the first video definition to the second video definition;
and playing the video data with the second video definition in the adjusted playing window.
2. The method of claim 1, wherein the determining the second video definition for the definition switch according to the program type of the split-screen application and the window size of the adjusted play window comprises:
Determining the network resource quantity occupied by running the split-screen application program according to the program type of the split-screen application program;
obtaining a mapping table for describing the mapping relation between the video definition and the network resource quantity and the window size;
searching video definition having a mapping relation with the network resource amount occupied by the split screen application program and the window size of the adjusted playing window from the mapping table, and taking the searched video definition as a second video definition for performing definition switching.
3. The method of claim 1, wherein the second display area is further for presenting comment information regarding the video data in the alternative; the obtaining the second video definition for performing definition switching according to the adjustment request includes:
acquiring the window size of the adjusted play window according to the adjustment request;
detecting a browsing speed of a browsing operation of comment information for the video data;
and determining a second video definition for performing definition switching according to the window size of the adjusted play window and the browsing speed.
4. The method of claim 3, wherein said determining a second video definition for sharpness switching based on the window size of the adjusted play window and the browsing speed comprises:
Acquiring the area size of the second display area;
predicting comment information preloading amount according to the area size of the second display area and the browsing speed;
and inquiring video definition corresponding to the preloaded amount of the evaluation information and the window size of the adjusted play window, and taking the inquired video definition as a second video definition for performing definition switching.
5. The method of claim 1, wherein alternatively, the obtaining the second video definition for performing the definition switching according to the adjustment request comprises:
acquiring historical video definition of video data played in the adjusted play window in a historical time period according to the adjustment request;
counting the playing time of the video data with the historical video definition in the historical time period and the playing times of the video data with the historical video definition;
determining definition weight of the historical video definition according to the play duration and the play times;
and taking the historical video definition with the largest definition weight in the historical video definition as a second video definition for performing definition switching.
6. The method of claim 1, wherein the switching the video data from the first video definition to the second video definition if the first video definition is different from the second video definition comprises:
if the first video definition is different from the second video definition, acquiring pixel values of images in the video data with the first video definition;
respectively adjusting image pixel values in the video data with the first video definition according to the second video definition to obtain the video data with the second video definition;
switching the video data having the first video definition to the video data having the second video definition.
7. The method of claim 1, wherein the switching the video data from the first video definition to the second video definition if the first video definition is different from the second video definition comprises:
if the first video definition is different from the second video definition, determining a video address for loading the video data with the second video definition according to the second video definition;
Loading the video data with the second video definition according to the video address;
switching the video data having the first video definition to the video data having the second video definition.
8. The method of claim 1, wherein the method further comprises:
in response to switching a play mode of the video data having the second video definition to a background play mode, pausing playing the video data having the second video definition;
and acquiring the audio data in the video data and playing the audio data in the video data.
9. A video processing apparatus, comprising:
the adjusting module comprises a dividing unit and a first determining unit;
the dividing unit is used for responding to an adjustment request of a playing window for video data, dividing a display interface of a terminal for playing the video data, and obtaining at least two display areas; the video data has a first video definition;
the first determining unit is configured to determine a first display area of the at least two display areas as an adjusted play window; the at least two display areas comprise a first display area and a second display area, the second display area is used for running a split screen application program, and the split screen application program is any application program except for the application program running in the adjusted play window in the terminal;
The acquisition module comprises a first acquisition unit and a second determination unit;
the first obtaining unit is configured to obtain, according to the adjustment request, a program type of the split-screen application program running in the second display area, and a window size of the adjusted play window; the program types of the split-screen application program are obtained by classifying according to the network resource amount consumed by the split-screen application program;
the second determining unit is configured to determine a second video definition for performing definition switching according to a program type of the split-screen application program and a window size of the adjusted play window;
the switching module is used for switching the video data from the first video definition to the second video definition if the first video definition is different from the second video definition;
and the first playing module is used for playing the video data with the second video definition in the adjusted playing window.
10. A computer device, comprising: a processor, a memory, and a network interface;
the processor is connected with the memory and the network interface, wherein the network interface is used for providing a data communication function; the memory is for storing program code, the processor is for invoking the program code to perform the method of any of claims 1 to 8.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-8.
CN202011016843.2A 2020-09-24 2020-09-24 Video processing method, device, storage medium and equipment Active CN114257861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011016843.2A CN114257861B (en) 2020-09-24 2020-09-24 Video processing method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011016843.2A CN114257861B (en) 2020-09-24 2020-09-24 Video processing method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN114257861A CN114257861A (en) 2022-03-29
CN114257861B true CN114257861B (en) 2024-03-19

Family

ID=80788780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011016843.2A Active CN114257861B (en) 2020-09-24 2020-09-24 Video processing method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN114257861B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827675A (en) * 2022-04-18 2022-07-29 北京金山云网络技术有限公司 Video data processing method and device for application program
CN114827725A (en) * 2022-04-21 2022-07-29 上海哔哩哔哩科技有限公司 Video playing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
CN102595093A (en) * 2011-01-05 2012-07-18 腾讯科技(深圳)有限公司 Video communication method for dynamically changing video code and system thereof
CN102595204A (en) * 2012-02-28 2012-07-18 华为终端有限公司 Streaming media transmitting method, device and system
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device
CN106162232A (en) * 2016-06-29 2016-11-23 乐视控股(北京)有限公司 video playing control method and device
CN111182352A (en) * 2018-11-09 2020-05-19 浙江宇视科技有限公司 Device and method for adaptive code stream control for video playback

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
CN102595093A (en) * 2011-01-05 2012-07-18 腾讯科技(深圳)有限公司 Video communication method for dynamically changing video code and system thereof
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device
CN102595204A (en) * 2012-02-28 2012-07-18 华为终端有限公司 Streaming media transmitting method, device and system
CN106162232A (en) * 2016-06-29 2016-11-23 乐视控股(北京)有限公司 video playing control method and device
CN111182352A (en) * 2018-11-09 2020-05-19 浙江宇视科技有限公司 Device and method for adaptive code stream control for video playback

Also Published As

Publication number Publication date
CN114257861A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
US11303970B2 (en) Systems and methods for internet video delivery
US11216523B2 (en) Method, system, server and intelligent terminal for aggregating and displaying comments
CN106777116B (en) Content acquisition method, user client, server and system
CN107888981B (en) Audio and video preloading method, device, device and storage medium
US11109117B2 (en) Unobtrusively enhancing video content with extrinsic data
US20110214147A1 (en) Method for determining content for a personal channel
US20160124625A1 (en) Method and system for automatically sizing windows in response to user actions
CN114257861B (en) Video processing method, device, storage medium and equipment
US11388561B2 (en) Providing a summary of media content to a communication device
US10445585B1 (en) Episodic image selection
US20250292575A1 (en) Video processing method and apparatus, and electronic device
US20170142172A1 (en) Video Player for Multiple Cameras, Playing System and Playing Method
CN107948206B (en) Method and system for downloading and/or uploading multimedia data
US12425703B2 (en) Methods and systems for detecting and correcting streaming outages
KR101525519B1 (en) Method for web browsing on offline based HTML5
US20220264170A1 (en) Systems and methods for dynamically adjusting quality levels for transmitting content based on context
US20210211757A1 (en) Systems and methods for adapting playback device for content display
CN117786257B (en) Data loading method, terminal equipment and storage medium
US12231736B2 (en) Bullet-screen comment display
CN114302154A (en) Live broadcast room display method and device and electronic equipment
US20160112751A1 (en) Method and system for dynamic discovery of related media assets
EP2860933B1 (en) Method and device for selecting media streams
CN118695017A (en) Video preloading method, device, storage medium and terminal
CN120640060A (en) Frame rate adjustment method and device for special effect bullet screen, storage medium and electronic device
CN119484990A (en) Fill light control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40065615

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant