CN102724232A - UDP-based network subtitle generator method and network subtitle generator system - Google Patents
UDP-based network subtitle generator method and network subtitle generator system Download PDFInfo
- Publication number
- CN102724232A CN102724232A CN2011101171070A CN201110117107A CN102724232A CN 102724232 A CN102724232 A CN 102724232A CN 2011101171070 A CN2011101171070 A CN 2011101171070A CN 201110117107 A CN201110117107 A CN 201110117107A CN 102724232 A CN102724232 A CN 102724232A
- Authority
- CN
- China
- Prior art keywords
- data
- frame
- view data
- packet
- captions
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 230000005540 biological transmission Effects 0.000 claims abstract description 23
- 230000003139 buffering effect Effects 0.000 claims description 6
- 238000003672 processing method Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a UDP-based network subtitle generator method and a network subtitle generator system. An extended UDP protocol is utilized; a sending terminal sends subtitle image data frames in a data packet mode to a receiving terminal; the receiving terminal combines the data packets into subtitle image data frames; and transmission of whole subtitle image is completed by frames. According to the invention, the provided network subtitle generator method and the network subtitle generator system replace a traditional subtitle generator method and a subtitle generator system, wherein the traditional method and the system rely on a way of utilization of an electrical signal and a switching platform, thereby reducing costs.
Description
Technical field
The present invention relates to fields such as Network Transmission, captions, particularly a kind of method and system of the network film titler based on udp protocol.
Background technology
Film titler linked to each other with cut bank through cable in the broadcast system of studio in the past; The real binary data of film titler has become the signal of telecommunication and has been transferred to cut bank through cable like this; Cut bank interacts caption signal and vision signal, broadcasts to be final tv effect.But cut bank equipment is very expensive, is badly in need of a kind of alternative method and reduces cost.
Udp protocol, promptly UDP is a kind of simple transport layer protocol, udp protocol is connectionless, and the re-transmission and the affirmation of data are not provided, and can improve efficiency of transmission.But udp protocol itself can not be handled the delay and jitter phenomenon in the transmission well, and the size that udp protocol also defines the packet of each transmission must not surpass 2048 bytes.Therefore need be according to the requirement expansion udp protocol of captions image transmission.
Summary of the invention
The invention provides a kind of method of the network film titler based on udp protocol, specifically may further comprise the steps:
Step 1: respectively apply for a transmit buffer at transmitting terminal and receiving terminal, the size of buffering area can satisfy the needs of the burst transmission of handling a frame captions view data.
Step 2: it is the captions view data of unit that transmitting terminal is cut into complete subtitle graphic with the frame, writes transmit buffer to a frame captions view data in order.
Step 3: it is decomposed into the plurality of data bag, makes the size of each packet be no more than 2048 bytes, be called a grouped data.
Step 4: each packet to a grouped data all adds a header packet information, has defined the IP address of frame width, vertical frame dimension degree and receiving terminal in the header packet information.
Step 5: use the udp protocol of expansion, send packet in order, after a grouped data is sent completion, the Reset semaphore of redispatching.
Step 6: receiving terminal writes the transmission buffer district with the packet that receives; When receiving the Reset semaphore, represent that a data grouping reception finishes, according to the inverse approach of step 3 to step 5; Reduce this frame captions view data, and send the Reset semaphore to transmitting terminal.
Step 7: transmitting terminal empties transmit buffer after receiving the ReSet semaphore, continues to send next frame captions view data, finishes up to the captions view data is all sent.
Step 8: each frame captions view data that receiving terminal will be received is merged into complete captions image.
The invention provides a kind of system of the network film titler based on udp protocol, comprising: transmitting terminal and receiving terminal.
Transmitting terminal also comprises:
The transmission buffer district, the size of buffering area can satisfy the needs of the burst transmission of handling a frame captions view data.
Data processing module; Function is that a frame captions view data is write transmit buffer; Then it is decomposed into the plurality of data bag, makes the size of each packet be no more than 2048 bytes, be called a grouped data; Each packet to a grouped data all adds a header packet information at last, has defined the IP address of frame width, vertical frame dimension degree and receiving terminal in the header packet information.
Data transmit-receive module: function is to use the udp protocol of expansion to send packet, and sends and receive the Reset semaphore.
Control module: function is the function of control data processing module, data transmit-receive module, and the frame information of recording caption view data is a frame etc. with complete data image cutting simultaneously.
Receiving terminal also comprises:
The transmission buffer district, size is identical with transmitting terminal transmission buffer district;
Data transmit-receive module: function is to receive packet, and sends and receive the Reset semaphore.
The data inverse processing module: function is to use the inverse approach of the processing method of transmitting terminal data processing module, the packet that receives is reduced to the captions view data of a frame.
Control module: function is control data transceiver module and data inverse processing module, the frame information of while recording caption view data etc., and each the frame captions view data that will receive is at last merged into complete captions image etc.
The invention provides a kind of method and system of the network film titler based on udp protocol, substituted the traditional caption machine method and system that leans on the signal of telecommunication and cut bank mode, reduced cost.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below.
Fig. 1 is the flow chart of the method for a kind of network film titler based on udp protocol of the present invention.
Fig. 2 is the structure chart of the system of a kind of network film titler based on udp protocol of the present invention.
Embodiment
To combine accompanying drawing below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description.
The embodiment of the invention provides a kind of method and system of the network film titler based on udp protocol, and as shown in Figure 1, the practical implementation step is following:
Step 1: respectively apply for a transmit buffer at transmitting terminal and receiving terminal, size is 65536 bytes, and the size of buffering area can satisfy the needs of the burst transmission of handling a frame captions view data like this.
Step 2: it is the captions view data of unit that transmitting terminal is cut into complete subtitle graphic with the frame, writes transmit buffer to a frame captions view data in order.
Step 3: it is decomposed into the plurality of data bag, makes the size of each packet be no more than 2048 bytes, be called a grouped data.
Step 4: each packet to a grouped data all adds a header packet information, has defined the IP address of frame width, vertical frame dimension degree and receiving terminal in the header packet information.
Step 5: use the udp protocol of expansion, send packet in order, after a grouped data is sent completion, the Reset semaphore of redispatching.
Step 6: receiving terminal writes the transmission buffer district with the packet that receives; When receiving the Reset semaphore, represent that a data grouping reception finishes, according to the inverse approach of step 3 to step 5; Reduce this frame captions view data, and send the Reset semaphore to transmitting terminal.
Step 7: transmitting terminal empties transmit buffer after receiving the ReSet semaphore, continues to send next frame captions view data, finishes up to the captions view data is all sent.
Step 8: each frame captions view data that receiving terminal will be received is merged into complete captions image.
The embodiment of the invention also provides a kind of system of the network film titler based on udp protocol, and as shown in Figure 2, wherein arrow is represented data flow direction, comprising: transmitting terminal and receiving terminal.
Transmitting terminal also comprises:
The transmission buffer district, size is 65536 bytes, the size of buffering area can satisfy the needs of the burst transmission of handling a frame captions view data like this.
Data processing module; Function is that a frame captions view data is write transmit buffer; Then it is decomposed into the plurality of data bag, makes the size of each packet be no more than 2048 bytes, be called a grouped data; Each packet to a grouped data all adds a header packet information at last, has defined the IP address of frame width, vertical frame dimension degree and receiving terminal in the header packet information.
Data transmit-receive module: function is to use the udp protocol of expansion to send packet, and sends and receive the Reset semaphore.
Control module: function is the function of control data processing module, data transmit-receive module, and the frame information of recording caption view data is a frame etc. with complete data image cutting simultaneously.
Receiving terminal also comprises:
The transmission buffer district, size is 65536 bytes.
Data transmit-receive module: function is to receive packet, and sends and receive the Reset semaphore.
The data inverse processing module: function is to use the inverse approach of the processing method of transmitting terminal data processing module, the packet that receives is reduced to the captions view data of a frame.
Control module: function is control data transceiver module and data inverse processing module, the frame information of while recording caption view data etc., and each the frame captions view data that will receive is at last merged into complete captions image etc.
The present invention includes but be not limited to the embodiment of above description, any those skilled in the art need not pay that creative work just can think of variation all should fall into protection scope of the present invention.
Claims (2)
1. the method based on the network film titler of udp protocol is characterized in that, may further comprise the steps:
S101: respectively apply for a transmit buffer at transmitting terminal and receiving terminal, the size of buffering area can satisfy the needs of the burst transmission of handling a frame captions view data;
S102: it is the captions view data of unit that transmitting terminal is cut into complete subtitle graphic with the frame, writes transmit buffer to a frame captions view data in order;
S103: a frame captions view data described in the S102 is decomposed into the plurality of data bag, makes the size of each packet be no more than 2048 bytes, be called a grouped data;
S104: each packet to a grouped data all adds a header packet information, has defined the IP address of frame width, vertical frame dimension degree and receiving terminal in the header packet information;
S105: use the udp protocol of expansion, send packet in order, after a grouped data is sent completion, the ReSet semaphore of redispatching;
S106: receiving terminal writes the transmission buffer district with the packet that receives; When receiving the ReSet semaphore, represent that a data grouping reception finishes, according to the inverse approach of S103 to S105; Reduce this frame captions view data, and send the ReSet semaphore to transmitting terminal;
S107: transmitting terminal empties transmit buffer after receiving the ReSet semaphore, continues to send next frame captions view data, finishes up to the captions view data is all sent;
S108: each frame captions view data that receiving terminal will be received is merged into complete captions image.
2. the system based on the network film titler of udp protocol is characterized in that, comprising: transmitting terminal and receiving terminal,
Said transmitting terminal also comprises:
The transmission buffer district, the size of buffering area can satisfy the needs of the burst transmission of handling a frame captions view data;
Data processing module; Function is that a frame captions view data is write transmit buffer; Then it is decomposed into the plurality of data bag, makes the size of each packet be no more than 2048 bytes, be called a grouped data; Each packet to a grouped data all adds a header packet information at last, has defined the IP address of frame width, vertical frame dimension degree and receiving terminal in the header packet information;
Data transmit-receive module: function is to use the udp protocol of expansion to send packet, and sends and receive the Reset semaphore;
Control module: function is the function of control data processing module, data transmit-receive module, and the frame information of recording caption view data is a frame etc. with complete data image cutting simultaneously;
Said receiving terminal also comprises:
The transmission buffer district, size is identical with the said transmission buffer of transmitting terminal district;
Data transmit-receive module: function is to receive packet, and sends and receive the Reset semaphore;
The data inverse processing module: function is to use the inverse approach of the processing method of transmitting terminal data processing module, the packet that receives is reduced to the captions view data of a frame;
Control module: function is control data transceiver module and data inverse processing module, the frame information of while recording caption view data etc., and each the frame captions view data that will receive is at last merged into complete captions image etc.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011101171070A CN102724232A (en) | 2011-05-06 | 2011-05-06 | UDP-based network subtitle generator method and network subtitle generator system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011101171070A CN102724232A (en) | 2011-05-06 | 2011-05-06 | UDP-based network subtitle generator method and network subtitle generator system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102724232A true CN102724232A (en) | 2012-10-10 |
Family
ID=46949893
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2011101171070A Pending CN102724232A (en) | 2011-05-06 | 2011-05-06 | UDP-based network subtitle generator method and network subtitle generator system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102724232A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106598752A (en) * | 2016-11-15 | 2017-04-26 | 北京大学深圳研究生院 | Remote zero-copy method |
| CN107197116A (en) * | 2017-05-25 | 2017-09-22 | 天津大学 | One kind is based on the real-time reliable graph of udp protocol as transmission plan |
| CN112291523A (en) * | 2020-10-29 | 2021-01-29 | 合肥安迅精密技术有限公司 | Image data receiving system and method of chip mounter |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1856037A (en) * | 2005-04-28 | 2006-11-01 | 索尼株式会社 | Character information production and display device and method, digital movie display method and system |
| CN101001334A (en) * | 2006-01-10 | 2007-07-18 | 神州亿品科技有限公司 | Captions added system and method for implementing captions added |
| CN101335885A (en) * | 2008-07-30 | 2008-12-31 | 中兴通讯股份有限公司 | Transmission method of multimedia broadcast subtitle information and transmitting/receiving apparatus |
| CN101437121A (en) * | 2008-12-19 | 2009-05-20 | 中兴通讯股份有限公司 | Mobile terminal and method for implementing dynamic zoom of mobile phone television subtitling |
| CN101604545A (en) * | 2008-06-10 | 2009-12-16 | 索尼株式会社 | Generation equipment, generation method and program |
-
2011
- 2011-05-06 CN CN2011101171070A patent/CN102724232A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1856037A (en) * | 2005-04-28 | 2006-11-01 | 索尼株式会社 | Character information production and display device and method, digital movie display method and system |
| CN101001334A (en) * | 2006-01-10 | 2007-07-18 | 神州亿品科技有限公司 | Captions added system and method for implementing captions added |
| CN101604545A (en) * | 2008-06-10 | 2009-12-16 | 索尼株式会社 | Generation equipment, generation method and program |
| CN101335885A (en) * | 2008-07-30 | 2008-12-31 | 中兴通讯股份有限公司 | Transmission method of multimedia broadcast subtitle information and transmitting/receiving apparatus |
| CN101437121A (en) * | 2008-12-19 | 2009-05-20 | 中兴通讯股份有限公司 | Mobile terminal and method for implementing dynamic zoom of mobile phone television subtitling |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106598752A (en) * | 2016-11-15 | 2017-04-26 | 北京大学深圳研究生院 | Remote zero-copy method |
| CN107197116A (en) * | 2017-05-25 | 2017-09-22 | 天津大学 | One kind is based on the real-time reliable graph of udp protocol as transmission plan |
| CN112291523A (en) * | 2020-10-29 | 2021-01-29 | 合肥安迅精密技术有限公司 | Image data receiving system and method of chip mounter |
| CN112291523B (en) * | 2020-10-29 | 2023-12-05 | 合肥安迅精密技术有限公司 | Image data receiving system and method of chip mounter equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106549912B (en) | A kind of playback method and system of video data | |
| US8837488B2 (en) | Two tier multiple sliding window mechanism for multidestination media applications | |
| EP2561664B1 (en) | Interface apparatus for transmitting and receiving media data | |
| CN109640029B (en) | Method and device for displaying video stream on wall | |
| CN109168064B (en) | Synchronous display method and system of electronic data | |
| US9577682B2 (en) | Adaptive forward error correction (FEC) system and method | |
| CN108737768B (en) | Monitoring method and monitoring device based on monitoring system | |
| CN102447893A (en) | Method and system for collecting and releasing mobile phone video in real time | |
| CN109474715B (en) | Resource configuration method and device based on video network | |
| CN106330414A (en) | Message transmission method and device | |
| CN110138632B (en) | Data transmission method and device | |
| CN103795593B (en) | A kind of method of testing of airship high-speed communication processor up-link | |
| EP2667625A2 (en) | Apparatus and method for transmitting multimedia data in a broadcast system | |
| CN103916375B (en) | The encapsulation of hfc plant downlink data multichannel and transmission method | |
| CN103533300A (en) | Image pre-monitoring method, image pre-monitoring device and image pre-monitoring system | |
| CN102307140B (en) | Port-trunking-based message processing method and device | |
| CN102447956A (en) | Method for sharing video of mobile phone and system | |
| RU2673102C2 (en) | Device and method of information processing and program | |
| CN102333209B (en) | Data transmission method and equipment applied to video monitoring system | |
| CN102724232A (en) | UDP-based network subtitle generator method and network subtitle generator system | |
| RU2668064C2 (en) | Information processing device, information processing method and program | |
| CN102739650A (en) | File transmission system combining broadcast and television net and internet | |
| CN110138729B (en) | Data acquisition method and video networking system | |
| CN110636132A (en) | Data synchronization method, client, electronic device and computer-readable storage medium | |
| US20080062987A1 (en) | Method and system for wireless VoIP communications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20121010 |