Video information processing method
Technical field
The present invention relates to track traffic technical field, be specifically related to a kind of video information processing method.
Background technology
About track traffic passenger information system, there are 2 patents at present:
1, Novel subway passenger information system [concrete structure is shown in Fig. 1]: for subway supervisory control system field, it is characterized in that, comprising: server, for whole system is carried out to centralized control and information processing; Traffic control station, provides operational order by its man-machine interface to dispatcher, and by standard communication protocol, selected operational order is sent to above-mentioned server; Maintenance management work station, is used for by files such as general video editing software editing advertisement, videos, and by standard communication protocol, above-mentioned video file is uploaded to above-mentioned server; Video distributor, is connected to above-mentioned server, for driving display; Audio-frequency power amplifier, is connected to above-mentioned server, for driving loud speaker; Wherein, the software of above-mentioned server end comprises: control message processing module (MPM), complete verification and the analysis of controlling message, dissimilar control message calls different modules and completes corresponding function; Video synthesis module, the video information that needs are shown is synthesized rear drive display and is shown; Audio frequency synthesis module, completes the translation function of word to voice, and the audio-frequency information that needs are play is processed rear drive loud speaker and play.
By the existing function of this two cover system of audio information broadcast system and system for displaying video information independently separately, by introducing the new technologies such as audio frequency synthetic technology and video synthetic technology, they are integrated in same set of system and are realized, unified hardware and software platform and unified human-computer interaction interface are provided.
2, passenger information system [concrete structure is shown in Fig. 2]: comprise passenger information system management unit, audio frequency control and power amplifier unit, audio frequency and video output unit, function control unit, passenger information display terminal, passenger's intercommunication broadcast terminal and passenger's recreation terminal equipment; Administrative unit is transferred to audio output unit by bus by audio, video data, and audio frequency and video output unit is by function control unit control passenger recreation terminal equipment; Administrative unit realizes by bus and is arranged at audio frequency control and power amplifier unit control passenger information display terminal and the passenger's intercommunication broadcast terminal in each compartment.By full row RS485 bus, the operating state that the administrative unit of passenger information system can supervisory control system all devices.For passenger provides demonstration, public broadcasting, the point-to-point communication of audio frequency and video entertainment, various information.This invention belongs to railer's information system, particularly a kind of control passenger information based on bus and can with the passenger information system of train network supervisory control system communication.
Above-mentioned patent Novel subway passenger information system is based on hardware compression mode, video information to be processed, and audio information broadcast system and system for displaying video information are synthesized to rear output.And passenger information system adopts the mode based on bus system equipment is monitored and terminal equipment is carried out to communication.Above two kinds of passenger information systems are all that the mode based on hardware compression is carried out audio and video information processing, adopt simple hard coded mode, and system relationship is very tight, is unfavorable for Function Extension; Under hard coded mode, equipment interface is many, operation cost is high.Prior art has the following disadvantages:
1, cost of processing information is high.Existing track traffic passenger information system is encoded according to video card hardware mode, to output after video file, the audio file of main control server output synthesize.At server end, carry out hardware encoding, audio frequency, the synthetic output of video after player end is carried out hard decoder, specialty coding, decoding device costliness, operation cost is higher.Meanwhile, audio frequency, video are exported separately, and equipment interface increases, and has increased fault point, are also not easy to safeguard.
2, video pictures and sound asynchrony phenomenon are serious.Existing passenger information system thinking is that audio file and video file are transmitted respectively, due to the factor such as transmission delay, signal attenuation, audio file and video file transmission time be inconsistent, after the synthetic broadcasting of terminal, often occur playing sound and the inconsistent phenomenon of broadcasting pictures, affect system effect.
3,, when Network Transmission Delays, picture is play discontinuous smoothness.Existing passenger information system is taked video to compile to broadcast, information is superimposed upon server end and completes, and then overall transfer is to terminal plays pattern, and transinformation is larger, and the phenomenons such as in the poor situation of signal transmission, information broadcasting is discontinuous, mosaic are difficult to overcome.Particularly in the vehicle-mounted passenger information system of urban track traffic, because train passes through tunnel or signal transmission runs under disturbed condition, the information dropout that terminal equipment receives is serious, and broadcasting pictures is second-rate, is difficult to accomplish the continuous smooth playing of picture.
To sum up, the video information processing method of current track traffic passenger information system exists that cost of processing information is higher, audio frequency and video picture synchronization is poor, when signal transmission is poor, be difficult to accomplish the picture deficiency such as broadcasting continuously, finally affects system operation management performance.
Summary of the invention
(1) technical problem that will solve
Technical problem to be solved by this invention is: how to reduce the video information process cost of track traffic passenger information system, how for passenger provides continuous smoothness high-quality broadcasting pictures.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of video information processing method, it comprises the following steps:
S1, media Design step: work station editing media material, in media materials, add broadcasting pattern, result of broadcast, form media file, the media library that work station is uploaded onto the server the media file of complete design, calls for media library;
S2, media editing and issuing steps: playlist is set, plays format and playing plan, and set up described player and play the mapping relations between format, after setting completes, described server carries out the configuration information of each player to send to player after digital signature, compression and encryption, configuration information comprise this player playlist, play dynamic variable and dynamic variable logic control script file in format, playing plan and each playlist;
S3, media play step: comprise S3-1 media play, S3-2 Data Update and S3-3 player status monitoring three phases;
S3-1, media play: player obtains the file that server issues, synthesize and be superimposed as video information, after soft transcoding, by the port in player video card, shows;
S3-2, Data Update: player periodically detects the configuration information of this player in server, when finding that there is new file update, obtains transaction file, according to up-to-date media and file data, carries out information stack, generate broadcast information output;
S3-3, player status monitoring: player periodically reports operating state, presence to server, server record player daily record of work, server is according to unique ID of cryptographic algorithm combination producing, judge that whether this player is legal, when having illegal player access, player is not worked.
Preferably, step S1 specifically comprises:
101): work station is opened media materials, editing media material, adds wherein and plays pattern, result of broadcast;
102): in media materials, add static constant, dynamic variable, wherein static constant can not change, dynamic variable dynamically changed for the variation of dynamic variable institute assignment according to the media play phase;
103): the media library that media Design work station is uploaded onto the server the media file of complete design, as the media materials of media editing and launch phase.
Preferably, step S2 specifically comprises:
104): playlist is set: from media library, select n media file, edit playing duration, the playing sequence of each media file, form playlist, playlist be can independent play-out minimum unit, 1≤n≤N, N is total number of media file in media library;
105): broadcasting format is set: ratio, the screen size of selecting to play format, select format to comprise how many playlists, positional information (the X of each playlist at player is set, Y, H, W), and the control logic that in each playlist, dynamic variable comes into force, when broadcast information, by control logic, change, realize the switching of play content; Wherein positional information (X, Y, H, W) in, the implication of each coordinate is: X represents the abscissa of playlist with respect to initial point, and Y represents the ordinate of playlist with respect to initial point, and H represents the height of playlist, W represents the width of playlist, and initial point is screen top left corner apex;
106): playing plan is set: the broadcasting schedule of each broadcasting format is set, comprises the broadcasting schedule of playing playlist under format;
107): player is set: player information is set, player and certain is play to format and carry out associatedly, this player will be play according to the configuration information of this broadcasting format, and player information comprises IP address, mac address information.
Preferably, step S3-1 comprises:
108): player obtains the associated media file of this player from server, comprise and play format, playlist, playing plan and dynamic variable logic control script;
109): player, from server and external interface, reads the file/data of the dynamic variable mapping that is issued to player hard disk, if server or external interface have more new data, adopts information broadcasting pattern,, shift each player onto;
110): the media in player cycle repeating query hard disk, and according to the file/data of the dynamic variable logic control script in media, dynamic variable, dynamic variable mapping, the synthetic video information that is superimposed as, soft coding is afterwards by the HDMI (High Definition Multimedia Interface) output display in player video card.
Preferably, step S3-2 comprises:
111): player periodically detects the configuration information of this player at server end;
112): whether detect this player has media, broadcasting format, playlist, playing plan, control script and data to need to upgrade in server;
113): find that there is while needing transaction file, obtain the media and the file data that need renewal;
114): media and file data in cycle repeating query hard disk, according to up-to-date media and file data, carry out information stack, generate broadcast information output.
Preferably, step S3-3 comprises:
115): player timing reports operating state, the presence of player to server;
116): employing md5 encryption algorithm, whether server is according to unique ID of the IP of each player, MAC and three kinds of information combination generations of server clock, correct by judging this id information, thereby determines the legitimacy of this player;
117): server record player daily record of work;
118): data check, whether this player is legitimate player in server administration; Data verification is passed through, normal play information; Data verification is not passed through, and player is broadcast information not, the illegal daily record of server record.
Preferably, in step S3-3, unique ID that server generates according to MD5 irreversible encryption algorithm according to player IP address, MAC Address and three kinds of information of server clock information.
Preferably, in step S2, described broadcasting format with webpage format arrange the abscissa, ordinate of playlist in each broadcasting format, highly, width information.
Preferably, while playing, by controlling logical changes in dynamic variable logic control script file, realize the switching of play content in step S3.
Preferably, in step S3-1, player is decrypted the file receiving from server and decompress, and with soft decoding process, according to playing plan, broadcasting format, playlist and the configuration information of corresponding period is synthesized to the rear broadcasting of stack.
(3) beneficial effect
Beneficial effect of the present invention is:
Video information process cost is low: adopt soft coding and decoding mode, in player end, media file, data, configuration information are decrypted, reduce, synthesize the rear broadcasting of stack.With respect to audio frequency, video synthetic technology under existing hard coding and decoding pattern, at server, do not need professional encoder, in player end, do not need professional decoder, reduced video information process cost;
Information playing audio-video Complete Synchronization: adopt information overall transfer pattern, avoided audio frequency and video individual transmission video pictures and sound asynchrony phenomenon under synthesis model again;
Information broadcasting pictures is smooth continuously: information processing is processed in player hard disk, lower to network bandwidth dependence, has effectively avoided the information causing due to Network Transmission Delays to broadcast discontinuous smooth phenomenon.When network delay is serious, adopt passenger information system video information of the present invention to broadcast and can guarantee that picture is smooth continuously, improved the sense organ effect that Customer information is listened to.
Transinformation is little: take the mode of static variable and dynamic variable combination, the metro operation period is only transmitted dynamic variable information, and larger static file data can, in the transmission of subway non-operation period, reduce transinformation;
Safe: communication is taked to encrypt, deciphering measure, player authentication takes md5 encryption algorithm to generate unique ID authentication, has guaranteed the fail safe of player access and data access.
Accompanying drawing explanation
Fig. 1 is the structural representation of existing Metro Passenger information system;
Fig. 2 is existing passenger information system module's logic structure figure;
Fig. 3 is method flow diagram of the present invention.
Embodiment
Under regard to a kind of video information processing method proposed by the invention, in conjunction with the accompanying drawings and embodiments describe in detail.
First explain several nouns used in the present invention:
Player: information receives and playback terminal, generally adopts industrial computer or embedded host.The media file of player reception server, data, configuration data, to the local hard drive of player, will broadcast after synthetic information stack.
Playlist: be minimum broadcast unit that can independent play-out in broadcasting pictures, the associated class broadcast information of each playlist.Playlist can be nested, and less playlist can form a larger playlist.
Play format: for finally presenting to passenger's broadcasting pictures layout pattern, play format and formed by one or more playlists.
Playing plan: for playing the broadcasting schedule of format.Can arrange the broadcasting schedule of playing playlist under format, form detailed playing plan.
As shown in Figure 3, be particularly useful in track traffic passenger information system according to method of the invention process, described track traffic passenger information system can be existing system arbitrarily.Comprise media Design stage, media editing and launch phase and media play stage, each stage work is as follows:
One, the media Design stage:
101): media Design work station is opened media materials, editing media material, adds wherein and plays pattern, result of broadcast;
102): in media materials, add static constant, dynamic variable.Wherein static constant can not change, and dynamic variable dynamically changed for the variation of dynamic variable institute assignment according to the media play phase; In the present invention, dynamic variable is defined as the variable that play content can arrange when playing.
103): the media library that media Design work station is uploaded onto the server the media file of complete design, as the media materials of media editing and launch phase.
Two, media editing and launch phase:
104): playlist is set.From media library, select the individual media file of n (1≤n≤N, N is total number of media file in media library), edit playing duration, the playing sequence of each media file, form playlist.Playlist be can independent play-out minimum unit;
105): broadcasting format is set.Select to play ratio, the screen size of format, select format to comprise how many playlists, the positional information (X, Y, H, W) of each playlist at player is set, and the control logic that in each playlist, dynamic variable comes into force.When broadcast information, by control logic, change, realize the switching of play content; Wherein in positional information (X, Y, H, W), the implication of each coordinate is: X represents the abscissa of playlist with respect to initial point.Y represents the ordinate of playlist with respect to initial point.H represents the height of playlist.W represents the width of playlist.Initial point is screen top left corner apex.
106): playing plan is set.The broadcasting schedule of each broadcasting format is set, comprises the broadcasting schedule of playing playlist under format.The reproduction time plan of each minimum broadcast unit in controlled broadcast information processed is set by schedule;
107): player is set.Player information is set, player and certain is play to format and carry out associatedly, this player will be play according to the configuration information of this broadcasting format.Player information comprises IP address, mac address information.
Three, the media play stage: comprise S3-1 media play, S3-2 Data Update and three subs of S3-3 player status monitoring.
S3-1, media play: player obtains the file that server issues, synthesize and be superimposed as video information, passes through the HDMI mouth output display in player video card after soft transcoding.S3-1 comprises step 108~110:
108): player obtains the associated media file of this player from server, comprise and play format, playlist, playing plan and dynamic variable logic control script;
109): player, from server and external interface, reads the file/data of the dynamic variable mapping that is issued to player hard disk.If server or external interface have more new data, adopt information broadcasting pattern, under shift each player onto;
110): the media in player cycle repeating query hard disk, and according to the file/data of the dynamic variable logic control script in media, dynamic variable, dynamic variable mapping, the synthetic video information that is superimposed as, soft coding is afterwards by mouthful output display of the HDMI (HDMI (High Definition Multimedia Interface)) in player video card.
In the present invention, the synthetic positional information (X, Y, H, W) according to playing the each playlist setting of format of media, carries out the complete broadcasting pictures of combined and spliced one-tenth at player terminal, and the dynamic variable in each playlist shows according to variate-value.When the resolution of player display screen and synthetic after picture dimension when inconsistent, broadcasting pictures, according to the ratio of picture dimension and player display resolution, carries out exporting after corresponding convergent-divergent.
S3-2, Data Update: the configuration information of this player of player cycle detection in server, when finding that there is new file update, obtain transaction file, according to up-to-date media and file data, carry out information stack, generate broadcast information output.S3-2 comprises step 111~114:
111): player periodically detects the configuration information of this player at server end;
112): whether detect this player has media, broadcasting format, playlist, playing plan, control script and data to need to upgrade in server;
113): find that there is while needing transaction file, obtain the media and the file data that need renewal;
114): media and file data in cycle repeating query hard disk, according to up-to-date media and file data, carry out information stack, generate broadcast information output.
S3-3, player status monitoring: player periodically reports operating state, presence, server record player daily record of work to server.Unique ID that server generates according to MD5 irreversible encryption algorithm according to player IP address, MAC Address and three kinds of information of server clock information, judge that whether this player is legal, when having illegal player access, player is not worked, and guarantees the safety of access player.S3-3 comprises step 115~120:
115): player timing reports operating state, the presence of player to server;
116): employing md5 encryption algorithm, whether server is according to unique ID of the IP of each player, MAC and three kinds of information combination generations of server clock, correct by judging this id information, thereby determines the legitimacy of this player;
117): server record player daily record of work;
118): data check, whether this player is legitimate player in server administration;
119): data verification is passed through, normal play information;
120): data verification is not passed through, player is broadcast information not, the illegal daily record of server record.
Above execution mode is only for illustrating the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.