CN112969092B - Video file playing system - Google Patents
Video file playing system Download PDFInfo
- Publication number
- CN112969092B CN112969092B CN202110127821.1A CN202110127821A CN112969092B CN 112969092 B CN112969092 B CN 112969092B CN 202110127821 A CN202110127821 A CN 202110127821A CN 112969092 B CN112969092 B CN 112969092B
- Authority
- CN
- China
- Prior art keywords
- video
- audio
- data
- module
- decoding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000000463 material Substances 0.000 claims abstract description 100
- 230000000694 effects Effects 0.000 claims abstract description 79
- 230000006870 function Effects 0.000 claims abstract description 41
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000009877 rendering Methods 0.000 claims abstract description 17
- 230000000875 corresponding effect Effects 0.000 claims description 73
- 238000011084 recovery Methods 0.000 claims description 21
- 230000008569 process Effects 0.000 abstract description 20
- 230000007717 exclusion Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 13
- 230000004048 modification Effects 0.000 description 9
- 238000012986 modification Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 230000004075 alteration Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000012508 change request Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/44012—Processing 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 rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/439—Processing of audio elementary streams
- H04N21/4394—Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/44008—Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a video file playing system.A material management module is used for managing material information selected by a user; the effect management module is used for managing effect information corresponding to the material selected by the user; the method comprises the steps that a resource read-write lock is arranged on material information and effect information corresponding to the material information, and in the resource read-write lock, mutual exclusion does not exist between resource reading functions and mutual exclusion exists between the resource reading functions and resource writing functions; the audio module is used for decoding and consuming audio data in the material information and effect data corresponding to the audio data so as to complete the playing of the audio; the video module is used for decoding and rendering video data in the material information and effect data corresponding to the video data so as to complete video playing; the method and the device enable a user to add and delete the materials in real time in the process of playing the video file by the player, and the process of adding and deleting does not need to stop the player thread completely, so that the loss of performance is avoided.
Description
Technical Field
The invention relates to the technical field of video data processing, in particular to a video file playing system.
Background
The player is a tool for playing video files; today, many players (e.g., clips, etc.) allow a user to modify a video file in order to meet the user's needs.
In the related art, when a user needs to add materials in the process of playing videos through a player; often, the player thread needs to be completely stopped, and the player thread is restarted after the user completes adding the material; and if the player thread is not stopped, the player can generate concurrency errors. In this way, the user cannot view the effect generated by the added material in real time; also, frequently terminating and restarting player threads results in a waste of resources that is significant.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, an object of the present invention is to provide a video file playing system, which enables a user to add or delete materials in real time during the playing of a video file by a player, and the adding or deleting process does not need to stop the player thread completely, thereby avoiding performance loss.
To achieve the above object, an embodiment of the present invention provides a video file playing system, including: the system comprises an audio module, a video module, a material management module and an effect management module; the material management module is used for storing material information selected by a user, searching corresponding material information according to a searching request sent by the audio module or the video module, and changing the material information according to a changing request of the user; the effect management module is used for storing effect information corresponding to the material selected by the user, searching corresponding effect information according to a searching request sent by the audio module or the video module, and changing the effect information according to a changing request of the user; the material information and the effect information corresponding to the material information are provided with resource read-write locks, and in the resource read-write locks, the resource read functions are not mutually exclusive, and the resource read functions and the resource write functions are mutually exclusive; the audio module is used for decoding and consuming audio data in the material information and effect data corresponding to the audio data so as to complete the playing of audio; the video module is used for decoding and rendering the video data in the material information and the effect data corresponding to the video data so as to complete the playing of the video.
According to the video file playing system provided by the embodiment of the invention, the material management module is arranged for storing the material information selected by the user, searching the corresponding material information according to the searching request sent by the audio module or the video module, and changing the material information according to the changing request of the user; the effect management module is used for storing effect information corresponding to the material selected by the user, searching corresponding effect information according to a searching request sent by the audio module or the video module, and changing the effect information according to a changing request of the user; the method comprises the steps that resource reading and writing locks are arranged on material information and effect information corresponding to the material information, and in the resource reading and writing locks, mutual exclusion does not exist between resource reading functions and mutual exclusion exists between the resource reading functions and the resource writing functions; the audio module is used for decoding and consuming audio data in the material information and effect data corresponding to the audio data so as to complete the playing of the audio; the video module is used for decoding and rendering video data in the material information and effect data corresponding to the video data so as to complete video playing; the method and the device enable a user to add and delete the materials in real time in the process of playing the video file by the player, and the process of adding and deleting does not need to stop the player thread completely, so that the loss of performance is avoided.
In addition, the video file playing system proposed according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the audio module includes an audio decoding thread and an audio consuming thread, and the audio module is correspondingly provided with an audio lock, where the audio lock includes a first decoding block, a first recovery block, and a search block, and two of the first decoding block, the first recovery block, and the search block are mutually exclusive.
Optionally, the decoding, by the audio module, the audio data in the material information and the effect data corresponding to the audio data includes: the audio decoding thread judges whether a resource reading function of the resource reading and writing lock is available or not, and judges whether the first decoding block is available or not when the judgment result is yes; if yes, obtaining the current playing time, obtaining corresponding audio data and effect data corresponding to the audio data according to the current playing time, decoding, and storing the decoded data in a first buffer queue.
Optionally, the playing, by the audio module, the audio data in the material information and the effect data corresponding to the audio data includes: the audio consumption thread judges whether a resource reading function of the resource reading and writing lock is available or not, and when the judgment result is yes, the current playing time is obtained, and the first cache queue is inquired according to the current playing time so as to obtain corresponding decoded audio data for playing; and after the playing of the decoded data is finished, updating the current playing time.
Optionally, the video module includes a video decoding thread and a video consuming thread, and the video module is correspondingly provided with a video lock, where the video lock includes a second decoding block, a second recovery block, and a rendering block, the second recovery block is mutually exclusive with the second decoding block and the rendering block, and the decoding block is not mutually exclusive with the rendering block.
Optionally, the decoding, by the video module, the video data in the material information and the effect data corresponding to the video data includes: the video decoding thread judges whether a resource reading function of the resource reading and writing lock is available or not, and judges whether a second decoding block is available or not when the judgment result is yes; if yes, the current playing time is obtained, corresponding video data and effect data corresponding to the video data are obtained according to the current playing time and decoded, and the decoded data are stored in a second cache queue.
Optionally, the playing, by the video module, the video data in the material information and the effect data corresponding to the video data includes: and the video consumption thread judges whether the resource reading function of the resource reading and writing lock is available, acquires the current playing time when the judgment result is yes, and queries the second cache queue according to the current playing time to acquire corresponding decoded video data for playing.
Drawings
FIG. 1 is a block diagram of a video file playback system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an audio decoding process according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an audio playback process according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a video decoding process according to an embodiment of the present invention;
fig. 5 is a schematic view of a video playing process according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and intended to explain the present invention and should not be construed as limiting the present invention.
In the related art, when a user needs to add materials in the process of playing videos through a player; player threads often need to be stopped completely; the user cannot check the effect generated by the added material in real time; also, frequently terminating and restarting player threads results in a waste of resources that is significant. According to the video file playing system provided by the embodiment of the invention, the material management module is arranged for storing the material information selected by the user, searching the corresponding material information according to the searching request sent by the audio module or the video module, and changing the material information according to the changing request of the user; the effect management module is used for storing effect information corresponding to the material selected by the user, searching corresponding effect information according to a searching request sent by the audio module or the video module, and changing the effect information according to a changing request of the user; the method comprises the steps that resource reading and writing locks are arranged on material information and effect information corresponding to the material information, and in the resource reading and writing locks, mutual exclusion does not exist between resource reading functions and mutual exclusion exists between the resource reading functions and the resource writing functions; the audio module is used for decoding and consuming audio data in the material information and effect data corresponding to the audio data so as to complete the playing of the audio; the video module is used for decoding and rendering video data in the material information and effect data corresponding to the video data so as to complete video playing; the method and the device enable a user to add and delete the materials in real time in the process of playing the video file by the player, and the process of adding and deleting does not need to stop the player thread completely, so that the loss of performance is avoided.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
FIG. 1 is a block diagram of a video file playback system according to an embodiment of the present invention; as shown in fig. 1, the video file playing system includes: an audio module 10, a video module 20, a material management module 30, and an effect management module 40.
The material management module 30 is configured to store material information selected by a user, search corresponding material information according to a search request sent by the audio module 10 or the video module 20, and modify the material information according to a modification request of the user;
the effect management module 40 is configured to store effect information corresponding to a material selected by a user, search for corresponding effect information according to a search request sent by the audio module 10 or the video module 20, and modify the effect information according to a modification request of the user;
that is, material information (audio data or video data) and effect information (effects corresponding to the audio data, such as sound change, etc., and effects corresponding to the video data, such as partial display, addition of a frame, etc.) are separately managed, so as to avoid the problem of increased management complexity in a multi-thread environment due to coupling of the material information and the effect information.
Wherein, the material management module includes to the management of material information: searching materials according to the request, correspondingly adding, deleting and changing material information according to the adding, deleting and changing requests of the user, changing the time length of the materials according to the change of the materials, and calling back and informing the player to change the total time length according to the change result.
The management of the effect information by the effect management module includes: and searching the effect information according to the request, and correspondingly adding, deleting and changing the effect information according to the adding, deleting and changing requests of the user.
The method comprises the steps that a resource read-write lock is arranged on material information and effect information corresponding to the material information, and in the resource read-write lock, mutual exclusion does not exist between resource reading functions and mutual exclusion exists between the resource reading functions and resource writing functions;
that is, when the player needs to perform a resource reading operation or a resource writing operation on the material information and the effect information corresponding to the material information; the resource read-write lock needs to be acquired first. The resource reading functions are not mutually exclusive, namely, the operations of reading a plurality of resources are allowed to be carried out simultaneously; and the resource reading function and the resource writing function are mutually exclusive; that is, when a resource read operation is in progress; disallowing the operation of resource writing; when a resource writing operation (when the material or the effect needs to be changed, such as added, deleted, or modified, the material management module or the effect management module needs to acquire the resource write lock so as to change after acquiring the resource write lock) is in progress, the resource reading operation is not allowed.
The audio module 10 is configured to decode and consume audio data in the material information and effect data corresponding to the audio data to complete playing of audio;
that is, audio decoding, consumption is separated from video decoding, consumption; to prevent unnecessary waiting between audio and video; loss of performance is reduced; meanwhile, the complexity of synchronous management of audio and video is reduced.
In some embodiments, the audio module includes an audio decoding thread and an audio consuming thread, and the audio module is correspondingly provided with an audio lock, wherein the audio lock includes a first decoding block, a first recovery block and a search block, and the first decoding block, the first recovery block and the search block are mutually exclusive pairwise.
That is, the decoding and consumption process of the audio is divided into two threads to be performed, so that the processing efficiency of the audio is further improved; and the multithreading process is managed through the audio lock so as to prevent the multithreading concurrent errors.
As an example, the audio module decodes audio data in the material information and effect data corresponding to the audio data, and includes: the audio decoding thread judges whether a resource reading function of the resource reading and writing lock is available or not, and judges whether the first decoding block is available or not when the judgment result is yes; if yes, the current playing time is obtained, corresponding audio data and effect data corresponding to the audio data are obtained according to the current playing time to be decoded, and the decoded data are stored in a first buffer queue.
As another example, the playing of the audio data in the material information and the effect data corresponding to the audio data by the audio module includes: the audio consumption thread judges whether the resource reading function of the resource reading-writing lock is available, and when the judgment result is yes, the current playing time is obtained, and the first cache queue is inquired according to the current playing time so as to obtain corresponding decoded audio data for playing; and after the playing of the decoded data is finished, updating the current playing time.
In an embodiment of the present invention, as shown in fig. 2, the decoding process of the audio decoding thread includes the following steps:
s201, acquiring resource reading lock.
S202, obtaining a first decoding block.
S203, acquiring the current playing time.
And S204, acquiring audio data and effect data corresponding to the current playing time and decoding.
And S205, storing the decoded data into a first buffer queue.
S206, storing the audio data and the effect data corresponding to the non-current playing time into a first recovery queue.
And S207, releasing the first decoding block.
And S208, releasing the resource reading lock.
S209, judging whether the current audio decoding task is finished; if yes, go to step S210; if not, step S201 is performed.
And S210, ending.
As an embodiment of the present invention, as shown in fig. 3, the consumption flow of the audio consumption thread includes the following steps:
s301, acquiring the resource reading lock.
S302, obtaining the current playing time.
And S303, acquiring corresponding decoded audio data stored in the first buffer queue according to the current playing time, and playing.
And S304, updating the current playing time.
S305, acquiring a first recovery block.
S306, releasing the audio data in the first recovery queue.
S307, releasing the first recovery block.
S308, releasing the resource reading lock.
S309, judging whether the current audio playing task is finished; if yes, go to step S310; if not, step S301 is executed.
And S310, ending.
Therefore, the problem of repeated resource recovery caused by the fact that the production end is responsible for recovery can be effectively solved by recovering the resources after each round of consumption is completed; and avoid concurrency errors. And time-driven by the audio consumption thread; it is possible to prevent inconvenience in synchronization caused by scattering of the time modification authority.
The video module 20 is configured to decode and render video data in the material information and effect data corresponding to the video data, so as to complete playing of the video.
In some embodiments, the video module includes a video decoding thread and a video consuming thread, and the video module is correspondingly provided with a video lock, wherein the video lock includes a second decoding block, a second recovery block and a rendering block, the second recovery block and the second decoding block and the rendering block are mutually exclusive, and the decoding block and the rendering block are not mutually exclusive.
As an example, the video module decodes video data in the material information and effect data corresponding to the video data, and includes: the video decoding thread judges whether a resource reading function of the resource reading and writing lock is available or not, and judges whether a second decoding block is available or not when the judgment result is yes; if yes, the current playing time is obtained, corresponding video data and effect data corresponding to the video data are obtained according to the current playing time and decoded, and the decoded data are stored in a second cache queue.
As another example, the playing of video data in the material information and effect data corresponding to the video data by the video module includes: and the video consumption thread judges whether the resource reading function of the resource reading and writing lock is available or not, acquires the current playing time when the judgment result is yes, and queries a second cache queue according to the current playing time to acquire corresponding decoded video data for playing.
In an embodiment of the present invention, as shown in fig. 4, the decoding process of the video decoding thread includes the following steps:
s401, acquiring resource reading lock.
S402, acquiring a second decoding block.
S403, acquiring the current playing time.
S404, acquiring video data and video effects corresponding to the current playing time, and decoding.
And S405, storing the decoded video data into a second buffer queue.
S406, storing the video data and the video effect of the non-current playing time into a second recycling queue.
S407, the second decoding block is released.
S408, releasing the resource reading lock.
S409, judging whether the current video decoding task is finished or not; if yes, go to step S410; if not, step S401 is performed.
And S410, ending.
In an embodiment of the present invention, as shown in fig. 5, a consumption flow of a video consumption thread includes the following steps:
s501, acquiring resource reading lock.
And S502, obtaining a rendering block.
S503, obtain the current playing time.
S504, the decoded video data stored in the second buffer queue is obtained according to the current playing time to be played.
And S505, releasing the rendering block.
S506, acquiring a second recovery block.
And S507, releasing the video resource in the second recovery queue.
And S508, releasing the second recovery block.
And S509, releasing the resource reading lock.
S510, judging whether the current video playing task is finished or not; if yes, go to step S511; if not, step S501 is executed.
And S511, ending.
In summary, according to the video file playing system of the embodiment of the present invention, the material management module is configured to store the material information selected by the user, search the corresponding material information according to the search request sent by the audio module or the video module, and change the material information according to the change request of the user; the effect management module is used for storing effect information corresponding to the material selected by the user, searching corresponding effect information according to a searching request sent by the audio module or the video module, and changing the effect information according to a changing request of the user; the method comprises the steps that resource reading and writing locks are arranged on material information and effect information corresponding to the material information, and in the resource reading and writing locks, mutual exclusion does not exist between resource reading functions and mutual exclusion exists between the resource reading functions and the resource writing functions; the audio module is used for decoding and consuming audio data in the material information and effect data corresponding to the audio data so as to complete the playing of the audio; the video module is used for decoding and rendering video data in the material information and effect data corresponding to the video data so as to complete video playing; the method and the device enable a user to add and delete the materials in real time in the process of playing the video file by the player, and the process of adding and deleting does not need to stop the player thread completely, so that the loss of performance is avoided.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or may be connected through the use of two elements or the interaction of two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (5)
1. A video file playback system, comprising: the system comprises an audio module, a video module, a material management module and an effect management module;
the material management module is used for storing material information selected by a user, searching corresponding material information according to a searching request sent by the audio module or the video module, and changing the material information according to a changing request of the user;
the effect management module is used for storing effect information corresponding to the material selected by the user, searching corresponding effect information according to a searching request sent by the audio module or the video module, and changing the effect information according to a changing request of the user;
the material information and the effect information corresponding to the material information are provided with resource read-write locks, and in the resource read-write locks, the resource read functions are not mutually exclusive, and the resource read functions and the resource write functions are mutually exclusive;
the audio module is used for decoding and consuming audio data in the material information and effect data corresponding to the audio data so as to complete the playing of the audio;
the video module is used for decoding and rendering video data in the material information and effect data corresponding to the video data so as to complete the playing of the video;
the audio module comprises an audio decoding thread and an audio consuming thread, and is correspondingly provided with an audio lock, wherein the audio lock comprises a first decoding block, a first recovery block and a search block, and the first decoding block, the first recovery block and the search block are mutually exclusive in pairs;
the audio module decodes audio data in the material information and effect data corresponding to the audio data, and the method comprises the following steps:
the audio decoding thread judges whether a resource reading function of the resource reading and writing lock is available or not, and judges whether the first decoding block is available or not when the judgment result is yes;
if yes, obtaining the current playing time, obtaining corresponding audio data and effect data corresponding to the audio data according to the current playing time, decoding, and storing the decoded data in a first buffer queue.
2. The video file playing system according to claim 1, wherein the audio module plays the audio data in the material information and the effect data corresponding to the audio data, including:
the audio consumption thread judges whether a resource reading function of the resource reading and writing lock is available or not, and when the judgment result is yes, the current playing time is obtained, and the first cache queue is inquired according to the current playing time so as to obtain corresponding decoded audio data for playing;
and after the playing of the decoded data is finished, updating the current playing time.
3. The video file playing system of claim 1, wherein the video module comprises a video decoding thread and a video consuming thread, and the video module is correspondingly provided with a video lock, wherein the video lock comprises a second decoding block, a second recovery block and a rendering block, the second recovery block and the second decoding block and the rendering block are mutually exclusive, and the decoding block and the rendering block are not mutually exclusive.
4. The video file playing system according to claim 3, wherein the video module decodes the video data in the material information and the effect data corresponding to the video data, and includes:
the video decoding thread judges whether a resource reading function of the resource reading and writing lock is available or not, and judges whether a second decoding block is available or not when the judgment result is yes;
if yes, the current playing time is obtained, corresponding video data and effect data corresponding to the video data are obtained according to the current playing time and decoded, and the decoded data are stored in a second cache queue.
5. The video file playing system according to claim 4, wherein the video module plays the video data in the material information and the effect data corresponding to the video data, and includes:
and the video consumption thread judges whether the resource reading function of the resource reading-writing lock is available, acquires the current playing time when the judgment result is yes, and inquires the second cache queue according to the current playing time to acquire corresponding decoded video data for playing.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110127821.1A CN112969092B (en) | 2021-01-29 | 2021-01-29 | Video file playing system |
PCT/CN2021/119404 WO2022160743A1 (en) | 2021-01-29 | 2021-09-18 | Video file playing system, audio/video playing process, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110127821.1A CN112969092B (en) | 2021-01-29 | 2021-01-29 | Video file playing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112969092A CN112969092A (en) | 2021-06-15 |
CN112969092B true CN112969092B (en) | 2022-05-10 |
Family
ID=76273468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110127821.1A Active CN112969092B (en) | 2021-01-29 | 2021-01-29 | Video file playing system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112969092B (en) |
WO (1) | WO2022160743A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112969092B (en) * | 2021-01-29 | 2022-05-10 | 稿定(厦门)科技有限公司 | Video file playing system |
CN117765839B (en) * | 2023-12-25 | 2024-07-16 | 广东保伦电子股份有限公司 | Indoor intelligent navigation method, device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581611A (en) * | 2013-11-19 | 2014-02-12 | 北京兆维电子(集团)有限责任公司 | Implementation method for audio and video recording based on routing server and routing server |
CN105872668A (en) * | 2016-03-31 | 2016-08-17 | 百度在线网络技术(北京)有限公司 | Audio-video data processing method and device as well as vehicle-mounted terminal |
CN106658050A (en) * | 2016-12-30 | 2017-05-10 | 北京奇虎科技有限公司 | Concurrent read-write method and device for stream data |
CN109947575A (en) * | 2019-03-21 | 2019-06-28 | 恒生电子股份有限公司 | Locking, method for releasing and the related system of Read-Write Locks |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9542235B2 (en) * | 2010-12-14 | 2017-01-10 | Appsense, Limited | Process-safe read/write locks |
JP5695972B2 (en) * | 2011-05-20 | 2015-04-08 | 日立マクセル株式会社 | Content receiver and content information output method |
CN102999378B (en) * | 2012-12-03 | 2015-08-26 | 中国科学院软件研究所 | A kind of read-write lock implement method |
CN103686077A (en) * | 2013-11-29 | 2014-03-26 | 成都亿盟恒信科技有限公司 | Double buffering method applied to realtime audio-video data transmission of 3G wireless network |
US10026449B2 (en) * | 2013-12-02 | 2018-07-17 | Bellevue Investments Gmbh & Co. Kgaa | System and method for theme based video creation with real-time effects |
US10503671B2 (en) * | 2016-12-29 | 2019-12-10 | Oath Inc. | Controlling access to a shared resource |
CN106658117A (en) * | 2016-12-30 | 2017-05-10 | 百度在线网络技术(北京)有限公司 | Method and device for processing audio/video data |
CN107396180A (en) * | 2017-08-29 | 2017-11-24 | 北京小米移动软件有限公司 | Video creating method and device based on mobile terminal |
CN107491314A (en) * | 2017-08-30 | 2017-12-19 | 四川长虹电器股份有限公司 | Processing method is write based on Read-Write Locks algorithm is accessible to HBASE real time datas |
CN107770626B (en) * | 2017-11-06 | 2020-03-17 | 腾讯科技(深圳)有限公司 | Video material processing method, video synthesizing device and storage medium |
CN108647313A (en) * | 2018-05-10 | 2018-10-12 | 福建星网视易信息***有限公司 | A kind of real-time method and system for generating performance video |
CN112969092B (en) * | 2021-01-29 | 2022-05-10 | 稿定(厦门)科技有限公司 | Video file playing system |
-
2021
- 2021-01-29 CN CN202110127821.1A patent/CN112969092B/en active Active
- 2021-09-18 WO PCT/CN2021/119404 patent/WO2022160743A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581611A (en) * | 2013-11-19 | 2014-02-12 | 北京兆维电子(集团)有限责任公司 | Implementation method for audio and video recording based on routing server and routing server |
CN105872668A (en) * | 2016-03-31 | 2016-08-17 | 百度在线网络技术(北京)有限公司 | Audio-video data processing method and device as well as vehicle-mounted terminal |
CN106658050A (en) * | 2016-12-30 | 2017-05-10 | 北京奇虎科技有限公司 | Concurrent read-write method and device for stream data |
CN109947575A (en) * | 2019-03-21 | 2019-06-28 | 恒生电子股份有限公司 | Locking, method for releasing and the related system of Read-Write Locks |
Also Published As
Publication number | Publication date |
---|---|
WO2022160743A1 (en) | 2022-08-04 |
CN112969092A (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101034080B1 (en) | Uniform video decoding and display | |
CN112969092B (en) | Video file playing system | |
US8099548B2 (en) | Power efficient media playback on general purpose portable devices | |
US20220413706A1 (en) | Data Storage Method, Apparatus and Storage System | |
US7987160B2 (en) | Status tool to expose metadata read and write queues | |
US20170270562A1 (en) | Combining user content with supplemental content at a data storage device | |
JP2014513338A5 (en) | Method, computer readable storage medium and system for optimal compression of a virtual disk | |
KR20130055566A (en) | Combining user content with supplemental content at a data storage device | |
CN111881135A (en) | Data aggregation method, device, equipment and computer readable storage medium | |
CN109558456A (en) | A kind of file migration method, apparatus, equipment and readable storage medium storing program for executing | |
US8412691B2 (en) | Maintenance and access of a linked list | |
KR100899147B1 (en) | Method of storing meta-data and system for storing meta-data | |
JP5405663B2 (en) | MEMORY MANAGEMENT DEVICE, MEMORY MANAGEMENT METHOD, MEMORY MANAGEMENT PROGRAM, COMPUTER-READABLE RECORDING MEDIUM CONTAINING MEMORY MANAGEMENT PROGRAM, AND INTEGRATED CIRCUIT | |
CN103838782B (en) | A kind of method and device realized file scan and preserved | |
KR101512296B1 (en) | File associated with application processing terminal and processing method of file associated with application | |
US20140082624A1 (en) | Execution control method and multi-processor system | |
CN112015529A (en) | Data task scheduling method, system, electronic device and storage medium | |
JP2007287204A (en) | Device, method and program for reproducing | |
CN105335095B (en) | The processing method and processing device of flash memory file system | |
CN110825652B (en) | Method, device and equipment for eliminating cache data on disk block | |
CN111597149A (en) | Data cleaning method and device for database | |
JP4578454B2 (en) | Database generation method and information processing apparatus | |
JP6375665B2 (en) | VIDEO DATA MANAGEMENT DEVICE, VIDEO DATA MANAGEMENT METHOD, AND VIDEO DATA MANAGEMENT PROGRAM | |
JP6407417B2 (en) | CONTENT REPRODUCTION DEVICE AND CONTENT REPRODUCTION DEVICE CONTROL METHOD | |
TWI321952B (en) | Time shifting in video recoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221012 Address after: 361001 unit R, 2nd floor, No. 33-102, Punan 1st Road, Siming District, Xiamen City, Fujian Province Patentee after: GAODING (XIAMEN) TECHNOLOGY Co.,Ltd. Patentee after: Draft (Xiamen) Information Service Co.,Ltd. Address before: G15-2, 3rd floor, No.10, Punan 1st Road, Dongpu Road, Siming District, Xiamen City, Fujian Province Patentee before: GAODING (XIAMEN) TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |