CN115225951A - Video processing method, video processing device, computer equipment and computer-readable storage medium - Google Patents

Video processing method, video processing device, computer equipment and computer-readable storage medium Download PDF

Info

Publication number
CN115225951A
CN115225951A CN202210867775.3A CN202210867775A CN115225951A CN 115225951 A CN115225951 A CN 115225951A CN 202210867775 A CN202210867775 A CN 202210867775A CN 115225951 A CN115225951 A CN 115225951A
Authority
CN
China
Prior art keywords
video
video data
data set
user
shared
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.)
Granted
Application number
CN202210867775.3A
Other languages
Chinese (zh)
Other versions
CN115225951B (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202210867775.3A priority Critical patent/CN115225951B/en
Publication of CN115225951A publication Critical patent/CN115225951A/en
Application granted granted Critical
Publication of CN115225951B publication Critical patent/CN115225951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/482End-user interface for program selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a video processing method, a video processing device, computer equipment and a computer readable storage medium, and belongs to the technical field of artificial intelligence. The method comprises the following steps: the method comprises the steps of obtaining a video sharing link, wherein the video sharing link comprises a video identifier of a shared video, a classification label of the shared video and a sliding configuration parameter; acquiring a click operation instruction; acquiring an application starting instruction, and running a target application program corresponding to the application starting instruction; analyzing the video sharing link, and jumping to a video preview page of a target application program; loading first video data of a shared video according to the video identifier, and playing the shared video on a video preview page; loading a first video data set according to the video identification, the classification label and the sliding configuration parameter; and when a sliding operation instruction of a second user on the video preview page is received, playing the same type of video corresponding to the second video data on the video preview page. According to the embodiment of the application, the use experience of the user can be improved.

Description

Video processing method, video processing device, computer equipment and computer-readable storage medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a video processing method and apparatus, a computer device, and a computer-readable storage medium.
Background
Currently, mainstream short video applications all have a sharing function, and the sharing mode can be roughly divided into two types: the first type is that the video is downloaded to a local photo album and then autonomously forwarded to a third-party platform by a user; the second type is plain text links, which the user can copy to share to a third party platform by converting the video summary information into a plain text link. For the first type of sharing form, the disadvantages are: before sharing, a complete video needs to be downloaded, a user needs to consume time and flow to share the video after the video is downloaded, and the user needs to select the video from a local album to share the video to a third-party platform in the sharing operation, so that the operation cost is high, the time is long, and the convenience of the operation is reduced; aiming at the second type of sharing mode, the defects are as follows: the video can be viewed after the corresponding application program is opened after the link of the plain text needs to be copied, the operation is not friendly enough, in addition, the user can only view the current shared video and can not continue to view other videos, and the user needs to quit the current page and return to the previous page after the video is viewed, so that the user experience is not friendly enough.
Disclosure of Invention
The embodiment of the application mainly aims to provide a video processing method, a video processing device, a computer device and a computer readable storage medium, and aims to improve the use experience of a user.
In order to achieve the above object, a first aspect of an embodiment of the present application provides a video processing method, where the video processing method includes:
the method comprises the steps of obtaining a video sharing link shared by a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification label of the shared video and a sliding configuration parameter;
acquiring a click operation instruction of a second user for the video sharing link;
acquiring an application starting instruction of the second user, and running a target application program corresponding to the application starting instruction;
responding to the click operation instruction, analyzing the video sharing link, and jumping to a video preview page of the target application program;
loading first video data of the shared video according to the video identifier, and playing the shared video on the video preview page;
loading a first video data set according to the video identification, the classification label and the sliding configuration parameter, wherein the first video data set comprises a plurality of second video data, and the classification labels of the second video data and the first video data are the same;
and when a sliding operation instruction of the second user on the video preview page is received, playing the same type of video corresponding to the second video data on the video preview page.
In some embodiments, the video sharing link further includes header information, and the parsing the video sharing link and jumping to a video preview page of the target application includes:
analyzing the header information to obtain a routing field;
determining a target number according to the routing field;
and jumping to a video preview page of the target application program according to the target number.
In some embodiments, said loading a first video data set according to said video identification, said classification tag and said sliding configuration parameter comprises:
determining a first video data set stored in a background server according to the video identification, the classification label and the sliding configuration parameter;
acquiring a page of sub data set from the first video data set according to a preset number in a grading manner;
and filling the sub data sets obtained each time into a pre-stored video list.
In some embodiments, the loading a first video data set according to the video identification, the classification tag, and the sliding configuration parameter further comprises:
and if the sequence of the current video in the subdata sets of the current page is a preset sequence number, preloading the subdata sets of the next page, wherein the current video is the video displayed in the video preview page.
In some embodiments, further comprising:
if the current video is in the subdata set of the last page in the first video data set, acquiring a second video data set according to a preset heat;
populating the second video data set to the video list.
In some embodiments, further comprising:
caching the browsed first video data and the browsed second video data to a memory;
and searching corresponding video data according to the video identification and playing the corresponding video in the video preview page.
In some embodiments, further comprising:
when a preset condition is met, starting a retry mechanism;
the preset condition comprises at least one of the following conditions:
the first video data fails to load;
the first video data set failed to load;
the second video data set fails to load.
To achieve the above object, a second aspect of an embodiment of the present application proposes a video processing apparatus, including:
the video sharing method comprises a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is used for obtaining a video sharing link shared by a first user, and the video sharing link comprises a video identifier of a shared video, a classification tag of the shared video and a sliding configuration parameter;
the second acquisition module is used for acquiring a click operation instruction of a second user for the video sharing link;
the third acquisition module is used for acquiring the application starting instruction of the second user and running a target application program corresponding to the application starting instruction;
the analysis module is used for analyzing the video sharing link and jumping to a video preview page of the target application program under the condition that the click operation instruction is obtained;
the first playing module is used for loading first video data of the shared video according to the video identifier and playing the shared video on the video preview page;
a first loading module, configured to load a first video data set according to the video identifier, the classification tag, and the sliding configuration parameter, where the first video data set includes a plurality of second video data, and the classification tags of the second video data and the first video data are the same;
and the second playing module is used for playing the same type of video corresponding to the second video data on the video preview page under the condition that a sliding operation instruction of the second user on the video preview page is received.
To achieve the above object, a third aspect of embodiments of the present application provides a computer device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the video processing method as described in the first aspect above when executing the computer program.
To achieve the above object, a fourth aspect of embodiments of the present application provides a computer-readable storage medium storing computer-executable instructions for performing the video processing method according to the first aspect.
According to the video processing method, the video processing device, the computer equipment and the computer readable storage medium, through obtaining the video sharing link, a user can click the video sharing link, so that a click operation instruction is output, an application starting instruction can be output through opening a target application program, the target application program can normally run, under the condition of obtaining the click operation instruction, the video sharing link is analyzed, the user can directly jump to a video preview page of the target application program, the sharing video is played on the video preview page through loading first video data of the sharing video, the user can conveniently view the sharing video, a first data set is loaded according to a video identifier, a classification label and a sliding configuration parameter, second video data and the first video data have the same classification label, after the user views the sharing video, the user can execute sliding operation to view the next video, the user can continue to browse the videos of the same type without exiting from the current page, and use experience of the user is improved.
Drawings
Fig. 1 is a flowchart of a video processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 3 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 4 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 5 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 6 is a flowchart of a video processing method according to another embodiment of the present application;
fig. 7 is a schematic processing diagram illustrating steps of a video processing method according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
First, several terms referred to in the present application are resolved:
artificial Intelligence (AI): is a new technical science for researching and developing theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science that attempts to understand the essence of intelligence and produces a new intelligent machine that can react in a manner similar to human intelligence, and research in this field includes robotics, language recognition, image recognition, natural language processing, and expert systems, among others. The artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use the knowledge to obtain the best results.
Natural Language Processing (NLP): NLP uses computer to process, understand and use human language (such as chinese, english, etc.), and belongs to a branch of artificial intelligence, which is a cross discipline between computer science and linguistics, also commonly called computational linguistics. Natural language processing includes parsing, semantic analysis, discourse understanding, and the like. Natural language processing is commonly used in the technical fields of machine translation, handwriting and print character recognition, speech recognition and text-to-speech conversion, information intention recognition, information extraction and filtering, text classification and clustering, public opinion analysis and opinion mining, and relates to data mining, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, linguistic research related to language calculation, and the like related to language processing.
Based on this, embodiments of the present application provide a video processing method, an apparatus, a computer device, and a computer-readable storage medium, which aim to improve the use experience of a user.
The video processing method, the video processing apparatus, the computer device, and the computer-readable storage medium provided in the embodiments of the present application are specifically described in the following embodiments, and first, the video processing method in the embodiments of the present application is described.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence base technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The embodiment of the application provides a video processing method, and relates to the technical field of artificial intelligence. The video processing method provided by the embodiment of the application can be applied to a terminal and can also be software running in the terminal. In some embodiments, the terminal may be a smartphone, tablet, laptop, desktop computer, or the like; the background server in the embodiment of the application can be configured as an independent physical server, can also be configured as a server cluster or a distributed system formed by a plurality of physical servers, and can also be configured as a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (content distribution network) and a big data and artificial intelligence platform; the software may be an application or the like implementing the video processing method, but is not limited to the above form.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
As shown in fig. 1, fig. 1 is an optional flowchart of a video processing method provided in an embodiment of the present application, and the method in fig. 1 may include, but is not limited to, step S110 to step S170.
Step S110: the method comprises the steps of obtaining a video sharing link shared by a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification label of the shared video and a sliding configuration parameter;
it should be noted that, if a first user wants to share a shared video with other people, a sharing operation may be triggered in a specified area of a video preview page of a sharing source application program, for example, a sharing button is set in the specified area of the video preview page, the video preview page refers to a playing page for viewing a single video, the first user clicks the sharing button on the video preview page, the terminal device obtains relevant information of the shared video from video detail data cached in the memory, and generates a video sharing link corresponding to the shared video according to a specific format, so that the first user can share the shared video with other people through a third-party platform, the sharing does not need to download the video, and the operation is simple and convenient. Specifically, the format of the video sharing link is as follows:
https://headerUrlvideoId=xxx&tabKey=xxx&needPreload=1;
the headerUrl is header information, the videoId represents a video identifier for identifying a unique video, the tabKey represents a classification label for distinguishing a classification category to which the video belongs, and the needPreload represents a sliding configuration parameter.
Step S120: acquiring a click operation instruction of a second user for the video sharing link;
specifically, the third-party platform may be a communication application, and after the first user forwards the video sharing link through the third-party platform, the second user may obtain the video sharing link through the third-party platform, and output a click operation instruction by clicking the video sharing link, where it needs to be described that the click operation instruction is used to instruct to view the shared video.
In an embodiment, the video sharing link may be processed to generate a sharing card, and the sharing card displays related information of the shared video, including but not limited to information of a video title, content, a video source, and the like, and the information is presented simply and intuitively, so that a user may browse the information conveniently.
Step S130: acquiring an application opening instruction of a second user, and operating a target application program corresponding to the application opening instruction;
when the second user opens the target application program and outputs an application opening instruction, the target application program operates, and the shared video can be conveniently viewed in the target application program. It will be appreciated that the target application is the same as the sharing source application that the first user generated the video sharing link.
Step S140: responding to the click operation instruction, analyzing the video sharing link, and jumping to a video preview page of a target application program;
under the condition of obtaining the click operation instruction, the video sharing link is analyzed, and the video can be directly jumped to a video preview page of a target application program, so that the shared video can be conveniently played.
Step S150: loading first video data of a shared video according to the video identifier, and playing the shared video on a video preview page;
it should be noted that the loading is a process of taking data from the background server, the data is taken and then cached in the memory, the first video data is obtained from the background server according to the video identifier, the first video data includes related data such as a video title, content, brief introduction, playing amount and the like, and the first video data is rendered to the video preview page, so that the shared video is played, and a user can conveniently view the shared video.
In this embodiment, the user can view the shared video only by clicking the video sharing link and opening the corresponding target application program, and the operation is convenient.
Step S160: loading a first video data set according to the video identification, the classification label and the sliding configuration parameter, wherein the first video data set comprises a plurality of second video data, and the classification labels of the second video data and the first video data are the same;
in order to enable a user to check the next video after checking the current shared video, a first video data set is loaded according to a video identifier, a classification label and a sliding configuration parameter, second video data and the first video data have the same classification label, and the same type of video corresponding to the second video data and the shared video belong to the same classification category.
It should be noted that by setting the sliding configuration parameter, making needPreload =1, that is, the value of the sliding configuration parameter is the first preset value, which indicates that it is necessary to view the next video in a sliding manner, the first video data set is obtained from the background server, and if needPreload =0, that is, the value of the sliding configuration parameter is the second preset value, the first video data set is not obtained from the background server.
Step S170: and when a sliding operation instruction of a second user on the video preview page is received, playing the same type of video corresponding to the second video data on the video preview page.
After the second user finishes viewing the shared video, a sliding operation is executed on the video preview page, for example, an upward sliding operation or a downward sliding operation is executed, a sliding operation instruction is output, the sliding operation instruction is used for indicating switching of the current video, specifically, when the shared video is finished, the user executes the upward sliding operation on the video preview page, the second video data is rendered to the video preview page, the same type of videos of the same type as the shared video are played on the video preview page, the user can conveniently and continuously slide and browse the video without exiting from the current page, and the use experience of the user is favorably improved.
In steps S110 to S170 illustrated in the embodiment of the application, by obtaining the video sharing link, the user may click the video sharing link, thereby outputting a click operation instruction, and by opening the target application program, an application start instruction may be output, so that the target application program operates normally, and under the condition of obtaining the click operation instruction, the video sharing link is analyzed, and the user can directly jump to the video preview page of the target application program, and by loading the first video data of the shared video and playing the shared video on the video preview page, the user is facilitated to view the shared video, and according to the video identifier, the classification tag and the sliding configuration parameter, the first data set is loaded, the second video data and the first video data have the same classification tag, and when the user finishes viewing the shared video, the user can perform a sliding operation to view the next similar video, and can continue to view the similar video without exiting from the current page, which is beneficial to improving the user experience.
As shown in fig. 2, in some embodiments, the video sharing link further includes header information, and the video sharing link is parsed in step S140, and jumps to the video preview page of the target application, including but not limited to steps S210 to S230:
step S210: analyzing the header information to obtain a routing field;
step S220: determining a target number according to the routing field;
step S230: and jumping to a video preview page of the target application program according to the target number.
It should be noted that the video sharing link is assembled into a string format by various parameters such as header information, video identifiers, classification labels, sliding configuration parameters, and the like. The header information is a specific link segment that the target application can resolve.
After the click operation instruction is responded, the routing field is obtained by analyzing the head information, the target number in the routing field is determined, the video preview page of the target application program is skipped to according to the target number, and each parameter of the video sharing link is transmitted to the video preview page, so that the obtained video data can be rendered to the video preview page conveniently, a user can see the shared video only by opening the corresponding target application program, and the operation is friendly.
Specifically, the target application parses the header information to obtain a routing field, and transfers the routing field to the visited assistant component, where the routing field is specifically as follows:
"# visitjumUrl = aipage://1106"; wherein 1106 is the target number;
the visiting assistant component distributes the specific service component according to the target number, the specific service component in the embodiment refers to a video browsing service component, and the specific service component jumps to a video preview page through the video browsing service component, so that the video can be played and shared conveniently.
As shown in fig. 3, in some embodiments, the first video data set is loaded in step S160 according to the video identification, the classification label and the sliding configuration parameter, including but not limited to steps S310 to S330:
step S310: determining a first video data set stored in a background server according to the video identification, the classification label and the sliding configuration parameter;
step S320: acquiring a page of sub data set from the first video data set according to a preset number in a grading manner;
step S330: and filling the sub data sets obtained each time into a pre-stored video list.
It should be noted that, a first video data set is stored in a background server, in this embodiment, a paging obtaining manner is adopted, first, the first video data set is determined according to a video identifier, a classification tag and a sliding configuration parameter, a sub data set is obtained from the first video data set in multiple times according to a preset number, that is, only one sub data set is loaded each time, the loading is a process of taking data from the background server, the sub data set is cached in a memory after the data set is taken, a video list is maintained in the memory, the new sub data set is filled into the video list each time, when a user performs a sliding operation in a video preview page, that is, a video in the video list is played in the video preview page, data in the video list can be continuously expanded, and by continuously filling data into the video list, it is ensured that the user can continuously view a next video.
In an embodiment, the preset number is 10, and each page of the sub data set has 10 pieces of data, that is, 10 pieces of data are obtained from the background server each time, the preset number is determined according to specific service requirements,
it can be understood that, in this embodiment, the video data corresponding to all videos need not be loaded in advance, but a paging obtaining mode is adopted, and when the timing of loading the next page is that all videos of the current page are quickly played, the loading speed can be effectively increased, and meanwhile, the normal data processing is prevented from being influenced by too much cached data, which is beneficial to improving the data processing efficiency of the target application program.
As shown in fig. 4, in some embodiments, the first video data set is loaded according to the video identifier, the classification tag and the sliding configuration parameter in step S160, and the video processing method further includes step S410:
step S410: and if the sequence of the current video in the subdata sets of the current page is a preset sequence number, preloading the subdata sets of the next page, wherein the current video is the video displayed in the video preview page.
If the order of the current video in the subdata sets of the current page is a preset sequence number, which indicates that the video user of the current page is about to see the video, the subdata sets of the next page are preloaded, namely, a new subdata set of the page is obtained from the background server and is filled into the video list, so that the video can be continuously watched when the user continuously slides, and the use experience of the user is favorably improved.
Specifically, the preset sequence number is the second last of the subdata sets, if the preset number is 10, the preset sequence number is 9, when the user slides to the second last video, that is, the sequence of the current video in the subdata set of the current page is 9, which indicates that the video user of the current page is about to see the end and needs a new video, the preloading operation is executed, the subdata set of the next page is obtained from the background server, and the data in the video list is supplemented, so that the user can be ensured to have the video to watch constantly, and the preloading can accelerate the efficiency of video display.
As shown in fig. 5, in some embodiments, the video processing method further includes, but is not limited to, step S510 and step S520:
step S510: if the current video is in the subdata set of the last page in the first video data set, acquiring a second video data set according to the preset heat;
step S520: the second video data set is populated into the video list.
If the current video belongs to the last page of subdata set in the first video data set and indicates that the same type of video is about to be browsed, namely the same type of video in the video list is about to be broadcasted, the second video data set is obtained from the background server according to the preset heat, and the second video data set is filled into the video list, so that a user can conveniently view the hot video after browsing the same type of video, and the user can be ensured to view the video in a continuous sliding manner.
It should be noted that the second video data set includes a plurality of third video data, and the popularity of the videos corresponding to the third video data all reaches a preset popularity, which can be understood that the video corresponding to the third video data is a popular video, the preset popularity can be determined according to the praise amount and the browsing amount, and the popular videos are sorted from large to small according to the popularity.
In one embodiment, the second video data set is obtained according to a preset number of pages, that is, a sub data set is obtained one page at a time and is filled into the video list.
As shown in fig. 6, in some embodiments, the video processing method further includes, but is not limited to, step S610 and step S620:
step S610: caching the browsed first video data and the second video data to a memory;
step S620: and searching corresponding video data according to the video identification and playing the corresponding video in the video preview page.
It should be noted that, for the requirement that the user may return to view the browsed video, the browsed first video data and the browsed second video data are cached in the memory, and specifically, the first video data and the second video data may be stored in the history set in the memory, and when the user wants to view the browsed video again, the corresponding video data may be searched from the history set according to the video identifier and the corresponding video may be played in the video preview page, which is beneficial to increasing the page content display speed and optimizing the user experience.
It should be noted that the history set is stored in the memory in the form of key-value pairs, the video identifier is used as a key (key), the model of the video data is used as a value (value), and the data acquisition speed can be increased by searching in the form of key-value pairs.
In some embodiments, the video processing method further comprises the steps of:
when a preset condition is met, starting a retry mechanism;
the preset conditions include at least one of:
a first video data load failure;
a first video data set loading failure;
the second video data set fails to load.
It should be noted that, because the network may have a delay, an instability, and the like, in order to ensure the reliability of data call, all requests are provided with a retry mechanism, when the first video data fails to be loaded, the retry mechanism is started, the first video data is loaded again, when the first video data fails to be loaded, the retry mechanism is started, the first video data set is loaded again, when the second video data set fails to be loaded, the retry mechanism is started, the second video data set is loaded again, the influence caused by the instability of the network is reduced, it is ensured that a user can continuously check videos to a certain extent, and the use experience of the user is favorably optimized.
As shown in fig. 7, in an embodiment, when a first user clicks a share button in a video preview page, a video share link is automatically generated, the first user shares the video share link with a third-party platform, a second user clicks the video share link, opens a target application program, automatically parses the video share link, jumps to a video preview page, loads data from a background server, first loads first video data of the shared video and a first page sub data set of the first video data set, and loads a second page sub data set of the first video data set when the user browses a last video of the first page sub data set along with a sliding operation of the user, continues to load a next page sub data set when the user browses a last video of the second page sub data set, continuously and repeatedly loads data and fills a video list, and when the user browses a last video of the last page sub data set, loads a second video data set, that is a hot video is obtained, the user can browse videos of the same type after browsing videos are shared, and when the same type of videos are browsed, all requests have a hot video browsing request, a retry mechanism is started, and a data loading mechanism is started again.
As shown in fig. 8, an embodiment of the present application further provides a video processing apparatus, which can implement the video processing method, where the video processing apparatus 800 includes a first obtaining module 810, a second obtaining module 820, a third obtaining module 830, an analyzing module 840, a first playing module 850, a first loading module 860, and a second playing module 870, where the first obtaining module 810 is configured to obtain a video sharing link shared by a first user, where the video sharing link includes a video identifier of a shared video, a category tag to which the shared video belongs, and a sliding configuration parameter; the second obtaining module 820 is configured to obtain a click operation instruction of a second user for the video sharing link; the third obtaining module 830 is configured to obtain an application starting instruction of a second user, and run a target application program corresponding to the application starting instruction; the analyzing module 840 is configured to analyze the video shared link and jump to a video preview page of the target application program when the click operation instruction is obtained; the first playing module 850 is configured to load first video data of a shared video according to the video identifier, and play the shared video on a video preview page; the first loading module 860 is configured to load a first video data set according to the video identifier, the classification tag, and the sliding configuration parameter, where the first video data set includes a plurality of second video data, and the classification tag of the second video data is the same as that of the first video data; the second playing module 870 is configured to play the same type of video corresponding to the second video data on the video preview page when receiving a sliding operation instruction of the second user on the video preview page.
The video processing device provided by the embodiment of the application can be used for obtaining the video sharing link, a user can click the video sharing link, so that a click operation instruction is output, an application starting instruction can be output by opening a target application program, the target application program can run normally, the video sharing link is analyzed under the condition of obtaining the click operation instruction, the user can directly jump to a video preview page of the target application program, the first video data of the shared video is loaded and the shared video is played on the video preview page, the user can conveniently view the shared video, the first data set is loaded according to a video identifier, a classification label and a sliding configuration parameter, the second video data and the first video data have the same classification label, after the user views the shared video, the user can perform sliding operation to view the next similar video, the same type of video can be continuously browsed without exiting from the current page, and the use experience of the user is improved.
In some embodiments, the video sharing link further includes header information, and the parsing module 840 parses the video sharing link and jumps to a video preview page of the target application, including:
analyzing the header information to obtain a routing field;
determining a target number according to the routing field;
and jumping to a video preview page of the target application program according to the target number.
In some embodiments, loading the first video data set according to the video identification, the classification label, and the sliding configuration parameter in the first loading module 860 includes:
determining a first video data set stored in a background server according to the video identification, the classification label and the sliding configuration parameter;
acquiring a page of sub data set from the first video data set according to a preset number in a grading manner;
and filling the sub data sets obtained each time into a pre-stored video list.
In some embodiments, the loading the first video data set according to the video identifier, the classification label, and the sliding configuration parameter in the first loading module 860 further includes:
and if the sequence of the current video in the subdata sets of the current page is a preset sequence number, preloading the subdata sets of the next page, wherein the current video is the video displayed in the video preview page.
In some embodiments, the video processing apparatus further includes a second loading module, where the second loading module is configured to, in a case where the current video is in a sub data set of a last page of the first video data set, obtain a second video data set according to the preset heat; the second video data set is populated into a video list.
In some embodiments, the video processing apparatus further includes a history caching module, configured to cache the first video data and the second video data that have been browsed to a memory; and searching corresponding video data according to the video identification and playing the corresponding video in the video preview page.
In some embodiments, the video processing apparatus further includes a retry module, where the retry module is configured to start a retry mechanism if a preset condition is met; the preset conditions include at least one of:
a first video data loading failure;
a first video data set loading failure;
the second video data set fails to load.
It should be noted that the specific implementation of the video processing apparatus is substantially the same as the specific implementation of the video processing method, and is not described herein again.
An embodiment of the present application further provides a computer device, where the computer device includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the computer program implementing the video processing method as described above. The computer equipment can be any intelligent terminal including a tablet computer, a vehicle-mounted computer and the like.
As shown in fig. 9, fig. 9 illustrates a hardware structure of a computer device of the present embodiment, the computer device including:
the processor 910 may be implemented by a general-purpose CPU (central processing unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided in the embodiment of the present application;
the memory 920 may be implemented in a form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM). The memory 920 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 920 and called by the processor 910 to execute the video processing method according to the embodiments of the present disclosure;
an input/output interface 930 for realizing information input and output;
the communication interface 940 is configured to implement communication interaction between the device and other devices, and may implement communication in a wired manner (e.g., USB, network cable, etc.) or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.);
a bus 950 that transfers information between various components of the device (e.g., the processor 910, the memory 920, the input/output interface 930, and the communication interface 940);
wherein the processor 910, the memory 920, the input/output interface 930, and the communication interface 940 are communicatively coupled to each other within the device via a bus 950.
The embodiment of the application also provides a computer-readable storage medium, which stores computer-executable instructions for executing the video processing method.
The memory, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
According to the video processing method, the video processing device, the computer equipment and the computer readable storage medium, through obtaining the video sharing link, a user can click the video sharing link to output a click operation instruction, an application starting instruction can be output through opening a target application program, the target application program can normally run, under the condition of obtaining the click operation instruction, the video sharing link is analyzed, the user can directly jump to a video preview page of the target application program, the sharing video is played on the video preview page through loading first video data of the sharing video, the user can conveniently view the sharing video, a first data set is loaded according to video identification, classification labels and sliding configuration parameters, second video data and the first video data have the same classification labels, after the user views the sharing video, the user can execute sliding operation to view the next video of the same type, the user can continue to browse the video of the same type without exiting from the current page, and use experience of the user is improved.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation to the technical solutions provided in the embodiments of the present application, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems with the evolution of technology and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-7 are not intended to limit the embodiments of the present application and may include more or fewer steps than those shown, or some of the steps may be combined, or different steps may be included.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "comprises," "comprising," and "having," and any variations thereof, in the description of the present application and the drawings described above, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, which are essential or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product stored in a storage medium, which includes multiple instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and the scope of the claims of the embodiments of the present application is not limited thereto. Any modifications, equivalents and improvements that may occur to those skilled in the art without departing from the scope and spirit of the embodiments of the present application are intended to be within the scope of the claims of the embodiments of the present application.

