CN111182336A - Video data playing processing method and device, server and terminal - Google Patents

Video data playing processing method and device, server and terminal Download PDF

Info

Publication number
CN111182336A
CN111182336A CN201911029959.7A CN201911029959A CN111182336A CN 111182336 A CN111182336 A CN 111182336A CN 201911029959 A CN201911029959 A CN 201911029959A CN 111182336 A CN111182336 A CN 111182336A
Authority
CN
China
Prior art keywords
video data
video
playing
check code
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911029959.7A
Other languages
Chinese (zh)
Inventor
王瞳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911029959.7A priority Critical patent/CN111182336A/en
Publication of CN111182336A publication Critical patent/CN111182336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Abstract

The application discloses a video data playing processing method, a device, a server and a terminal, wherein the method comprises the following steps: the playing terminal sends a video playing request of a target video stream to the content distribution management terminal; the content distribution management terminal generates a video position file based on the download address of the current fragment video data of the target video stream and the corresponding check code, and sends the video position file to the playing terminal; the playing terminal analyzes the video position file to obtain a download address of the current fragmented video data and a corresponding check code, acquires the corresponding current fragmented video data based on the analyzed download address, and checks the fragmented video data based on the acquired corresponding current fragmented video data and the analyzed corresponding check code; and when the verification is successful, playing the current video data slice. By the technical scheme provided by the embodiment of the application, the timeliness of video playing can be greatly improved on the basis of ensuring the accuracy of the obtained video data.

Description

