CN106657113A - Method and system for converting broadcasting network multiplexing protocol - Google Patents

Method and system for converting broadcasting network multiplexing protocol Download PDF

Info

Publication number
CN106657113A
CN106657113A CN201611264460.0A CN201611264460A CN106657113A CN 106657113 A CN106657113 A CN 106657113A CN 201611264460 A CN201611264460 A CN 201611264460A CN 106657113 A CN106657113 A CN 106657113A
Authority
CN
China
Prior art keywords
bags
module
image
pid
stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611264460.0A
Other languages
Chinese (zh)
Other versions
CN106657113B (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 invention provides a method and system for converting a broadcasting network multiplexing protocol. The method comprises the following steps: obtaining a TS stream; transmitting the TS stream to a conversion server according to a preset mode; converting the TS stream into a PS stream by the conversion server, and storing the PS stream; extracting a PES packet from the PS stream according to a packet identifier in the PS stream; extracting a display timestamp or a decoding timestamp from an expansion packet header of the PES packet, and converting the timestamp into a timestamp in a multiplexing frame; and packaging the ES into a multiplexing frame of a CMMB program according to the timestamp with reference to a CMMB multiplexing protocol. By adoption of the method and system provided by the invention, the TS stream can be converted into the PS stream to satisfy the playing requirements of users for audio and videos, the playing definition of the audio and videos is relatively high, in addition, the PS stream can also be converted into the CMMB program, thereby satisfying the watching demands of users of mobile terminals and effectively improving 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, more particularly to a kind of conversion side of multiplexing protocols in broadcast network Method and system.
Background technology
With the development of the communication technology, the application of China mobile multi-media broadcasting technology is more and more wider.At present, many matchmakers of China Mobile Body broadcast system is (referred to as:CMMB) standard is defined in broadcasting service frequency range, mobile multimedia broadcast system broadcast letter Frame structure, Channel Coding and Modulation of road transmission signal etc..Specify in CMMB standards, video, audio frequency are encapsulated using multiplexed frame Transmitted Deng stream medium data, realize and see on mobile terminals TV.
The air-data of system transmitting, is divided into different channels, and the data of each channel include again:Video, audio frequency and Assistance data three types, terminal can receive the data of correlation, by the player in terminal, realize normally broadcasting for TV Put.
Air-launched data form has a variety of multiplex protocols, and most common of which is TS (transport stream) mode, and TS is assisted View is the one kind in MPEG (Motion Picture Experts Group) standard, and it is placed on one and fixes 188 words assistance data, video, audio frequency Transmit in the TS bags of section size, the reproduction time of each video block is included in TS bags, to ensure the normal play of video/audio, But at present the TS programs in existing television network broadcast cannot also be directly translated into CMMB programs, therefore cannot be by mobile whole Program is watched on end.For this purpose, existing number of patent application is that a kind of transport stream disclosed in 200610138266.8 is more to China Mobile The conversion method of media broadcast multiplex protocol, the method achieves the program that TS programs are directly changed into CMMB multiplex protocols, Effectively realizing can on mobile terminals watch TS programs.But in that patent, TS bags are not easy to lose in conversion process Bag, but program broadcast quality is poor, can only realize CMMB programs, it is impossible to the compatibility of PS programs is realized, practicality is not enough, is This, being badly in need of exploitation one kind can realize that for TS programs PS streams can not only be converted to, it is also possible to for being converted to CMMB programs The conversion method and system of the multiplexing protocols in broadcast network of compatibility conversion.
The content of the invention
TS bags are not easy packet loss in conversion process in order to solve prior art, but program broadcast quality is poor, only CMMB programs can be realized, it is impossible to the problems such as realizing the compatibility of PS programs, practicality deficiency, the invention provides one kind can be real Now TS programs can not only be converted to into PS streams, it is also possible to which the radio network for being converted to the compatibility conversion of CMMB programs is answered With the conversion method and system of agreement.
Concrete technical scheme of the present invention is as follows:
The invention provides a kind of conversion method of multiplexing protocols in broadcast network, the conversion method is comprised the following steps:
S1, radio and television services device receive playing request of the playback terminal to target program, obtain TS streams;
S2, the radio and television services device flow the TS according to scheduled mode transmission to the change server;
TS circulations are changed to PS streams by S3, the change server, and are stored;
S4, according to the PS stream in group character, the PS stream in extract PES bags, the PES bags are by extension header With ES bags composition, the ES bags are video elementary code stream bag or audio elementary stream bag;
S5, take out from the extension header of the PES bags and represent timestamp or decoded time stamp, and be converted into multiplexing Timestamp in frame, the timestamp is used to set the display time of video data or voice data;
S6, according to CMMB multiplex protocols, according to the timestamp by the ES encapsulations for CMMB programs the multiplexing Frame.
Further, in step S2, the predetermined way includes WIFI modes, wired mode, hot-spot mode.
Further, in step S3, TS circulations are changed to PS streams by the change server, and conversion method is:
S3-1, acquisition TS streams, search for the synchronous head of TS bags in the TS streams;
S3-2, start to be successively read the TS bags from the synchronous head, obtain the corresponding PID of the TS bags;
S3-3, judge the type of the PID, and processed:
If the PID is the PID in pat table, the pat table is parsed, obtain the PID in PMT, read institute The data in TS bags are stated, PES bags and PS header datas is built, PS bags, execution step S3-4 is formed;
If the PID is the PID in the pmt table, the pmt table is parsed, obtain each data in the TS bags The PID of stream, reads the data in the TS bags, builds the PES bags and PS header datas, forms PS bags, execution step S3-4;
S3-4, circulation read the TS bags, and repeat step S3-2 and step S3-3, until ED, that is, complete by The TS circulations are changed to PS streams.
Further, the conversion method also includes:
S7, the change server by encapsulation after the multiplexed frame send after encryption to the playback terminal;
After the multiplexed frame after S8, encapsulation sends, execution step S1.
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, obtain blurred picture and error image;
AES and encryption key that S7-3, basis are consulted in advance with the playback terminal, the difference that will be obtained Image is encrypted, and generates encryption file;
S7-4, by image procossing after the multiplexed frame and the encryption file of generation send to described and play eventually End.
Preferably, in step S7-2, the concrete grammar that the tableaux image to gathering carries out Fuzzy Processing includes:
①:Fuzzy Processing is carried out to the tableaux image by image blurring algorithm and obtains blurred picture, the mould Paste image algorithm is Gaussian Blur algorithm;
②:The tableaux image is deducted into the blurred picture and obtains error image;
③:The less noise of area and background area will be rejected by default threshold values in the error image, that is, obtained The only error image containing picture area.
Present invention also offers a kind of converting system of multiplexing protocols in broadcast network, including the radio and television services for communicating Device, change server and playback terminal, the radio and television services device includes receiver module, screening module, the biography of mutually communication Defeated module, the receiver module is used to receive playing request of the playback terminal to target program;The screening module is used for Screen the TS streams of the target program;The transport module is used for TS streams according to scheduled mode transmission to the conversion clothes Business device;
The change server includes mutually the data stream module of communication, memory module, extraction module, reading mould Block, timestamp modular converter, package module, the data stream module is used to for TS circulations to be changed to PS streams, and will turn PS streams after changing are preserved into the memory module;The extraction module is used for according to the group character in PS streams, PES bags are extracted in PS streams, the PES bags are made up of extension header and ES bags, the ES bags are video elementary code stream bag Or audio elementary stream bag;The read module be used for from the extension header of the PES bags reading represent timestamp or Decoded time stamp, and send to the timestamp modular converter, the timestamp modular converter is used to that timestamp or solution will to be represented Code timestamp is converted into the timestamp in multiplexed frame;The package module is used for according to CMMB multiplex protocols, according to the time Stab by the ES encapsulations for CMMB programs the multiplexed frame.
Further, the data stream module includes search unit, reading unit, judging unit, the solution for communicating Analysis unit, construction unit, the search unit is used to obtain TS streams, searches for the synchronous head of TS bags in the TS streams;The reading Unit is used to from the synchronous head start to be successively read the TS bags, obtains the corresponding PID of the TS bags;The judging unit is used In the type for judging the PID, if the PID during the judging unit judges the PID for pat table, the parsing is single Unit obtains the PID in PMT for parsing the pat table, while the data in the reading unit reading TS bags are simultaneously Send to the construction unit, the construction unit is used to build PES bags and PS header datas, that is, form PS bags;If described sentence PID described in disconnected unit judges is the PID in the pmt table, then the resolution unit is used to parse the pmt table, obtains The PID of each data flow in the TS bags, while the Data Concurrent that the reading unit is read in the TS bags delivers to the structure Unit, the construction unit is used to build the PES bags and PS header datas, that is, form PS bags.
Further, the change server also includes image capture module, Fuzzy Processing module, the encryption mould for communicating Block, sending module, described image acquisition module is used to obtain the tableaux image of the multiplexed frame;The resume module module For carrying out Fuzzy Processing to the tableaux image, blurred picture and error image are obtained;The encrypting module is used for root According to the AES and encryption key consulted in advance with the playback terminal, the error image for obtaining is encrypted, it is raw Into encryption file;The sending module be used for by image procossing after the multiplexed frame and generation the encryption file send To the playback terminal.
Preferably, the Fuzzy Processing module include communicate fuzzy image processing unit, error image processing unit, Culling unit;The fuzzy image processing unit is used to carry out the tableaux image at fuzzy place by image blurring algorithm Reason obtains blurred picture;The error image processing unit is obtained final product for the tableaux image to be deducted into the blurred picture To error image;The culling unit be used for by default threshold values will reject in the error image the less noise of area and Background area, that is, obtain the only error image containing picture area.
Beneficial effects of the present invention are as follows:The present invention is used not only for for TS flow datas being converted to PS streams, meets user Playing request to audio frequency and video, the broadcasting definition of audio frequency and video is higher, it is also possible to by the way that PS circulations are changed to CMMB programs, while meeting the viewing demand of the user of mobile terminal, effectively improve in program by the compatibility of protocol conversion Property.
Description of the drawings
Fig. 1 is a kind of method flow schematic diagram of the conversion method of the multiplexing protocols in broadcast network described in embodiment 1;
Fig. 2 be embodiment 2 described in a kind of multiplexing protocols in broadcast network conversion method in step S3 schematic flow sheet;
Fig. 3 be embodiment 3 described in a kind of multiplexing protocols in broadcast network conversion method in step S7 schematic flow sheet;
Fig. 4 is a kind of structural representation of the converting system of the multiplexing protocols in broadcast network described in embodiment 4;
Fig. 5 is a kind of structured flowchart of the converting system of the multiplexing protocols in broadcast network described in embodiment 4;
Fig. 6 be embodiment 5 described in a kind of multiplexing protocols in broadcast network converting system in data stream module knot Structure block diagram;
Fig. 7 is a kind of structured flowchart of the converting system of the multiplexing protocols in broadcast network described in embodiment 5;
Fig. 8 be embodiment 5 described in a kind of multiplexing protocols in broadcast network converting system in obscure processing module structure Block diagram.
Wherein:1st, radio and television services device;101st, receiver module;102nd, screening module;103rd, transport module;2nd, conversion clothes Business device;201st, data stream module;2011st, search unit;2012nd, reading unit;2013rd, judging unit;2014th, parse single Unit;2015th, construction unit;202nd, memory module;203rd, extraction module;204th, read module;205th, timestamp modular converter; 206th, package module;207th, image capture module;208th, Fuzzy Processing module;2081st, fuzzy image processing unit;2082nd, it is poor Value graphics processing unit;2083rd, culling unit;209th, encrypting module;210th, sending module;3rd, playback terminal.
Specific embodiment
Below in conjunction with the accompanying drawings the present invention is described in further detail with following examples.
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 is comprised the following steps:
S1, radio and television services device 1 receive playing request of the playback terminal 3 to target program, obtain TS streams;Basis first The playing request of program obtains TS streams, and TS streams are transport stream, and the PS streams are program stream.
S2, the radio and television services device 1 flow the TS according to scheduled mode transmission to the change server 2;
TS circulations are changed to PS streams by S3, the change server 2, and are stored;PS streams are turned to for TS circulations, Exactly the structure that the PES bags of recovery flow according to PS again is packed again, TS flows and is with the difference of PS streams, the inclusion of TS streams Structure is regular length, and the pack arrangement of PS streams is variable-length.Although TS stream for transmission error code have very strong opposing Ability, but its play quality flows far below PS, therefore, in order to improve play quality, TS circulations can be turned to PS streams, then Play out, of course for realizing that mobile terminal can watch the higher audio frequency and video of play quality, can be by PS circulationizations For CMMB programs.
S4, according to the group character PID in PS streams, extract PES bags in PS streams, the PES bags are by extending Packet header and ES bags are constituted, and the ES bags are video elementary code stream bag or audio elementary stream bag;ES streams are elementary stream, are not segmented Audio frequency, video or other information continuous bit stream, ES bags be some stream packet data composition;PES streams are the segmentation of basic flow ES The packetized elementary stream code stream being packed into into section and plus corresponding header file, the PES streams are made up of some PES bags.
After PES bags are extracted, judge whether to obtain a complete PES bag, according to the instruction of PS extension headers, judge multiple Whether PS can constitute a complete PES bag, if it is carry out step S5, if it is not, then continuing to extract PES bags.
S5, take out from the extension header of the PES bags and represent timestamp PTS or decoded time stamp DTS, and change Into the timestamp in multiplexed frame, the timestamp is used to set the display time of video data or voice data, realizes video Or the synchronization that audio frequency is played;
S6, according to CMMB multiplex protocols, according to the timestamp by the ES encapsulations for CMMB programs the multiplexing Frame.The ES bags are judged for audio pack or video bag, if audio pack is inserted sound by audio pack then according to CMMB multiplex protocols Frequency unit, if video bag, then according to CMMB multiplex protocols, by video bag video unit is inserted, and is encapsulated as answering for CMMB programs Use frame.
It should be noted that in step S2, the predetermined way includes WIFI modes, wired mode, hot-spot mode.
The present invention is initially used for for TS circulations turning to PS streams, and the high definition for then realizing PS flow data audio frequency and video is played, then In order to meet the demand of mobile terminal, high-quality PS flow datas are converted into into CMMB programs, to meet the demand of mobile terminal. The present invention can realize the compatibility of TS, PS and CMMB, effectively meet the broadcasting demand of different playback terminals 3, and range of application is more Extensively.
Embodiment 2
As shown in Fig. 2 the embodiment of the present invention 2 defines how TS streams are converted to PS streams, TS streams on the basis of embodiment 1 Form is:TS heads (4 byte) and TS data (184 byte).TS heads are:Synchronous (1 byte) is 47, and error of transmission indicates (1), Load starts to indicate (1) that transmission priority (1), PID (13), control extension (2), adjustment field controls (2), Identical PIDTS bags count (4), totally 4 byte, therefore when analyzing conversion TS streams it may first have to synchronous head is found, then according to not Same PID carries out different process for each TS bag.In step S3, TS circulations are changed to PS by the change server 2 Flow, conversion method is:
S3-1, acquisition TS streams, search for the synchronous head of TS bags in the TS streams;
S3-2, start to be successively read the TS bags from the synchronous head, obtain the corresponding PID of the TS bags;
S3-3, judge the type of the PID, and processed:
If the PID is the PID in pat table, the pat table is parsed, obtain the PID in PMT, read institute The data in TS bags are stated, PES bags and PS header datas is built, PS bags, execution step S3-4 is formed;
If the PID is the PID in the pmt table, the pmt table is parsed, obtain each data in the TS bags The PID of stream, reads the data in the TS bags, builds the PES bags and PS header datas, forms PS bags, execution step S3-4;
If PID is Vi_PID, the data in the TS bags are read, and preserved to buffering area, judge a frame image data Whether terminate, if so, then build PES, PS header data, form PS bags, eliminate respective cache, execution step S3-4;
If PID is Ai_PID, direct copying component PES, PS header data, PS bags are formed;
If PID is sky PID, the TS bags, execution step S3-4 are directly abandoned;
If PID is other PID, corresponding PES and PS bags, execution step S3-4 are built;
S3-4, circulation read the TS bags, and repeat step S3-2 and step S3-3, until ED, that is, complete by The TS circulations are changed to PS streams.
During conversion, TS bags are filtered first, retain audio frequency, the video flowing corresponding to the program to be stored, delete it Its bag, then fabricates new PAT, a pmt table, and its sound intermediate frequency, the pointer of video must be directed at audio frequency, the video flowing for storing PID.
TS circulations are changed to by PS by said method and flow fairly simple, and the broadcasting matter of audio frequency and video can be effectively improved Amount.
Embodiment 3
As shown in figure 3, the embodiment of the present invention 3 is further defined on the basis of embodiment 1, the conversion method is also wrapped Include:
S7, the change server 2 by encapsulation after the multiplexed frame send after encryption to the playback terminal 3;
After the multiplexed frame after S8, encapsulation sends, execution step S1.
By the encryption to multiplexed frame, can effectively prevent CMMB programs by piracy, distort, effectively increase The security of CMMB programs.
Need it is 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, obtain blurred picture and error image;Specifically, lead to Cross image blurring algorithm the tableaux image is carried out Fuzzy Processing obtain image fuzzy data be blurred picture, will The data of the original tableaux image deduct the data that the data of the blurred picture obtain the error image, During storage, the blurred picture and the error image are stored together.
AES and encryption key that S7-3, basis are consulted in advance with the playback terminal 3, the difference that will be obtained Image is encrypted, and generates encryption file;
S7-4, by image procossing after the multiplexed frame and the encryption file of generation send to the playback terminal 3。
The present invention is same fuzzy after then error image is encrypted by the way that the picture of multiplexed frame has been carried out into Fuzzy Processing Blurred picture after process is sent together to playback terminal 3, after the file after 3 pairs of encryptions of playback terminal is decrypted, then will be poor Value image and blurred picture synthesize the video of before processing, therefore carry out video playback.
The method that the present invention is provided is not only simple, and can be prevented effectively from video by it is pirate, distort, it is by video The process of frame picture, carries out effective protection, for this purpose, by the method achieving to the effective of video to the tableaux of multiplexed frame Encryption, prevents video from being revealed by video in transmitting procedure, and only being synthesized again by video could form effective video.
Preferably, in step S7-2, the concrete grammar that the tableaux image to gathering carries out Fuzzy Processing includes:
①:Fuzzy Processing is carried out to the tableaux image by image blurring algorithm and obtains blurred picture, the mould Paste image algorithm is Gaussian Blur algorithm;Wherein, Gaussian Blur is at an image of Adobe image softwares company of U.S. exploitation Reason software:A filter in Adobe Photoshop (series), in the principle of Gaussian Blur, it is adjusted according to Gaussian curve Section pixel colour, it is selectively blurred picture, that is, Gaussian Blur can be the pixel colour around certain point by height This curve statistical gets up, and using mathematically average weighted computational methods the colour of this curve is obtained, and can finally leave people The profile of thing, i.e. curve.
②:The tableaux image is deducted into the blurred picture and obtains error image;By tableaux image Data deduct the data that the data of the blurred picture obtained after Gaussian Blur is processed obtain error image;
③:The less noise of area and background area will be rejected by default threshold values in the error image, that is, obtained The only error image containing picture area.Error image is carried out into noise and background area divides and rejecting, i.e., only contained Personage or the error image of concrete picture area, the image is 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 communicating The radio and television services device 1 of news, change server 2 and playback terminal 3.
As shown in figure 5, the radio and television services device 1 includes the mutually receiver module 101 of communication, screening module 102, biography Defeated module 103, the receiver module 101 is used to receive playing request of the playback terminal 3 to target program;The screening mould Block 102 is used to screen the TS streams of the target program;The transport module 103 is used to the TS is flowed according to scheduled mode transmission To the change server 2.
Radio and television services device 1 is used to send video flowing, in order to meet the demand of user, needs video flowing is continuous After TS agreements, PS agreements or CMMB protocol conversions, be sent to playback terminal 3, the broadcasting demand of user is met for this.
The change server 2 includes data stream module 201, the memory module 202, extraction module of mutually communication 203rd, read module 204, timestamp modular converter 205, package module 206, the data stream module 201 is used for will be described TS circulation be changed to PS stream, and by conversion after the PS stream preserve into the memory module 202;The extraction module 203 is used Group character according to PS streams, in the PS streams PES bags are extracted, and the PES bags are by extension header and ES packages Into the ES bags are video elementary code stream bag or audio elementary stream bag;The read module 204 is used for from the PES bags Read in the extension header and represent timestamp or decoded time stamp, and send to the timestamp modular converter 205, when described Between stab the timestamp that modular converter 205 is used to that timestamp will to be represented or decoded time stamp is converted in multiplexed frame;The Encapsulation Moulds Block 206 is used for according to CMMB multiplex protocols, according to the timestamp by the ES encapsulations for CMMB programs the multiplexed frame.
The system that the present invention is provided can effectively be realized for TS stream programs being converted to PS streams, can not only meet user to PS The demand of stream program, and the play quality that relative TS flows program is higher, additionally, the need of the user in order to meet mobile terminal Ask, PS can be flowed the multiplexed frame that program is converted to CMMB programs by the 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, it is achieved thereby that the higher PS circulations of play quality are changed to into CMMB Program stream.
Embodiment 5
As shown in fig. 6, the embodiment of the present invention 5 further defines the data stream module 201 includes what is communicated Search unit 2011, reading unit 2012, judging unit 2013, resolution unit 2014, construction unit 2015, the search unit 2011 are used to obtain TS streams, search for the synchronous head of TS bags in the TS streams;The reading unit 2012 is used for from the synchronous head Start to be successively read the TS bags, obtain the corresponding PID of the TS bags;The judging unit 2013 is used to judge the PID's Type, if the PID during the judging unit 2013 judges the PID for pat table, the resolution unit 2014 is used to solve The pat table is analysed, the PID in PMT is obtained, while the Data Concurrent that the reading unit 2012 is read in the TS bags send To the construction unit 2015, the construction unit 2015 is used to build PES bags and PS header datas, that is, form PS bags;If institute State judging unit 2013 and judge that the PID is the PID in the pmt table, then the resolution unit 2014 is used to parse institute Pmt table is stated, the PID of each data flow in the TS bags is obtained, while the reading unit 2012 reads the data in the TS bags And send to the construction unit 2015, the construction unit 2015 is used to build the PES bags and PS header datas, that is, formed The version of PS bags, higher play quality is improve for this.
As shown in fig. 7, the present invention further defines data stream module 201 for TS circulations to be changed to into PS streams, 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 the form of PS agreements according to the data of stream,
Need it is further noted that the change server 2 also includes the image capture module 207 for communicating, obscures Processing module 208, encrypting module 209, sending module 210, described image acquisition module 207 is used to obtain the quiet of the multiplexed frame State picture image;The resume module module be used for Fuzzy Processing is carried out to the tableaux image, obtain blurred picture and Error image;The encrypting module 209 is used for according to the AES and encryption key consulted in advance with the playback terminal 3, The error image for obtaining is encrypted, encryption file is generated;The sending module 210 is used for the institute after image procossing The encryption file for stating multiplexed frame and generation is sent to the playback terminal 3.
The present invention carries out Fuzzy Processing to the still image of frame of video by Fuzzy Processing module 208, and by after process Blurred picture and error image encryption after be sent to playback terminal 3, only after playback terminal 3 is decrypted could synthetic video, enter And video is played, for this purpose, improve the security of transmission of video, prevent video from arbitrarily downloading, play, usurp, distort.
As shown in Figure 8, it is preferred that the Fuzzy Processing module 208 include communicate fuzzy image processing unit 2081, Error image processing unit 2082, culling unit 2083;The fuzzy image processing unit 2081 is used for by image blurring calculation Method carries out Fuzzy Processing and obtains blurred picture to the tableaux image;The error image processing unit 2082 is used for institute State tableaux image and deduct the blurred picture and obtain error image;The culling unit 2083 is used to pass through default valve Value will reject the less noise of area and background area in the error image, that is, obtain the only differential chart containing picture area Picture.
The present invention is not limited to above-mentioned preferred forms, and anyone can show that other are various under the enlightenment of the present invention The product of form, however, make any change in its shape or structure, it is every with 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, it is characterised in that the conversion method is comprised the following steps:
S1, radio and television services device (1) receive playing request of the playback terminal (3) to target program, obtain TS streams;
S2, the radio and television services device (1) flow the TS according to scheduled mode transmission to the change server (2);
TS circulations are changed to PS streams by S3, the change server (2), and are stored;
S4, according to the PS stream in group character, the PS stream in extract PES bags, the PES bags are by extension header and ES Bag composition, the ES bags are video elementary code stream bag or audio elementary stream bag;
S5, take out from the extension header of the PES bags and represent timestamp or decoded time stamp, and be converted in multiplexed frame Timestamp, the timestamp is used to set display time of video data or voice data;
S6, according to CMMB multiplex protocols, according to the timestamp by the ES encapsulations for CMMB programs the multiplexed frame.
2. the conversion method of multiplexing protocols in broadcast network as claimed in claim 1, it is characterised in that described pre- in step S2 Mode is determined including WIFI modes, wired mode, hot-spot mode.
3. the conversion method of multiplexing protocols in broadcast network as claimed in claim 1, it is characterised in that in step S3, described turn Change server (2) and TS circulations are changed to into PS streams, conversion method is:
S3-1, acquisition TS streams, search for the synchronous head of TS bags in the TS streams;
S3-2, start to be successively read the TS bags from the synchronous head, obtain the corresponding PID of the TS bags;
S3-3, judge the type of the PID, and processed:
If the PID is the PID in pat table, the pat table is parsed, obtain the PID in PMT, read the TS Data in bag, build PES bags and PS header datas, form PS bags, execution step S3-4;
If the PID is the PID in the pmt table, the pmt table is parsed, obtain each data flow in the TS bags PID, reads the data in the TS bags, builds the PES bags and PS header datas, forms PS bags, execution step S3-4;
S3-4, circulation read the TS bags, and repeat step S3-2 and step S3-3, until ED, that is, completing will be described TS circulations are changed to PS streams.
4. the conversion method of multiplexing protocols in broadcast network as claimed in claim 1, it is characterised in that the conversion method is also wrapped Include:
S7, the change server (2) by encapsulation after the multiplexed frame send after encryption to the playback terminal (3);
After the multiplexed frame after S8, encapsulation sends, execution step S1.
5. the conversion method of multiplexing protocols in broadcast network as claimed in claim 4, it is characterised in that described multiple in step S7 Included 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, obtain blurred picture and error image;
AES and encryption key that S7-3, basis are consulted in advance with the playback terminal (3), the differential chart that will be obtained As being encrypted, encryption file is generated;
S7-4, by image procossing after the multiplexed frame and the encryption file of generation send to the playback terminal (3).
6. the conversion method of multiplexing protocols in broadcast network as claimed in claim 5, it is characterised in that in step S7-2, to adopting The concrete grammar that the tableaux image of collection carries out Fuzzy Processing includes:
①:Fuzzy Processing is carried out to the tableaux image by image blurring algorithm and obtains blurred picture, the fuzzy graph As algorithm is Gaussian Blur algorithm;
②:The tableaux image is deducted into the blurred picture and obtains error image;
③:The less noise of area and background area will be rejected by default threshold values in the error image, i.e., only contained There is the error image of picture area.
7. a kind of converting system of multiplexing protocols in broadcast network, it is characterised in that including the radio and television services device for communicating (1), change server (2) and playback terminal (3), receiver module of the radio and television services device (1) including mutual communication (101), screening module (102), transport module (103), the receiver module (101) is right for receiving the playback terminal (3) The playing request of target program;The screening module (102) is flowed for the TS for screening the target program;The transport module (103) for by the TS flow according to scheduled mode transmission to the change server (2);
Data stream module (201), memory module (202), extraction module of the change server (2) including mutual communication (203), read module (204), timestamp modular converter (205), package module (206), the data stream module (201) For by the TS circulation be changed to PS stream, and by conversion after the PS stream preserve into the memory module (202);It is described to carry , for according to the group character in PS streams, in the PS streams PES bags being extracted, the PES bags are by extending for delivery block (203) Packet header and ES bags are constituted, and the ES bags are video elementary code stream bag or audio elementary stream bag;The read module (204) is used for Read from the extension header of the PES bags and represent timestamp or decoded time stamp, and send to timestamp conversion Module (205), the timestamp modular converter (205) is converted in multiplexed frame for will represent timestamp or decoded time stamp Timestamp;The package module (206) for according to CMMB multiplex protocols, being by the ES encapsulations according to the timestamp The multiplexed frame of CMMB programs.
8. the converting system of multiplexing protocols in broadcast network as claimed in claim 7, it is characterised in that the stream compression mold changing Block (201) includes search unit (2011), reading unit (2012), judging unit (2013), the resolution unit for communicating (2014), construction unit (2015), the search unit (2011) searches for the synchronization of TS bags in the TS streams for obtaining TS streams Head;The reading unit (2012) obtains the TS bags corresponding for starting to be successively read the TS bags from the synchronous head PID;The judging unit (2013) for judging the type of the PID, if the judging unit (2013) judges that the PID is The PID in pat table, then the resolution unit (2014) obtain the PID in PMT, together for parsing the pat table Shi Suoshu reading units (2012) read the Data Concurrent in the TS bags and deliver to the construction unit (2015), described to build list First (2015) form PS bags for building PES bags and PS header datas, that is,;If the judging unit (2013) judges the PID The PID in for the pmt table, then the resolution unit (2014) obtain each in the TS bags for parsing the pmt table The PID of data flow, while the Data Concurrent that the reading unit (2012) is read in the TS bags delivers to the construction unit (2015), the construction unit (2015) forms PS bags for building the PES bags and PS header datas, that is,.
9. the converting system of multiplexing protocols in broadcast network as claimed in claim 7, it is characterised in that the change server (2) image capture module (207), Fuzzy Processing module (208), encrypting module (209), the sending module for communicating also is included (210), described image acquisition module (207) is for obtaining the tableaux image of the multiplexed frame;The resume module module For carrying out Fuzzy Processing to the tableaux image, blurred picture and error image are obtained;The encrypting module (209) is used The AES consulted in advance with the playback terminal (3) in basis and encryption key, the error image for obtaining is carried out Encryption, generates encryption file;The sending module (210) is for described in the multiplexed frame after by image procossing and generation Encryption file is sent to the playback terminal (3).
10. the converting system of multiplexing protocols in broadcast network as claimed in claim 9, it is characterised in that the Fuzzy Processing mould Block (208) includes fuzzy image processing unit (2081), error image processing unit (2082), the culling unit for communicating (2083);The fuzzy image processing unit (2081) to the tableaux image by image blurring algorithm for carrying out mould Paste process obtains blurred picture;The error image processing unit (2082) by the tableaux image for deducting the mould Paste image obtains error image;The culling unit (2083) will reject for passing through default threshold values in the error image The less noise of area and background area, that is, obtain the only error image containing 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 true CN106657113A (en) 2017-05-10
CN106657113B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936823A (en) * 2017-03-08 2017-07-07 南京邦众电子商务有限公司 Packaging method based on broadcasting and TV movement, DTV wirelessly transmitting data
CN107734357A (en) * 2017-03-08 2018-02-23 南京邦众电子商务有限公司 Method and system based on broadcasting and TV movement, DTV wirelessly transmitting data
CN108566552A (en) * 2018-04-20 2018-09-21 四川长虹网络科技有限责任公司 Multi-medium play method and system suitable for top box of digital machine
CN110798731A (en) * 2019-11-15 2020-02-14 北京字节跳动网络技术有限公司 Video data processing method and device, electronic equipment and computer readable medium
CN112272316A (en) * 2020-10-29 2021-01-26 广东博华超高清创新中心有限公司 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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960501A (en) * 2006-09-30 2007-05-09 中兴通讯股份有限公司 Conversion method of multiplexing protocols in broadcast network
CN101179738A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol
US20100103950A1 (en) * 2007-03-15 2010-04-29 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
CN103596043A (en) * 2013-11-14 2014-02-19 上海电力学院 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960501A (en) * 2006-09-30 2007-05-09 中兴通讯股份有限公司 Conversion method of multiplexing protocols in broadcast network
CN101179738A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol
US20100103950A1 (en) * 2007-03-15 2010-04-29 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
CN103596043A (en) * 2013-11-14 2014-02-19 上海电力学院 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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936823A (en) * 2017-03-08 2017-07-07 南京邦众电子商务有限公司 Packaging method based on broadcasting and TV movement, DTV wirelessly transmitting data
CN107734357A (en) * 2017-03-08 2018-02-23 南京邦众电子商务有限公司 Method and system based on broadcasting and TV movement, DTV wirelessly transmitting data
CN108566552A (en) * 2018-04-20 2018-09-21 四川长虹网络科技有限责任公司 Multi-medium play method and system suitable for top box of digital machine
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
CN112272316A (en) * 2020-10-29 2021-01-26 广东博华超高清创新中心有限公司 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

Also Published As

Publication number Publication date
CN106657113B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN106657113A (en) Method and system for converting broadcasting network multiplexing protocol
KR101639358B1 (en) Transmission apparatus and method, and reception apparatus and method for providing 3d service using the content and additional image seperately transmitted with the reference image transmitted in real time
KR101764635B1 (en) Apparatus for transmitting braodcast signal, apparatus for recieivng broadcast signal, method for transmtiting broadcast signal and method for receiving broadcast signal
KR101764637B1 (en) Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal
CN104038844B (en) A kind of mobile live broadcast system based on the standards of MPEG 2
US20030046431A1 (en) Direct RTP delivery method and system over MPEG network
CN101179736B (en) Method for converting transmission stream program to China mobile multimedia broadcasting program
CN106331853B (en) Multimedia de-encapsulation method and device
CN106034258A (en) Router and broadcasting method for multipath broadcast digital television signals
CN107147916A (en) A kind of method for transmitting H.265 encoded video data on the level of the transport layer
WO2009006811A1 (en) A digital tv voting method, server and system
CN1972453B (en) A data flow packaging method of mobile multimedia broadcasting system
KR20180028546A (en) Broadcasting signal transmitting device, broadcasting signal receiving device, broadcasting signal transmitting method, and broadcasting signal receiving method
CN1972454A (en) Mobile multimedia broadcasting real-time traffic flow packaging method
US10412422B2 (en) Apparatus for transmitting broadcasting signal, apparatus for receiving broadcasting signal, method for transmitting broadcasting signal, and method for receiving broadcasting signal
CN100479529C (en) Conversion method of multiplexing protocols in broadcast network
CN106034259A (en) Router and broadcasting method for multipath broadcast digital television signals
MXPA01006991A (en) Sending progressive video sequences.
WO2008022499A1 (en) A packetting method of a mobile multimedia broadcasting real-time strame
JP2004537226A (en) System and method for broadcasting separately encoded signals over ATSC channels
KR102626634B1 (en) Broadcast signal transmitting device, broadcast signal receiving device, broadcast signal transmitting method, and broadcast signal receiving method
CN102256161A (en) Transmission method and equipment for OSD (On Screen Display) information
CN101179738B (en) Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol
WO2008043213A1 (en) A mobile multimedia broadcast system for enhancing transmission efficiency by using variable-length frame and thereof method
WO2008043212A1 (en) A method for transferring assistant data in mobile multi-media broadcast

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