CN102523451A - Decoding method of decoder existing by independent process in software decoding - Google Patents

Decoding method of decoder existing by independent process in software decoding Download PDF

Info

Publication number
CN102523451A
CN102523451A CN2011104569785A CN201110456978A CN102523451A CN 102523451 A CN102523451 A CN 102523451A CN 2011104569785 A CN2011104569785 A CN 2011104569785A CN 201110456978 A CN201110456978 A CN 201110456978A CN 102523451 A CN102523451 A CN 102523451A
Authority
CN
China
Prior art keywords
decoder
subprocess
parent process
code stream
media 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.)
Pending
Application number
CN2011104569785A
Other languages
Chinese (zh)
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.)
NANJING VMEDIAX TECHNOLOGY CO LTD
Original Assignee
NANJING VMEDIAX 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 NANJING VMEDIAX TECHNOLOGY CO LTD filed Critical NANJING VMEDIAX TECHNOLOGY CO LTD
Priority to CN2011104569785A priority Critical patent/CN102523451A/en
Publication of CN102523451A publication Critical patent/CN102523451A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a decoding method of a decoder existing by an independent process in software decoding. In decoding, an application is used as a parent process and the decoder is used as a subprocess; the application parent process receives multimedia data code stream transmitted from a network, and sending and writing the multimedia data code stream in the subprocess of the decoder; the decoder subprocess carries out decoding on the received multimedia data code stream, and outputs the decoded multimedia stream into the application parent process; and the multimedia stream is output by the application parent process. According to the decoding method, decoding work of multimedia data in network transmission is realized by adopting the form of using the decoder as an independent process; the errors probably existing in the decoding process are limited in the decoder subprocess, so that the interference to other operation modules is avoided and simultaneously the influence on the application parent process is not caused.

Description

The coding/decoding method that decoder exists with independent process in the software decode
Technical field
The present invention relates to the multi-medium data decoding technique field in the network transmission process, the coding/decoding method that decoder exists with independent process in particularly a kind of software decode.
Background technology
In general, decoder all is to be used for decoding the secure multimedia file of integrality in the daily use, but in network communication; There is multiple uncertain factor in the transmission course of multi-medium data; In Network Transmission or storing process, be easy to occur mistake, can have certain error rate so transmit the code stream that sends to decoder at practical application CEInet network, situation about leading to errors comprises packet loss; Out of order, encapsulate destruction etc.And decoder is very sensitive to the data of input, and the mistake of a bit may have a strong impact on picture.Though decoder can be done certain parsing and misarrangement to the input data, because the code stream that makes a mistake, its wrong form has multiple, and the misarrangement of decoder is limited in one's ability, and beyond thought wrong the generation always arranged.When unknown error takes place, may cause the memory chaos of decoder, disturb other operation module.And if decoder can exist with the independent process form, it is in-process then can the mistake that decoding takes place to be confined to decoder, avoids the influence to other operation module.
Summary of the invention
The objective of the invention is, the coding/decoding method that decoder exists with independent process in a kind of software decode is provided,, and other operation module is not disturbed so that the mistake that decoding takes place is confined in the decoder process.
For realizing above-mentioned purpose, the technical scheme that the present invention takes is: decoder with the coding/decoding method that independent process exists is in a kind of software decode: use as parent process, decoder is as subprocess; Use parent process and receive the multi-medium data code stream of coming, and the transmission of multi-medium data code stream is written in the decoder subprocess from transmission through network; The decoder subprocess is decoded to the multi-medium data code stream that receives, and decoded media stream is outputed in the application parent process, by using parent process media stream is exported;
Data interaction flow process between above-mentioned application parent process and the decoder subprocess may further comprise the steps:
(1). use the multi-medium data code stream that parent process waits for that the reception Network Transmission is come;
(2). use parent process and judge whether the decoder subprocess exists: if the decoder subprocess does not exist, then create new decoder subprocess, exist for the decoder subprocess until judged result;
(3). use parent process the multi-medium data code stream that receives is write already present decoder subprocess;
(4). use parent process and judge whether writing of code stream be successful: be unsuccessful if code stream sends; Then using parent process kills the decoder subprocess; Again create new decoder subprocess then; And the method for repeating step (2) to step (3), until judged result be: code stream successfully writes in the decoder subprocess;
(5). the decoder subprocess is decoded to the multi-medium data code stream that receives, and decoded media stream is responded to using in the parent process;
(6). use the response that parent process is waited for the decoder subprocess:, then use parent process and obtain decoded media stream, and media stream is exported if the decoder subprocess has response; The content of repeating step (1) to step (6) then;
If the decoder subprocess is not responded, then use in the parent process repeating step (4) and the decoder subprocess to be killed and afterwards, to the processing method of step (5); Can access the response of decoder subprocess until using parent process, use parent process and obtain decoded media stream, and media stream is exported; The content of repeating step (1) to step (6) then.
Using parent process when the decoder subprocess writes code stream; Because data volume is less; So be preferably the transmission that the pipeline that utilizes in the IPC mechanism realizes using code stream and signaling between parent process and the decoder subprocess; Parent process can judge whether subprocess is normal when subprocess reads and writes data simultaneously;
At the decoder subprocess when using parent process transmitting multimedia stream; Because the data volume of decoding back media stream is very big; For guarantee between parent process and the subprocess synchronously, prevent to cover a multimedia output simultaneously, be provided with the shared drive of IPC mechanism among the present invention; Satisfy above-mentioned requirements, make that the media stream output of parent process is smooth more.
The pipeline and the share memory technology of the IPC mechanism of utilizing among the present invention are prior art.Monitoring mechanism of the present invention is based on the relevant informations such as timestamp of pipeline and shared drive inner multimedia data: can judge whether deadlock of subprocess as whether blocking through the read-write of pipeline; Whether fail through the read-write of pipeline and can judge whether subprocess dies; Can also judge through information such as timestamps whether decoding is wrong,, then feed back to application layer if wrong; Through the setting of shared drive, make parent process to read away media stream by prestissimo, prevent that the phenomenon of tearing of front and back frame from appearring in the media stream of exporting, this is even more important under the situation that subprocess uses multithreading to decode.
The decoding work of the present invention when decoder is realized that with the form of independent process multi-medium data is Network Transmission; The mistake that possibly occur in the decoding process has been confined in the decoder subprocess, has avoided interference, also can not impact simultaneously using parent process to other operation module.In addition; The present invention has also utilized the pipeline and the share memory technology of IPC mechanism; Guarantee to use data and the Signalling exchange between parent process and the decoder subprocess, realized perfect monitoring mechanism, decoded media stream output is smooth more in the also feasible application parent process.
Description of drawings
Shown in Figure 1 is a kind of specific embodiment sketch map of the present invention;
Shown in Figure 2 for using the data interaction schematic flow sheet between parent process and the decoder subprocess among the present invention.
Embodiment
For making content of the present invention more obviously understandable, further describe below in conjunction with accompanying drawing and embodiment.
As shown in Figure 1, decoder with the coding/decoding method that independent process exists is in the software decode of the present invention: use as parent process, decoder is as subprocess; Use parent process and receive the multi-medium data code stream of coming, and the transmission of multi-medium data code stream is written in the decoder subprocess from transmission through network; The decoder subprocess is decoded to the multi-medium data code stream that receives, and decoded media stream is outputed in the application parent process, by using parent process media stream is exported.
As shown in Figure 2, the data interaction flow process between above-mentioned application parent process and the decoder subprocess may further comprise the steps:
(1). use the multi-medium data code stream that parent process waits for that the reception Network Transmission is come;
(2). use parent process and judge whether the decoder subprocess exists: if the decoder subprocess does not exist, then create new decoder subprocess, exist for the decoder subprocess until judged result;
(3). use parent process the multi-medium data code stream that receives is write already present decoder subprocess;
(4). use parent process and judge whether writing of code stream be successful: be unsuccessful if code stream sends; Then using parent process kills the decoder subprocess; Again create new decoder subprocess then; And the method for repeating step (2) to step (3), until judged result be: code stream successfully writes in the decoder subprocess;
(5). the decoder subprocess is decoded to the multi-medium data code stream that receives, and decoded media stream is responded to using in the parent process;
(6). use the response that parent process is waited for the decoder subprocess:, then use parent process and obtain decoded media stream, and media stream is exported if the decoder subprocess has response; The content of repeating step (1) to step (6) then;
If the decoder subprocess is not responded, then use in the parent process repeating step (4) and the decoder subprocess to be killed and afterwards, to the processing method of step (5); Can access the response of decoder subprocess until using parent process, use parent process and obtain decoded media stream, and media stream is exported; The content of repeating step (1) to step (6) then.
Among Fig. 1; Using parent process when the decoder subprocess writes code stream; Because data volume is less; So the present invention utilizes the pipe technology in the IPC mechanism to realize using the transmission of code stream and signaling between parent process and the decoder subprocess, parent process can judge whether subprocess is normal when subprocess reads and writes data simultaneously;
At the decoder subprocess when using parent process transmitting multimedia stream; Because the data volume of decoding back media stream is very big, for guarantee between parent process and the subprocess synchronously, prevent to cover a multimedia output simultaneously; As shown in fig. 1; Be provided with the shared drive of IPC mechanism among the present invention, satisfy above-mentioned requirements, make that the media stream output of parent process is smooth more.
The pipeline and the share memory technology of the IPC mechanism of utilizing among the present invention are prior art.Monitoring mechanism of the present invention is based on the relevant informations such as timestamp of pipeline and shared drive inner multimedia data: can judge whether deadlock of subprocess as whether blocking through the read-write of pipeline; Whether fail through the read-write of pipeline and can judge whether subprocess dies; Can also judge through information such as timestamps whether decoding is wrong,, then feed back to application layer if wrong; Through the setting of shared drive, make parent process to read away media stream by prestissimo, prevent that the phenomenon of tearing of front and back frame from appearring in the media stream of exporting, this is even more important under the situation that subprocess uses multithreading to decode.
The case of practical implementation described in the present invention is merely preferable case study on implementation of the present invention, is not to be used for limiting practical range of the present invention.Be that all equivalences of doing according to the content of claim of the present invention change and modification, all should be as technological category of the present invention.

