Large-volume video playing method and system, computer and storage medium

By analyzing and pre-processing of redundant frames and keyframes for large-volume videos, combined with encoding parameter group and verification mechanism, the problem of insufficient video segmentation in the existing technology is solved, and more efficient video playback fluency and continuity are achieved.

CN119854570AActive Publication Date: 2025-04-18JIANGXI FASHION TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411984640.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-18
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

When playing large-sized videos, the segmentation is not accurate and reasonable enough, resulting in insufficient smoothness of video playback and it is difficult to optimize according to various influencing factors.

Method used

By removing redundant frames and keyframes, the original video is analyzed and preprocessed, the encoding parameter group is set, and the video blocks are divided according to the equipment performance and network conditions, and the integrity checksum is dynamically adjusted to ensure the continuity and fluency of video playback.

Benefits of technology

It improves the playback fluency and continuity of large-volume videos, adapts to the performance and network conditions of different devices, improves the user's viewing experience, and avoids the lack or discontinuity of video content during transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854570A_ABST
    Figure CN119854570A_ABST
Patent Text Reader

Abstract

The invention provides a large-volume video playing method and system, a computer and a storage medium, and the method comprises the steps: obtaining an original video, and removing a plurality of redundant frames; setting a coding parameter group, and obtaining a plurality of to-be-selected coded videos; segmenting the plurality of to-be-selected coded videos to form a plurality of to-be-selected video blocks, and obtaining a plurality of first verification files; selecting a plurality of current video blocks; distributing a current number for the current video block, extracting a current index file, and determining the current index file as a current first verification file; transmitting the plurality of current video blocks to front-end equipment, and performing integrity verification; comparing the player parameter with the current coding parameter; determining a plurality of playing video blocks; and decoding the plurality of playing video blocks, and playing the plurality of playing video files. The volume of the video can be reduced by removing a plurality of redundant frames, the video segmentation is more accurate in combination with the key frame, and various coded videos are prepared to adapt to different playing environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video technology, and in particular to a method, system, computer and storage medium for playing large-volume videos. Background Art

[0002] Nowadays, front-end pages usually use streaming media transmission technology to play videos, such as HLS (HTTP LiceStreaming) or DASH (Dynamic Adaptice Streaming over HTTP). This technology allows the page to download the video while playing the video, without waiting for the entire video to be transmitted before playing.

[0003] When transmitting large-volume videos, the time it takes to load the video on the page increases, which can easily affect the smoothness of video playback. Therefore, a method is usually adopted to split the large-volume video into multiple video blocks, which are then transmitted, decoded and played in sequence.

[0004] However, video segmentation has limited effect on optimizing the smoothness of large-volume video playback, and if the segmentation is unreasonable, it will not only cause large-volume video playback to be stuck, but also easily cause video content to be discontinuous. Important factors affecting playback smoothness also include the encoding process, front-end device hardware parameters, front-end device network conditions, and player settings, etc. The existing methods for playing large-volume videos are still insufficient in optimizing the factors that affect playback smoothness. Summary of the invention

[0005] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method, system, computer and storage medium for playing large-volume videos, aiming to solve the problems in the prior art that video segmentation is not accurate and reasonable enough and the video playback process cannot be optimized according to multiple influencing factors.

[0006] In a first aspect, an embodiment of the present application provides a method for playing a large-volume video, comprising the following steps:

[0007] Acquire an original video, remove a number of redundant frames from the original video to acquire a transition video, and perform picture preprocessing on the transition video to acquire a video to be encoded;

[0008] Based on the encoding performance parameters of the encoding device and the encoding network status, a coding parameter group is set, and the to-be-encoded video is encoded based on the coding parameter group to obtain a plurality of to-be-selected encoding videos, wherein the coding parameter group includes a plurality of preliminary coding parameters, and the preliminary coding parameters correspond to the to-be-encoded videos one by one;

