CN114697710A - Server-based material preview method, device, system, equipment and medium - Google Patents
Server-based material preview method, device, system, equipment and medium Download PDFInfo
- Publication number
- CN114697710A CN114697710A CN202210425762.0A CN202210425762A CN114697710A CN 114697710 A CN114697710 A CN 114697710A CN 202210425762 A CN202210425762 A CN 202210425762A CN 114697710 A CN114697710 A CN 114697710A
- Authority
- CN
- China
- Prior art keywords
- server
- code
- low
- stream
- original
- 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.)
- Granted
Links
- 239000000463 material Substances 0.000 title claims abstract description 434
- 238000000034 method Methods 0.000 title claims abstract description 64
- 239000002994 raw material Substances 0.000 claims abstract description 51
- 238000004891 communication Methods 0.000 claims abstract description 21
- 230000001360 synchronised effect Effects 0.000 claims abstract description 19
- 230000006870 function Effects 0.000 claims description 56
- 238000004590 computer program Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 3
- 230000008676 import Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/242—Synchronization processes, e.g. processing of PCR [Program Clock References]
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention relates to the technical field of server material preview, and discloses a server-based material preview method, device, system, equipment and medium. The method is applied to a material playing system consisting of a master server and at least one slave server, wherein the master server and the slave servers are in communication connection, and the method comprises the following steps: when at least one slave server receives a material preview instruction sent by the main server, playing a first original material at a far-end playing end corresponding to the slave server receiving the material preview instruction; a local playing end corresponding to the main server synchronously plays a low-code-stream material and a second original material corresponding to the first original material so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; the first raw material and the second raw material are derived from the same material or different materials. The invention can reduce the load capacity of the main server, improve the operation performance of the main server and reduce the hardware cost of the main server.
Description
Technical Field
The invention relates to the technical field of server material preview, and particularly discloses a server-based material preview method, device, system, equipment and medium.
Background
At present, in a material playing system connected with a screen through a server, part of application scenes can use a plurality of servers, for example, one main server is used for playing materials and controlling other slave servers to play materials, the main server is mainly used for issuing control instructions, looking up the display conditions of screens connected with other slave servers through echoing, and the slave servers are used for controlling the display pictures of the screens connected with the slave servers; in the above system, if the material of each slave server needs to be previewed by the master server, the material being played by each slave server is transmitted back to the master server through the network, but in general, the slave server is used for playing high-resolution material, the master server is used for controlling, only the material with smaller resolution can be processed, and if one slave server transmits 8k of original material back, 6 slave servers exist currently, and at this time, the master server processes 6 materials with 8k by decoding and encoding, so the load capacity of the master server is obviously increased; however, if the operation performance of the main server is to be improved, it is necessary to spend much cost to upgrade the hardware of the main server. Therefore, there is a need for a technical solution for previewing material to reduce the load of the server.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a system, a device and a medium for previewing a material based on a server, which can reduce the load capacity of a main server, improve the operation performance of the main server and reduce the hardware cost of the main server.
A server-based material previewing method applied to a material playing system consisting of a master server and at least one slave server, wherein the master server and the slave server are connected in communication, the method comprising:
when at least one slave server receives a material preview instruction sent by the main server, playing a first original material at a far-end playing end corresponding to the slave server receiving the material preview instruction;
a local playing end corresponding to the main server synchronously plays a low-code-stream material and a second original material corresponding to the first original material so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; the first raw material and the second raw material are derived from the same material or different materials.
A server-based material previewing apparatus for use in a material playing system comprising a master server and at least one slave server, wherein the master server and the slave server are communicatively connected, the apparatus comprising:
the first playing module is used for playing a first original material at a far-end playing end corresponding to the slave server which receives the material preview instruction when the at least one slave server receives the material preview instruction sent by the master server;
the second playing module is used for synchronously playing the low-code-stream material and the second original material corresponding to the first original material by the local playing end corresponding to the main server so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; the first raw material and the second raw material are derived from the same material or different materials.
A material playing system comprises a main server, at least one slave server, a sending device, a receiving device, an LED display screen and a computer display screen:
the master server and the at least one slave server are respectively in communication connection with the computer display screen through video lines; the main server and the at least one slave server are respectively in communication connection with the sending equipment through video cables, the sending equipment is in communication connection with the receiving equipment through network cables so as to realize the communication connection with the LED display screen, and the receiving equipment is arranged in the LED display screen;
the master server is in communication connection with at least one slave server through a network cable, and is synchronized with at least one slave server through a synchronization cable.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing a server-based material preview method as described above when executing the computer program.
A computer-readable storage medium storing a computer program which, when executed by a processor, implements a server-based material preview method as described above.
According to the server-based material preview method, device, system, equipment and medium, when at least one slave server receives a material preview instruction sent by the master server, a first original material is played at a far-end playing end corresponding to the slave server receiving the material preview instruction; a local playing end corresponding to the main server synchronously plays a low-code-stream material and a second original material corresponding to the first original material so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; therefore, when the material is played, the low-bit-rate material of the first original material corresponding to the secondary server and the second original material corresponding to the primary server are synchronously played mainly through the local playing end of the primary server, so that synchronous material preview (including video materials corresponding to the primary server and the secondary server) can be realized at the local playing end of the primary server, and the load and pressure of the primary server can be reduced (the performance of the primary server is reduced); in addition, when the operation performance of the main server is greatly improved, the hardware performance of the main server does not need to be upgraded at high cost, and any computer equipment is used for realizing the control function.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a server-based material preview method according to an embodiment of the present invention;
fig. 2 is a flow chart of a method for previewing materials based on a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server-based material previewing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the 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 server-based material preview method provided by the invention can be applied to the application environment shown in figure 1, wherein a local playing end is in communication connection with a main server and a secondary server; the remote playing end is in communication connection with the secondary server, and the local playing end and the remote playing end can be understood as video software arranged in the server.
In one embodiment, as shown in fig. 2, a server-based material previewing method is provided, which is applied to a material playing system composed of a master server and at least one slave server in fig. 1, wherein the master server and the slave server are communicatively connected, and the method includes the following steps S10-S20:
s10, when at least one slave server receives a material preview instruction sent by the main server, playing a first original material at a far-end playing end corresponding to the slave server receiving the material preview instruction;
understandably, the first original material is a video material corresponding to a far-end playing end of the secondary server, and the low-code-stream material corresponding to the first original material is a video material corresponding to a local playing end of the primary server; the material preview instruction is an instruction (low-code-stream material preview mode) sent from a local playing end in the main server, and the low-code-stream material and the second original material corresponding to the first original material can be displayed on a display interface corresponding to the local playing end through the instruction, wherein the material can be displayed through a display window in the display interface, the size of the display window can be adaptively set according to the resolution of the video material, and the number of the display windows can be adaptively set according to the number of the video material; in this embodiment, when the secondary server receives the material preview instruction, the remote playing end can play the first original material, and the local playing end simultaneously plays the low-code-stream material corresponding to the first original material according to the method in step S20.
S20, the local playing end corresponding to the main server synchronously plays the low-code-stream material and the second original material corresponding to the first original material so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; the first raw material and the second raw material are derived from the same material or different materials.
Understandably, the second original material may be a video material composed of the first original material corresponding to each secondary server, a video material composed of the first original material corresponding to the secondary server (the video materials corresponding to all the secondary servers are completely the same), or a video material completely different from the secondary server; the method comprises the following steps that a communication connection relation exists between a main server and secondary servers, a local playing end of the main server bears the function of controlling all the secondary servers and the main server, namely when a video material playing instruction is issued to all the servers in the local playing end of the main server, display screens (including an LED display screen and a computer screen) connected with the main server and the secondary servers need to play corresponding video materials, the display screens corresponding to the main server play second original materials, and the display screens corresponding to all the secondary servers play first original materials; when a material preview instruction is issued to all servers in a local playing end of a main server (in addition, according to specific conditions, the invention can select a preset number of secondary servers from secondary servers playing video materials to issue the material preview instruction according to specific requirements), display screens connected with the main server and the secondary servers (all need to play corresponding video materials, including that a display screen corresponding to the main server plays a first original material, and a display screen corresponding to each secondary server plays a low-code stream corresponding to the first original material; it needs to be noted that the low-code stream material corresponding to the first original material can realize transcoding through a third-party transcoding platform and can also realize transcoding through the local playing end, wherein the main stream commonly used video formats can be suitable for transcoded formats such as MP4, AVI, PMP and the like, and the transcoding is also in a decoding and encoding mode, the coding is suitable for common mainstream coding modes, such as MPEG-4, MPEG-2, WMV-HD, H264 and the like; in addition, when the secondary server is a backup server of the main server, namely a server backup system is constructed by the main server and the secondary server, when the main server fails to work normally, the secondary server replaces the main server to continue working, but the secondary server and the main server process the same materials at the moment;
in this embodiment, when the local play end in the main server previews the material, the second original material corresponding to the main server is already finished being on the screen (LED screen), that is, the second original material is already decoded and encoded in the local play end, so that the material previewed by the local play end in the main server is the second original material, the performance of the main server is not reduced due to decoding and encoding, and decoding and encoding of the first original material corresponding to each sub-server are implemented by each sub-server, so that the material previewed by the local play end in the main server is the low-code-stream material corresponding to the first original material, and the low-code-stream material is decoded and encoded;
in another embodiment, the local play end of the main server may also preview any one of the low-stream material and the second raw material.
In the embodiments of steps S10 to S20, when playing the material, the high-resolution first original material corresponding to the plurality of sub servers is mainly converted into the low-code-stream material, and then the low-code-stream material and the second original material corresponding to the main server are synchronously played through the local playing end of the main server, so that the synchronous material preview (including the video material corresponding to the main server and the sub servers) can be realized at the local playing end of the main server, and the load and pressure of the main server can be reduced (the performance of the main server is reduced).
Further, the local playing end corresponding to the main server synchronously plays the low-code-stream material and the second original material corresponding to the first original material, and the method includes:
the main server acquires a low-code-stream material corresponding to the transcoded first original material, decodes and codes the low-code-stream material, and plays the coded low-code-stream material at the local playing end;
and simultaneously, after the main server confirms that the second original material is decoded and encoded, the second original material is played at the local playing end.
Understandably, in the process of implementing the material preview by the primary server, the material needs to be decoded and encoded (the decoding is a local decoding mode, that is, the primary server only decodes the low-code-stream material of the first original material corresponding to the secondary server, and the low-code-stream material needs to be displayed in the local playing end of the primary server), but because the primary server already implements the decoding and encoding of the second original material in the process of playing the material, the embodiment can implement the playing of the second original material after confirming that the decoding and encoding of the second original material are completed; specifically, the manner mentioned for decoding and encoding is consistent with the above, and is not described herein again, the decoding process can be roughly divided into channel transmission-entropy decoding-inverse quantization-inverse transformation-prediction, and the encoding process can be roughly divided into prediction-transformation-quantization-entropy coding; in this embodiment, the slave server does not need to transmit the first raw material back to the master server through a network or the like, and occupies the performance of the master server and the slave server.
In another embodiment, the obtaining, by the main server, a low-code-stream material corresponding to the transcoded first raw material includes: the main server judges whether the video played by the local playing end is a low-code-stream material; if the video is a low-code-stream material, the main server acquires a corresponding low-code-stream material after the first raw material is transcoded; and if the video is not a low-code-stream material, the local playing end plays the preset software pattern.
Further, before the main server obtains the low-code-stream material corresponding to the transcoded first raw material, the method further includes:
and generating the low-code-stream material according to the first original material, and after the low-code-stream material is bound with the first original material, determining that the low-code-stream material is led into the local playing end.
Understandably, a material binding window is arranged at the local playing end, and the low-code-stream material and the first original material can be bound through the material binding window no matter whether the generation mode of the low-code-stream material is transcoding from a third-party transcoding platform or autonomous transcoding of video software; specifically, after a first original material is added to a far-end playing end, a first original material array named by a first array is generated, and after a low-code-stream material is added to a material binding window, a low-code-stream material array named in accordance with the first array is generated to complete binding of the first original material of the low-code-stream material, for example, the first original material array named by the first array can be a [ 0 ], the low-code-stream material array named by the first array can be a [ 1 ], and the array of the second original material can be b [ 0 ]; after the binding is realized, the low-code stream material is guided into the local playing end.
In another embodiment, the generating the low-code-stream material according to the first raw material, after binding the low-code-stream material with the first raw material, determining that the low-code-stream material is imported to the local play end includes: leading the first raw material into a local playing end of the main server; after the import is determined to be successful, generating the low-code-stream material according to the first original material, binding the low-code-stream material with the first original material, and then determining that the low-code-stream material is imported into the local playing end so as to realize the import of the low-code-stream material into the local playing end; in this embodiment, the local play end of the main server has a limitation on maximum video play and processing capability, and when a high-code-stream first raw material, such as 8K, is successfully introduced into the local play end, it is determined that a low-code-stream material, such as 2K, can be successfully introduced into the local play end.
Further, the generating the low-code-stream material according to the first original material, after binding the low-code-stream material with the first original material and determining that the low-code-stream material is imported into the local playing end, further includes:
acquiring a first time length of the low code stream material;
acquiring a second time length of the first raw material;
when the difference value between the first time length and the second time length is determined to exceed the preset time length, prompting that the low-code-stream material is not the corresponding low-code-stream material after the first raw material is transcoded;
and when the difference value between the first time length and the second time length is determined not to exceed the preset time length, generating the low-code-stream material according to the first raw material, and after the low-code-stream material is bound with the first raw material, determining that the low-code-stream material is led into the local playing end.
Understandably, the first time length and the second time length refer to time lengths corresponding to material playing time, and after transcoding is performed through the third transcoding platform and the local playing end, the first time length and the second time length are generally equal or have a small difference; in the embodiment, whether the low-code-stream material added to the material binding window corresponds to the first original material is confirmed by comparing the time length difference, when the correspondence is confirmed, the low-code-stream material is substituted into the local playing end, so that the process of previewing the low-code-stream material is realized, when the correspondence is not confirmed, the low-code-stream material and the first original material are determined to have no corresponding relation, the low-code-stream material and the first original material are prompted to have no corresponding relation in a highlighting manner, and the local playing end in the main server is prevented from previewing wrong material contents.
Further, after the step S20, the method for previewing the server-based material further includes:
when the first original material and the second original material are different materials, determining whether a local playing end corresponding to the main server starts a playback function or not and whether a remote playing end corresponding to at least one slave server starts a playback function or not; the back display function is that a terminal connected with the main server displays the first original material and the slave server displays the second original material, and a local playing end of the main server and a far-end playing end of the slave server display low-code-stream materials;
when the master server and the slave servers are determined to start the playback function, at least one slave server plays a low-code-stream material corresponding to the first original material at a corresponding far-end playing end;
and the main server synchronously plays the low-code-stream material and the second original material corresponding to the first original material at the corresponding local playing end.
Understandably, the redisplay function is a relation set among the three devices, such as an LED display screen, a server and a terminal (a computer screen connected with the server), in the relation, the LED display screen displays original materials, the terminal displays low-code materials, and a playing end in the server is used for controlling the playing of the materials; the method comprises the steps that the method is placed in a main server and a secondary server, an LED display screen connected with the secondary server displays a first original material, a far-end playing end corresponding to the secondary server plays a low-code-stream material of the first original material, and an LED display screen connected with the main server displays a second original material, but a local playing end corresponding to the main server also plays the second original material and the low-code-stream material corresponding to the first original material (it needs to be stated that when the main server plays the low-code-stream material, a computer screen corresponding to the far-end playing end still plays the first original material all the time); when the playback function is started, the main server of the embodiment also plays the second original material at the local playing end, because the second original material is decoded and encoded, the performance of the main server is not occupied any more, and in order to ensure the display effect, the local playing end plays the second original material which is high-code stream (high resolution);
in another embodiment, the main server may not be connected to the terminal, but may play the second original material in a local play end of the main server.
In another embodiment, before determining that the first raw material and the second raw material are different materials, the method further includes: the secondary server judges whether a video (a first original material) is played at the terminal; if the video is not played at the terminal, the remote playing end does not play the video; if the video is played at the terminal, the secondary server judges whether the video played by the far-end playing end is a low-code-stream material; if the video is a low-code-stream material, the far end of the secondary server plays the low-code-stream material; and if the video is not a low-code-stream material, the remote playing end plays the preset software pattern.
In another embodiment, before determining that the echo function is turned on by both the master server and the slave server, the method further includes: when the fact that the main server and the slave servers do not start the playback function is determined, or the fact that the main server starts the playback function is determined, when the playback function is not started by at least one slave server, at least one slave server plays the first original material at a corresponding far-end playing end; the main server synchronously plays the low-code-stream material and the second original material corresponding to the first original material at the corresponding local playing end;
in another embodiment, before determining that the master server and the slave server both start the echo function, the method further includes: when it is determined that the playback function is not started by the master server and the playback function is started by at least one slave server, the at least one slave server plays the low-code-stream material corresponding to the first original material at the corresponding far-end playing end; and the main server synchronously plays the low-code-stream material and the second original material corresponding to the first original material at the corresponding local playing end.
Further, before determining that the first and second source materials are different materials, the server-based material preview method further includes:
when the first original material and the second original material are determined to be the same material and the first original material and the second original material are different materials, determining whether a local playing end corresponding to the main server starts a playback function or not and whether a remote playing end corresponding to at least one slave server starts a playback function or not;
when the fact that the playback function is not started by the main server and the playback function is started by the remote playing end corresponding to the at least one slave server is determined, the at least one slave server plays the low-code-stream material corresponding to the first original material at the corresponding remote playing end;
and the main server synchronously plays the first original material and the second original material at a corresponding local playing end.
When the main server of this embodiment does not open the playback function, the local play end of the main server plays the second original material because decoding and encoding have been completed in the process of the video material on-screen playing, so the local play end also plays the second original material, and the local play end of the main server previews the first original material corresponding to the secondary server because the first original material and the second original material are the same material and decoding and encoding of the first original material have been completed, so even if the main server does not open the playback function, the local play end still plays the second original material.
In another embodiment, before determining that the playback function is not started by the master server and that the playback function is started by a remote playback end corresponding to at least one of the slave servers, the method further includes: when it is determined that the playback function is not started by the remote playing ends corresponding to the master server and the slave servers or when it is determined that the playback function is started by the master server and the playback function is not started by the remote playing end corresponding to at least one of the slave servers, the at least one slave server plays the first original material at the corresponding remote playing end; the main server synchronously plays the first raw material and the second raw material at a corresponding local playing end;
in another embodiment, before determining that the playback function is not started by the master server and that the playback function is started by a remote playback end corresponding to at least one of the slave servers, the method further includes: when it is determined that the playback function is started by the master server and the playback function is started by the remote playing end corresponding to the at least one slave server, the at least one slave server plays the low-code-stream material corresponding to the first original material at the corresponding remote playing end; and the main server synchronously plays the first raw material and the second raw material at the corresponding local playing end.
In summary, the above-mentioned method for previewing materials based on a server is provided, when playing materials, a local playing end of a main server is mainly used to synchronously play a low-bit-stream material of a first original material corresponding to a secondary server and a second original material corresponding to the main server, so that a synchronized material preview (including a video material corresponding to the main server and the secondary server) can be realized at the local playing end of the main server, and the load and pressure of the main server can be reduced (the performance of the main server is reduced); in addition, when the operation performance of the main server is greatly improved, the hardware performance of the main server does not need to be upgraded at high cost, and any computer equipment is used for realizing the control function.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not limit the implementation process of the embodiments of the present invention in any way.
In an embodiment, the present invention further provides a server-based material previewing apparatus, where the server-based material previewing apparatus corresponds to the server-based material previewing method in the foregoing embodiment one to one. As shown in fig. 3, the server-based material previewing apparatus includes a first play module 11 and a second play module 12. The functional modules are explained in detail as follows:
the first playing module 11 is configured to play a first original material at a far-end playing end corresponding to the slave server that receives the material preview instruction when the at least one slave server receives the material preview instruction sent by the master server;
a second playing module 12, configured to synchronously play, at a local playing end corresponding to the main server, a low-bit-stream material and a second original material corresponding to the first original material, so as to implement synchronous material preview of the low-bit-stream material and the second original material at the main server; the first raw material and the second raw material are derived from the same material or different materials.
Further, the second playing module comprises:
the first playing sub-module is used for the main server to acquire a low-code-stream material corresponding to the transcoded first raw material, decoding and encoding the low-code-stream material, and playing the encoded low-code-stream material at the local playing end;
and the second playing sub-module is used for simultaneously playing the second original material at the local playing end after the main server confirms that the decoding and the encoding of the second original material are completed.
Further, the server-based material preview device further includes:
and the binding module is used for generating the low-code-stream material according to the first raw material, binding the low-code-stream material with the first raw material, and then determining that the low-code-stream material is imported into the local playing end.
Further, the server-based material previewing apparatus further comprises:
the first acquisition module is used for acquiring a first time length of the low-code-stream material;
the second acquisition module is used for acquiring a second time length of the first raw material;
the prompting module is used for prompting that the low-code-stream material is not the corresponding low-code-stream material after the first original material is transcoded when the difference value between the first time length and the second time length is determined to exceed the preset time length;
and the binding module is used for generating the low-code-stream material according to the first original material when the difference value between the first time length and the second time length is determined not to exceed a preset time length, and determining that the low-code-stream material is imported into the local playing end after the low-code-stream material is bound with the first original material.
Further, the server-based material preview device further includes:
the first determining module is used for determining whether a local playing end corresponding to the main server starts a playback function and whether a remote playing end corresponding to at least one slave server starts a playback function when the first original material and the second original material are different materials; the back display function is that a terminal connected with the main server displays the first original material and the slave server displays the second original material, and a local playing end of the main server and a far-end playing end of the slave server display low-code-stream materials;
the third playing module is used for playing the low-code-stream material corresponding to the first original material at the corresponding far-end playing end by at least one slave server when the fact that the main server and the slave server both start the playback function is determined;
and the fourth playing module is used for synchronously playing the low-code-stream material corresponding to the first original material and the second original material at the corresponding local playing end by the main server.
Further, the server-based material preview device further includes:
a second determining module, configured to determine whether a local playing end corresponding to the master server starts a playback function and whether a remote playing end corresponding to at least one slave server starts a playback function when it is determined that the first original material and the second original material are the same material and the first original material and the second original material are different materials;
a fifth playing module, configured to play, by at least one slave server, a low-code-stream material corresponding to the first original material at a corresponding remote playing end when it is determined that the master server does not start the playback function and that a remote playing end corresponding to the at least one slave server starts the playback function;
and the sixth playing module is used for synchronously playing the first raw material and the second raw material at the corresponding local playing end by the main server.
For the specific definition of a server-based material previewing apparatus, reference may be made to the above definition of a server-based material previewing method, and details thereof are not repeated here. The respective modules in the server-based material previewing apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, there is provided a material playing system including a master server, at least one slave server, a transmitting device, a receiving device, an LED display screen, a computer display screen (terminal):
the master server and the at least one slave server are respectively in communication connection with the computer display screen through video lines; the main server and the at least one slave server are respectively in communication connection with the sending equipment through video cables, the sending equipment is in communication connection with the receiving equipment through network cables so as to realize communication connection with the LED display screen, and the receiving equipment is arranged in the LED display screen; the video lines include but are not limited to HDMI, DVI lines and VGA lines, and the network lines include but are not limited to gigabit network lines and hundred mega network lines;
the master server is in communication connection with at least one slave server through a network cable and is synchronized with at least one slave server through a synchronization cable; in the embodiment, the main server and the secondary server are both provided with the synchronous cards, and can be in communication connection with the two synchronous cards through a synchronous line;
the material playing system implements the steps of one of the server-based material previewing methods in the above-described embodiments, for example, steps S10 to S20 shown in fig. 2. Alternatively, the functions of the respective modules/units of the server-based material previewing apparatus in the above-described embodiment, for example, the functions of the modules 11 to 12 shown in fig. 3, are implemented. To avoid repetition, further description is omitted here.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, an interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data involved in a server-based material preview method. The interface of the computer device is used for connecting and communicating with an external terminal. The computer program when executed by a processor implements a server-based material preview method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a server-based material preview method in the above-mentioned embodiments, such as steps S10 to S20 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements the functions of the respective modules/units of the server-based material previewing apparatus in the above-described embodiment, for example, the functions of the modules 11 to 12 shown in fig. 3. To avoid repetition, further description is omitted here.
In one embodiment, a computer-readable storage medium is provided, having stored thereon a computer program that, when executed by a processor, implements the steps of a server-based material preview method of the above embodiments, such as steps S10 through S20 shown in fig. 2. Alternatively, the computer program, when executed by the processor, implements the functions of the respective modules/units of the server-based material previewing apparatus in the above-described embodiment, for example, the functions of the modules 11 to 12 shown in fig. 3. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A server-based material previewing method, applied to a material playing system comprising a master server and at least one slave server, wherein the master server and the slave server are communicatively connected, the method comprising:
when at least one slave server receives a material preview instruction sent by the main server, playing a first original material at a far-end playing end corresponding to the slave server receiving the material preview instruction;
a local playing end corresponding to the main server synchronously plays a low-code-stream material and a second original material corresponding to the first original material so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; the first raw material and the second raw material are derived from the same material or different materials.
2. The server-based material preview method of claim 1, wherein the step of synchronously playing the low-code-stream material and the second original material corresponding to the first original material by the local playing terminal corresponding to the main server comprises:
the main server acquires a low-code-stream material corresponding to the transcoded first raw material, decodes and codes the low-code-stream material, and plays the coded low-code-stream material at the local playing end;
and simultaneously, after the main server confirms that the second original material is decoded and encoded, the second original material is played at the local playing end.
3. The server-based material previewing method according to claim 2, wherein before the main server obtains the low-code-stream material corresponding to the transcoded first raw material, the method further comprises:
and generating the low-code-stream material according to the first raw material, binding the low-code-stream material with the first raw material, and determining that the low-code-stream material is led into the local playing end.
4. The server-based material preview method of claim 3, wherein the generating the low-code-stream material according to the first raw material, binding the low-code-stream material with the first raw material, and then determining that the low-code-stream material is imported to the local player includes:
acquiring a first time length of the low code stream material;
acquiring a second time length of the first raw material;
when the difference value between the first time length and the second time length is determined to exceed the preset time length, prompting that the low-code-stream material is not the corresponding low-code-stream material after the first raw material is transcoded;
and when the difference value between the first time length and the second time length is determined not to exceed the preset time length, generating the low-code-stream material according to the first raw material, and after the low-code-stream material is bound with the first raw material, determining that the low-code-stream material is led into the local playing end.
5. The method for server-based previewing of material according to claim 1, further comprising:
when the first original material and the second original material are different materials, determining whether a local playing end corresponding to the main server starts a playback function or not and whether a remote playing end corresponding to at least one slave server starts a playback function or not; the back display function is that a terminal connected with the main server displays the first original material and the slave server displays the second original material, and a local playing end of the main server and a far-end playing end of the slave server display low-code-stream materials;
when the master server and the slave servers are determined to start the playback function, at least one slave server plays a low-code-stream material corresponding to the first original material at a corresponding far-end playing end;
and the main server synchronously plays the low-code-stream material and the second original material corresponding to the first original material at the corresponding local playing end.
6. The server-based material preview method of claim 5 wherein prior to said determining that said first source material and said second source material are different materials, further comprising:
when the first original material and the second original material are determined to be the same material and the first original material and the second original material are different materials, determining whether a local playing end corresponding to the main server starts a playback function or not and whether a remote playing end corresponding to at least one slave server starts a playback function or not;
when the fact that the playback function is not started by the main server and the playback function is started by the remote playing end corresponding to the at least one slave server is determined, the at least one slave server plays the low-code-stream material corresponding to the first original material at the corresponding remote playing end;
and the main server synchronously plays the first raw material and the second raw material at the corresponding local playing end.
7. A server-based material previewing apparatus applied to a material playing system comprising a master server and at least one slave server, wherein the master server and the slave server are communicatively connected, the apparatus comprising:
the first playing module is used for playing a first original material at a far-end playing end corresponding to the slave server which receives the material preview instruction when the at least one slave server receives the material preview instruction sent by the master server;
the second playing module is used for synchronously playing the low-code-stream material and the second original material corresponding to the first original material by the local playing end corresponding to the main server so as to realize synchronous material preview of the low-code-stream material and the second original material on the main server; the first raw material and the second raw material are derived from the same material or different materials.
8. A material playing system, characterized in that the material playing system implements a server-based material previewing method according to any one of claims 1 to 6, comprising a master server, at least one slave server, a sending device, a receiving device, an LED display screen, a computer display screen:
the master server and the at least one slave server are respectively in communication connection with the computer display screen through video lines; the main server and the at least one slave server are respectively in communication connection with the sending equipment through video cables, the sending equipment is in communication connection with the receiving equipment through network cables so as to realize communication connection with the LED display screen, and the receiving equipment is arranged in the LED display screen;
the master server is in communication connection with at least one slave server through a network cable, and is synchronized with at least one slave server through a synchronization cable.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements a server-based material preview method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements a server-based material preview method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210425762.0A CN114697710B (en) | 2022-04-22 | 2022-04-22 | Material preview method, device, system, equipment and medium based on server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210425762.0A CN114697710B (en) | 2022-04-22 | 2022-04-22 | Material preview method, device, system, equipment and medium based on server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114697710A true CN114697710A (en) | 2022-07-01 |
CN114697710B CN114697710B (en) | 2023-08-18 |
Family
ID=82144263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210425762.0A Active CN114697710B (en) | 2022-04-22 | 2022-04-22 | Material preview method, device, system, equipment and medium based on server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114697710B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572292A (en) * | 2010-12-16 | 2012-07-11 | 新奥特(北京)视频技术有限公司 | Script-holding auditing system and method |
CN102724230A (en) * | 2011-03-30 | 2012-10-10 | 新奥特(北京)视频技术有限公司 | File uploading method in remote broadcast control system |
CN102752538A (en) * | 2011-11-30 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method for generating agent code stream materials |
CN106210451A (en) * | 2016-08-02 | 2016-12-07 | 成都索贝数码科技股份有限公司 | A kind of method and system of multi-track video editing based on html5 |
WO2020034082A1 (en) * | 2018-08-14 | 2020-02-20 | 海能达通信股份有限公司 | Slicing-based rtp stream transmission method, device, terminal and server |
WO2020133373A1 (en) * | 2018-12-26 | 2020-07-02 | 北京微播视界科技有限公司 | Video processing method, apparatus, and electronic device, and computer readable storage medium |
US20210044857A1 (en) * | 2018-08-24 | 2021-02-11 | Advanced New Technologies Co., Ltd. | Multimedia material processing method, apparatus, and multimedia playback device |
CN113411647A (en) * | 2021-04-20 | 2021-09-17 | 北京国际云转播科技有限公司 | Cloud director method, system, server and computer readable storage medium |
WO2021258821A1 (en) * | 2020-06-23 | 2021-12-30 | Oppo广东移动通信有限公司 | Video editing method and device, terminal, and storage medium |
CN114222156A (en) * | 2021-12-14 | 2022-03-22 | 中国建设银行股份有限公司 | Video editing method, video editing device, computer equipment and storage medium |
-
2022
- 2022-04-22 CN CN202210425762.0A patent/CN114697710B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572292A (en) * | 2010-12-16 | 2012-07-11 | 新奥特(北京)视频技术有限公司 | Script-holding auditing system and method |
CN102724230A (en) * | 2011-03-30 | 2012-10-10 | 新奥特(北京)视频技术有限公司 | File uploading method in remote broadcast control system |
CN102752538A (en) * | 2011-11-30 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method for generating agent code stream materials |
CN106210451A (en) * | 2016-08-02 | 2016-12-07 | 成都索贝数码科技股份有限公司 | A kind of method and system of multi-track video editing based on html5 |
WO2020034082A1 (en) * | 2018-08-14 | 2020-02-20 | 海能达通信股份有限公司 | Slicing-based rtp stream transmission method, device, terminal and server |
US20210044857A1 (en) * | 2018-08-24 | 2021-02-11 | Advanced New Technologies Co., Ltd. | Multimedia material processing method, apparatus, and multimedia playback device |
WO2020133373A1 (en) * | 2018-12-26 | 2020-07-02 | 北京微播视界科技有限公司 | Video processing method, apparatus, and electronic device, and computer readable storage medium |
WO2021258821A1 (en) * | 2020-06-23 | 2021-12-30 | Oppo广东移动通信有限公司 | Video editing method and device, terminal, and storage medium |
CN113411647A (en) * | 2021-04-20 | 2021-09-17 | 北京国际云转播科技有限公司 | Cloud director method, system, server and computer readable storage medium |
CN114222156A (en) * | 2021-12-14 | 2022-03-22 | 中国建设银行股份有限公司 | Video editing method, video editing device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114697710B (en) | 2023-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495141B (en) | Audio and video synthesis method and system | |
CN108200482B (en) | Cross-platform high-definition audio and video playing method, system and client | |
US11949853B2 (en) | Data decoding method and apparatus, and data coding method and apparatus | |
CN105404455A (en) | Method and apparatus for performing screen capture on mobile terminal by utilizing terminal | |
CN113347488B (en) | Video rendering method, device, equipment and storage medium | |
US7646812B2 (en) | Special predictive picture encoding using color key in source content | |
CN104410857A (en) | Image display control method and related device | |
CN111885346A (en) | Picture code stream synthesis method, terminal, electronic device and storage medium | |
CN108449634B (en) | Playing method for multi-process decoding, computer equipment and storage medium | |
US9226003B2 (en) | Method for transmitting video signals from an application on a server over an IP network to a client device | |
CN114268779B (en) | Image data processing method, device, equipment and computer readable storage medium | |
CN113286190A (en) | Cross-network and same-screen control method and device and cross-network and same-screen system | |
CN113810718A (en) | Encoding and decoding control method, device, equipment and storage medium | |
CN110730364A (en) | Cloud mobile phone data transmission method and device and storage medium | |
CN106385627B (en) | video encoding method and apparatus | |
CN114697710B (en) | Material preview method, device, system, equipment and medium based on server | |
CN116450149B (en) | Hardware decoding method, device and storage medium | |
US9565454B2 (en) | Picture referencing control for video decoding using a graphics processor | |
CN110445881B (en) | Data transmission method, device and system | |
CN113141352A (en) | Multimedia data transmission method and device, computer equipment and storage medium | |
WO2019141150A1 (en) | Cross-platform content control method and device, terminal, server, and storage medium | |
CN116781973A (en) | Video encoding and decoding method and device, storage medium and electronic equipment | |
CN106534137B (en) | Media stream transmission method and device | |
CN111447485A (en) | Real-time cloud game video recording method, system, device and storage medium | |
CN114143596A (en) | Screen projection control method and device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |