CN114125532A - Interactive video seamless cutting method and device - Google Patents

Interactive video seamless cutting method and device Download PDF

Info

Publication number
CN114125532A
CN114125532A CN202111278149.2A CN202111278149A CN114125532A CN 114125532 A CN114125532 A CN 114125532A CN 202111278149 A CN202111278149 A CN 202111278149A CN 114125532 A CN114125532 A CN 114125532A
Authority
CN
China
Prior art keywords
video
interactive
playing
cache
caching
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
CN202111278149.2A
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.)
Hangzhou Arcvideo Technology Co ltd
Original Assignee
Hangzhou Arcvideo Technology 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 Hangzhou Arcvideo Technology Co ltd filed Critical Hangzhou Arcvideo Technology Co ltd
Priority to CN202111278149.2A priority Critical patent/CN114125532A/en
Publication of CN114125532A publication Critical patent/CN114125532A/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a seamless interactive video cutting method and a seamless interactive video cutting device, wherein in the device, when a user starts interactive video playing, an interactive chapter information processing unit processes interactive chapter information in the process of playing interactive video, and the interactive chapter information processing unit sends all next episode interactive branch video playing addresses to a video pre-caching control unit; meanwhile, the playing control unit synchronizes the playing state of the current video to the video pre-caching control unit, and the video pre-caching control unit starts video downloading caching tasks with corresponding quantity according to the quantity of the video playing addresses; after the current playing video triggers an interaction condition, the playing interface displays the interaction interface, a user carries out interaction response, when the user selects the next branch video to be played, the video loading unit inquires from the video pre-cache control unit, and if the video exists in the cache, the video preloading unit directly reads the cache data from the pre-cache data reading unit.

Description

Interactive video seamless cutting method and device
Technical Field
The invention belongs to the technical field of video playing, and particularly relates to a seamless cutting and playing method and device for interactive video.
Background
With the development of video technology and diversification of video application scenes, the concept of interactive video has been proposed in recent years, and has received more and more attention from users. The interactive video means that in the process of watching the video, the original mode that audiences can only watch the video content passively is broken through, interactivity is increased in a certain mode, and users can participate in video interaction, so that different video watching experiences are presented.
The core of the realization of the interactive video is the change of video content, and the user can have other interactive interaction besides passive watching. Generally, interactive video content comprises a plurality of content plot lines, each plot line has independent branch video content, each branch video content is independent from each other and can be played independently, and a user can watch favorite plot line content through interactive information displayed on an interface and interactive operation of the interactive interface, so that interactivity is increased, and different watching experience is provided. Since the interactive video includes a plurality of branch videos, the switching requirement of different branch videos is necessarily involved in the interactive operation process. The fluency of switching different branches of the interactive video is also an important link for the viewing experience of the interactive video. At present, there are two common methods, one is to use a player, close the current video and then reload and play the next branch video when the branch video needs to be switched; the other is to start a plurality of players, one of which plays the current video, and the other players load other alternative branch videos in advance and enter a pause waiting playing state, and when the switching is triggered, the player is switched to the corresponding alternative video player to play. The first method has less resource occupation, the fluency of the switching branch video depends on the size of the video and the quality of the network, and the switching fluency is insufficient; the second method starts a plurality of players, the resource occupation is large, although the switching is smooth, the number of the players depends on the number of the next-level branch videos, and because it is not known which branch video will be played next before the switching, the number of players to be started by how many alternative branch videos is only suitable for the situation that the number of the same-level branch videos is small, if the number of the same-level branch videos is too large, the number of the players to be started is large, and the system resource overhead is inevitably too large.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a seamless switching method and device for interactive video, which are used for realizing seamless switching of interactive video branch video and simultaneously can achieve less system resource occupation and strong expandability.
In order to solve the technical problems, the invention adopts the following technical scheme:
the first aspect of the embodiments of the present invention provides an interactive video seamless cut-off method, which is applied to an interactive video seamless cut-off device comprising a video playing module and a video pre-caching module, wherein the video playing module further comprises an interactive chapter information processing unit, a video loading unit and a playing control unit, the video pre-caching module further comprises a video downloading caching unit, a pre-caching data reading unit, a video pre-caching control unit and a streaming caching file, and the method comprises the following steps:
when a user starts interactive video playing, in the process of playing the interactive video head video, the interactive chapter information processing unit processes the interactive chapter information, and the interactive chapter information processing unit sends all next episode interactive branch video playing addresses to the video pre-caching control unit; meanwhile, the playing control unit synchronizes the playing state of the current video to the video pre-caching control unit; the video pre-caching control unit starts video downloading caching tasks with corresponding quantity according to the quantity of the video playing addresses and controls the state of each downloading caching task;
after the current playing video triggers an interaction condition, the playing interface displays an interaction interface, a user carries out interaction response, and when the user selects a next branch video to be played, the video loading unit carries out video loading;
and repeating the steps until the interactive video is played according to the time line.
In a possible design of the first aspect, the video loading unit performs video loading including:
and inquiring from the video pre-cache control unit, if the video is not in the cache, directly downloading the video data from the video server by the video loading unit, if the video is in the cache, directly reading the cache data from the pre-cache data reading unit by the video pre-loading unit, and simultaneously starting a video downloading cache task to continue downloading cache of the un-downloaded data by the video pre-cache control unit, so that the cache file reading, the video downloading and the downloading data writing into the cache file are mutually connected in series to form the caching and playing of streaming data.
In a possible design of the first aspect, each pre-cached video playing address corresponds to a cache file with a unique identifier; the pre-cache data reading unit reads the video data in the cached cache file, finds the corresponding cache file according to the unique identifier of the cache file, and reads the video data in a file stream mode.
In a possible design of the first aspect, the video playing module further includes a video parsing unit, which decapsulates the loaded audio/video data and parses the coding format, so as to obtain audio data, video data, and other configuration information written into the code stream after parsing.
In a possible design of the first aspect, the video pre-caching control unit controls the operation of the video downloading caching task according to the state of the currently played video, starts to start the downloading caching task of the branch video after the video is played, suspends the video downloading caching task when the network downloading code rate is lower than the code rate of the video being played, and resumes the downloading caching task when the network downloading code rate is higher than the code rate of the video being played.
In a possible design of the first aspect, the pre-cache data reading unit performs parallel access on a single file or multiple files, each file corresponds to one reading task, all the tasks are independent of each other, and the reading of the files is performed sequentially from the head of the file to the tail of the file.
A second aspect of the embodiments of the present invention provides an interactive video seamless cutting device, including a video playing module and a video pre-caching module, where the video playing module further includes an interactive chapter information processing unit, a video loading unit and a playing control unit, the video pre-caching module further includes a video downloading caching unit, a pre-caching data reading unit, a video pre-caching control unit and a streaming caching file,
when a user starts interactive video playing, in the process of playing the interactive video head video, the interactive chapter information processing unit processes the interactive chapter information, and the interactive chapter information processing unit sends all next episode interactive branch video playing addresses to the video pre-caching control unit; the video pre-cache control unit starts corresponding number of video downloading cache tasks according to the number of video playing addresses and controls the state of each downloading cache task at the same time;
after the current played video triggers an interaction condition, the playing interface displays the interaction interface, a user carries out interaction response, when the user selects a next branch video to be played, the video loading unit inquires from the video pre-caching control unit, if the video is not in the cache, the video loading unit directly downloads the video data from the video server, if the video is in the cache, the video preloading unit directly reads the cache data from the pre-caching data reading unit, meanwhile, the video pre-caching control unit starts a video downloading cache task to continue downloading cache of the un-downloaded data, so that the cache file reading, the video downloading and the downloading data are written into the cache file to be connected in series, and a streaming cache file is cached and played.
In a possible design of the second aspect, each pre-cached video playing address corresponds to a cache file with a unique identifier; the pre-cache data reading unit reads the video data in the cached cache file, finds the corresponding cache file according to the unique identifier of the cache file, and reads the video data in a file stream mode.
In a possible design of the second aspect, the video playing module further includes a video parsing unit, configured to decapsulate the loaded audio/video data and parse the coding format to obtain audio data, video data, and other configuration information written into the code stream.
In a possible design of the second aspect, the video pre-caching control unit controls the operation of the video downloading caching task according to the state of the currently played video, starts to start the downloading caching task of the branch video after the video is played, suspends the video downloading caching task when the network downloading code rate is lower than the code rate of the video being played, and resumes the downloading caching task when the network downloading code rate is higher than the code rate of the video being played.
In a possible design of the second aspect, the pre-cache data reading unit performs parallel access on a single file or multiple files, each file corresponds to one reading task, all the tasks are independent of each other, and the reading of the files is performed sequentially from the file head to the file tail.
The invention has the following beneficial effects: through a video pre-caching mechanism, video data of all branch videos required by the starting and playing of the cache are downloaded in advance, although a certain file storage space is occupied, the video can be switched to the smooth seamless black screen for video switching, and meanwhile, the consumption of a program running memory can be greatly reduced by replacing a system running memory (RAM) with a file storage space (ROM), and the program running efficiency is improved; the capabilities of video caching and streaming data reading are realized by a streaming file caching method, and the player does not need to treat the streaming data in a unified manner according to the streaming media in a differentiated manner.
Drawings
Fig. 1 is a schematic structural diagram of an interactive video seamless cutting device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
The embodiment of the invention provides an interactive video seamless cutting method, which is applied to an interactive video seamless cutting device shown in figure 1, wherein the interactive video seamless cutting device comprises a video playing module and an interactive video seamless cutting device of a video pre-caching module, the video playing module further comprises an interactive chapter information processing unit, a video loading unit and a playing control unit, the video pre-caching module further comprises a video downloading caching unit, a pre-caching data reading unit, a video pre-caching control unit and a streaming caching file, and the method comprises the following steps:
when a user starts interactive video playing, in the process of playing the interactive video head video, the interactive chapter information processing unit processes the interactive chapter information, and the interactive chapter information processing unit sends all next episode interactive branch video playing addresses to the video pre-caching control unit; meanwhile, the playing control unit synchronizes the playing state of the current video to the video pre-caching control unit; the video pre-caching control unit starts video downloading caching tasks with corresponding quantity according to the quantity of the video playing addresses and controls the state of each downloading caching task;
after the current playing video triggers an interaction condition, the playing interface displays an interaction interface, a user carries out interaction response, and when the user selects a next branch video to be played, the video loading unit carries out video loading; and repeating the steps until the interactive video is played according to the time line.
In an embodiment of the present invention, the video loading unit performing video loading includes:
and inquiring from the video pre-cache control unit, if the video is not in the cache, directly downloading the video data from the video server by the video loading unit, if the video is in the cache, directly reading the cache data from the pre-cache data reading unit by the video pre-loading unit, and simultaneously starting a video downloading cache task to continue downloading cache of the un-downloaded data by the video pre-cache control unit, so that the cache file reading, the video downloading and the downloading data writing into the cache file are mutually connected in series to form the caching and playing of streaming data. Because the pre-cached data is the data downloaded in advance in the last video playing process, the data is directly read from the cached file when being played, the efficiency is the same as that of the local file, so that the time consumed by server connection, DNS analysis and data downloading is saved, the playing can be started at millisecond level, the switching is fast and smooth without pause, and the seamless switching of the branch videos is realized.
In one embodiment of the invention, each pre-cached video playing address corresponds to a cache file with a unique identifier; the pre-cache data reading unit reads the video data in the cached cache file, finds the corresponding cache file according to the unique identifier of the cache file, and reads the video data in a file stream mode. Video playing data of a common player are stored in an operating memory (RAM), and file storage (ROM) space is occupied by pre-caching the data in a streaming cache file in the embodiment of the invention, so that the consumption of the operating memory (RAM) of a program is reduced. The running memory (RAM) is configured memory such as 16G, and the file storage space (RAM) is configured hard disk storage space such as 512G. The consumption of the program operation memory can be greatly reduced through the stream file form setting, and the program operation efficiency is improved.
In an embodiment of the present invention, the video playing module further includes a video parsing unit, which decapsulates the loaded audio/video data and parses the coding format, so as to obtain audio data, video data, and other configuration information written into the code stream after parsing. Other code stream information includes audio header information (sampling rate, code rate, encoding format, etc. of audio), video header information (high video bandwidth, code rate, encoding format, etc.), supplemental enhancement information SEI (including interactive chapter information, which the interactive chapter information processing unit can further analyze the specific content inside SEI).
In an embodiment of the present invention, the video pre-caching control unit starts a corresponding number of video downloading caching tasks according to the number of video playing addresses, and controls the state of each downloading caching task. And the video pre-caching control unit controls the running of the video downloading caching task according to the state of the currently played video. Starting a downloading cache task of the branched video after the video is played, pausing the downloading cache task of the video when the network downloading code rate is lower than the code rate of the video being played, and resuming the downloading cache task when the network downloading code rate is higher than the code rate of the video being played. The comparison reference value of the network downloading code rate lower than or higher than the playing video code rate can be set according to actual requirements, for example, the caching task is suspended when the code rate is lower than 1 time, and the caching task is recovered when the code rate is higher than 2 times. The video downloading cache module can specify the size of the cache data volume and the downloading rate of each cache task, and the cache is stopped when the downloaded data of the cache tasks reaches the specified data volume.
In an embodiment of the present invention, the pre-cache data reading unit performs parallel access on a single file or multiple files, each file corresponds to one reading task, all the tasks are independent of each other, and the reading of the files is performed sequentially from the file head to the file tail.
In a specific application example, assuming that the current interactive video has a start header video H1 and two levels of node branch videos, the number of the branch videos at each level is 3, the first level branch videos are B1, B2 and B3, and the second level branch videos are C1, C2 and C3, the interactive video seamless cut-off method according to the embodiment of the present invention includes the following specific steps:
s1, when the user starts the interactive video playing, in the playing process of the interactive video head video H1, the interactive chapter information processing unit processes the interactive chapter information, and after processing, the alternative branch video playing addresses B1, B2 and B3 of the next node are obtained;
s2, when the head video H1 is played successfully, the interactive chapter information processing unit sends the playing addresses of the branch videos B1, B2 and B3 to the video pre-caching control unit; meanwhile, the playing control unit synchronizes the playing state of the currently played video to the video pre-caching control unit;
and S3, the video pre-caching control unit starts 3 video downloading caching tasks, and simultaneously appoints the caching data size of each downloading caching task to be 5M. When the network downloading rate is lower than the code rate of the H1 video being played, the B1, B2 and B3 video downloading cache tasks are paused, when the network downloading rate is higher than 2.5 times the code rate of the video being played, the downloading cache tasks are resumed, and simultaneously the downloading rate of each downloading task is set to be 0.5 times the code rate, so that enough network bandwidth is reserved for the video being played when the downloading cache tasks are operated, and the smoothness of the video being played at present is ensured. And when the video data amount downloaded by the video cache downloading task reaches 5M, stopping the task.
S4, when the user performs the interactive operation, the user selects one of the three branch videos, which is assumed to be B2. Then the video loading unit of the player module immediately queries whether the B2 has a cache from the video cache control unit, if so, the video preloading unit reads the cache file data of the B2 video from the pre-cache data reading unit, the data reading is performed from the file head to the file tail, meanwhile, the video pre-cache control unit starts the download cache task of the B2 video to continue the download cache of the video data after 5M, and the cache write of the download data is performed from the file tail for splicing write. Through the steps, the reading of the cache file, the downloading of the video data and the writing of the downloaded data into the cache file are connected in series, and the playing of streaming data is formed. Therefore, the fast starting of the B2 video is realized, and the seamless cutting effect is achieved.
S5, after the B2 video starts to be played, the interactive chapter information processing module processes the interactive chapter information of the next node branch to obtain branch videos C1, C2 and C3 of the next node;
and repeating S2 to S4 for the branch videos C1, C2 and C3 until all the interactive videos are played in a time line.
Corresponding to the embodiment of the method of the present invention, referring to fig. 1, a schematic structural diagram of an interactive video seamless cutting device according to another embodiment of the present invention is shown, which includes a video playing module and a video pre-caching module, the video playing module further includes an interactive chapter information processing unit, a video loading unit and a playing control unit, the video pre-caching module further includes a video downloading caching unit, a pre-caching data reading unit, a video pre-caching control unit and a streaming caching file,
when a user starts interactive video playing, in the process of playing the interactive video head video, the interactive chapter information processing unit processes the interactive chapter information and sends all the next episode interactive branch video playing addresses to the video pre-caching control unit; the video pre-cache control unit starts corresponding number of video downloading cache tasks according to the number of video playing addresses and controls the state of each downloading cache task at the same time;
after the current played video triggers an interaction condition, the playing interface displays the interaction interface, a user carries out interaction response, when the user selects a next branch video to be played, the video loading unit inquires from the video pre-caching control unit, if the video is not in the cache, the video loading unit directly downloads the video data from the video server, if the video is in the cache, the video preloading unit directly reads the cache data from the pre-caching data reading unit, meanwhile, the video pre-caching control unit starts a video downloading cache task to continue downloading cache of the un-downloaded data, so that the cache file reading, the video downloading and the downloading data are written into the cache file to be connected in series, and a streaming cache file is cached and played.
In one embodiment of the invention, each pre-cached video playing address corresponds to a cache file with a unique identifier; the pre-cache data reading unit reads the video data in the cached cache file, finds the corresponding cache file according to the unique identifier of the cache file, and reads the video data in a file stream mode. The video downloading cache unit can download a single file or download a plurality of files in parallel. Each file corresponds to one download task, and all the tasks are independent. And the file writing of the downloaded data is sequentially spliced from the tail of the file to the back.
In an embodiment of the present invention, the video playing module further includes a video parsing unit, configured to decapsulate the loaded audio/video data, parse the coding format, and obtain audio data, video data, and other configuration information written into the code stream after parsing. Other code stream information includes audio header information (sampling rate, code rate, encoding format, etc. of audio), video header information (high video bandwidth, code rate, encoding format, etc.), supplemental enhancement information SEI (including interactive chapter information, which the interactive chapter information processing unit can further analyze the specific content inside SEI).
The streaming cache file is a technical characteristic of the embodiment of the invention, firstly, the file storage is used, so that the downloaded data is not required to be stored in the running memory all the time, and the use of the running memory is greatly reduced; and secondly, the file can realize the downloading and the downloading at the same time, can randomly control the amount of the downloaded data, and can stop and recover the continuous downloading of the data at any time. Through the cooperation with the pre-cache data reading unit and the video downloading cache unit, the streaming reading and writing of the cache file can be realized, so that the player can directly run the streaming media playing logic without special processing. The video data of all the branch videos required by starting playing is downloaded and cached in advance by adopting the concept of space time change, although the video data occupies the storage space, the video data can be changed into smooth seamless video switching; the streaming file caching method is provided to realize the video caching and streaming data reading capabilities, and the player does not need to treat the streaming data in a unified manner according to the streaming media playing.
It is to be understood that the exemplary embodiments described herein are illustrative and not restrictive. Although one or more embodiments of the present invention have been described with reference to the accompanying drawings, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.