[0009] Setting preset parameters, and dividing the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video, and obtaining a plurality of first verification files corresponding to the plurality of to-be-selected video blocks;

[0010] Selecting a current encoding parameter corresponding to the front-end device from the encoding parameter group, and selecting a plurality of current video blocks from the plurality of encoding video blocks to be selected according to the current encoding parameter;

[0011] Assigning a current number to the current video block, extracting a current index file from the current video block, establishing the first verification file corresponding to the current video block as a current first verification file, and associating the current number, the current first verification file, and the current index file;

[0012] Transmitting a plurality of the current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtaining a second verification file corresponding to the front-end video block, comparing the current first verification file with the second verification file to perform integrity verification, and obtaining a verification result;

[0013] If the verification result is complete, obtaining player parameters, and comparing the player parameters with the current encoding parameters;

[0014] If the player parameter is consistent with the current encoding parameter, the plurality of front-end video blocks are established as a plurality of play video blocks, and play sequence numbers are extracted from the plurality of current index files;

[0015] Decode the plurality of playback video blocks into a plurality of playback video files, and play the plurality of playback video files based on the playback sequence numbers.

[0016] Furthermore, the original video includes a plurality of original frames, and the step of removing a plurality of redundant frames from the original video specifically includes:

[0017] Calculating pixel differences between adjacent original frames to obtain a plurality of pixel difference values;

[0018] Extracting a plurality of color histograms and a plurality of texture features from a plurality of the original frames, and calculating a plurality of color texture data based on the plurality of the color histograms and the plurality of the texture features;

[0019] A plurality of redundant frames are established from a plurality of original frames based on a plurality of the pixel difference values ​​and a plurality of the color texture data.

[0020] Furthermore, the step of dividing the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video specifically includes:

[0021] Based on the duration or file size in the preset parameters and in combination with the positions of several key frames of the video to be encoded, the video to be encoded is divided into several video blocks to be selected, and the starting and ending positions of the video blocks to be selected are both the key frames.

[0022] Furthermore, after the step of transmitting the plurality of current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtaining a second verification file corresponding to the front-end video block, comparing the current first verification file with the second verification file to perform integrity verification, and obtaining the verification result, the method further includes:

[0023] If the check result is incomplete, a number of retransmission numbers are established from the number of current numbers, and a number of current video blocks corresponding to the number of retransmission numbers are retransmitted to the front-end device to update a number of front-end video blocks.

[0024] Furthermore, after the step of obtaining player parameters if the verification result is complete and comparing the player parameters with the current encoding parameters, the method further includes:

[0025] If the player parameter is inconsistent with the current encoding parameter, selecting an updated encoding parameter from the encoding parameter group according to the player parameter, and selecting a plurality of updated video blocks from the plurality of video blocks to be selected according to the updated encoding parameter;

[0026] Assigning an update number to the update video block, extracting an update index file from the update video block, establishing the first verification file corresponding to the update video block as an update first verification file, and associating the update number, the update first verification file, and the update index file;

[0027] Transmitting a plurality of the updated video blocks to the front-end device to form a plurality of updated front-end video blocks in the front-end device, obtaining an updated second verification file corresponding to the updated front-end video blocks, comparing the updated first verification file with the updated second verification file to perform integrity verification, and obtaining a verification result;

[0028] If the verification result is complete, a plurality of the updated front-end video blocks are established as a plurality of play video blocks, and play sequence numbers are extracted from a plurality of the updated index files.

[0029] Furthermore, after the step of decoding the plurality of playback video blocks into a plurality of playback video files and playing the plurality of playback video files based on the playback sequence numbers, the method further includes:

[0030] During the playback process, the playback index of the video file is collected, and the player parameters are updated based on the playback index.

[0031] In a second aspect, an embodiment of the present application provides a large-volume video playback system, which is applied to the large-volume video playback method described in the above technical solution, and the system includes:

