[go: up one dir, main page]

CN106657113B - A kind of conversion method and system of multiplexing protocols in broadcast network - Google Patents

A kind of conversion method and system of multiplexing protocols in broadcast network Download PDF

Info

Publication number
CN106657113B
CN106657113B CN201611264460.0A CN201611264460A CN106657113B CN 106657113 B CN106657113 B CN 106657113B CN 201611264460 A CN201611264460 A CN 201611264460A CN 106657113 B CN106657113 B CN 106657113B
Authority
CN
China
Prior art keywords
packet
stream
module
image
pid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611264460.0A
Other languages
Chinese (zh)
Other versions
CN106657113A (en
Inventor
纪琦华
蒲珂
方宏
曾泽基
李哲山
胡彬
陈传海
蔡忠善
魏明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Science And Technology Co Ltd
Original Assignee
China Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Science And Technology Co Ltd filed Critical China Science And Technology Co Ltd
Priority to CN201611264460.0A priority Critical patent/CN106657113B/en
Publication of CN106657113A publication Critical patent/CN106657113A/en
Application granted granted Critical
Publication of CN106657113B publication Critical patent/CN106657113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/24Systems for the transmission of television signals using pulse code modulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • H04N21/23895Multiplex stream processing, e.g. multiplex stream encrypting involving multiplex stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of conversion method of multiplexing protocols in broadcast network and system, the conversion method includes: to obtain TS stream;TS is flowed according to scheduled mode transmission to change server;TS circulation is changed to PS stream by change server, and is stored;According to the packet identification in PS stream, PES packet is extracted in PS stream;Presentation time stamp or decoded time stamp are taken out out of PES packet the extension header, and are converted into the timestamp in multiplexed frame;It is the multiplexed frame of CMMB program by the ES encapsulation according to the timestamp according to CMMB multiplex protocol.TS can be circulated and be changed to PS stream by the present invention, meet user to the playing request of audio-video, the play clarity of audio-video is higher, furthermore, PS can also be circulated and be changed to CMMB program by the present invention, met the viewing demand of the user of mobile terminal, effectively improved the compatibility of program protocol conversion.

Description

A kind of conversion method and system of multiplexing protocols in broadcast network
Technical field
The present invention relates to China mobile multi-media broadcasting technology field, in particular to a kind of conversion side of multiplexing protocols in broadcast network Method and system.
Background technique
With the development of communication technology, the application of China mobile multi-media broadcasting technology is more and more wider.Currently, the more matchmakers of China Mobile Body broadcast system (referred to as: CMMB) standard defines in broadcasting service frequency range, mobile multimedia broadcast system broadcast letter Frame structure, the Channel Coding and Modulation etc. of road transmission signal.It is provided in CMMB standard, video, audio is encapsulated using multiplexed frame Equal stream medium datas are transmitted, and are realized and are seen TV on mobile terminals.
The air-data of system transmitting, is divided into different channels, the data of each channel include: again video, audio and Auxiliary data three types, terminal can receive relevant data, by the player in terminal, realize normally broadcasting for TV It puts.
There are many kinds of multiplex protocols for air-launched data format, and the most commonly used is TS (transport stream) mode, TS associations View is one of MPEG (Motion Picture Experts Group) standard, and auxiliary data, video, audio are placed on one and fix 188 words by it It saves and is transmitted in the TS packet of size, include the play time of each video block in TS packet, to guarantee the normal play of video/audio, But the TS program in existing television network broadcast can not also be directly translated into CMMB program at present, therefore can not be by mobile whole Program is watched on end.For this purpose, existing number of patent application is that flow to China Mobile more for a kind of transmission disclosed in 200610138266.8 The conversion method of media broadcast multiplex protocol, the method achieve the program that TS program is directly changed into CMMB multiplex protocol, TS program can be watched on mobile terminals by effectively realizing.But in that patent, TS packet is not easy to lose in the conversion process Packet, but program broadcast quality is poor, can only realize CMMB program, cannot achieve the compatibility of PS program, practicability is insufficient, is This, urgent need develop one kind can be realized by TS program can not only be converted to PS stream, can be used for being converted to CMMB program The conversion method and system of the multiplexing protocols in broadcast network of compatibility conversion.
Summary of the invention
It is not easy packet loss in the conversion process to solve TS packet in the prior art, but program broadcast quality is poor, only It is able to achieve CMMB program, cannot achieve the compatibility of PS program, the problems such as practicability is insufficient, the present invention provides one kind can be real TS program now can not only be converted into PS stream, the broadcasting network that can be used for being converted to the compatibility conversion of CMMB program is multiple With the conversion method and system of agreement.
Specific technical solution of the present invention is as follows:
The present invention provides a kind of conversion method of multiplexing protocols in broadcast network, the conversion method the following steps are included:
S1, radio and television services device receive playback terminal to the playing request of target program, obtain TS stream;
S2, the radio and television services device flow the TS according to scheduled mode transmission to change server;
TS circulation is changed to PS stream by S3, the change server, and is stored;
S4, according to the PS stream in packet identification, the PS stream in extract PES packet, the PES packet is by extension header It is formed with ES packet, the ES packet is video elementary code stream packet or audio elementary stream packet;
S5, presentation time stamp or decoded time stamp are taken out out of the PES packet the extension header, and be converted into being multiplexed Timestamp in frame, the timestamp in the multiplexed frame are used to set the display time of video data or audio data;
S6, according to CMMB multiplex protocol, be the multiplexing of CMMB program by the ES encapsulation according to the timestamp Frame.
Further, in step S2, the predetermined way includes WIFI mode, wired mode, hot-spot mode.
Further, in step S3, TS circulation is changed to PS and flowed by the change server, conversion method are as follows:
S3-1, TS stream is obtained, searches for the synchronous head of TS packet in the TS stream;
S3-2, it is successively read the TS packet since the synchronous head, obtains the corresponding PID of TS packet;
S3-3, the type for judging the PID, and handled:
If the PID is the PID in pat table, the pat table is parsed, obtains the PID in PMT, reads institute The data in TS packet are stated, PES packet and PS header data are constructed, form PS packet, execute step S3-4;
If the PID is the PID in the pmt table, the pmt table is parsed, each data in the TS packet are obtained The PID of stream reads the data in the TS packet, constructs the PES packet and PS header data, forms PS packet, executes step S3-4;
S3-4, circulation read the TS packet, and repeat step S3-2 and step S3-3, until end of data, that is, completing will The TS circulation is changed to PS stream.
Further, the conversion method further include:
The multiplexed frame after encapsulation is sent to the playback terminal after encryption by S7, the change server;
After the multiplexed frame after S8, encapsulation is sent, step S1 is executed.
Further, in step S7, the encryption method of the multiplexed frame includes:
S7-1, the tableaux image for obtaining the multiplexed frame;
S7-2, Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;
The Encryption Algorithm and encryption key that S7-3, basis are negotiated in advance with the playback terminal, by the difference of acquisition Image is encrypted, and encryption file is generated;
S7-4, the encryption file of the multiplexed frame and generation after image procossing is sent to the broadcasting eventually End.
Preferably, in step S7-2, the specific method for carrying out Fuzzy Processing to the tableaux image of acquisition includes:
1.: Fuzzy Processing is carried out to the tableaux image by image fuzzy algorithmic approach and obtains blurred picture, the figure As image algorithm is Gaussian Blur algorithm;
2.: the tableaux image is subtracted into the blurred picture and obtains error image;
3.: the error image is rejected to get to only by the lesser noise of area and background area by preset threshold values Error image containing picture area.
The present invention also provides a kind of converting systems of multiplexing protocols in broadcast network, including the radio and television clothes mutually communicated Be engaged in device, change server and playback terminal, the radio and television services device include the receiving module mutually communicated, screening module, Transmission module, the receiving module is for receiving the playback terminal to the playing request of target program;The screening module is used In the TS stream for screening the target program;The transmission module is used to flow the TS according to scheduled mode transmission to the conversion Server;
The change server includes the data stream module mutually communicated, memory module, extraction module, reads mould Block, timestamp conversion module, package module, the data stream module is used to for TS circulation to be changed to PS stream, and will turn PS stream after changing is saved into the memory module;The extraction module is used for according to the packet identification in PS stream, PES packet is extracted in PS stream, the PES packet is made of extension header and ES packet, and the ES packet is video elementary code stream packet Or audio elementary stream packet;The read module be used for out of the PES packet the extension header read presentation time stab or Decoded time stamp, and it is sent to the timestamp conversion module, the timestamp conversion module is used to that presentation time to be stabbed or be solved Code timestamp is converted into the timestamp in multiplexed frame;The package module is used for according to CMMB multiplex protocol, according to the multiplexing The ES encapsulation is the multiplexed frame of CMMB program by timestamp in frame.
Further, the data stream module include the search unit mutually communicated, reading unit, judging unit, Resolution unit, construction unit, described search unit search for the synchronous head of TS packet in the TS stream for obtaining TS stream;The reading It takes unit for being successively read the TS packet since the synchronous head, obtains the corresponding PID of TS packet;The judging unit For judging the type of the PID, if the judging unit judges the PID for the PID in pat table, the parsing Unit obtains the PID in PMT, while the reading unit reads the data in the TS packet for parsing the pat table And it is sent to the construction unit, the construction unit forms PS packet for constructing PES packet and PS header data;If described Judging unit judges the PID for the PID in the pmt table, then the resolution unit is obtained for parsing the pmt table The PID of each data flow into the TS packet, while the reading unit reads the Data Concurrent in the TS packet and send to the structure Unit is built, the construction unit forms PS packet for constructing the PES packet and PS header data.
Further, the change server further includes the image capture module mutually communicated, Fuzzy Processing module, encryption Module, sending module, described image acquisition module are used to obtain the tableaux image of the multiplexed frame;The Fuzzy Processing mould Block is used to carry out Fuzzy Processing to the tableaux image, obtains blurred picture and error image;The encrypting module is used for According to the Encryption Algorithm and encryption key negotiated in advance with the playback terminal, the error image of acquisition is encrypted, Generate encryption file;The sending module is used to send out the multiplexed frame after image procossing and the encryption file of generation It send to the playback terminal.
Preferably, the Fuzzy Processing module includes the fuzzy image processing unit mutually communicated, error image processing list Member, culling unit;The fuzzy image processing unit is used to carry out mould to the tableaux image by image fuzzy algorithmic approach Paste handles to obtain blurred picture;The error image processing unit is used to the tableaux image subtracting the blurred picture Obtain error image;The culling unit is used to that the error image to be rejected the lesser noise of area by preset threshold values With background area to get to only containing the error image of picture area.
Beneficial effects of the present invention are as follows: the present invention is used not only for being converted to TS flow data into PS stream, meets user To the playing request of audio-video, the play clarity of audio-video is higher, it is also possible to by the way that PS circulation to be changed to CMMB program, while the viewing demand of the user of mobile terminal is met, effectively improve the compatibility in program by protocol conversion Property.
Detailed description of the invention
Fig. 1 is a kind of method flow schematic diagram of the conversion method of multiplexing protocols in broadcast network described in embodiment 1;
Fig. 2 is the flow diagram of step S3 in a kind of conversion method of multiplexing protocols in broadcast network as described in example 2;
Fig. 3 is the flow diagram of step S7 in a kind of conversion method of multiplexing protocols in broadcast network described in embodiment 3;
Fig. 4 is a kind of structural schematic diagram of the converting system of multiplexing protocols in broadcast network as described in example 4;
Fig. 5 is a kind of structural block diagram of the converting system of multiplexing protocols in broadcast network as described in example 4;
Fig. 6 is the knot of data stream module in a kind of converting system of multiplexing protocols in broadcast network described in embodiment 5 Structure block diagram;
Fig. 7 is a kind of structural block diagram of the converting system of multiplexing protocols in broadcast network described in embodiment 5;
Fig. 8 is the structure of Fuzzy Processing module in a kind of converting system of multiplexing protocols in broadcast network described in embodiment 5 Block diagram.
Wherein: 1, radio and television services device;101, receiving module;102, screening module;103, transmission module;2, conversion clothes Business device;201, data stream module;2011, search unit;2012, reading unit;2013, judging unit;2014, parsing is single Member;2015, construction unit;202, memory module;203, extraction module;204, read module;205, timestamp conversion module; 206, package module;207, image capture module;208, Fuzzy Processing module;2081, fuzzy image processing unit;2082, poor It is worth image processing unit;2083, culling unit;209, encrypting module;210, sending module;3, playback terminal.
Specific embodiment
Invention is further described in detail with following embodiment with reference to the accompanying drawing.
Embodiment 1
As shown in Figure 1, the embodiment of the present invention 1 provides a kind of conversion method of multiplexing protocols in broadcast network, the conversion Method the following steps are included:
S1, radio and television services device 1 receive playback terminal 3 to the playing request of target program, obtain TS stream;Basis first The playing request of program obtains TS stream, and TS stream is transport stream, and the PS stream is program stream.
S2, the radio and television services device 1 flow the TS according to scheduled mode transmission to change server 2;
TS circulation is changed to PS stream by S3, the change server 2, and is stored;PS stream is turned to for TS circulation, Exactly the PES packet of recovery is packaged according to the structure that PS flows again again, TS stream is with the PS difference flowed, the inclusion of TS stream Structure is regular length, and the pack arrangement of PS stream is variable-length.Although TS stream has very strong resistance for transmission error code Ability, but its play quality is flowed far below PS, therefore, in order to improve play quality, TS can be circulated and be turned to PS stream, then It playing out, the higher audio-video of play quality can be watched of course for can be realized mobile terminal, it can be by PS circulationization For CMMB program.
S4, according to the PS stream in packet identification PID, the PS stream in extract PES packet, the PES packet is by extending Packet header and ES packet composition, the ES packet are video elementary code stream packet or audio elementary stream packet;ES stream is elementary stream, is not segmented Audio, video or other information continuous bit stream, ES packet is several stream packet data composition;PES stream is that basic flow ES is divided The packetized elementary stream code stream being packed at section and plus corresponding header file, the PES stream are made of several PES packets.
After PES packet extracts, judges whether to obtain a complete PES packet and judged multiple according to the instruction of PS extension header Whether PS can form a complete PES packet, if it is carry out step S5, if it is not, then continuing to extract PES packet.
S5, presentation time stamp PTS or decoded time stamp DTS is taken out out of the PES packet the extension header, and convert At the timestamp in multiplexed frame, the timestamp in the multiplexed frame is used to set the display time of video data or audio data, Realize the synchronization of video or audio broadcasting;
S6, according to CMMB multiplex protocol, be the multiplexing of CMMB program by the ES encapsulation according to the timestamp Frame.Judge that audio pack for audio pack or video bag, if audio pack then according to CMMB multiplex protocol, is inserted sound by the ES packet Video bag then according to CMMB multiplex protocol, is inserted video unit, is encapsulated as answering for CMMB program by frequency unit if video bag Use frame.
It should be noted that the predetermined way includes WIFI mode, wired mode, hot-spot mode in step S2.
The present invention, which is initially used for circulating TS, turns to PS stream, then realizes that the high definition of PS flow data audio-video plays, then In order to meet the needs of mobile terminal, CMMB program is converted by the PS flow data of high quality, to meet the needs of mobile terminal. The present invention can be realized the compatibility of TS, PS and CMMB, effectively meet the broadcasting demand of different playback terminals 3, application range is more Extensively.
Embodiment 2
As shown in Fig. 2, the embodiment of the present invention 2 defines how TS stream is converted to PS stream, TS stream on the basis of embodiment 1 Format are as follows: TS (4 bytes) and TS data (184 byte).TS head are as follows: synchronous (1 byte) is 47, and error of transmission indicates (1), Load starts to indicate (1), transmission priority (1), PID (13), control extension (2), adjustment field control (2), Identical PID TS packet counts (4), totally 4 byte, therefore when analyzing conversion TS stream it may first have to find synchronous head, then according to Different PID carries out different processing for each TS packet.In step S3, TS circulation is changed to by the change server 2 PS stream, conversion method are as follows:
S3-1, TS stream is obtained, searches for the synchronous head of TS packet in the TS stream;
S3-2, it is successively read the TS packet since the synchronous head, obtains the corresponding PID of TS packet;
S3-3, the type for judging the PID, and handled:
If the PID is the PID in pat table, the pat table is parsed, obtains the PID in PMT, reads institute The data in TS packet are stated, PES packet and PS header data are constructed, form PS packet, execute step S3-4;
If the PID is the PID in the pmt table, the pmt table is parsed, each data in the TS packet are obtained The PID of stream reads the data in the TS packet, constructs the PES packet and PS header data, forms PS packet, executes step S3-4;
If PID is Vi_PID, the data in the TS packet is read, and save to buffer area, judge a frame image data Whether terminate, if so, building PES, PS header data, forms PS packet, eliminates respective cache, execute step S3-4;
If PID is Ai_PID, direct copying component PES, PS header data forms PS packet;
If PID is sky PID, the TS packet is directly abandoned, executes step S3-4;
If PID is other PID, corresponding PES and PS packet is constructed, executes step S3-4;
S3-4, circulation read the TS packet, and repeat step S3-2 and step S3-3, until end of data, that is, completing will The TS circulation is changed to PS stream.
When conversion, TS packet is filtered first, retains audio, video flowing corresponding to the program to be stored, deletes it Its packet, then fabricate new PAT, a pmt table, sound intermediate frequency, video pointer must be directed at storage audio, video flowing PID.
TS circulation is changed to PS by the above method and flows fairly simple, and the broadcasting matter of audio-video can be effectively improved Amount.
Embodiment 3
As shown in figure 3, the embodiment of the present invention 3 further defines on the basis of embodiment 1, the conversion method is also wrapped It includes:
The multiplexed frame after encapsulation is sent to the playback terminal 3 after encryption by S7, the change server 2;
After the multiplexed frame after S8, encapsulation is sent, step S1 is executed.
By the encryption to multiplexed frame, CMMB program can be effectively prevent by piracy, distorted, effectively increased The safety of CMMB program.
It should be further noted that in step S7, the encryption method of the multiplexed frame includes:
S7-1, the tableaux image for obtaining the multiplexed frame;
S7-2, Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;Specifically, logical It crosses image fuzzy algorithmic approach the tableaux image is carried out Fuzzy Processing to obtain the fuzzy data of image being blurred picture, it will The data that the data of the original tableaux image subtract the blurred picture obtain the data of the error image, When storage, the blurred picture and the error image are stored together.
The Encryption Algorithm and encryption key that S7-3, basis are negotiated in advance with the playback terminal 3, by the difference of acquisition Image is encrypted, and encryption file is generated;
S7-4, the encryption file of the multiplexed frame and generation after image procossing is sent to the playback terminal 3。
The present invention is by having carried out Fuzzy Processing for the picture of multiplexed frame, with fuzzy after then being encrypted error image Treated, and blurred picture is sent to playback terminal 3 together, after encrypted file is decrypted in playback terminal 3, then will be poor Value image and blurred picture synthesize the video before processing, therefore carry out video playing.
Method provided by the invention is not only simple, but also can effectively avoid video by piracy, distort, by video The processing of frame picture carries out effective protection to the tableaux of multiplexed frame, for this purpose, by the way that the method achieve to the effective of video Encryption, prevents video from being revealed in transmission process by video, and effective video could be formed by only being synthesized again by video.
Preferably, in step S7-2, the specific method for carrying out Fuzzy Processing to the tableaux image of acquisition includes:
1.: Fuzzy Processing is carried out to the tableaux image by image fuzzy algorithmic approach and obtains blurred picture, the figure As fuzzy algorithmic approach is Gaussian Blur algorithm;Wherein, Gaussian Blur is at an image of Adobe image software company, U.S. exploitation Software a: filter in Adobe Photoshop (series) is managed, in the principle of Gaussian Blur, it is according to Gaussian curve tune Pixel color value is saved, it is selectively blurred picture, that is, Gaussian Blur can be the pixel color value around certain point by height This curve statistical gets up, and mathematically average weighted calculation method obtains the color value of this curve for use, can finally leave people The profile of object, i.e. curve.
2.: the tableaux image is subtracted into the blurred picture and obtains error image;By tableaux image The data that data subtract the blurred picture obtained after Gaussian Blur processing obtain the data of error image;
3.: the error image is rejected to get to only by the lesser noise of area and background area by preset threshold values Error image containing picture area.Error image is carried out noise and background area to divide and reject to get to containing only someone The error image of object or specific picture area, the image are effective image.
Embodiment 4
As shown in figure 4, the embodiment of the present invention 4 provides a kind of converting system of multiplexing protocols in broadcast network, including mutual Radio and television services device 1, change server 2 and the playback terminal 3 of communication.
As shown in figure 5, the radio and television services device 1 includes the receiving module 101 mutually communicated, screening module 102, passes Defeated module 103, the receiving module 101 is for receiving the playback terminal 3 to the playing request of target program;The screening mould Block 102 is used to screen the TS stream of the target program;The transmission module 103 is used to flow the TS according to scheduled mode transmission To the change server 2.
Radio and television services device 1, in order to meet the needs of users, needs video flowing is continuous for sending video flowing By TS agreement, PS agreement or CMMB protocol conversion after, be sent to playback terminal 3, meet the broadcasting demand of user thus.
The change server 2 includes data stream module 201, the memory module 202, extraction module mutually communicated 203, read module 204, timestamp conversion module 205, package module 206, the data stream module 201 is used for will be described TS circulation is changed to PS stream, and the PS stream after conversion is saved into the memory module 202;The extraction module 203 is used According to the packet identification in PS stream, PES packet is extracted in PS stream, the PES packet is by extension header and ES package At the ES packet is video elementary code stream packet or audio elementary stream packet;The read module 204 is used for from the PES packet Presentation time stamp or decoded time stamp are read in the extension header, and is sent to the timestamp conversion module 205, when described Between stamp conversion module 205 be used for by presentation time stamp or decoded time stamp be converted into the timestamp in multiplexed frame;The Encapsulation Moulds Block 206 is used for according to CMMB multiplex protocol, by the ES encapsulation is CMMB program according to the timestamp in the multiplexed frame The multiplexed frame.
System provided by the invention, which can be realized effectively, is converted to PS stream for TS stream program, can not only meet user to PS The demand of program is flowed, and the play quality of opposite TS stream program is higher, in addition, in order to meet the need of the user of mobile terminal It asks, PS stream program can be converted to the multiplexed frame of CMMB program by this system by change server 2, and multiplexed frame is composition CMMB The necessary part of stream of video frames, for this purpose, repeatedly circulation conversion, is changed to CMMB for the higher PS circulation of play quality to realize Program stream.
Embodiment 5
As shown in fig. 6, it includes mutually communication that the embodiment of the present invention 5, which further defines the data stream module 201, Search unit 2011, reading unit 2012, judging unit 2013, resolution unit 2014, construction unit 2015, described search list Member 2011 searches for the synchronous head of TS packet in the TS stream for obtaining TS stream;The reading unit 2012 is used for from the synchronization Head starts to be successively read the TS packet, obtains the corresponding PID of TS packet;The judging unit 2013 is for judging the PID Type, if the judging unit 2013 judges the PID for the PID in pat table, the resolution unit 2014 is used for The pat table is parsed, obtains the PID in PMT, while the reading unit 2012 reads the Data Concurrent in the TS packet It send to the construction unit 2015, the construction unit 2015 forms PS packet for constructing PES packet and PS header data;If The judging unit 2013 judges the PID for the PID in the pmt table, then the resolution unit 2014 is for parsing The pmt table obtains the PID of each data flow in the TS packet, while the reading unit 2012 reads the number in the TS packet According to and be sent to the construction unit 2015, the construction unit 2015 is for constructing the PES packet and PS header data, i.e. shape At the structure type of PS packet, higher play quality is improved thus.
As shown in fig. 7, the present invention further defines data stream module 201 for TS circulation to be changed to PS stream, lead to Crossing search unit 2011, reading unit 2012, judging unit 2013, resolution unit 2014 and construction unit 2015 can be by TS number Whole code is carried out by way of PS agreement according to the data of stream,
It should be further noted that the change server 2 further includes image capture module 207, the mould mutually communicated Processing module 208, encrypting module 209, sending module 210 are pasted, described image acquisition module 207 is for obtaining the multiplexed frame Tableaux image;The Fuzzy Processing module is used to carry out Fuzzy Processing to the tableaux image, obtains blurred picture And error image;The encrypting module 209 is used for close according to the Encryption Algorithm and encryption negotiated in advance with the playback terminal 3 Key encrypts the error image of acquisition, generates encryption file;The sending module 210 is used for will be after image procossing The multiplexed frame and the encryption file of generation be sent to the playback terminal 3.
The present invention carries out Fuzzy Processing by still image of the Fuzzy Processing module 208 to video frame, and by treated Blurred picture and error image encryption after be sent to playback terminal 3, only when playback terminal 3 decrypt after could synthetic video, into And video is played, for this purpose, improving the safety of transmission of video, prevents video from arbitrarily downloading, plays, usurps, distorts.
As shown in Figure 8, it is preferred that the Fuzzy Processing module 208 includes the fuzzy image processing unit mutually communicated 2081, error image processing unit 2082, culling unit 2083;The fuzzy image processing unit 2081 is used to pass through image mould Paste algorithm carries out Fuzzy Processing to the tableaux image and obtains blurred picture;The error image processing unit 2082 is used for The tableaux image is subtracted into the blurred picture and obtains error image;The culling unit 2083 is used for by default Threshold values the error image is rejected into the lesser noise of area and background area to get to only containing the differential chart of picture area Picture.
The present invention is not limited to above-mentioned preferred forms, anyone can show that other are various under the inspiration of the present invention The product of form, however, make any variation in its shape or structure, it is all that there is skill identical or similar to the present application Art scheme, is within the scope of the present invention.

Claims (10)

1. a kind of conversion method of multiplexing protocols in broadcast network, which is characterized in that the conversion method the following steps are included:
S1, radio and television services device (1) receive playback terminal (3) to the playing request of target program, obtain TS stream;
S2, the radio and television services device (1) flow the TS according to scheduled mode transmission to change server (2);
TS circulation is changed to PS stream by S3, the change server (2), and is stored;
S4, according to the PS stream in packet identification, the PS stream in extract PES packet, the PES packet is by extension header and ES Packet composition, the ES packet are video elementary code stream packet or audio elementary stream packet;
S5, presentation time stamp or decoded time stamp are taken out out of the PES packet the extension header, and be converted into multiplexed frame Timestamp, the timestamp in the multiplexed frame is used to set the display time of video data or audio data;
S6, according to CMMB multiplex protocol, by the ES encapsulation be the institute of CMMB program according to the timestamp in the multiplexed frame State multiplexed frame.
2. the conversion method of multiplexing protocols in broadcast network as described in claim 1, which is characterized in that described pre- in step S2 Determining mode includes WIFI mode, wired mode, hot-spot mode.
3. the conversion method of multiplexing protocols in broadcast network as described in claim 1, which is characterized in that in step S3, described turn It changes server (2) and TS circulation is changed to PS stream, conversion method are as follows:
S3-1, TS stream is obtained, searches for the synchronous head of TS packet in the TS stream;
S3-2, it is successively read the TS packet since the synchronous head, obtains the corresponding PID of TS packet;
S3-3, the type for judging the PID, and handled:
If the PID is the PID in Program Association Table pat table, the pat table is parsed, is obtained in Program Map Table PMT The PID, read the data in the TS packet, building PES packet and PS header data, formation PS packet, execution step S3-4;
If the PID is the PID in the pmt table, the pmt table is parsed, each data flow in the TS packet is obtained PID reads the data in the TS packet, constructs the PES packet and PS header data, forms PS packet, executes step S3-4;
S3-4, circulation read the TS packet, and repeat step S3-2 and step S3-3, until end of data, that is, completing will be described TS circulation is changed to PS stream.
4. the conversion method of multiplexing protocols in broadcast network as described in claim 1, which is characterized in that the conversion method is also wrapped It includes:
The multiplexed frame after encapsulation is sent to the playback terminal (3) after encryption by S7, the change server (2);
After the multiplexed frame after S8, encapsulation is sent, step S1 is executed.
5. the conversion method of multiplexing protocols in broadcast network as claimed in claim 4, which is characterized in that described multiple in step S7 Include: with the encryption method of frame
S7-1, the tableaux image for obtaining the multiplexed frame;
S7-2, Fuzzy Processing is carried out to the tableaux image, obtains blurred picture and error image;S7-3, basis and institute The Encryption Algorithm and encryption key that playback terminal (3) is negotiated in advance are stated, the error image of acquisition is encrypted, generates and adds Ciphertext part;
S7-4, the encryption file of the multiplexed frame and generation after image procossing is sent to the playback terminal (3).
6. the conversion method of multiplexing protocols in broadcast network as claimed in claim 5, which is characterized in that in step S7-2, to adopting Collection the tableaux image carry out Fuzzy Processing specific method include:
1.: Fuzzy Processing is carried out to the tableaux image by image fuzzy algorithmic approach and obtains blurred picture, described image mould Paste algorithm is Gaussian Blur algorithm;
2.: the tableaux image is subtracted into the blurred picture and obtains error image;
3.: the error image is rejected to get to only containing by the lesser noise of area and background area by preset threshold value The error image of picture area.
7. a kind of converting system of multiplexing protocols in broadcast network, which is characterized in that including the radio and television services device mutually communicated (1), change server (2) and playback terminal (3), the radio and television services device (1) includes the receiving module mutually communicated (101), screening module (102), transmission module (103), the receiving module (101) are right for receiving the playback terminal (3) The playing request of target program;The screening module (102) is used to screen the TS stream of the target program;The transmission module (103) for flowing the TS according to scheduled mode transmission to the change server (2);
The change server (2) includes the data stream module (201) mutually communicated, memory module (202), extraction module (203), read module (204), timestamp conversion module (205), package module (206), the data stream module (201) For TS circulation to be changed to PS stream, and the PS stream after conversion is saved into the memory module (202);It is described to mention Modulus block (203) is used to extract PES packet in PS stream, the PES packet is by extending according to the packet identification in PS stream Packet header and ES packet composition, the ES packet are video elementary code stream packet or audio elementary stream packet;The read module (204) is used for Presentation time stamp or decoded time stamp are read out of the PES packet the extension header, and are sent to the timestamp conversion Module (205), the timestamp conversion module (205) are used to for presentation time stamp or decoded time stamp being converted into multiplexed frame Timestamp, the timestamp in the multiplexed frame are used to set the display time of video data or audio data;The package module It (206) by the ES encapsulation is CMMB program according to the timestamp in the multiplexed frame for according to CMMB multiplex protocol The multiplexed frame.
8. the converting system of multiplexing protocols in broadcast network as claimed in claim 7, which is characterized in that the stream compression mold changing Block (201) includes the search unit (2011) mutually communicated, reading unit (2012), judging unit (2013), resolution unit (2014), construction unit (2015), described search unit (2011) search for the synchronization of TS packet in the TS stream for obtaining TS stream Head;It is corresponding to obtain the TS packet for being successively read the TS packet since the synchronous head for the reading unit (2012) PID;The judging unit (2013) is used to judge the type of the PID, if the judging unit (2013) judges that the PID is The PID in Program Association Table pat table, then the resolution unit (2014) obtains program map for parsing the pat table The PID in table PMT, while the reading unit (2012) reads the Data Concurrent in the TS packet and send to the building list First (2015), the construction unit (2015) form PS packet for constructing PES packet and PS header data;If the judgement is single First (2013) judge the PID for the PID in the pmt table, then the resolution unit (2014) is for parsing the PMT Table obtains the PID of each data flow in the TS packet, while the reading unit (2012) reads the Data Concurrent in the TS packet It send to the construction unit (2015), the construction unit (2015) is formed for constructing the PES packet and PS header data PS packet.
9. the converting system of multiplexing protocols in broadcast network as claimed in claim 7, which is characterized in that the change server It (2) further include the image capture module (207) mutually communicated, Fuzzy Processing module (208), encrypting module (209), sending module (210), described image acquisition module (207) is used to obtain the tableaux image of the multiplexed frame;The Fuzzy Processing module For carrying out Fuzzy Processing to the tableaux image, blurred picture and error image are obtained;The encrypting module (209) is used According to the Encryption Algorithm and encryption key negotiated in advance with the playback terminal (3), the error image of acquisition is carried out Encryption generates encryption file;The sending module (210) be used for by after image procossing the multiplexed frame and generation described in Encryption file is sent to the playback terminal (3).
10. the converting system of multiplexing protocols in broadcast network as claimed in claim 9, which is characterized in that the Fuzzy Processing mould Block (208) includes the fuzzy image processing unit (2081) mutually communicated, error image processing unit (2082), culling unit (2083);The fuzzy image processing unit (2081) is used to carry out mould to the tableaux image by image fuzzy algorithmic approach Paste handles to obtain blurred picture;The error image processing unit (2082) is used to the tableaux image subtracting the mould Paste image obtains error image;The culling unit (2083) is used to that the error image to be rejected face by preset threshold value The lesser noise of product and background area are to get to only containing the error image of picture area.
CN201611264460.0A 2016-12-30 2016-12-30 A kind of conversion method and system of multiplexing protocols in broadcast network Active CN106657113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264460.0A CN106657113B (en) 2016-12-30 2016-12-30 A kind of conversion method and system of multiplexing protocols in broadcast network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264460.0A CN106657113B (en) 2016-12-30 2016-12-30 A kind of conversion method and system of multiplexing protocols in broadcast network

Publications (2)

Publication Number Publication Date
CN106657113A CN106657113A (en) 2017-05-10
CN106657113B true CN106657113B (en) 2019-07-05

Family

ID=58838365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264460.0A Active CN106657113B (en) 2016-12-30 2016-12-30 A kind of conversion method and system of multiplexing protocols in broadcast network

Country Status (1)

Country Link
CN (1) CN106657113B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106941612A (en) * 2017-03-08 2017-07-11 南京邦众电子商务有限公司 Method and system based on broadcasting and TV movement, DTV wirelessly transmitting data
CN106936823A (en) * 2017-03-08 2017-07-07 南京邦众电子商务有限公司 Packaging method based on broadcasting and TV movement, DTV wirelessly transmitting data
CN108566552B (en) * 2018-04-20 2021-05-25 四川长虹网络科技有限责任公司 Multimedia playing method and system suitable for digital set top box
CN110798731A (en) * 2019-11-15 2020-02-14 北京字节跳动网络技术有限公司 Video data processing method and device, electronic equipment and computer readable medium
CN112272316B (en) * 2020-10-29 2022-06-24 广东博华超高清创新中心有限公司 Multi-transmission code stream synchronous UDP distribution method and system based on video display timestamp
CN115412741A (en) * 2022-08-31 2022-11-29 北京奇艺世纪科技有限公司 Data packaging method, data analyzing method, data packaging device, data analyzing device, electronic equipment and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100479529C (en) * 2006-09-30 2009-04-15 中兴通讯股份有限公司 Conversion method of multiplexing protocols in broadcast network
CN101179738B (en) * 2006-11-08 2010-12-01 中兴通讯股份有限公司 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol
US8160088B2 (en) * 2007-03-15 2012-04-17 Maindata, Spol, S.R.O. Way of bandwidth efficient distribution of multiple transport streams with partially same content
CN102316375A (en) * 2010-06-30 2012-01-11 凌阳科技股份有限公司 Audio and video play device, and audio and video data converter and method thereof
CN103596043B (en) * 2013-11-14 2017-05-10 上海电力学院 Method for converting TS into PS in digital television
CN106034258A (en) * 2015-03-13 2016-10-19 杭州云链网络技术有限公司 Router and broadcasting method for multipath broadcast digital television signals

Also Published As

Publication number Publication date
CN106657113A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106657113B (en) A kind of conversion method and system of multiplexing protocols in broadcast network
US11445228B2 (en) Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal
US10728591B2 (en) Method of configuring and transmitting an MMT transport packet
CN108881927B (en) Video data synthesis method and device
CA3122639C (en) Method and apparatus for transmitting media data in multimedia transport system
US11206436B2 (en) Transmitting method of transmitting hierarchically encoded data
US20150181003A1 (en) Method and apparatus for transmitting and receiving packets in hybrid transmission service of mmt
EP3340636A1 (en) Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method and broadcast signal reception method
CN102868939A (en) Method for synchronizing audio/video data in real-time video monitoring system
US10536665B2 (en) Device for transmitting broadcast signal, device for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal
CN106331853B (en) Multimedia de-encapsulation method and device
CN107147916A (en) A kind of method for transmitting H.265 encoded video data on the level of the transport layer
US10412422B2 (en) Apparatus for transmitting broadcasting signal, apparatus for receiving broadcasting signal, method for transmitting broadcasting signal, and method for receiving broadcasting signal
KR102098723B1 (en) Method configuring and transmitting mmt transport packet
KR102818747B1 (en) Broadcast signal transmitting device, broadcast signal receiving device, broadcast signal transmitting method and broadcast signal receiving method
EP1967008A2 (en) Video encoding and decoding
KR101941781B1 (en) Method and Apparatus for Receiving 8K Broadcasting based on MMT
US20210195254A1 (en) Device for transmitting broadcast signal, device for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal
JP2013150147A (en) Encryption device, decryption device, encryption program, and decryption program
CN109743627B (en) Playing method of digital movie package based on AVS + video coding
CN109274995A (en) A method of ensureing that IPTV content safety broadcasts
KR100710393B1 (en) Decoding method of compressed stream
CN108322778B (en) Method and device for increasing scrambling speed of DVB data stream
CN109561345B (en) Digital movie packaging method based on AVS + coding format
CN110719244B (en) Media transmission method and system under heterogeneous network

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A conversion method and system of broadcast network multiplexing protocol

Effective date of registration: 20210622

Granted publication date: 20190705

Pledgee: Beijing culture science and technology financing Company limited by guarantee

Pledgor: CBC CLOUD TECHNOLOGY Co.,Ltd.

Registration number: Y2021980005035

PE01 Entry into force of the registration of the contract for pledge of patent right