Claims (11)

1. The interactive video seamless cutting method is applied to an interactive video seamless cutting device comprising a video playing module and a video pre-caching module, wherein the video playing module further comprises an interactive chapter information processing unit, a video loading unit and a playing control unit, the video pre-caching module further comprises a video downloading caching unit, a pre-caching data reading unit, a video pre-caching control unit and a streaming caching file, and the interactive video seamless cutting method comprises the following steps:
when a user starts interactive video playing, in the process of playing the interactive video head video, the interactive chapter information processing unit processes the interactive chapter information and sends all the next episode interactive branch video playing addresses to the video pre-caching control unit; meanwhile, the playing control unit synchronizes the playing state of the current video to the video pre-caching control unit; the video pre-caching control unit starts video downloading caching tasks with corresponding quantity according to the quantity of the video playing addresses and controls the state of each downloading caching task;
after the current playing video triggers an interaction condition, the playing interface displays an interaction interface, a user carries out interaction response, and when the user selects a next branch video to be played, the video loading unit carries out video loading;
and repeating the steps until the interactive video is played according to the time line.
2. The interactive video seamless cutting method of claim 1, wherein the video loading unit for video loading comprises:
and inquiring from the video pre-cache control unit, if the video is not in the cache, directly downloading the video data from the video server by the video loading unit, if the video is in the cache, directly reading the cache data from the pre-cache data reading unit by the video pre-loading unit, and simultaneously starting a video downloading cache task to continue downloading cache of the un-downloaded data by the video pre-cache control unit, so that the cache file reading, the video downloading and the downloading data writing into the cache file are mutually connected in series to form the caching and playing of streaming data.
3. The interactive video seamless cutting method according to claim 1, wherein each pre-cached video playing address corresponds to a cache file with a unique identifier; the pre-cache data reading unit reads the video data in the cached cache file, finds the corresponding cache file according to the unique identifier of the cache file, and reads the video data in a file stream mode.
4. The interactive video seamless cutting method according to claim 1, wherein the video playing module further comprises a video parsing unit, which decapsulates the loaded audio/video data and parses the coding format, so as to obtain the audio data, the video data and other configuration information written into the code stream.
5. The interactive video seamless cutting method according to claim 1, wherein the video pre-caching control unit controls the operation of the video downloading caching task according to the state of the currently playing video, starts the downloading caching task of the branch video after the video starts playing, suspends the video downloading caching task when the network downloading code rate is lower than the video code rate being played, and resumes the downloading caching task when the network downloading code rate is higher than the video code rate being played.
6. The interactive video seamless cutting method according to claim 1, wherein the pre-buffer data reading unit performs parallel access to a single file or a plurality of files, each file corresponds to a reading task, all the tasks are independent of each other, and the reading of the files is sequentially performed from the head of the file to the tail of the file.
7. An interactive video seamless cutting device is characterized by comprising a video playing module and a video pre-caching module, wherein the video playing module further comprises an interactive chapter information processing unit, a video loading unit and a playing control unit, the video pre-caching module further comprises a video downloading caching unit, a pre-caching data reading unit, a video pre-caching control unit and a streaming caching file,
when a user starts interactive video playing, in the process of playing the interactive video head video, the interactive chapter information processing unit processes the interactive chapter information, and the interactive chapter information processing unit sends all next episode interactive branch video playing addresses to the video pre-caching control unit; the video pre-cache control unit starts corresponding number of video downloading cache tasks according to the number of video playing addresses and controls the state of each downloading cache task at the same time;
after the current played video triggers an interaction condition, the playing interface displays the interaction interface, a user carries out interaction response, when the user selects a next branch video to be played, the video loading unit inquires from the video pre-caching control unit, if the video is not in the cache, the video loading unit directly downloads the video data from the video server, if the video is in the cache, the video preloading unit directly reads the cache data from the pre-caching data reading unit, meanwhile, the video pre-caching control unit starts a video downloading cache task to continue downloading cache of the un-downloaded data, so that the cache file reading, the video downloading and the downloading data are written into the cache file to be connected in series, and a streaming cache file is cached and played.
8. The interactive video seamless cutting device according to claim 7, wherein each pre-cached video playing address corresponds to a cache file with a unique identifier; the pre-cache data reading unit reads the video data in the cached cache file, finds the corresponding cache file according to the unique identifier of the cache file, and reads the video data in a file stream mode.
9. The interactive video seamless cutting device according to claim 7, wherein the video playing module further comprises a video parsing unit for decapsulating the loaded audio/video data and parsing the coding format to obtain the audio data, the video data and other configuration information written into the code stream.
10. The interactive video seamless cutting device according to claim 7, wherein the video pre-caching control unit controls the operation of the video downloading caching task according to the state of the currently playing video, starts the downloading caching task of the branch video after the video starts playing, suspends the video downloading caching task when the network downloading code rate is lower than the video code rate being played, and resumes the downloading caching task when the network downloading code rate is higher than the video code rate being played.
11. The interactive video seamless cutting device according to claim 7, wherein the pre-buffer data reading unit performs parallel access to a single file or a plurality of files, each file corresponds to a reading task, all the tasks are independent of each other, and the reading of the files is sequentially performed from the head of the file to the tail of the file.
CN202111278149.2A 2021-10-30 2021-10-30 Interactive video seamless cutting method and device Pending CN114125532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111278149.2A CN114125532A (en) 2021-10-30 2021-10-30 Interactive video seamless cutting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111278149.2A CN114125532A (en) 2021-10-30 2021-10-30 Interactive video seamless cutting method and device

