CN115225951B - Video processing method, apparatus, computer device, and computer-readable storage medium - Google Patents

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

Info

Publication number
CN115225951B
CN115225951B CN202210867775.3A CN202210867775A CN115225951B CN 115225951 B CN115225951 B CN 115225951B CN 202210867775 A CN202210867775 A CN 202210867775A CN 115225951 B CN115225951 B CN 115225951B
Authority
CN
China
Prior art keywords
video
data set
video data
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.)
Active
Application number
CN202210867775.3A
Other languages
Chinese (zh)
Other versions
CN115225951A (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: acquiring a video sharing link, wherein the video sharing link comprises a video identifier of a shared video, a classification tag to which the shared video belongs and a sliding configuration parameter; acquiring a clicking 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 the target application program; loading first video data of the shared video according to the video identification, and playing the shared video on a video preview page; loading a first video data set according to the video identification, the classification tag and the sliding configuration parameter; and when a sliding operation instruction of the second user on the video preview page is received, playing the similar 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, apparatus, computer device, and computer-readable storage medium
Technical Field
The present application relates to the field of artificial intelligence technology, and in particular, to a video processing method, apparatus, computer device, and computer readable storage medium.
Background
Currently, the mainstream short video applications all have a sharing function, and the sharing modes can be divided into two types: the first type is to download video to a local album and then automatically forward the video to a third party platform by a user; the second type is a plain text link, which the user can copy to share to a third party platform by converting the video summary information into a plain text link. Aiming at the first type of sharing form, the method has the following defects: before sharing, the user needs to download the complete video, the user needs to consume time and flow to wait for the video to be downloaded to be shared, and the sharing operation needs to select the video from the local album by the user to be shared to the third party platform, so that the operation cost is high, the time is long, and the convenience of operation is reduced; aiming at the second type of sharing form, the method has the following defects: the link of the plain text needs to be copied and then the corresponding application program is opened to view the video, so that the operation is not friendly enough, in addition, the user can only view the current shared video and cannot continue to view other videos, and after the video is viewed, the user needs to exit the current page and return to the previous page to continue to browse the video, so that the user experience is not friendly enough.
Disclosure of Invention
The main objective of the embodiments of the present application is to provide a video processing method, a device, a computer device and a computer readable storage medium, which aim to improve the user experience.
To achieve the above object, a first aspect of an embodiment of the present application proposes a video processing method, including:
obtaining a video sharing link from a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification tag to which the shared video belongs and a sliding configuration parameter;
acquiring a click operation instruction of a second user aiming at 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 clicking 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 identification, and playing the shared video on the video preview page;
loading a first video data set according to the video identification, the classification tag and the sliding configuration parameter, wherein the first video data set comprises a plurality of second video data, and the classification tags 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 similar 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 jumps to a video preview page of the target application program, 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, said loading a first video data set according to said video identification, said category label and said sliding configuration parameter comprises:
determining a first video data set stored in a background server according to the video identification, the classification tag and the sliding configuration parameter;
a page of sub-data set is acquired from the first video data set in a divided manner according to a preset number;
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 identification, the category label, and the sliding configuration parameter further comprises:
And preloading a sub-data set of a next page if the ordering of the current video in the sub-data set of the current page is a preset sequence number, wherein the current video is a video displayed in the video preview page.
In some embodiments, further comprising:
if the current video is in the sub-data set of the last page in the first video data set, acquiring a second video data set according to a preset heat;
and filling the second video data set into the video list.
In some embodiments, further comprising:
caching the browsed first video data and the browsed second video data into 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 the preset condition is met, starting a retry mechanism;
the preset condition includes at least one of:
the first video data loading fails;
the first video dataset failed to be loaded;
the second video data set fails to be loaded.
To achieve the above object, a second aspect of the embodiments of the present application proposes a video processing apparatus, including:
the first acquisition module is used for acquiring a video sharing link shared by a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification tag to which the shared video belongs and a sliding configuration parameter;
The second acquisition module is used for acquiring a click operation instruction of a second user aiming at the video sharing link;
the third acquisition module is used for acquiring an 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 clicking operation instruction is acquired;
the first playing module is used for loading first video data of the shared video according to the video identification and playing the shared video on the video preview page;
the first loading module is used for 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 the second playing module is used for playing the similar video corresponding to the second video data on the video preview page under the condition that the sliding operation instruction of the second user on the video preview page is received.
To achieve the above object, a third aspect of the embodiments of the present application proposes 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 according to the first aspect described above when executing the computer program.
To achieve the above object, a fourth aspect of the embodiments of the present application proposes a computer-readable storage medium storing computer-executable instructions for performing the video processing method according to the above first aspect.
According to the video processing method, the device, the computer equipment and the computer readable storage medium, the video sharing link is acquired, the user can click on the video sharing link, so that a click operation instruction is output, the target application program can output an application opening instruction through opening the target application program, the target application program can normally operate, the video sharing link can be analyzed under the condition that the click operation instruction is acquired, the video sharing link can be directly jumped to a video preview page of the target application program, the user can conveniently view the sharing video by loading first video data of the sharing video and playing the sharing video on the video preview page, the user can conveniently view the sharing video, the first data set is loaded according to the video identification, the classification label and the sliding configuration parameter, the second video data and the first video data have the same classification label, and when the user can execute the sliding operation after viewing the sharing video, the next similar video can continue to browse the video without exiting the current page, and the user experience is facilitated to be improved.
Drawings
FIG. 1 is a flow chart of a video processing method provided in one embodiment of the present application;
FIG. 2 is a flow chart of a video processing method provided in another embodiment of the present application;
FIG. 3 is a flow chart of a video processing method provided in another embodiment of the present application;
FIG. 4 is a flow chart of a video processing method provided in another embodiment of the present application;
FIG. 5 is a flow chart of a video processing method provided in another embodiment of the present application;
FIG. 6 is a flow chart of a video processing method provided in another embodiment of the present application;
fig. 7 is a schematic step processing diagram 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 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 will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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 present application.
First, several nouns referred to in this application are parsed:
artificial intelligence (artificial intelligence, AI): is a new technical science for researching and developing theories, methods, technologies and application systems for simulating, extending and expanding the intelligence of people; artificial intelligence is a branch of computer science that attempts to understand the nature of intelligence and to produce a new intelligent machine that can react in a manner similar to human intelligence, research in this field including robotics, language recognition, image recognition, natural language processing, and expert systems. Artificial intelligence can simulate the information process of consciousness and thinking of people. Artificial intelligence is also a theory, method, technique, and application system that utilizes a digital computer or digital computer-controlled machine to simulate, extend, and expand human intelligence, sense the environment, acquire knowledge, and use knowledge to obtain optimal results.
Natural language processing (natural language processing, NLP): NLP is a branch of artificial intelligence that is a interdisciplinary of computer science and linguistics, and is often referred to as computational linguistics, and is processed, understood, and applied to human languages (e.g., chinese, english, etc.). Natural language processing includes parsing, semantic analysis, chapter understanding, and the like. Natural language processing is commonly used in the technical fields of machine translation, handwriting and print character recognition, voice recognition and text-to-speech conversion, information intent recognition, information extraction and filtering, text classification and clustering, public opinion analysis and opinion mining, and the like, and relates to data mining, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, linguistic research related to language calculation, and the like.
Based on this, the embodiments of the present application provide a video processing method, apparatus, computer device, and computer readable storage medium, which aim to improve the user experience.
The video processing method, apparatus, computer device and computer readable storage medium provided in the embodiments of the present application are specifically described by the following embodiments, and the video processing method in the embodiments of the present application is first described.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Artificial intelligence infrastructure 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 other directions.
The embodiment of the application provides a video processing method, which relates to the technical field of artificial intelligence. The video processing method provided by the embodiment of the application can be applied to the terminal and can also be software running in the terminal. In some embodiments, the terminal may be a smart phone, tablet, notebook, desktop, etc.; the background server in the embodiment of the application can be configured as an independent physical server, can be configured as a server cluster or a distributed system formed by a plurality of physical servers, and can be configured as a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like; the software may be an application or the like that implements the video processing method, but is not limited to the above form.
The subject application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet 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, where the method in fig. 1 may include, but is not limited to, steps S110 to S170.
Step S110: obtaining a video sharing link from a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification tag to which the shared video belongs and a sliding configuration parameter;
it should be noted that, if the first user wants to share the shared video to other people, the sharing operation may be triggered in a designated area of a video preview page of the sharing source application program, for example, a sharing button is set in the designated 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 related 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 to other people through a third party platform, and the sharing operation is simple and convenient. Specifically, the format of the video sharing link is as follows:
https://headerUrlvideoId=xxx&tabKey=xxx&needPreload=1;
the header is header information, the videoId represents a video identifier, the video identifier is used for identifying a unique video, the tabKey represents a classification tag, the tabKey is used for distinguishing classification categories to which the video belongs, and the needledPreload represents a sliding configuration parameter.
Step S120: acquiring a click operation instruction of a second user aiming at the video sharing link;
specifically, the third party platform may be a communication application program, when 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 click the video sharing link to output a click operation instruction, where the click operation instruction is used to instruct to view the shared video.
In an embodiment, the video sharing link can be processed to generate a sharing card, and the sharing card displays related information of the sharing video, including but not limited to information such as video titles, content, video sources and the like, and the information presentation is simple and visual, so that the user can browse the information conveniently.
Step S130: acquiring an application opening instruction of a second user, and running 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 is conveniently checked in the target application program. It will be appreciated that the target application is the same as the sharing source application of the first user-generated video sharing link.
Step S140: responding to the clicking operation instruction, analyzing the video sharing link, and jumping to a video preview page of the target application program;
Under the condition that the clicking operation instruction is acquired, the video sharing link is analyzed, and the video sharing link can be directly jumped to a video preview page of the target application program, so that the sharing video can be conveniently played.
Step S150: loading first video data of the shared video according to the video identification, 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, taking the data to the post-cache memory, obtaining first video data from the background server according to the video identifier, where the first video data includes related data such as a video title, content, brief introduction, play quantity, and the like, and rendering the first video data to a video preview page, so as to play the shared video, and facilitate the user to view the shared video.
In this embodiment, the user only needs to click on the video sharing link and open the corresponding target application program to view the shared video, so that the operation is convenient.
Step S160: loading a first video data set according to the video identification, the classification tag and the sliding configuration parameter, wherein the first video data set comprises a plurality of second video data, and the classification tags of the second video data and the first video data are the same;
in order to meet the requirement that a user can view the next video after viewing the current shared video, a first video data set is loaded according to the video identification, the classification label and the sliding configuration parameter, the second video data and the first video data have the same classification label, and similar videos 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, the needledpreload=1, that is, the value of the sliding configuration parameter is a first preset value, which indicates that the next video needs to be viewed in a sliding manner, the first video data set is obtained from the background server, and if the needledpreload=0, that is, the value of the sliding configuration parameter is a second preset value, the first video data set is not obtained from the background server.
Step S170: and when a sliding operation instruction of the second user on the video preview page is received, playing the similar video corresponding to the second video data on the video preview page.
After the second user finishes looking up the shared video, a sliding operation is performed on the video preview page, for example, a sliding operation or a sliding operation is performed, a sliding operation instruction is output, the sliding operation instruction is used for indicating to switch the current video, specifically, when the shared video is browsed, the user performs the sliding operation on the video preview page, the second video data is rendered to the video preview page, the similar video in the same category as the shared video is played on the video preview page, the user can conveniently and continuously slide and browse the video without exiting the current page, and the user experience is facilitated to be improved.
In the steps S110 to S170 illustrated in the embodiments of the present application, through obtaining a video sharing link, a user may click on the video sharing link, thereby outputting a click operation instruction, and opening a target application program may output an application opening instruction, so that the target application program operates normally, under the condition of obtaining the click operation instruction, the video sharing link is parsed, and the video sharing link may be directly jumped to a video preview page of the target application program, and the user may conveniently view the shared video by loading first video data of the shared video and playing the shared video on the video preview page, and load a first data set according to a video identifier, a classification tag and a sliding configuration parameter, where the second video data and the first video data have the same classification tag, and when the user views the shared video, the user may execute a sliding operation to view the next similar video, and may continue browsing videos of the same type without exiting the current page, thereby being 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 to jump to a 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 character string format by each parameter such as header information, video identifier, class label and sliding configuration parameter. The header information is a specific link segment that the target application can parse.
After the clicking operation instruction is responded, the route field is obtained by analyzing the head information, the target number in the route field is determined, the video preview page of the target application program is jumped to according to the target number, and all parameters of the video sharing link are transmitted to the video preview page, so that the obtained video data are conveniently rendered to the video preview page, a user can see the sharing video only by opening the corresponding target application program, and the operation is friendly.
Specifically, the target application program parses the header information to obtain a routing field, and passes the routing field to the call assistant component, where the routing field is specifically as follows:
"# visitjumpUrl = aipage://1106"; wherein 1106 is the target number;
The visit assistant assembly distributes to the specific service assembly according to the target number, the specific service assembly in the embodiment refers to a video browsing service assembly, and the video browsing service assembly jumps to a video preview page so as to conveniently play and share videos.
As shown in fig. 3, in some embodiments, the first video data set is loaded in step S160 according to the video identification, the category label, and the sliding configuration parameters, including, but not limited to, steps S310 through S330:
step S310: determining a first video data set stored in a background server according to the video identification, the classification tag and the sliding configuration parameter;
step S320: acquiring a page of sub-data set from the first video data set in a divided manner according to a preset number;
step S330: and filling the sub-data sets acquired each time into a pre-stored video list.
It should be noted that, the first video data set is stored in the background server, the first video data set is determined according to the video identifier, the classification tag and the sliding configuration parameter, and a page of sub data set is acquired from the first video data set in a divided manner according to the preset number, that is, only one page of sub data set is loaded at a time, the loading is a process of taking data from the background server, the sub data set is cached in the memory after the loading is carried out, a video list is maintained in the memory, and the new page of sub data set is filled into the video list after the new page of sub data set is acquired each time, when a user performs a sliding operation in a video preview page, that is, the video in the video list is played, the data in the video list can be continuously expanded, and the user can continuously check the next video by continuously filling the data into the video list.
In one embodiment, the preset number is 10, and the sub-data set of each page has 10 pieces of data, that is, 10 pieces of data are acquired from the background server each time, the preset number is determined according to specific service requirements,
it can be understood that, in this embodiment, all video data corresponding to all videos need not be loaded in advance, but a paging acquisition mode is adopted, so that when all videos of a current page are fast broadcast, the loading speed can be effectively improved, meanwhile, the situation that the normal data processing is affected by excessive cached data is avoided, and the data processing efficiency of a target application program is improved.
As shown in fig. 4, in some embodiments, the video processing method further includes step S410 of loading the first video data set according to the video identification, the category label, and the sliding configuration parameter in step S160:
step S410: and preloading the sub-data set of the next page if the ordering of the current video in the sub-data set of the current page is a preset sequence number, wherein the current video is the video displayed in the video preview page.
If the ordering of the current video in the sub-data set of the current page is a preset sequence number, which indicates that the video user of the current page is about to see, the sub-data set of the next page is preloaded, namely a new sub-data set of one page is acquired from a background server and is filled into a video list, so that the video can be watched continuously when the user slides continuously, and the user experience is improved.
Specifically, if the preset number is 10, the preset number is 9, when the user slides to the next-to-last video, that is, the ordering of the current video in the sub-data set of the current page is 9, which means that the video user of the current page is about to see the next video, and needs a new video, a preloading operation is performed, the sub-data set of the next page is obtained from a background server, and the data in the video list is timely supplemented, so that the user can continuously watch the video, meanwhile, the preloading can accelerate the efficiency of video display, when the user slides to watch the next video, the waiting time of the user can be reduced, and the use experience of the user is improved.
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 sub-data 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 to a video list.
If the current video belongs to the sub-data set of the last page in the first video data set, the fact that the same type of video is about to be browsed is indicated to be completed, namely, the similar videos in the video list are about to be broadcast to be completed, a second video data set is obtained from a 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 popular video after browsing the video of the same type, and the user can be ensured to continuously slide to view the video.
It should be noted that, the second video data set includes a plurality of third video data, the heat of the videos corresponding to the third video data all reaches the preset heat, which can be understood that the videos corresponding to the third video data are hot videos, the preset heat can be determined according to the praise amount and the browsing amount, and the hot videos are ordered from big to small according to the heat.
In one embodiment, the second video data set is obtained according to a predetermined number of pages, i.e. one sub-data set is obtained 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 second video data into 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 to the memory, specifically, the browsed first video data and the browsed second video data may be stored in a history set in the memory, and when the user wants to view the browsed video again, the user may find corresponding video data from the history set according to the video identifier and play the corresponding video in the video preview page, which is favorable for improving 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, the model of the video data is used as a value, and the data acquisition speed can be improved by searching in the form of key value pairs.
In some embodiments, the video processing method further comprises the steps of:
when the preset condition is met, starting a retry mechanism;
the preset condition includes at least one of:
the first video data loading fails;
the first video dataset failed to be loaded;
the second video data set fails to be loaded.
It should be noted that, because the network may have delay, instability and other conditions, in order to ensure the reliability of data call, all requests set a retry mechanism, when the first video data fails to be loaded, the retry mechanism is started, and when the first video data set fails to be loaded, the retry mechanism is started, and when the second video data set fails to be loaded, the retry mechanism is started, and the second video data set is loaded again, so that the influence caused by the instability of the network is reduced, and the user can be ensured to be able to view videos continuously to a certain extent, which is beneficial to optimizing the use experience of the user.
As shown in fig. 7, in an embodiment, a first user clicks a share button in a video preview page, then automatically generates a video share link, the first user shares the video share link to a third party platform, a second user clicks the video share link, opens a target application program, then automatically parses the video share link, jumps to the 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, with the sliding operation of the user, when the user browses to a last second video of the first page sub-data set, loads a second page sub-data set of the first video data set, when the user browses to a last second video of the second page sub-data set, continues to load a next page sub-data set, continuously repeats loading data and fills the next page sub-data to a video list, when the user browses to a last second video of the last page sub-data set, and loads a hot video, after the user browses the video, the same kind of video can be browsed, after the video browsing of the same kind is completed, all the video browsing has been browsed, and the video can continue to browse, and the same kind of video is requested, and the data is requested to be restarted, and the data is requested to be retried.
As shown in fig. 8, the embodiment of the present application further provides a video processing apparatus, which may implement the above 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 parsing module 840, a first playing module 850, a first loading module 860, and a second playing module 870, and the first obtaining module 810 is configured to obtain a video sharing link from a first user, where the video sharing link includes a video identifier of a shared video, a classification 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 the second user for the video sharing link; the third obtaining module 830 is configured to obtain an application opening instruction of the second user, and run a target application program corresponding to the application opening instruction; the parsing module 840 is configured to parse the video sharing link and skip to a video preview page of the target application program when the clicking operation instruction is acquired; the first playing module 850 is configured to load first video data of the shared video according to the video identifier, and play the shared video on the 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 tags of the second video data and the first video data are the same; the second playing module 870 is configured to play the similar video corresponding to the second video data on the video preview page when receiving the sliding operation instruction of the second user on the video preview page.
According to the video processing device, the user can click on the video sharing link through obtaining the video sharing link, so that a click operation instruction is output, an application opening instruction can be output through opening the target application program, the target application program can normally operate, under the condition that the click operation instruction is obtained, the video sharing link is analyzed, the video sharing link can be directly jumped to a video preview page of the target application program, the user can conveniently view the shared video by loading first video data of the shared video and playing the shared video on the video preview page, the first data set is conveniently loaded according to the video identification, the classification label and the sliding configuration parameter, the second video data and the first video data have the same classification label, the user can execute the sliding operation after viewing the shared video so as to view the next similar video without exiting the current page, and the user experience is facilitated to be improved.
In some embodiments, the video sharing link further includes header information, and the parsing module 840 parses the video sharing link to jump to a video preview page of the target application program, 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 in the first loading module 860 according to the video identification, the category label, and the sliding configuration parameter includes:
determining a first video data set stored in a background server according to the video identification, the classification tag and the sliding configuration parameter;
acquiring a page of sub-data set from the first video data set in a divided manner according to a preset number;
and filling the sub-data sets acquired each time into a pre-stored video list.
In some embodiments, the loading of the first video data set in the first loading module 860 according to the video identification, the category label and the sliding configuration parameter further comprises:
and preloading the sub-data set of the next page if the ordering of the current video in the sub-data set of the current page is a preset sequence number, 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 obtain, in a case of a sub-dataset of a last page of the current video in the first video dataset, a second video dataset according to a preset heat; the second video data set is populated to a video list.
In some embodiments, the video processing apparatus further includes a history buffer module, where the history buffer module is configured to buffer the first video data and the second video data that have been browsed to the 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 initiate a retry mechanism if a preset condition is satisfied; the preset condition includes at least one of:
the first video data loading fails;
the first video dataset failed to be loaded;
the second video data set fails to be loaded.
It should be noted that, the specific implementation of the video processing apparatus is substantially the same as the specific embodiment of the video processing method described above, and will not be described herein again.
The embodiment of the application also provides a computer device, which comprises: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the video processing method as described above when executing the computer program. The computer equipment can be any intelligent terminal including a tablet personal computer, a vehicle-mounted computer and the like.
As shown in fig. 9, fig. 9 illustrates a hardware configuration 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 (ApplicationSpecificIntegratedCircuit, ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solutions provided by the embodiments of the present application;
memory 920 may be implemented in the form of read-only memory (ReadOnlyMemory, ROM), static storage, dynamic storage, or random access memory (RandomAccessMemory, RAM). The memory 920 may store an operating system and other application programs, and when the technical solutions provided in the embodiments of the present application are implemented by software or firmware, relevant program codes are stored in the memory 920, and the processor 910 invokes a video processing method to perform the embodiments of the present application;
an input/output interface 930 for inputting and outputting information;
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 may implement communication in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.);
A bus 950 for transferring information between components of the device (e.g., processor 910, memory 920, input/output interface 930, and communication interface 940);
wherein processor 910, memory 920, input/output interface 930, and communication interface 940 implement communication connections among 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. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable 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, the user can click on the video sharing link by acquiring the video sharing link, so that a click operation instruction is output, the target application program can output an application opening instruction by opening the target application program, the target application program can normally operate, the video sharing link can be analyzed under the condition of acquiring the click operation instruction, the video can be directly jumped to a video preview page of the target application program, the user can conveniently view the sharing video by loading first video data of the sharing video and playing the sharing video on the video preview page, the user can conveniently view the sharing video, the first data set is loaded according to the video identification, the classification tag and the sliding configuration parameter, the second video data and the first video data have the same classification tag, and when the user can execute the sliding operation after viewing the sharing video, the user can view the next similar video without exiting the current page, and the user can continue browsing the video of the same type, so that the user experience is facilitated to be improved.
The embodiments described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and as those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1-7 are not limiting to embodiments of the present application and may include more or fewer steps than shown, or certain steps may be combined, or different steps.
The above described apparatus embodiments 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 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 this embodiment.
Those 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" and "comprising," along with any variations thereof, in the description of the present application and in the above-described figures, 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 or inherent to such process, method, article, or apparatus.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). 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 this 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 merely a logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including multiple instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing a program.
Preferred embodiments of the present application are described above with reference to the accompanying drawings, and thus do not limit the scope of the claims of the embodiments of the present application. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the embodiments of the present application shall fall within the scope of the claims of the embodiments of the present application.

Claims (10)

1. A video processing method, comprising:
obtaining a video sharing link from a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification tag to which the shared video belongs and a sliding configuration parameter;
acquiring a click operation instruction of a second user aiming at 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 clicking 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 identification, and playing the shared video on the video preview page;
loading a first video data set according to the video identification, the classification tag and the sliding configuration parameter, wherein the first video data set comprises a plurality of second video data, and the classification tags 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 similar 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, the parsing the video sharing link, skipping to a video preview page of the target application program, 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 loading the first video data set according to the video identification, the category label, and the sliding configuration parameter comprises:
determining a first video data set stored in a background server according to the video identification, the classification tag and the sliding configuration parameter;
a page of sub-data set is acquired from the first video data set in a divided manner according to a preset number;
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 category label and said sliding configuration parameter further comprises:
and preloading a sub-data set of a next page if the ordering of the current video in the sub-data set of the current page is a preset sequence number, wherein the current video is a video displayed in the video preview page.
5. A video processing method according to claim 3, further comprising:
if the current video is in the sub-data set of the last page in the first video data set, acquiring a second video data set according to a preset heat;
and filling the second video data set into the video list.
6. The video processing method according to claim 1, further comprising:
caching the browsed first video data and the browsed second video data into 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 according to claim 5, further comprising:
when the preset condition is met, starting a retry mechanism;
The preset condition includes at least one of:
the first video data loading fails;
the first video dataset failed to be loaded;
the second video data set fails to be loaded.
8. A video processing apparatus, comprising:
the first acquisition module is used for acquiring a video sharing link shared by a first user, wherein the video sharing link comprises a video identifier of a shared video, a classification tag to which the shared video belongs and a sliding configuration parameter;
the second acquisition module is used for acquiring a click operation instruction of a second user aiming at the video sharing link;
the third acquisition module is used for acquiring an 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 clicking operation instruction is acquired;
the first playing module is used for loading first video data of the shared video according to the video identification and playing the shared video on the video preview page;
the first loading module is used for 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 the second playing module is used for playing the similar video corresponding to the second video data on the video preview page under the condition that the sliding operation instruction of the second user on the video preview page is received.
9. A computer device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the video processing method according to any one of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium storing computer-executable instructions for performing the video processing method according to any one 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 CN115225951A (en) 2022-10-21
CN115225951B true 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
CN103686375A (en) * 2013-11-19 2014-03-26 乐视致新电子科技(天津)有限公司 Video sharing method and device
CN103686396A (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
CN103686375A (en) * 2013-11-19 2014-03-26 乐视致新电子科技(天津)有限公司 Video sharing method and device
CN103686396A (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
CN115225951A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
US11256848B2 (en) Automated augmentation of text, web and physical environments using multimedia content
US11669579B2 (en) Method and apparatus for providing search results
CN108399150B (en) Text processing method and device, computer equipment and storage medium
EP3518124A1 (en) Webpage rendering method and related device
CN107577807B (en) Method and device for pushing information
US20160004774A1 (en) Information recommendation method and apparatus and information recommendation system
US20170185580A1 (en) Emoji input method and device thereof
CN109635094B (en) Method and device for generating answer
WO2008132704A2 (en) A system for aggregating and displaying syndicated news feeds
CN101765979A (en) Document processing for mobile devices
CN105975462A (en) Method and device for displaying web page and intelligent television system
CN110826002B (en) Information sharing method, device, terminal and storage medium
CN106951270B (en) Code processing method, system and server
CN111259225B (en) New media information display method and device, electronic equipment and computer readable medium
KR102335780B1 (en) Online advertising method and online advertising system using influencers using multiple platform servers
CN109597929A (en) Methods of exhibiting, device, terminal and the readable medium of search result
CN114564666A (en) Encyclopedic information display method, encyclopedic information display device, encyclopedic information display equipment and encyclopedic information display medium
CN113589991A (en) Text input method and device, electronic equipment and storage medium
CN113886707A (en) Encyclopedic information determination method, display method, device, equipment and medium
CN114722292A (en) Book searching method, device, equipment and storage medium
CN115225951B (en) Video processing method, apparatus, computer device, and computer-readable storage medium
CN106951429B (en) Method, browser and equipment for enhancing webpage comment display
KR20210107613A (en) Systems and methods for improved retrieval and classification of media content items based on a destination for the media content items.
CN112084441A (en) Information retrieval method and device and electronic equipment
CN115033643A (en) Data synchronization method, electronic device and computer-readable storage medium

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