[0032] The acquisition module is used to obtain the original video, remove a number of redundant frames from the original video to obtain a transition video, and perform picture preprocessing on the transition video to obtain a video to be encoded;

[0033] An encoding module, configured to set an encoding parameter group based on encoding performance parameters of an encoding device and an encoding network status, and encode the video to be encoded based on the encoding parameter group to obtain a plurality of selected encoding videos, wherein the encoding parameter group includes a plurality of preliminary encoding parameters, and the preliminary encoding parameters correspond to the video to be encoded one by one;

[0034] A segmentation module, used to set preset parameters, and segment the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video, and obtain a plurality of first verification files corresponding to the plurality of to-be-selected video blocks;

[0035] A selection module, configured to select a current encoding parameter corresponding to a front-end device from the encoding parameter group, and select a number of current video blocks from a number of the encoding video blocks to be selected according to the current encoding parameter;

[0036] a verification module, configured to assign a current number to the current video block, extract a current index file from the current video block, establish the first verification file corresponding to the current video block as a current first verification file, and associate the current number, the current first verification file, and the current index file;

[0037] A judgment module, configured to transmit a plurality of the current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtain a second verification file corresponding to the front-end video block, compare the current first verification file with the second verification file to perform integrity verification, and obtain a verification result;

[0038] A comparison module, configured to obtain player parameters if the verification result is complete, and compare the player parameters with the current encoding parameters;

[0039] A parameter module, used for establishing a plurality of the front-end video blocks as a plurality of play video blocks and extracting play sequence numbers from a plurality of the current index files if the player parameters are consistent with the current encoding parameters;

[0040] The playing module is used to decode the plurality of playing video blocks into a plurality of playing video files, and play the plurality of playing video files based on the playing sequence numbers.

[0041] In a third aspect, an embodiment of the present application provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for playing large-volume videos as described in the above technical solution is implemented.

[0042] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for playing large-volume videos as described in the above technical solution is implemented.

[0043] Compared with the related art, the beneficial effects of the present invention are as follows: by extracting a number of the redundant frames and a number of the key frames, the content of the original video is analyzed, and removing a number of the redundant frames can reduce the video volume and facilitate transmission. By extracting the key frames, when the original video is segmented, the starting and ending positions of each segmented video block can be the key frames, thereby ensuring the continuity of video playback; by setting the encoding parameter group, a variety of encoded videos can be prepared, and then a variety of video blocks with different encoding parameters can be segmented, which can adapt to different device performance parameters, different network conditions, different players and player settings, and when the subsequent network conditions fluctuate, the playback index of the front-end device can be monitored to dynamically select the video block that best suits the current conditions for playback, thereby avoiding the video block bit rate, frame rate and other parameters being higher than the video parameters allowed by the current device and network conditions, resulting in long loading time and jamming, thereby improving the viewing experience, and by setting the verification module, the negative conditions of missing and discontinuous video content during the transmission of large amounts of data can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of a method for playing a large-volume video in a first embodiment of the present invention;

[0045] Figure 2 It is a structural block diagram of a large-volume video playback system in a second embodiment of the present invention;

[0046] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0047] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0048] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0050] See also Figure 1 The method for playing a large-volume video in the first embodiment of the present invention comprises the following steps:

[0051] Step S10: obtaining an original video, removing a number of redundant frames from the original video to obtain a transition video, and performing picture preprocessing on the transition video to obtain a video to be encoded;

[0052] Preferably, video data is collected from an original video source, such as a camera, to form a video file, which is imported into a processing system as the original video to be subsequently processed. Several of the redundant frames are multiple similar or identical pictures, usually displayed as still pictures or repeated scenes. Picture preprocessing is preprocessing operations such as color correction and brightness adjustment of the video. It can be understood that by removing several of the redundant frames, the transition video with a reduced volume can be obtained, which is convenient for subsequent processing. Picture preprocessing is beneficial to improving video quality.

[0053] Specifically, the original video includes a plurality of original frames, and the step S10 includes:

[0054] S110: Calculating pixel differences between adjacent original frames to obtain a plurality of pixel difference values;

[0055] There is a same time interval between the several original frames, and the image similarity between different frames can be analyzed by calculating pixel differences to identify the redundant frames.

[0056] S120: extracting a plurality of color histograms and a plurality of texture features from the plurality of original frames, and calculating a plurality of color texture data based on the plurality of color histograms and the plurality of texture features;

[0057] By calculating the color histogram and texture features of the frames, we can specifically quantify and identify frames with similar color distribution and texture.

[0058] S130: Based on the plurality of pixel differences and the plurality of color texture data, establish a plurality of redundant frames from the plurality of original frames.

[0059] It can be understood that by calculating specific numerical values ​​to establish a number of redundant frames, the optimization of the original video is more specific and reliable.

[0060] Step S20: setting a coding parameter group based on the coding performance parameters of the coding device and the coding network status, and encoding the to-be-coded video based on the coding parameter group to obtain a plurality of to-be-coded videos, wherein the coding parameter group includes a plurality of preliminary coding parameters, and the preliminary coding parameters correspond to the to-be-coded videos one by one;

[0061] Preferably, the encoding performance parameters of the encoding device include parameters such as CPU, GPU and memory, and the encoding network conditions include parameters such as bandwidth and delay. The encoder adopts the H.264 encoder, which has high compression efficiency while providing high video quality, and is suitable for a variety of devices and network environments. It can be understood that if network fluctuations occur when loading videos on the front end, it is necessary to load videos with different resolutions and frame rates. At this time, encoding and transmission will take a lot of time. Preparing videos with multiple video formats and bit rates is beneficial for selecting the required videos at any time during subsequent transmission and playback, and is beneficial for calling different scenarios.

[0062] Step S30: setting preset parameters, and dividing the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video, and obtaining a plurality of first verification files corresponding to the plurality of to-be-selected video blocks;

[0063] Preferably, the key frame is a frame in which the content of the video changes significantly or has a specific meaning, such as scene switching, camera movement, appearance or disappearance of an object, etc. The key frame is calculated, analyzed and identified by a method consistent with the redundant frame, which makes the segmentation of the selected encoded video more accurate and reasonable. The verification module uses a hash algorithm for verification, specifically the SHA-256 algorithm, and the first verification file is the hash value of the video block.

[0064] Specifically, the step S30 includes:

[0065] S310: Based on the duration or file size in the preset parameters and in combination with the positions of several key frames of the video to be encoded, the video to be encoded is divided into several video blocks to be selected, where the start and end positions of the video blocks to be selected are both the key frames.

[0066] When the video is segmented according to the positions of the key frames, the segmentation is more accurate, and the duration or file size of the multiple segmented video blocks are consistent, which is conducive to the transmission and playback of the video.

[0067] Step S40: selecting a current encoding parameter corresponding to the front-end device from the encoding parameter group, and selecting a number of current video blocks from a number of the to-be-selected encoding video blocks according to the current encoding parameter;

[0068] Preferably, the video file of corresponding quality is obtained according to the performance of the front-end device and the network status. If the performance of the front-end device is low or the network bandwidth is limited, 720p resolution and 30fps frame rate can be selected. If the performance of the front-end device is high or the network fluency is good, 4k resolution and 60fps frame rate can be selected.

[0069] Step S50: assigning a current number to the current video block, extracting a current index file from the current video block, establishing the first verification file corresponding to the current video block as a current first verification file, and associating the current number, the current first verification file, and the current index file;

[0070] Preferably, the index file is an m3u8 file, and the current index file includes information such as URL address, playback sequence number, duration and bit rate record for use by the front-end device, and the number of each current video block is unique.

[0071] Step S60: transmitting a plurality of the current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtaining a second verification file corresponding to the front-end video blocks, comparing the current first verification file with the second verification file to perform integrity verification, and obtaining a verification result;

[0072] After the current video block is transmitted, the same hash algorithm is used to calculate the file, that is, the same verification module is used. The video block stored in the front-end device after transmission is the front-end video block, and the current number is also transmitted accordingly. The calculated hash value of the front-end video block is found according to the current number to find the hash value of the current video block, and a comparison is performed, that is, the current first verification file and the second verification file are compared after searching and corresponding with the current number. If they are consistent, the output verification result is the first result, indicating that the transmission process of the current video block is complete, and the content of the front-end video block is consistent with that of the current video block, and there is no missing or damaged part. If they are inconsistent, the output verification result is the second result, indicating that an error occurred in the transmission process, resulting in inconsistency between the content of the front-end video block and the current video block, and there are missing or damaged parts.

[0073] Specifically, after step S60, the following steps are further included:

[0074] S610: If the verification result is incomplete, a number of retransmission numbers are established from the number of current numbers, and a number of current video blocks corresponding to the number of retransmission numbers are retransmitted to the front-end device to update a number of front-end video blocks.

[0075] If the verification result is incomplete, then there are video blocks with missing content due to transmission errors in several of the front-end video blocks. According to the comparison results of the current first verification file and the second verification file, the current number of the inconsistent current first verification file is selected, and the current number is recorded as the retransmission number. According to the retransmission number, the corresponding current video block is retransmitted and the damaged front-end video block is overwritten.

[0076] Step S70: if the verification result is complete, obtaining player parameters, and comparing the player parameters with the current encoding parameters;

[0077] Preferably, the selected player is a player that supports streaming media transmission protocols such as HLS and DASH, and further, a video.js player is selected.

[0078] Specifically, after step S70, the method further includes:

[0079] S710: If the player parameter is inconsistent with the current encoding parameter, selecting an updated encoding parameter from the encoding parameter group according to the player parameter, and selecting a plurality of updated video blocks from the plurality of video blocks to be selected according to the updated encoding parameter;

[0080] S720: assigning an update number to the updated video block, extracting an update index file from the updated video block, establishing the first verification file corresponding to the updated video block as an updated first verification file, and associating the update number, the updated first verification file, and the updated index file;

[0081] S730: transmitting a plurality of the updated video blocks to the front-end device to form a plurality of updated front-end video blocks in the front-end device, obtaining an updated second verification file corresponding to the updated front-end video blocks, comparing the updated first verification file with the updated second verification file to perform integrity verification, and obtaining a verification result;

[0082] S740: If the verification result is complete, the plurality of updated front-end video blocks are established as a plurality of play video blocks, and play sequence numbers are extracted from a plurality of updated index files.

[0083] Preferably, the video processing, transmission and verification process of S710 to S450 is consistent with the current video block.

[0084] Step S80: If the player parameters are consistent with the current encoding parameters, a plurality of the front-end video blocks are established as a plurality of play video blocks, and play sequence numbers are extracted from a plurality of the current index files.

[0085] It can be understood that the player parameters are consistent with the current encoding parameters, indicating that the several front-end video blocks corresponding to the current encoding parameters are the best quality and most suitable video files in the current environment.

[0086] Step S90: decoding the plurality of playback video blocks into a plurality of playback video files, and playing the plurality of playback video files based on the playback sequence numbers.

[0087] Preferably, a playback control function is provided when playing the video file, such as play, pause, volume adjustment, full screen switching, etc.

[0088] Specifically, after step S80, the method further includes:

[0089] S810: Collecting playback indicators of the video file during playback, and updating the player parameters based on the playback indicators.