Publications (1)

Publication Number Publication Date
CN114125532A true CN114125532A (en) 2022-03-01

Family

ID=80380005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111278149.2A Pending CN114125532A (en) 2021-10-30 2021-10-30 Interactive video seamless cutting method and device

Country Status (1)

Country Link
CN (1) CN114125532A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180084023A1 (en) * 2016-09-20 2018-03-22 Facebook, Inc. Video Keyframes Display on Online Social Networks
CN110430461A (en) * 2019-08-28 2019-11-08 腾讯科技(深圳)有限公司 A kind of method, apparatus and video playback apparatus controlling video playing
CN113115117A (en) * 2021-03-16 2021-07-13 新东方教育科技集团有限公司 Interactive video playing method and device, storage medium and electronic equipment
CN113254393A (en) * 2021-04-07 2021-08-13 互影科技(北京)有限公司 Interactive video packaging method and device and electronic equipment
WO2021159770A1 (en) * 2020-02-14 2021-08-19 腾讯科技(深圳)有限公司 Video playback method, device, apparatus, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180084023A1 (en) * 2016-09-20 2018-03-22 Facebook, Inc. Video Keyframes Display on Online Social Networks
CN110430461A (en) * 2019-08-28 2019-11-08 腾讯科技(深圳)有限公司 A kind of method, apparatus and video playback apparatus controlling video playing
WO2021159770A1 (en) * 2020-02-14 2021-08-19 腾讯科技(深圳)有限公司 Video playback method, device, apparatus, and storage medium
CN113115117A (en) * 2021-03-16 2021-07-13 新东方教育科技集团有限公司 Interactive video playing method and device, storage medium and electronic equipment
CN113254393A (en) * 2021-04-07 2021-08-13 互影科技(北京)有限公司 Interactive video packaging method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104519372B (en) The switching method and system of a kind of streaming media playing
CN110636346B (en) Code rate self-adaptive switching method and device, electronic equipment and storage medium
CN102647634B (en) Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video
WO2021159770A1 (en) Video playback method, device, apparatus, and storage medium
EP1887575B1 (en) Digital video recorder having hierarchical memories and method for implementing hierarchical memories
CN102790925B (en) Method and VOD (Video On Demand) terminal for playing online streaming media
CN107547940A (en) Video playback processing method, equipment and computer-readable recording medium
US11825034B2 (en) Bullet screen delivery method for live broadcast playback and live video bullet screen playback method
CN107920258B (en) Data processing method and device
US20020122656A1 (en) Method and apparatus for recording broadcast data
CN1980377A (en) Method for smart inserting material
EP2850844A1 (en) Enforcement of trick-play disablement in adaptive bit rate video content delivery
CN103024603B (en) A kind of for solving playing network video time the device and method that pauses in short-term
CN105187896B (en) The media file playing method and system more being segmented
CN113424553B (en) Method and system for playback of media items
CN104202684A (en) Segmental network video seamless playing method and device
CN108769816B (en) Video playing method, device and storage medium
CN105187895A (en) Data-caching method and system for playing videos on mobile platform by means of hardware acceleration
CN111669645A (en) Video playing method and device, electronic equipment and storage medium
JP2003510982A (en) A viable system for video on demand
CN105187897A (en) Multi-segment media file cross-segment playing method and system
CN114125532A (en) Interactive video seamless cutting method and device
CN116088732A (en) Multimedia playing method, device and equipment
CN107484040A (en) A kind of method for realizing network acceleration
CN112423096B (en) Playing optimization 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