Claims (3)

1. decoder is characterized in that with the coding/decoding method that independent process exists in the software decode, uses as parent process, and decoder is as subprocess; Use parent process and receive the multi-medium data code stream of coming, and the transmission of multi-medium data code stream is written in the decoder subprocess from transmission through network; The decoder subprocess is decoded to the multi-medium data code stream that receives, and decoded media stream is outputed in the application parent process, by using parent process media stream is exported;
The data interaction flow process of using between parent process and the decoder subprocess may further comprise the steps:
(1). use the multi-medium data code stream that parent process waits for that the reception Network Transmission is come;
(2). use parent process and judge whether the decoder subprocess exists: if the decoder subprocess does not exist, then create new decoder subprocess, exist for the decoder subprocess until judged result;
(3). use parent process the multi-medium data code stream that receives is write already present decoder subprocess;
(4). use parent process and judge whether writing of code stream be successful: be unsuccessful if code stream sends; Then using parent process kills the decoder subprocess; Again create new decoder subprocess then; And the method for repeating step (2) to step (3), until judged result be: code stream successfully writes in the decoder subprocess;
(5). the decoder subprocess is decoded to the multi-medium data code stream that receives, and decoded media stream is responded to using in the parent process;
(6). use the response that parent process is waited for the decoder subprocess:, then use parent process and obtain decoded media stream, and media stream is exported if the decoder subprocess has response; The content of repeating step (1) to step (6) then;
If the decoder subprocess is not responded, then use in the parent process repeating step (4) and the decoder subprocess to be killed and afterwards, to the processing method of step (5); Can access the response of decoder subprocess until using parent process, use parent process and obtain decoded media stream, and media stream is exported; The content of repeating step (1) to step (6) then.
2. decoder is characterized in that with the coding/decoding method that independent process exists in the software decode according to claim 1, uses parent process and adopts the pipeline of IPC mechanism to write code stream to the decoder subprocess.
3. the coding/decoding method that decoder exists with independent process in the software decode according to claim 1 and 2; It is characterized in that; Be provided with the shared drive of IPC mechanism between decoder subprocess and the application parent process, the decoder subprocess respond to decoded media stream through shared drive and uses in the parent process.
CN2011104569785A 2011-12-30 2011-12-30 Decoding method of decoder existing by independent process in software decoding Pending CN102523451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104569785A CN102523451A (en) 2011-12-30 2011-12-30 Decoding method of decoder existing by independent process in software decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104569785A CN102523451A (en) 2011-12-30 2011-12-30 Decoding method of decoder existing by independent process in software decoding