[0090] Preferably, the front-end page monitors the smoothness of video playback in real time, and the playback indicators include the freeze rate and loading time. Since the playback process in the real environment is dynamic, for example, when network fluctuations occur or the performance of the front-end device is occupied by other software, even if the network conditions of the front-end device and the start of playback allow the playback of 1080p videos, subsequent environmental changes can easily cause the 1080p video file to freeze during playback. Therefore, after monitoring, it is identified that the player parameters should be adjusted at this time, specifically, adjusted to 720p, and the video can be played smoothly after reloading the video block. It can be understood that dynamic monitoring and timely adjustment, combined with a variety of pre-prepared video blocks, can keep the video playback process dynamically optimal at all times, greatly optimizing the user's video viewing experience.

[0091] See also Figure 2 The large-volume video playback system in the second embodiment of the present invention is applied to the large-volume video playback method described in the first embodiment, and the system includes:

[0092] The acquisition module 10 is used to obtain the original video, remove a number of redundant frames from the original video to obtain a transition video, and perform picture preprocessing on the transition video to obtain a video to be encoded;

[0093] The acquisition module 10 includes:

[0094] The first unit is used to calculate the pixel difference between adjacent original frames to obtain a plurality of pixel difference values;

[0095] The second unit is used to extract a plurality of color histograms and a plurality of texture features from the plurality of original frames, and calculate a plurality of color texture data based on the plurality of color histograms and the plurality of texture features;

[0096] The third unit is used to establish a plurality of redundant frames from a plurality of the original frames based on a plurality of the pixel difference values ​​and a plurality of the color texture data.

[0097] The encoding module 20 is used to set an encoding parameter group based on the encoding performance parameters of the encoding device and the encoding network status, and encode the video to be encoded based on the encoding parameter group to obtain a plurality of selected encoding videos, wherein the encoding parameter group includes a plurality of preliminary encoding parameters, and the preliminary encoding parameters correspond to the video to be encoded one by one;

[0098] The segmentation module 30 is used to set preset parameters, and according to the preset parameters and a number of key frames of the video to be selected, segment the video to be selected into a number of video blocks to be selected, and obtain a number of first verification files corresponding to the number of video blocks to be selected;

[0099] The segmentation module 30 includes:

[0100] The fourth unit is used to divide the to-be-selected coded video into a plurality of to-be-selected video blocks based on the duration or file size in the preset parameters and the positions of a plurality of key frames of the to-be-selected coded video, wherein the start and end positions of the to-be-selected video blocks are both the key frames.

[0101] A selection module 40, configured to select a current encoding parameter corresponding to a front-end device from the encoding parameter group, and select a number of current video blocks from a number of the encoding video blocks to be selected according to the current encoding parameter;

[0102] A verification module 50 is used to assign a current number to the current video block, extract a current index file from the current video block, establish the first verification file corresponding to the current video block as a current first verification file, and associate the current number, the current first verification file, and the current index file;

[0103] The judgment module 60 is used to transmit the current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtain a second verification file corresponding to the front-end video block, compare the current first verification file with the second verification file to perform integrity verification, and obtain a verification result;

[0104] The judging module 60 comprises:

[0105] The fifth unit is used to establish a number of retransmission numbers from the number of current numbers if the verification result is incomplete, and retransmit a number of the current video blocks corresponding to the number of retransmission numbers to the front-end device to update a number of the front-end video blocks.

[0106] A comparison module 70, for obtaining player parameters if the verification result is complete, and comparing the player parameters with the current encoding parameters;

[0107] The comparison module 70 includes:

[0108] A sixth unit is configured to select an updated encoding parameter from the encoding parameter group according to the player parameter if the player parameter is inconsistent with the current encoding parameter, and select a plurality of updated video blocks from the plurality of selected video blocks according to the updated encoding parameter;

[0109] a seventh unit, configured to assign an update number to the update video block, extract an update index file from the update video block, establish the first verification file corresponding to the update video block as an update first verification file, and associate the update number, the update first verification file, and the update index file;