Claims (10)

1. A video processing method, comprising:
the method comprises the steps of obtaining a video sharing link shared by a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification label of the shared video and a sliding configuration parameter;
acquiring a click operation instruction of a second user for the video sharing link;
acquiring an application starting instruction of the second user, and running a target application program corresponding to the application starting instruction;
responding to the click operation instruction, analyzing the video sharing link, and jumping to a video preview page of the target application program;
loading first video data of the shared video according to the video identifier, and playing the shared video on the video preview page;
loading a first video data set according to the video identification, the classification label and the sliding configuration parameter, wherein the first video data set comprises a plurality of second video data, and the classification labels of the second video data and the first video data are the same;
and when a sliding operation instruction of the second user on the video preview page is received, playing the same type of video corresponding to the second video data on the video preview page.
2. The video processing method according to claim 1, wherein the video sharing link further includes header information, and the parsing the video sharing link and jumping to a video preview page of the target application includes:
analyzing the header information to obtain a routing field;
determining a target number according to the routing field;
and jumping to a video preview page of the target application program according to the target number.
3. The video processing method of claim 1, wherein said loading a first video data set according to the video identifier, the classification tag, and the sliding configuration parameter comprises:
determining a first video data set stored in a background server according to the video identification, the classification label and the sliding configuration parameter;
acquiring a page of sub data set from the first video data set according to a preset number in a grading manner;
and filling the sub data sets obtained each time into a pre-stored video list.
4. The video processing method of claim 3, wherein said loading a first video data set according to said video identification, said classification tag, and said sliding configuration parameter further comprises:
and if the sequence of the current video in the subdata sets of the current page is a preset sequence number, preloading the subdata sets of the next page, wherein the current video is the video displayed in the video preview page.
5. The video processing method of claim 3, further comprising:
if the current video is in the subdata set of the last page in the first video data set, acquiring a second video data set according to a preset heat;
populating the second video data set to the video list.
6. The video processing method of claim 1, further comprising:
caching the browsed first video data and the browsed second video data to a memory;
and searching corresponding video data according to the video identification and playing the corresponding video in the video preview page.
7. The video processing method of claim 5, further comprising:
when a preset condition is met, starting a retry mechanism;
the preset condition comprises at least one of the following conditions:
the first video data fails to load;
the first video data set failed to load;
the second video data set fails to load.
8. A video processing apparatus, comprising:
the video sharing method comprises a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is used for obtaining a video sharing link shared by a first user, and the video sharing link comprises a video identifier of a shared video, a classification tag of the shared video and a sliding configuration parameter;
the second obtaining module is used for obtaining a click operation instruction of a second user for the video sharing link;
the third acquisition module is used for acquiring the application starting instruction of the second user and running a target application program corresponding to the application starting instruction;
the analysis module is used for analyzing the video sharing link and jumping to a video preview page of the target application program under the condition that the click operation instruction is obtained;
the first playing module is used for loading first video data of the shared video according to the video identifier and playing the shared video on the video preview page;
a first loading module, configured to load a first video data set according to the video identifier, the classification tag, and the sliding configuration parameter, where the first video data set includes a plurality of second video data, and the classification tag of the second video data is the same as that of the first video data;
and the second playing module is used for playing the same type of videos corresponding to the second video data on the video preview page under the condition that a sliding operation instruction of the second user on the video preview page is received.
9. A computer device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing a video processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having stored thereon computer-executable instructions for performing the video processing method of any of claims 1 to 7.
CN202210867775.3A 2022-07-21 2022-07-21 Video processing method, apparatus, computer device, and computer-readable storage medium Active CN115225951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210867775.3A CN115225951B (en) 2022-07-21 2022-07-21 Video processing method, apparatus, computer device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210867775.3A CN115225951B (en) 2022-07-21 2022-07-21 Video processing method, apparatus, computer device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN115225951A true CN115225951A (en) 2022-10-21
CN115225951B CN115225951B (en) 2023-06-20

