Method and system for synchronously playing main and auxiliary server films
Technical Field
The invention relates to the field of data processing, in particular to a method and a system for synchronously playing a film by a primary server and a secondary server.
Background
There are two ways to make a digital cinema package DCP for 3D movies currently in the industry, where the digital cinema package DCP meets the digital cinema alliance DCI specification. The two ways of making the digital cinema package DCP of the 3D movie are respectively: (1) coding and packaging the left and right eye image sequence frames of the 3D image into the same DCP file, and creating 1 CPL; (2) the left and right eye image sequence frames of the 3D image are respectively packed into two DCP files, i.e., a left eye signal DCP and a right eye signal DCP, and 2 pieces of basic information (Composition Playlists, CPL) in which digital cinema program packages are recorded are created at the same time and respectively correspond to the left and right eye DCPs.
When the cinema uses double projectors and double servers to perform 2D or 3D film projection according to a main-auxiliary or main-auxiliary synchronous mode (hereinafter referred to as 'double-machine synchronization'), the mode (1) is still a 3D film DCP production mode generally adopted in the industry. According to the mode (1), the present projection control system used in the cinema needs to copy the same DCP files (CPL is the same) in the primary and secondary servers, and then needs to create movie play lists (SPLs) containing the same movie CPL names in the primary and secondary servers, respectively, for playing.
In the above SPL creation process, because different servers respond differently or manual data operations are different, the SPL may have a certain error, so that the problems of asynchronous pictures of the primary and secondary servers or non-synchronous short-film pairs occur during playing.
Under the existing dual-computer synchronous playing mode, the secondary (or secondary) server SPL is created in a way that the controller performs same-sequence and same-name copying according to the CPL sequence and the CPL name in the created SPL of the host server or a cinema exhibitor manually operates and creates the SPL on the secondary (or secondary) server. Both methods cannot meet the requirement that when the 3D movie DCP is produced in the mode (2), that is, the 3D cp is the left and right DCP, the SPL of the secondary server is automatically created in real time, that is, the showing quality and the showing efficiency of the cinema cannot be ensured, and content editing errors are easily caused, so that the 3D movie cannot be played or the left and right eye pictures are asynchronous and inconsistent
Disclosure of Invention
The invention aims to provide a method and a system for synchronously playing a main server and an auxiliary server, which can ensure that the playing is smoother and more accurate through the automatic creation of an auxiliary server SPL, and are beneficial to reducing cinema showing accidents and ensuring better showing quality.
In order to achieve the purpose, the invention provides the following scheme:
a method for synchronously playing a main server film and a secondary server film comprises the following steps:
acquiring a main film play list in a main server; the films in the main film play list comprise film names and server identifications;
judging whether the main server and the auxiliary server are in a dual-computer synchronous mode or not;
if the main server and the secondary server are in a dual-machine synchronous mode, retrieving movies with the same name as the movies in the main movie play list in the main server from the secondary server;
creating an auxiliary movie play list of an auxiliary server according to the movie; the secondary movie playlist corresponds to the primary movie playlist name;
the main server and the auxiliary server play the films synchronously according to the main film play list or the auxiliary film play list;
and if the main server and the secondary server are not in a dual-computer synchronous mode, only storing the main film play list.
Optionally, the obtaining of the main movie playlist in the main server further includes:
acquiring a film list and the name of the main server;
determining the information of the main server according to the name of the main server;
judging whether the information of the main server is valid or not; if the video is valid, a main film play list is established in the main server; otherwise, the process is ended.
Optionally, the obtaining a main movie playlist in the main server further includes:
editing the main film play list; the editing comprises adding a film, removing a film, moving a film sequence and editing a film name;
acquiring the name of the secondary server;
determining the information of the secondary server according to the name of the secondary server;
judging whether the information of the secondary server is valid or not; if yes, judging whether the main server and the auxiliary server are in a dual-computer synchronous mode or not; otherwise, the process is ended.
Optionally, the creating a secondary movie playlist of a secondary server according to the movie specifically includes:
judging whether the name of the movie contains the identifier of the main server or the secondary server;
if the name of the movie contains the identifier of the server, name conversion is carried out; the name of the movie after name conversion is the same as the corresponding movie name in the main movie playlist and corresponds to the identifier of the server;
acquiring corresponding film information and the main server information according to the film name after name conversion;
if the name of the movie does not contain the identifier of the server, directly acquiring corresponding movie information and the information of the main server;
and creating a secondary film play list of a secondary server according to the film information corresponding to the film name after the name conversion and the information of the primary server.
Optionally, if the primary server and the secondary server are not in the dual-server synchronization mode, only saving the primary movie playlist includes:
if the main server and the secondary server are not in a dual-computer synchronous mode, acquiring a distributor, a release date, a creator and an ID of the film in the film play list;
and storing according to the distributor, the release date, the creator and the ID of the film in the film play list.
A system for synchronous playing of primary and secondary server movies, comprising:
a main movie playlist acquisition module, configured to acquire a main movie playlist in a main server; the films in the main film play list comprise film names and server identifications;
the double-machine synchronous mode judging module is used for judging whether the main server and the auxiliary server are in a double-machine synchronous mode or not;
the retrieval module is used for judging whether the main server and the auxiliary server are in a dual-computer synchronous mode or not; retrieving in the secondary server a movie of the same name as in the primary movie playlist in the primary server;
the secondary movie playlist creating module is used for creating a secondary movie playlist of the secondary server according to the movie; the secondary movie playlist corresponds to the primary movie playlist name;
the playing module is used for the main server and the auxiliary server to synchronously play the films according to the main film playing list or the auxiliary film playing list;
and the main film play list storage module is used for only storing the main film play list if the main server and the auxiliary server are not in a dual-computer synchronous mode.
Optionally, the method further includes:
a movie list and the main server name obtaining module, configured to obtain a movie list and a main server name;
the information determining module of the main server is used for determining the information of the main server according to the name of the main server;
the first judgment module is used for judging whether the information of the main server is valid or not; if the video is valid, a main film play list is established in the main server; otherwise, the process is ended.
Optionally, the method further includes:
the editing module is used for editing the main film play list; the editing comprises adding a film, removing a film, moving a film sequence and editing a film name;
the name acquisition module of the secondary server is used for acquiring the name of the secondary server;
the information determining module of the secondary server is used for determining the information of the secondary server according to the name of the secondary server;
the second judgment module is used for judging whether the information of the secondary server is effective or not; if yes, judging whether the main server and the auxiliary server are in a dual-computer synchronous mode or not; otherwise, the process is ended.
Optionally, the secondary movie playlist creating module specifically includes:
a judging unit, configured to judge whether the name of the movie contains an identifier of the primary server or the secondary server;
the name conversion unit is used for carrying out name conversion if the name of the movie contains the identifier of the server; the name of the movie after name conversion is the same as the corresponding movie name in the main movie playlist and corresponds to the identifier of the server;
the first obtaining unit is used for obtaining corresponding film information and the main server information according to the film name after name conversion;
the second obtaining unit is used for directly obtaining corresponding film information and the main server information if the name of the film does not contain the identifier of the server;
and the secondary film play list production unit is used for creating a secondary film play list of the secondary server according to the film information corresponding to the film name after the name conversion and the main server information.
Optionally, the main movie playlist saving module specifically includes:
an information acquisition unit, configured to acquire a distributor, a release date, a creator, and an ID of a movie in the movie playlist, if the primary server and the secondary server are not in the dual-server synchronization mode;
a main movie playlist storage unit operable to store based on a distributor, a release date, a creator, and an ID of a movie in the movie playlist.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the method and the system for synchronously playing the main and auxiliary server films, the auxiliary film play list of the auxiliary server is established according to the main film play list in the main server, the auxiliary film play list corresponds to the name of the main film play list, and when the films are played, the problems that the pictures of the main and auxiliary servers are not synchronous, inconsistent or can not be shown and the like due to different responses of different servers or different manual data operations and the like which possibly have certain errors in SPL are avoided, so that the synchronization of the film playing of the main and auxiliary servers is ensured, and the better showing quality is provided for a cinema.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described 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 to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating a method for synchronously playing a movie on a primary server and a secondary server according to the present invention;
fig. 2 is a schematic structural diagram of a system for synchronously playing a movie on a primary server and a secondary server according to the present invention;
fig. 3 is a schematic diagram of a movie name conversion rule according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a method and a system for synchronously playing a main server and an auxiliary server, which realize the automatic creation of SPL of the main server and the auxiliary server, ensure the playing to be smoother and more accurate, and are beneficial to a cinema to ensure better showing quality.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a schematic flow chart of a method for synchronously playing a movie on a primary server and a secondary server provided by the present invention, and as shown in fig. 1, the method for synchronously playing a movie on a primary server and a secondary server provided by the present invention includes:
s101, a main movie playlist in the main server is obtained. The main movie playlist includes at least one movie filmlet; each of the film clips includes at least one clip.
Before S101, the method further includes:
and acquiring a film list and the name of the main server. The movie in the main movie playlist includes a movie name and a server identifier. Wherein, the server identification comprises-L or-R, -Left or-Right, -M or-N, -Master or-Slave, -1 or-2, etc.
And determining the information of the main server according to the name of the main server.
Judging whether the information of the main server is valid or not; if the video is valid, a main film play list is established in the main server; otherwise, the process is ended.
Further, if the creation of the main movie playlist in the main server is successful, a success message is prompted in the log; if the creation is unsuccessful, a warning message is prompted.
After S101, the method further includes:
editing the main film play list; the editing includes adding a movie, removing a movie, moving a movie sequence, and editing a movie name.
And acquiring the name of the secondary server.
And determining the information of the secondary server according to the name of the secondary server.
Judging whether the information of the secondary server is valid or not; if yes, judging whether the main server and the auxiliary server are in a dual-computer synchronous mode or not; otherwise, the process is ended.
S102, judging whether the main server and the auxiliary server are in a dual-computer synchronization mode.
And S103, if the main server and the secondary server are in a dual-computer synchronous mode, retrieving the films with the same names in the primary film play list in the secondary server.
S104, creating a secondary film play list of a secondary server according to the film; the secondary movie playlist corresponds to the primary movie playlist name. Further, if the creation of the primary movie playlist in the secondary server is successful, a success message is prompted in the log; if the creation is unsuccessful, a warning message is prompted.
And judging whether the name of the movie contains the identifier of the main server or the secondary server.
If the name of the movie contains the identifier of the server, name conversion is carried out; the name of the movie after name conversion is the same as the corresponding movie name in the main movie playlist and corresponds to the identifier of the server. The specific conversion rule is shown in fig. 3.
And acquiring corresponding film information and the main server information according to the film name after name conversion.
And if the name of the movie does not contain the identifier of the server, directly acquiring corresponding movie information and the main server information.
And creating a secondary film play list of a secondary server according to the film information corresponding to the film name after the name conversion and the information of the primary server.
And S105, the main server and the secondary server play the films synchronously according to the main film play list or the secondary film play list.
And S106, if the main server and the secondary server are not in a dual-computer synchronous mode, only storing the main film play list.
And if the main server and the secondary server are not in the dual-computer synchronous mode, acquiring a distributor, a release date, a creator and an ID of the film in the film play list.
And storing according to the distributor, the release date, the creator and the ID of the film in the film play list.
Fig. 2 is a schematic structural diagram of a system for synchronously playing a film on a primary server and a secondary server provided by the present invention, and as shown in fig. 2, the system for synchronously playing a film on a primary server and a secondary server provided by the present invention includes: a main movie playlist acquisition module 201, a dual-computer synchronization mode determination module 202, a retrieval module 203, a sub-movie playlist creation module 204, a play module 205, and a main movie playlist storage module 206.
The main movie playlist acquisition module 201 is configured to acquire a main movie playlist in a main server.
The dual-server synchronization mode determining module 202 is configured to determine whether the primary server and the secondary server are in a dual-server synchronization mode.
The retrieval module 203 is configured to, if the primary server and the secondary server are in a dual-server synchronization mode; the movies with the same name as in the primary movie playlist in the primary server are retrieved in the secondary server.
The secondary movie playlist creating module 204 is configured to create a secondary movie playlist of a secondary server according to the movie; the secondary movie playlist corresponds to the primary movie playlist name.
The playing module 205 is configured to perform synchronous playing of the movies by the primary server and the secondary server according to the primary movie playlist or the secondary movie playlist.
The main movie playlist storage module 206 is configured to only store the main movie playlist if the main server and the secondary server are not in the dual-server synchronization mode.
The invention provides a system for synchronously playing a main server and an auxiliary server, which further comprises: the system comprises a movie list, a main server name acquisition module, a main server information determination module, a first judgment module, an editing module, a secondary server name acquisition module, a secondary server information determination module and a second judgment module.
The movie list and the main server name obtaining module are used for obtaining the movie list and the main server name.
And the information determining module of the main server is used for determining the information of the main server according to the name of the main server.
The first judging module is used for judging whether the information of the main server is valid or not; if the video is valid, a main film play list is established in the main server; otherwise, the process is ended.
The editing module is used for editing the main film play list; the editing includes adding a movie, removing a movie, moving a movie sequence, and editing a movie name.
And the name acquisition module of the secondary server is used for acquiring the name of the secondary server.
And the information determining module of the secondary server is used for determining the information of the secondary server according to the name of the secondary server.
The second judging module is used for judging whether the information of the secondary server is effective or not; if yes, judging whether the main server and the auxiliary server are in a dual-computer synchronous mode or not; otherwise, the process is ended.
The secondary movie playlist creating module 204 specifically includes: the device comprises a judging unit, a name converting unit, a first acquiring unit, a second acquiring unit and a secondary film play list producing unit.
The judging unit is used for judging whether the name of the movie contains the identifier of the main server or the secondary server.
The name conversion unit is used for carrying out name conversion if the name of the movie contains the identifier of the server; the name of the movie after name conversion is the same as the corresponding movie name in the main movie playlist and corresponds to the identifier of the server.
The first obtaining unit is used for obtaining corresponding film information and the main server information according to the film name after name conversion.
The second obtaining unit is configured to directly obtain corresponding movie information and the main server information if the name of the movie does not contain the identifier of the server.
And the secondary film play list production unit is used for creating a secondary film play list of the secondary server according to the film information corresponding to the film name after the name conversion and the main server information.
The main movie playlist storage module 206 specifically includes:
the information acquisition unit is used for acquiring the distributor, the release date, the creator and the ID of the film in the film play list if the main server and the secondary server are not in the dual-machine synchronization mode.
The main film play list holding unit is used for holding according to the distributor, the release date, the creator and the ID of the films in the film play list.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principle and the implementation mode of the invention are explained by applying a specific example, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.