[0110] an eighth unit, configured to transmit the plurality of updated video blocks to the front-end device to form a plurality of updated front-end video blocks in the front-end device, obtain an updated second verification file corresponding to the updated front-end video block, compare the updated first verification file with the updated second verification file to perform integrity verification, and obtain a verification result;

[0111] The ninth unit is used for establishing the plurality of updated front-end video blocks as a plurality of play video blocks if the verification result is complete, and extracting play sequence numbers from the plurality of updated index files.

[0112] A parameter module 80, configured to establish a plurality of the front-end video blocks as a plurality of play video blocks and extract play sequence numbers from a plurality of the current index files if the player parameters are consistent with the current encoding parameters;

[0113] The playing module 90 is used to decode the plurality of playing video blocks into a plurality of playing video files, and play the plurality of playing video files based on the playing sequence numbers.

[0114] The playback module 90 includes:

[0115] The tenth unit is used to collect the playback index of the video file during the playback process, and update the player parameters based on the playback index.

[0116] The computer in the third embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for playing large-volume videos as described in the first embodiment is implemented.

[0117] The storage medium in the fourth embodiment of the present invention stores a computer program, which, when executed by a processor, implements the method for playing a large-volume video as described in the first embodiment.

[0118] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0119] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for playing a large-volume video, characterized in that: The steps include: Acquire an original video, remove a number of redundant frames from the original video to acquire a transition video, and perform picture preprocessing on the transition video to acquire a video to be encoded; Based on the encoding performance parameters of the encoding device and the encoding network status, a coding parameter group is set, and the to-be-encoded video is encoded based on the coding parameter group to obtain a plurality of to-be-selected encoding videos, wherein the coding parameter group includes a plurality of preliminary coding parameters, and the preliminary coding parameters correspond to the to-be-encoded videos one by one; Setting preset parameters, and dividing the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video, and obtaining a plurality of first verification files corresponding to the plurality of to-be-selected video blocks; Selecting a current encoding parameter corresponding to the front-end device from the encoding parameter group, and selecting a plurality of current video blocks from the plurality of encoding video blocks to be selected according to the current encoding parameter; Assigning a current number to the current video block, extracting a current index file from the current video block, establishing the first verification file corresponding to the current video block as a current first verification file, and associating the current number, the current first verification file, and the current index file; Transmitting a plurality of the current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtaining a second verification file corresponding to the front-end video blocks, comparing the current first verification file with the second verification file to perform integrity verification, and obtaining a verification result; If the verification result is complete, obtaining player parameters, and comparing the player parameters with the current encoding parameters; If the player parameter is consistent with the current encoding parameter, the plurality of front-end video blocks are established as a plurality of play video blocks, and play sequence numbers are extracted from the plurality of current index files; Decode the plurality of playback video blocks into a plurality of playback video files, and play the plurality of playback video files based on the playback sequence numbers.

2. The method for playing a large-volume video according to claim 1, characterized in that: The original video includes a plurality of original frames, and the step of removing a plurality of redundant frames from the original video specifically includes: Calculating pixel differences between adjacent original frames to obtain a plurality of pixel difference values; Extracting a plurality of color histograms and a plurality of texture features from a plurality of the original frames, and calculating a plurality of color texture data based on the plurality of the color histograms and the plurality of the texture features; A plurality of redundant frames are established from a plurality of original frames based on a plurality of the pixel difference values ​​and a plurality of the color texture data.

3. The method for playing a large-volume video according to claim 1, characterized in that: The step of dividing the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video specifically comprises: Based on the duration or file size in the preset parameters and in combination with the positions of several key frames of the video to be encoded, the video to be encoded is divided into several video blocks to be selected, and the starting and ending positions of the video blocks to be selected are both the key frames.

4. The method for playing a large-volume video according to claim 1, characterized in that: After the step of transmitting the plurality of current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtaining a second verification file corresponding to the front-end video block, comparing the current first verification file with the second verification file to perform integrity verification, and obtaining the verification result, the method further includes: If the check result is incomplete, a number of retransmission numbers are established from the number of current numbers, and a number of current video blocks corresponding to the number of retransmission numbers are retransmitted to the front-end device to update a number of front-end video blocks.