Publications (1)

Publication Number Publication Date
CN102523451A true CN102523451A (en) 2012-06-27

Family

ID=46294230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104569785A Pending CN102523451A (en) 2011-12-30 2011-12-30 Decoding method of decoder existing by independent process in software decoding

Country Status (1)

Country Link
CN (1) CN102523451A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905783A (en) * 2012-12-25 2014-07-02 杭州海康威视数字技术股份有限公司 Method and device for performing decoding and displaying on video stream
CN105306948A (en) * 2015-11-28 2016-02-03 讯美电子科技有限公司 Method and system for decoding multi-process video

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154751A (en) * 1998-05-14 2000-11-28 International Business Machines Corporation Method for executing a user-requested CGI program in a new authentication context while protecting operation of a default web server program
CN102289406A (en) * 2011-08-24 2011-12-21 深圳市万兴软件有限公司 Parameter testing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154751A (en) * 1998-05-14 2000-11-28 International Business Machines Corporation Method for executing a user-requested CGI program in a new authentication context while protecting operation of a default web server program
CN102289406A (en) * 2011-08-24 2011-12-21 深圳市万兴软件有限公司 Parameter testing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴俊,邓立华: "动态分析解码电子邮件的CGI程序编制方法", 《微计算机应用》 *
黄东军: "CGI程序设计中的URL编码与解码", 《微型机与应用》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905783A (en) * 2012-12-25 2014-07-02 杭州海康威视数字技术股份有限公司 Method and device for performing decoding and displaying on video stream
CN103905783B (en) * 2012-12-25 2017-09-01 杭州海康威视数字技术股份有限公司 The method and apparatus of decoding display is carried out to video flowing
CN105306948A (en) * 2015-11-28 2016-02-03 讯美电子科技有限公司 Method and system for decoding multi-process video

Similar Documents

Publication Publication Date Title
CN101895549B (en) Conversion gateway and conversion method of vehicle communication network data
CN102647320B (en) Integrated circuit suitable for high-speed 1553 bus protocol control
CN102446280B (en) A kind of method of verification msg, Apparatus and system
CN108306852B (en) Message middleware system and method based on simple binary coding
CN201717878U (en) Vehicle communication network data conversion gateway
CN102820959A (en) Method for performing large data volume communication between Modbus master station and Modbus slave station
CN105306323A (en) Method and device for CAN bus communication
CN103229444B (en) Coding/decoding method, Apparatus and system
CN104602007A (en) Dynamic video encoding based on channel quality
CN108199941A (en) A kind of CAN bus communication means based on CAN2.0B
CN101668187B (en) Video monitoring encoder middleware general purpose system and message passing method
CN102142989A (en) Failure positioning method and device for content delivery network
CN106448128B (en) Infrared remote control data processing method and system
CN101751230B (en) Equipment and method for calibrating time stamp of I/O (input/output) data
CN102523451A (en) Decoding method of decoder existing by independent process in software decoding
KR20120112981A (en) Receiving node and method of reducing retransmission of data frame
CN104735523A (en) Method for achieving wireless connection between mobile phone and automotive multimedia system and wireless co-screen device
CN100468375C (en) Method for raising writing speed of memory card
US20170318413A1 (en) Blue-Tooth Communication System And Broadcasting Method Thereof
CN102591825B (en) Transmitting device and method between SATA (Serial Advanced Technology Attachment) controller and flash controller based on SYNC mechanism
CN102523221B (en) Detection method of data message and network safety detection device
CN101626320A (en) Method and device for detecting loopback of channel
CN103095510A (en) Multifunction vehicle bus analytical equipment
CN103229443A (en) Relay method and device for fountain codes
CN106933755B (en) Polling communication method based on CPCI back panel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120627