Family

ID=83614732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210867775.3A Active CN115225951B (en) 2022-07-21 2022-07-21 Video processing method, apparatus, computer device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115225951B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686396A (en) * 2013-11-19 2014-03-26 乐视致新电子科技(天津)有限公司 Video sharing method and device
CN103686375A (en) * 2013-11-19 2014-03-26 乐视致新电子科技(天津)有限公司 Video sharing method and device
CN106658200A (en) * 2016-12-30 2017-05-10 乐蜜科技有限公司 Live video sharing and obtaining methods and devices, and terminal equipment thereof
WO2018107719A1 (en) * 2016-12-12 2018-06-21 掌阅科技股份有限公司 Data sharing method, apparatus, terminal device and server
CN109068153A (en) * 2018-09-28 2018-12-21 华为技术有限公司 Video broadcasting method, device and computer readable storage medium
CN109714646A (en) * 2018-12-19 2019-05-03 北京达佳互联信息技术有限公司 The sending method and method of reseptance of instant messaging, sending device and reception device
CN110087148A (en) * 2019-04-28 2019-08-02 北京达佳互联信息技术有限公司 A kind of video sharing method, apparatus, electronic equipment and storage medium
CN111694986A (en) * 2020-06-12 2020-09-22 北京奇艺世纪科技有限公司 Video recommendation method and device, electronic equipment and storage medium
WO2021083168A1 (en) * 2019-10-30 2021-05-06 维沃移动通信有限公司 Video sharing method and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686396A (en) * 2013-11-19 2014-03-26 乐视致新电子科技(天津)有限公司 Video sharing method and device
CN103686375A (en) * 2013-11-19 2014-03-26 乐视致新电子科技(天津)有限公司 Video sharing method and device
WO2018107719A1 (en) * 2016-12-12 2018-06-21 掌阅科技股份有限公司 Data sharing method, apparatus, terminal device and server
CN106658200A (en) * 2016-12-30 2017-05-10 乐蜜科技有限公司 Live video sharing and obtaining methods and devices, and terminal equipment thereof
CN109068153A (en) * 2018-09-28 2018-12-21 华为技术有限公司 Video broadcasting method, device and computer readable storage medium
CN109714646A (en) * 2018-12-19 2019-05-03 北京达佳互联信息技术有限公司 The sending method and method of reseptance of instant messaging, sending device and reception device
CN110087148A (en) * 2019-04-28 2019-08-02 北京达佳互联信息技术有限公司 A kind of video sharing method, apparatus, electronic equipment and storage medium
WO2021083168A1 (en) * 2019-10-30 2021-05-06 维沃移动通信有限公司 Video sharing method and electronic device
CN111694986A (en) * 2020-06-12 2020-09-22 北京奇艺世纪科技有限公司 Video recommendation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115225951B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN111143610B (en) Content recommendation method and device, electronic equipment and storage medium
EP3518124A1 (en) Webpage rendering method and related device
US20160004774A1 (en) Information recommendation method and apparatus and information recommendation system
CN107577807B (en) Method and device for pushing information
CN108399150B (en) Text processing method and device, computer equipment and storage medium
US10515142B2 (en) Method and apparatus for extracting webpage information
US20170185580A1 (en) Emoji input method and device thereof
CN110609965B (en) Page display method, device and storage medium
CN110826002B (en) Information sharing method, device, terminal and storage medium
CN106951270B (en) Code processing method, system and server
CN114827752B (en) Video generation method, video generation system, electronic device and storage medium
CN114564666A (en) Encyclopedic information display method, encyclopedic information display device, encyclopedic information display equipment and encyclopedic information display medium
US10318573B2 (en) Generic card feature extraction based on card rendering as an image
CN111753194B (en) Information pushing method and device, electronic equipment and storage medium
CN111935265A (en) Media information processing method and device
CN113589991A (en) Text input method and device, electronic equipment and storage medium
US20200175079A1 (en) Media information displaying method, device, electronic device, and computer readable medium
CN114722292A (en) Book searching method, device, equipment and storage medium
CN113407775B (en) Video searching method and device and electronic equipment
CN106951429B (en) Method, browser and equipment for enhancing webpage comment display
CN115225951B (en) Video processing method, apparatus, computer device, and computer-readable storage medium
CN108572985B (en) Page display method and device
CN115033643A (en) Data synchronization method, electronic device and computer-readable storage medium
CN114625658A (en) APP stability test method, device, equipment and computer readable storage medium
CN112287261A (en) Resource loading method and electronic equipment

Legal Events

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