5. The method for playing a large-volume video according to claim 1, characterized in that: After the step of obtaining player parameters if the verification result is complete and comparing the player parameters with the current encoding parameters, the method further includes: If the player parameter is inconsistent with the current encoding parameter, selecting an updated encoding parameter from the encoding parameter group according to the player parameter, and selecting a plurality of updated video blocks from the plurality of video blocks to be selected according to the updated encoding parameter; Assigning an update number to the update video block, extracting an update index file from the update video block, establishing the first verification file corresponding to the update video block as an update first verification file, and associating the update number, the update first verification file, and the update index file; Transmitting a plurality of the updated video blocks to the front-end device to form a plurality of updated front-end video blocks in the front-end device, obtaining an updated second verification file corresponding to the updated front-end video blocks, comparing the updated first verification file with the updated second verification file to perform integrity verification, and obtaining a verification result; If the verification result is complete, a plurality of the updated front-end video blocks are established as a plurality of play video blocks, and play sequence numbers are extracted from a plurality of the updated index files.

6. The method for playing a large-volume video according to claim 1, characterized in that: After the step of decoding the plurality of playback video blocks into a plurality of playback video files and playing the plurality of playback video files based on the playback sequence numbers, the method further includes: During the playback process, the playback index of the video file is collected, and the player parameters are updated based on the playback index.

7. A large-volume video playback system, applied to the large-volume video playback method according to any one of claims 1 to 6, characterized in that: The system comprises: The acquisition module is used to obtain the original video, remove a number of redundant frames from the original video to obtain a transition video, and perform picture preprocessing on the transition video to obtain a video to be encoded; An encoding module, configured to set an encoding parameter group based on encoding performance parameters of an encoding device and an encoding network status, and encode the video to be encoded based on the encoding parameter group to obtain a plurality of selected encoding videos, wherein the encoding parameter group includes a plurality of preliminary encoding parameters, and the preliminary encoding parameters correspond to the video to be encoded one by one; A segmentation module, used to set preset parameters, and segment the to-be-selected coded video into a plurality of to-be-selected video blocks according to the preset parameters and a plurality of key frames of the to-be-selected coded video, and obtain a plurality of first verification files corresponding to the plurality of to-be-selected video blocks; A selection module, configured to select a current encoding parameter corresponding to a front-end device from the encoding parameter group, and select a number of current video blocks from a number of the encoding video blocks to be selected according to the current encoding parameter; a verification module, configured to assign a current number to the current video block, extract a current index file from the current video block, establish the first verification file corresponding to the current video block as a current first verification file, and associate the current number, the current first verification file, and the current index file; A judgment module, configured to transmit a plurality of the current video blocks to the front-end device to form a plurality of front-end video blocks in the front-end device, obtain a second verification file corresponding to the front-end video block, compare the current first verification file with the second verification file to perform integrity verification, and obtain a verification result; A comparison module, configured to obtain player parameters if the verification result is complete, and compare the player parameters with the current encoding parameters; A parameter module, used for establishing a plurality of the front-end video blocks as a plurality of play video blocks and extracting play sequence numbers from a plurality of the current index files if the player parameters are consistent with the current encoding parameters; The playing module is used to decode the plurality of playing video blocks into a plurality of playing video files, and play the plurality of playing video files based on the playing sequence numbers.

8. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for playing a large-volume video according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for playing a large-volume video according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Content self-adaptive coding method and system for file transcoding

    CN114430501A

  • Video file processing method, video management platform and storage medium

    CN117714741A

  • Chat video transcoding method, system and equipment based on browser and medium

    CN119135825A

  • Video processing method, electronic device and storage medium

    WO2023071469A1