Video data playing processing method and device, server and terminal
Technical Field
The present application relates to the field of internet communication technologies, and in particular, to a method, an apparatus, a server, and a terminal for playing and processing video data.
Background
In recent years, multimedia information technology has been developed rapidly, and video, as an important component of multimedia information, can effectively record various information, and is gradually becoming an important way for information dissemination.
In the prior art, in order to ensure that video data downloaded by a playing terminal from a content distribution network is accurate and playable, it is necessary to verify the video data before playing the video. Specifically, after the video data is downloaded by the playing terminal, the check code is acquired from the content distribution network side, the check code acquired by the content distribution network side is compared with the check code determined based on the downloaded video data, and when the check codes are consistent, the playing is performed so as to ensure the accuracy of the played video data. However, in the prior art, in order to ensure the fluency of video playing, video data is often divided into a plurality of segments. For example, in a scenario where a live video is played in an HTTP live streaming (HTTP live streaming, an HTTP-based streaming media network transport protocol proposed by apple inc.), the entire video data is divided into individual pieces of HTTP-based video data to be sequentially transmitted and played, which results in that before each piece of video data is played, the playing terminal needs to request a data check code to the content distribution network again, and interaction between the playing terminal and the content distribution network has a certain failure rate and causes a problem of time consumption. Therefore, there is a need to provide a more reliable or efficient solution.
Disclosure of Invention
The application provides a video data playing processing method, a video data playing processing device, a server and a terminal, which can greatly improve video playing timeliness on the basis of ensuring accuracy of obtained video data.
In one aspect, the present application provides a method for playing and processing video data, where the method includes:
receiving a video playing request of a target video stream sent by a playing terminal;
generating a video position file based on a download address of current fragmented video data of the target video stream and a corresponding check code, wherein the current fragmented video data is fragmented video data which needs to be played currently in a playing sequence in a plurality of fragmented video data of the target video stream;
sending the video position file to the playing terminal so that the playing terminal can analyze the video position file to obtain a download address of the current fragment video data and a corresponding check code; acquiring corresponding current fragment video data based on the analyzed download address; checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code; and when the verification is successful, playing the current sliced video data successfully verified.
Another aspect provides a playback processing apparatus for video data, the apparatus including:
the video playing request receiving module is used for receiving a video playing request of a target video stream sent by a playing terminal;
a video position file generating module, configured to generate a video position file based on a download address of current fragmented video data of the target video stream and a corresponding check code, where the current fragmented video data is fragmented video data that needs to be played currently in a playing sequence among multiple fragmented video data of the target video stream;
the video position file sending module is used for sending the video position file to the playing terminal so that the playing terminal can analyze the video position file to obtain a download address of the current fragment video data and a corresponding check code; acquiring corresponding current fragment video data based on the analyzed download address; checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code; and when the verification is successful, playing the current sliced video data successfully verified.
Another aspect provides a playing processing server for video data, the server including a processor and a memory, the memory storing at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the playing processing method for video data as described above.
In another aspect, the present application provides a method for playing and processing video data, where the method includes:
sending a video playing request of a target video stream to a content distribution management end;
receiving a video position file sent by the content distribution management terminal, wherein the video position file is generated based on a download address of current fragment video data of the target video stream and a corresponding check code, and the current fragment video data is the fragment video data which needs to be played currently according to a playing sequence in a plurality of fragment video data of the target video stream;
analyzing the video position file to obtain a download address of the current fragment video data and a corresponding check code;
acquiring corresponding current fragment video data based on the analyzed download address;
checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code;
and when the verification is successful, playing the current sliced video data successfully verified.
Another aspect provides a playback processing apparatus for video data, the apparatus including:
the video playing request sending module is used for sending a video playing request of a target video stream to the content distribution management terminal;
a video location file receiving module, configured to receive a video location file sent by the content distribution management end, where the video location file is generated based on a download address of current fragmented video data of the target video stream and a corresponding check code, and the current fragmented video data is fragmented video data that needs to be currently played in a playing sequence among multiple fragmented video data of the target video stream;
the video position file analysis module is used for analyzing the video position file to obtain a download address of the current fragment video data and a corresponding check code;
the current fragment video data acquisition module is used for acquiring corresponding current fragment video data based on the analyzed download address;
the data verification module is used for verifying the fragment video data based on the acquired corresponding current fragment video data and the analyzed corresponding verification code;
and the video data playing module is used for playing the current sliced video data which is successfully verified when the verification is successful.
Another aspect provides a terminal for playing and processing video data, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for playing and processing video data as described above.
Another aspect provides a computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of playback processing of video data as described above.
The method, the device, the server and the terminal for playing and processing the video data have the following technical effects:
after receiving a video playing request of a target video stream, a content distribution management terminal adds a check code which needs to be used for checking before video playing to a video position file used for storing a video downloading address; and the video position file is sent to the playing terminal, so that the interactive step of transmitting the check code again is simplified. The playing terminal can directly acquire the download address of the fragment video data and the corresponding check code through the analysis of the video position file, and then can directly check after acquiring the fragment video data to be played based on the download address, and directly play the video data after the check is successful. By the technical scheme provided by the embodiment of the application, the timeliness of video playing can be greatly improved on the basis of ensuring the accuracy of the obtained video data.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a system for playing and processing video data in an application scenario according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for playing and processing video data according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another video data playing processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a process that a playing terminal analyzes the video location file to obtain a download address of current fragmented video data and a corresponding check code according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a process of verifying fragmented video data by a playing terminal based on the obtained corresponding current fragmented video data and the analyzed corresponding verification code according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another video data playing processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for playing and processing video data according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another video data playing processing method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a device for playing and processing video data according to an embodiment of the present application;
fig. 10 is a block diagram of a hardware structure of a server according to a method for playing and processing video data provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above 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 is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server 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.
Referring to fig. 1, fig. 1 is a schematic view of a system for playing and processing video data in an application scenario provided in an embodiment of the present application, and as shown in fig. 1, an application scenario of the system for playing and processing video data may be a live video scenario, and specifically, the system may include a live video terminal 100, a transcoding server 200, a content distribution network 300, and a playing terminal 400.
In this embodiment, the live video terminal 100 may include a terminal for recording video data, and send the recorded video data to the transcoding server. Specifically, the live video terminal 100 may include an entity device provided with a camera, such as a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, and an intelligent wearable device, and may also include software running in the entity device, such as an application program. The operating system running on the live video terminal 100 in the embodiment of the present application may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
In this embodiment of the present specification, the transcoding server 200 may be configured to transcode video data recorded by the live video terminal 100, specifically, the video data may be divided into one piece of sliced video data, and a check code of each piece of sliced video data is generated; and transmits the sliced video data and the corresponding check code to the content distribution network 300. Specifically, the transcoding server 200 may include a server operating independently, a distributed server, a server cluster composed of a plurality of servers, and the like.
In this embodiment, the content distribution network 300 may be configured to perform distribution of video data, and generally, the content distribution network may include a content distribution management end 301 and a plurality of content cache devices 302, and the like. The content caching device 302 may be configured to store fragmented video data that needs to be distributed, and specifically, the content distribution management terminal 301 and the content caching device 302 may include a server that operates independently, a distributed server, a server cluster that is composed of multiple servers, and the like.
In this embodiment, the playing terminal 400 may be used to play a video. Specifically, the playing terminal 400 may include an entity device such as a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, and a smart wearable device, and may also include software running in the entity device, such as an application program. The operating system running on the play terminal 400 in the embodiment of the present application may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
In addition, it should be noted that fig. 1 is only an example of a playing processing system for video data in an application scenario, and in practical applications, the playing processing system may include more or less devices in different scenarios.
The following describes a method for playing and processing video data according to the present application, and fig. 2 is a schematic flowchart of a method for playing and processing video data according to an embodiment of the present application, where the present specification provides the method operation steps described in the embodiments or the flowchart, but the method may include more or less operation steps based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201: and the playing terminal sends a video playing request of the target video stream to the content distribution management terminal.
In this embodiment, the target video stream may be video data that needs to be played. In practical application, when a user of the playing terminal needs to watch a target video stream, the playing terminal may be triggered to send a video playing request of the target video stream to the content distribution management terminal by clicking the target video stream.
S203: and the content distribution management terminal generates a video position file based on the download address of the current fragment video data of the target video stream and the corresponding check code.
In this embodiment of the present description, a target video stream is divided into individual pieces of video data, and the pieces of video data are sequentially transmitted to a playing terminal for playing, and correspondingly, the current piece of video data may be a piece of video data that needs to be currently played according to a playing sequence in a plurality of pieces of video data of the target video stream.
In this embodiment of the present specification, the generating, by the content distribution management end, a video location file based on a download address of current fragmented video data of the target video stream and a corresponding check code includes:
the content distribution management terminal generates first identification information of a download address and second identification information of a check code;
the content distribution management terminal generates the plurality of video position files based on the download address of the current fragment video data, the corresponding check code, the first identification information and the second identification information;
and the download address of the fragment video data in the video position file is the value of the first identification information, and the corresponding check code is the value of the second identification information.
In the embodiment of the present description, in order to simplify the verification process before video playing and improve the response efficiency of the video playing request of the target video stream, a verification code that needs to be used for verification before video playing may be added to the video position file. In a specific embodiment, the video location file may include, but is not limited to, an M3U8 file, and in the prior art, the M3U8 file may be a file for storing locations of video data to be played, and in this embodiment of the present specification, by setting first identification information of a download address and second identification information of a check code, when the M3U8 file is generated, the check code is directly added to the M3U8 file, so that an interaction step of subsequently performing check code transmission again may be simplified.
In this embodiment of the present specification, the check code of the fragmented video data may be sent to the content distribution management end in advance for the transcoding server, and the download address of the fragmented video data may be determined after the content distribution management end stores the fragmented video data sent by the transcoding server in advance in the corresponding content caching device, specifically, as shown in fig. 3, the method may further include:
s215: the transcoding server cuts the video data stream into a plurality of fragment video data in sequence;
s217: the transcoding server respectively generates a plurality of check codes based on the plurality of fragmented video data;
s219: the transcoding server sends a plurality of fragment video data of the target video stream and check codes corresponding to the fragment video data to the content distribution management terminal;
s221: the content distribution management end stores the fragment video data of the target video stream in content cache equipment where the content distribution management end is located;
s223: and the content distribution management terminal takes the position information of the content caching device as the download addresses of the plurality of fragmented video data.
In practical application, the transcoding server and the playing terminal may pre-define a verification algorithm for determining the verification code, and correspondingly, the generating, by the transcoding server, a plurality of verification codes based on the plurality of sliced video data may include:
1) the transcoding server determines a checking algorithm agreed in advance with the playing terminal;
2) and the transcoding server converts the plurality of sliced video data into a plurality of check codes respectively by using the predetermined check algorithm.
In the embodiments of the present specification, the Check Algorithm may include, but is not limited to, a CRC (Cyclic Redundancy Check) Algorithm, md5(Message-Digest Algorithm5, Message Digest Algorithm 5), SHA (secure hash Algorithm), hash Algorithm, and the like.
In a specific embodiment, taking the CRC16 algorithm in the CRC algorithm as an example to convert the sliced video data into the check code, the method may include:
1) determining a target standard algorithm in the CRC16 algorithm;
2) acquiring an algorithm initial value of the target standard algorithm;
3) carrying out XOR processing on each byte of the fragment video data and the high 8 bits of the algorithm initial value;
4) when the highest bit of the XOR-processed data is 0, the XOR-processed data is shifted left by one bit, and the check code of each byte is obtained;
5) when the highest bit of the XOR-processed data is 1, shifting the XOR-processed data by one bit to the left, and carrying out XOR processing with the Hex code to obtain a check code of each byte;
6) and taking the check code of each byte as the check code of the sliced video data.
In an embodiment of the present specification, the standard algorithm corresponding to the CRC16 includes multiple types, specifically, one of the standard algorithms is selected as a target standard algorithm, and in a specific embodiment, the target standard algorithm may be CRC16_ CCITT, a polynomial corresponding to the CRC16_ CCITT is x16+ x12+ x5+1(0x1021), and an algorithm initial value is 0x 0000.
In this embodiment of the present specification, Hex encoding may show an 8-bit byte data as two hexadecimal numbers, during encoding, an 8-bit binary code is re-divided into two 4-bit bytes, where the lower 4 bits of one byte are the upper four bits of the original byte, the lower 4 bits of the other byte are the lower 4 bits of the original data, and the upper 4 bits are both complemented by 0, and then the two bytes are output as encoding corresponding to the hexadecimal numbers. The Hex-encoded length is 2 times that of the source data.
S205: and the content distribution management terminal sends the video position file to the playing terminal.
In this embodiment of the present specification, after the content distribution management terminal generates the video location file, the video location file may be sent to the playback terminal.
S207: and the playing terminal analyzes the video position file to obtain a download address of the current fragment video data and a corresponding check code.
In this embodiment of the present description, after receiving a video location file, a playing terminal may parse the video location file to obtain a download address of current fragmented video data and a corresponding check code.
Specifically, as shown in fig. 4, the parsing, by the playing terminal, the video location file to obtain the download address of the current fragmented video data and the corresponding check code may include:
s2071: and the playing terminal searches the first identification information and the second identification information in the video position file.
S2073: and the playing terminal takes the value of the first identification information as a downloading address of the current fragment video data.
S2075: and the playing terminal takes the value of the second identification information as the corresponding check code.
In this embodiment of the present description, after obtaining the video location file including the check code, the identification information of the check code and the download address may be combined to resolve the check code and the download address of the current fragmented video data.
S209: the playing terminal acquires corresponding current fragment video data based on the analyzed download address;
in this embodiment of the present description, the playing terminal obtains the corresponding current segment video data based on the resolved download address. In a specific embodiment, a connection between the content cache devices corresponding to the download address may be established, and the current fragmented video data may be acquired from the content cache devices.
S211: the playing terminal checks the fragment video data based on the acquired corresponding current fragment video data and the analyzed corresponding check code;
in this embodiment of the present description, as shown in fig. 5, the performing, by the play terminal, verification of the segment video data based on the obtained corresponding current segment video data and the analyzed corresponding verification code may include:
s2111: the playing terminal determines a checking algorithm agreed in advance with the transcoding server;
s2113: the playing terminal converts the acquired corresponding sliced video data into a check code to be checked based on the predetermined checking algorithm;
s2115: when the corresponding check codes analyzed by the check codes to be checked are consistent, the check is determined to be successful;
s2117: and when the corresponding check codes analyzed by the check codes to be checked are inconsistent, determining that the check fails.
In this embodiment of the present specification, the specific step of the playing terminal converting the acquired corresponding sliced video data into the check code to be checked based on the predetermined checking algorithm may refer to the related description determined by the check code, and is not described herein again.
S213: and when the verification is successful, the playing terminal plays the current fragmented video data successfully verified.
In this embodiment of the present specification, when the verification is successful, it may be determined that the obtained segment video data is accurate and playable, and accordingly, the segment video data may be played.
As can be seen from the technical solutions provided by the embodiments of the present specification, in the embodiments of the present specification, after receiving a video playing request of a target video stream, a content distribution management terminal adds a check code that needs to be used for checking before video playing to a video location file for storing a video downloading address; and the video position file is sent to the playing terminal, so that the interactive step of transmitting the check code again is simplified. The playing terminal can directly acquire the download address of the fragment video data and the corresponding check code through the analysis of the video position file, and then can directly check after acquiring the fragment video data to be played based on the download address, and directly play the video data after the check is successful. By the technical scheme provided by the embodiment of the application, the timeliness of video playing can be greatly improved on the basis of ensuring the accuracy of the obtained video data.
The following describes a video data playing processing method according to the present application with a content distribution management end as an execution subject, specifically, as shown in fig. 6, the method may include:
s601: receiving a video playing request of a target video stream sent by a playing terminal;
s603: generating a video position file based on a download address of current fragmented video data of the target video stream and a corresponding check code, wherein the current fragmented video data is fragmented video data which needs to be played currently in a playing sequence in a plurality of fragmented video data of the target video stream;
s605: sending the video position file to the playing terminal so that the playing terminal can analyze the video position file to obtain a download address of the current fragment video data and a corresponding check code; acquiring corresponding current fragment video data based on the analyzed download address; checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code; and when the verification is successful, playing the current sliced video data successfully verified.
Specifically, the generating a video location file based on the download address of the current fragmented video data of the target video stream and the corresponding check code includes:
generating first identification information of the download address and second identification information of the check code;
generating the plurality of video position files based on the download address of the current fragment video data, the corresponding check code, the first identification information and the second identification information;
and the download address of the fragment video data in the video position file is the value of the first identification information, and the corresponding check code is the value of the second identification information.
Specifically, the method further comprises:
receiving a plurality of fragment video data of a target video stream and check codes corresponding to the fragment video data sent by a transcoding server;
storing the plurality of fragmented video data of the target video stream in content cache equipment where the content distribution management end is located;
and using the position information of the content caching device as the download address of the plurality of fragmented video data.
An embodiment of the present application further provides a device for playing and processing video data, as shown in fig. 7, the device includes:
a video playing request receiving module 710, configured to receive a video playing request of a target video stream sent by a playing terminal;
a video location file generating module 720, configured to generate a video location file based on a download address of current fragmented video data of the target video stream and a corresponding check code, where the current fragmented video data is fragmented video data that needs to be played currently in a playing sequence among multiple fragmented video data of the target video stream;
a video location file sending module 730, configured to send the video location file to the playing terminal, so that the playing terminal analyzes the video location file to obtain a download address of the current fragmented video data and a corresponding check code; acquiring corresponding current fragment video data based on the analyzed download address; checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code; and when the verification is successful, playing the current sliced video data successfully verified.
In some embodiments, the video location file generation module may include:
the identification information generating unit is used for generating first identification information of the download address and second identification information of the check code;
a video location file generating unit, configured to generate the multiple video location files based on the download address of the current fragmented video data, the corresponding check code, the first identification information, and the second identification information;
and the download address of the fragment video data in the video position file is the value of the first identification information, and the corresponding check code is the value of the second identification information.
In some embodiments, the apparatus may further comprise:
the data receiving module is used for receiving a plurality of fragment video data of the target video stream and check codes corresponding to the fragment video data sent by the transcoding server;
the fragment video data storage module is used for storing a plurality of fragment video data of the target video stream in the content cache device where the content distribution management end is located;
and the download address determining module is used for taking the position information of the content caching device as the download addresses of the plurality of fragmented video data.
The device and method embodiments in the device embodiment are based on the same application concept.
The embodiment of the present application further provides a server for playing and processing video data, where the server for playing and processing video data includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for playing and processing video data provided in the above method embodiment.
The following embodiments of receiving the playback processing of the video data of the present application by using a playback terminal as an execution subject may specifically include, as shown in fig. 8:
s801: sending a video playing request of a target video stream to a content distribution management end;
s803: receiving a video position file sent by the content distribution management terminal, wherein the video position file is generated based on a download address of current fragment video data of the target video stream and a corresponding check code, and the current fragment video data is the fragment video data which needs to be played currently according to a playing sequence in a plurality of fragment video data of the target video stream;
s805: analyzing the video position file to obtain a download address of the current fragment video data and a corresponding check code;
s807: acquiring corresponding current fragment video data based on the analyzed download address;
s809: checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code;
s811: and when the verification is successful, playing the current sliced video data successfully verified.
Specifically, the analyzing the video location file to obtain the download address of the current fragment video data and the corresponding check code includes:
searching first identification information and second identification information in the video position file;
taking the value of the first identification information as a download address of the current fragment video data;
taking the value of the second identification information as the corresponding check code;
the first identification information is identification information of a download address and the second identification information is identification information of a check code.
Specifically, the checking the sliced video data based on the obtained corresponding current sliced video data and the analyzed corresponding check code includes:
determining a checking algorithm agreed in advance with the transcoding server;
converting the acquired corresponding segmented video data into a check code to be checked based on the predetermined checking algorithm;
when the corresponding check codes analyzed by the check codes to be checked are consistent, the check is determined to be successful;
and when the corresponding check codes analyzed by the check codes to be checked are inconsistent, determining that the check fails.
An embodiment of the present application further provides a device for playing and processing video data, as shown in fig. 9, the device includes:
a video playing request sending module 910, configured to send a video playing request of a target video stream to a content distribution manager;
a video location file receiving module 920, configured to receive a video location file sent by the content distribution management end, where the video location file is generated based on a download address of current fragmented video data of the target video stream and a corresponding check code, and the current fragmented video data is fragmented video data that needs to be currently played in a playing sequence among multiple fragmented video data of the target video stream;
a video location file parsing module 930, configured to parse the video location file to obtain a download address of the current fragmented video data and a corresponding check code;
a current fragment video data obtaining module 940, configured to obtain corresponding current fragment video data based on the parsed download address;
a data checking module 950, configured to perform checking on the segmented video data based on the obtained corresponding current segmented video data and the analyzed corresponding checking code;
the video data playing module 960 is configured to play the current sliced video data successfully checked when the checking is successful.
In some embodiments, the video location file parsing module may include:
the identification information searching unit is used for searching the first identification information and the second identification information in the video position file;
a download address determining unit, configured to use the value of the first identification information as a download address of the current fragmented video data;
a check code determining unit, configured to use a value of the second identification information as the corresponding check code;
the first identification information is identification information of a download address and the second identification information is identification information of a check code.
In some embodiments, the data verification module may include:
the verification algorithm determining unit is used for determining a verification algorithm agreed in advance with the transcoding server;
a check code conversion unit, configured to convert the acquired corresponding sliced video data into a check code to be checked based on the predetermined check algorithm;
the first verification result determining unit is used for determining that verification is successful when the corresponding verification codes analyzed by the verification code to be verified are consistent;
and the second checking result determining unit is used for determining that the checking fails when the corresponding checking codes analyzed by the checking codes to be checked are inconsistent.
The device and method embodiments in the device embodiment are based on the same application concept.
The embodiment of the present application provides a video data playing processing terminal, where the video data playing processing terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the video data playing processing method provided in the foregoing method embodiment.
In the embodiments of the present disclosure, the memory may be used to store software programs and modules, and the processor executes various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal, a server or a similar operation device. Taking the example of running on a server, fig. 10 is a hardware structure block diagram of the server of the video data playing processing method provided in the embodiment of the present application. As shown in fig. 10, the server 1000 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1010 (the processor 1010 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1030 for storing data, and one or more storage media 1020 (e.g., one or more mass storage devices) for storing applications 1023 or data 1022. Memory 1030 and storage media 1020 may be, among other things, transient or persistent storage. Stored in a storage medium 1020 may comprise one or more modules, each of which may comprise a sequence of instructions operating on a server. Still further, the central processor 1010 may be configured to communicate with the storage medium 1020 and execute a series of instruction operations in the storage medium 1020 on the server 1000. Server 1000 may also include one or more power supplies 1060, one or more wired or wireless network interfaces 1050, one or more input-output interfaces 1040, and/or one or more operating systems 1021, such as a Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMAnd so on.
Input-output interface 1040 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 1000. In one example, i/o Interface 1040 includes a Network adapter (NIC) that may be coupled to other Network devices via a base station to communicate with the internet. In one example, the input/output interface 1040 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 10 is merely illustrative and is not intended to limit the structure of the electronic device. For example, server 1000 may also include more or fewer components than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The embodiment of the application also provides a playing processing system of the video data, and the system comprises a playing terminal and a content distribution management terminal;
the playing terminal is used for sending a video playing request of a target video stream to the content distribution management terminal, analyzing the video position file to obtain a downloading address of current fragment video data and a corresponding check code, acquiring corresponding current fragment video data based on the analyzed downloading address, and checking the fragment video data based on the acquired corresponding current fragment video data and the analyzed corresponding check code; and playing the current video data when the verification is successful. (ii) a
The content distribution management terminal is used for generating a video position file based on the download address of the current fragment video data of the target video stream and the corresponding check code, and sending the video position file to the playing terminal;
embodiments of the present application further provide a storage medium, which may be disposed in a server or a terminal to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing a method for playing and processing video data in the method embodiments, where the at least one instruction, the at least one program, the code set, or the set of instructions are loaded and executed by the processor to implement the method for playing and processing video data provided in the method embodiments.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
As can be seen from the embodiments of the method, the apparatus, the terminal, the server, or the storage medium for playing and processing video data provided by the present application, in the present application, after receiving a video playing request of a target video stream, a content distribution management terminal adds a check code that needs to be used for verification before playing the video to a video location file for storing a video download address; and the video position file is sent to the playing terminal, so that the interactive step of transmitting the check code again is simplified. The playing terminal can directly acquire the download address of the fragment video data and the corresponding check code through the analysis of the video position file, and then can directly check after acquiring the fragment video data to be played based on the download address, and directly play the video data after the check is successful. By the technical scheme provided by the embodiment of the application, the timeliness of video playing can be greatly improved on the basis of ensuring the accuracy of the obtained video data.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, terminal, server and storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware to implement the above embodiments, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for playing and processing video data, the method comprising:
receiving a video playing request of a target video stream sent by a playing terminal;
generating a video position file based on a download address of current fragmented video data of the target video stream and a corresponding check code, wherein the current fragmented video data is fragmented video data which needs to be played currently in a playing sequence in a plurality of fragmented video data of the target video stream;
sending the video position file to the playing terminal so that the playing terminal can analyze the video position file to obtain a download address of the current fragment video data and a corresponding check code; acquiring corresponding current fragment video data based on the analyzed download address; checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code; and when the verification is successful, playing the current sliced video data successfully verified.
2. The method of claim 1, wherein the generating a video location file based on the download address of the current fragmented video data of the target video stream and the corresponding check code comprises:
generating first identification information of the download address and second identification information of the check code;
generating the plurality of video position files based on the download address of the current fragment video data, the corresponding check code, the first identification information and the second identification information;
and the download address of the fragment video data in the video position file is the value of the first identification information, and the corresponding check code is the value of the second identification information.
3. The method of claim 1, further comprising:
receiving a plurality of fragment video data of a target video stream and check codes corresponding to the fragment video data sent by a transcoding server;
storing the plurality of fragmented video data of the target video stream in content cache equipment where the content distribution management end is located;
and using the position information of the content caching device as the download address of the plurality of fragmented video data.
4. A method for playing and processing video data, the method comprising:
sending a video playing request of a target video stream to a content distribution management end;
receiving a video position file sent by the content distribution management terminal, wherein the video position file is generated based on a download address of current fragment video data of the target video stream and a corresponding check code, and the current fragment video data is the fragment video data which needs to be played currently according to a playing sequence in a plurality of fragment video data of the target video stream;
analyzing the video position file to obtain a download address of the current fragment video data and a corresponding check code;
acquiring corresponding current fragment video data based on the analyzed download address;
checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code;
and when the verification is successful, playing the current sliced video data successfully verified.
5. The method of claim 4, wherein the parsing the video location file to obtain the download address of the current fragment video data and the corresponding check code comprises:
searching first identification information and second identification information in the video position file;
taking the value of the first identification information as a download address of the current fragment video data;
taking the value of the second identification information as the corresponding check code;
the first identification information is identification information of a download address and the second identification information is identification information of a check code.
6. The method according to claim 4, wherein the performing checking of fragmented video data based on the obtained corresponding current fragmented video data and the parsed corresponding check code comprises:
determining a checking algorithm agreed in advance with the transcoding server;
converting the acquired corresponding segmented video data into a check code to be checked based on the predetermined checking algorithm;
when the corresponding check codes analyzed by the check codes to be checked are consistent, the check is determined to be successful;
and when the corresponding check codes analyzed by the check codes to be checked are inconsistent, determining that the check fails.
7. An apparatus for playing and processing video data, the apparatus comprising:
the video playing request receiving module is used for receiving a video playing request of a target video stream sent by a playing terminal;
a video position file generating module, configured to generate a video position file based on a download address of current fragmented video data of the target video stream and a corresponding check code, where the current fragmented video data is fragmented video data that needs to be played currently in a playing sequence among multiple fragmented video data of the target video stream;
the video position file sending module is used for sending the video position file to the playing terminal so that the playing terminal can analyze the video position file to obtain a download address of the current fragment video data and a corresponding check code; acquiring corresponding current fragment video data based on the analyzed download address; checking the fragment video data based on the obtained corresponding current fragment video data and the analyzed corresponding check code; and when the verification is successful, playing the current sliced video data successfully verified.
8. An apparatus for playing and processing video data, the apparatus comprising:
the video playing request sending module is used for sending a video playing request of a target video stream to the content distribution management terminal;
a video location file receiving module, configured to receive a video location file sent by the content distribution management end, where the video location file is generated based on a download address of current fragmented video data of the target video stream and a corresponding check code, and the current fragmented video data is fragmented video data that needs to be currently played in a playing sequence among multiple fragmented video data of the target video stream;
the video position file analysis module is used for analyzing the video position file to obtain a download address of the current fragment video data and a corresponding check code;
the current fragment video data acquisition module is used for acquiring corresponding current fragment video data based on the analyzed download address;
the data verification module is used for verifying the fragment video data based on the acquired corresponding current fragment video data and the analyzed corresponding verification code;
and the video data playing module is used for playing the current sliced video data which is successfully verified when the verification is successful.
9. A playing processing server of video data, characterized in that the server comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which is loaded and executed by the processor to implement the playing processing method of video data according to any one of claims 1 to 3.
10. A playback processing terminal for video data, the terminal comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the playback processing method for video data according to any one of claims 4 to 6.
CN201911029959.7A 2019-10-28 2019-10-28 Video data playing processing method and device, server and terminal Pending CN111182336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911029959.7A CN111182336A (en) 2019-10-28 2019-10-28 Video data playing processing method and device, server and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911029959.7A CN111182336A (en) 2019-10-28 2019-10-28 Video data playing processing method and device, server and terminal

Publications (1)

Publication Number Publication Date
CN111182336A true CN111182336A (en) 2020-05-19

Family

ID=70621492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911029959.7A Pending CN111182336A (en) 2019-10-28 2019-10-28 Video data playing processing method and device, server and terminal

Country Status (1)

Country Link
CN (1) CN111182336A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726650A (en) * 2020-06-30 2020-09-29 广州繁星互娱信息科技有限公司 Video live broadcast method and device and computer storage medium
CN112911330A (en) * 2021-02-01 2021-06-04 北京顺谋科技有限公司 Streaming media atomization fingerprint extraction method
CN113542812A (en) * 2021-06-01 2021-10-22 天翼物联科技有限公司 Video stream secure sharing method, system, device and storage medium
CN113747183A (en) * 2021-07-30 2021-12-03 深圳市九洲电器有限公司 Live video sharing method and system and readable storage medium
CN114615550A (en) * 2022-03-17 2022-06-10 北京奇艺世纪科技有限公司 Video acquisition method and device
CN114679623A (en) * 2022-03-16 2022-06-28 山东浪潮超高清视频产业有限公司 Video checking and playing method based on video gene technology

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106272A1 (en) * 2011-01-31 2012-08-09 Cbs Interactive, Inc. System and method for custom segmentation for streaming
CN103795765A (en) * 2012-11-02 2014-05-14 腾讯科技(深圳)有限公司 File uploading verification method and system
CN106331788A (en) * 2016-08-31 2017-01-11 乐视控股(北京)有限公司 Video download method and device
CN106686410A (en) * 2015-11-09 2017-05-17 中国电信股份有限公司 HLS streaming media transmission method and apparatus
CN107135417A (en) * 2017-06-08 2017-09-05 深圳市耐飞科技有限公司 A kind of throwing screen method and system of HLS protocol
CN107547915A (en) * 2017-10-23 2018-01-05 江苏省公用信息有限公司 A kind of IPTV video contents tamper resistant method
CN104796796B (en) * 2015-04-21 2018-03-16 范文鲜 Improve the fault-tolerant method of the HLS streaming players of Android platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106272A1 (en) * 2011-01-31 2012-08-09 Cbs Interactive, Inc. System and method for custom segmentation for streaming
CN103795765A (en) * 2012-11-02 2014-05-14 腾讯科技(深圳)有限公司 File uploading verification method and system
CN104796796B (en) * 2015-04-21 2018-03-16 范文鲜 Improve the fault-tolerant method of the HLS streaming players of Android platform
CN106686410A (en) * 2015-11-09 2017-05-17 中国电信股份有限公司 HLS streaming media transmission method and apparatus
CN106331788A (en) * 2016-08-31 2017-01-11 乐视控股(北京)有限公司 Video download method and device
CN107135417A (en) * 2017-06-08 2017-09-05 深圳市耐飞科技有限公司 A kind of throwing screen method and system of HLS protocol
CN107547915A (en) * 2017-10-23 2018-01-05 江苏省公用信息有限公司 A kind of IPTV video contents tamper resistant method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726650A (en) * 2020-06-30 2020-09-29 广州繁星互娱信息科技有限公司 Video live broadcast method and device and computer storage medium
CN112911330A (en) * 2021-02-01 2021-06-04 北京顺谋科技有限公司 Streaming media atomization fingerprint extraction method
CN113542812A (en) * 2021-06-01 2021-10-22 天翼物联科技有限公司 Video stream secure sharing method, system, device and storage medium
CN113542812B (en) * 2021-06-01 2023-09-29 天翼物联科技有限公司 Video stream secure sharing method, system, device and storage medium
CN113747183A (en) * 2021-07-30 2021-12-03 深圳市九洲电器有限公司 Live video sharing method and system and readable storage medium
CN114679623A (en) * 2022-03-16 2022-06-28 山东浪潮超高清视频产业有限公司 Video checking and playing method based on video gene technology
CN114615550A (en) * 2022-03-17 2022-06-10 北京奇艺世纪科技有限公司 Video acquisition method and device
CN114615550B (en) * 2022-03-17 2023-12-08 北京奇艺世纪科技有限公司 Video acquisition method and device

Similar Documents

Publication Publication Date Title
CN111182336A (en) Video data playing processing method and device, server and terminal
US11350139B2 (en) Video live broadcast method and apparatus
CN107222484B (en) Streaming media server system supporting multi-protocol input and output
US8108536B1 (en) Systems and methods for determining the trustworthiness of a server in a streaming environment
CN108124202A (en) A kind of method that streaming media server is made to support HLS protocol
US10448073B2 (en) Popping-screen push system and method
CN107483627A (en) A kind of file distributing, method for down loading, Distributor, client and system
US20140330894A1 (en) Method, terminal and system for implementing data sharing
CN111917897B (en) Identification generation method, device, equipment and storage medium
US8195821B2 (en) Autonomous information processing apparatus and method in a network of information processing apparatuses
US20080016150A1 (en) System and method for downloading information
CN112839003A (en) Data verification method and system
CN111698576A (en) Information encryption method, decryption method, server, client, and medium
CN109214855B (en) Material receiving method, device and system
CN109525622B (en) Fragment resource ID generation method, resource sharing method, device and electronic equipment
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
CN111416992A (en) File transcoding method and device
CN108769830B (en) Method for caching video and related equipment
CN110719526A (en) Video playing method and device
CN113873288A (en) Method and device for generating playback in live broadcast process
EP2378441A1 (en) Method and system for comparing media assets
CN116684703A (en) Streaming media data transmission method and related equipment based on proximity service communication protocol
CN110585724A (en) Table data updating method and device in game client
CN114866533A (en) File uploading method and device and electronic equipment
CN115396689A (en) Intelligent cloud video transmission and storage method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200519