CN108111512A - High reliability Storage System for Stream Media and its method - Google Patents

High reliability Storage System for Stream Media and its method Download PDF

Info

Publication number
CN108111512A
CN108111512A CN201711393025.2A CN201711393025A CN108111512A CN 108111512 A CN108111512 A CN 108111512A CN 201711393025 A CN201711393025 A CN 201711393025A CN 108111512 A CN108111512 A CN 108111512A
Authority
CN
China
Prior art keywords
audio
protocol module
stream media
files
repair
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
CN201711393025.2A
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.)
NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd
Original Assignee
NINGBO SHENGWEI INFORMATION 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 NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd filed Critical NINGBO SHENGWEI INFORMATION TECHNOLOGY Co Ltd
Priority to CN201711393025.2A priority Critical patent/CN108111512A/en
Publication of CN108111512A publication Critical patent/CN108111512A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L65/75Media network packet handling
    • 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
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • 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
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate
    • 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/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of high reliability Storage System for Stream Media and its methods, are related to information technology.The system is high-definition camera (105) and encoder device (103) connection;Microphone (107) and encoder device (103) connection;Encoder device (103), stream media protocol module (102) and streaming media server (101) are sequentially connected;Streaming media server (101), stream media protocol module (102), MP4 memory modules (104) and MP4 repair modules (106) are sequentially connected.The form that the present invention stores is the MP4 forms of standard, convenient for carrying out resource-sharing between each different system platform;The present invention can reliably repair power-off and the MP4 files damaged when exception during system operation, improve the stability and robustness of system, ensure that the integrality of data;Suitable for the various application scenarios for needing for audio, video data to be stored as MP4 forms.

Description

High reliability Storage System for Stream Media and its method
Technical field
The present invention relates to information technology (Information Technology, abbreviation IT) more particularly to one kind are highly reliable Property Storage System for Stream Media and its method.
Background technology
With the popularization of multimedia application and the fast development of audio frequency and video technology, in the prior art mainly by various Stream medium data is directly saved as various audio-video documents when recording, but had the following disadvantages by method:
1st, in existing various implementations, stream medium data is stored as the privately owned audio and video of itself by a part of scheme Form, broadcasting can only also be played out using itself exclusive player, be unable to reach the purpose that various audio and video resources are shared;
2nd, most of storage schemes, such as run into during stored stream media data device powers down, software anomaly and/or The abnormal conditions such as virus infection can then damage the video file of recording, cause loss of vital data and can not recover.
The content of the invention
The purpose of the present invention is exactly to overcome shortcoming and defect existing in the prior art, provides a kind of stream of high reliability Media storage systems and method.Can stream medium data highly reliably be saved as into MP4 audio-video documents, improve the use of business Scope enhances versatility and the flexibility that audio and video resources are shared between various different systems, ensure that in storing process and is The stability of system improves the reliability and security of Streaming Media storage.
The object of the present invention is achieved like this:
First, high reliability Storage System for Stream Media (abbreviation system)
The system includes streaming media server, stream media protocol module, encoder device, high-definition camera, MP4 storage moulds Block, MP4 repair modules and microphone;Its connection relation is:High-definition camera and the front and rear connection of encoder device;Microphone and The front and rear connection of encoder device;Encoder device, stream media protocol module and streaming media server are sequentially connected;Streaming media service Device, stream media protocol module, MP4 memory modules and MP4 repair modules are sequentially connected.
The working mechanism of the system:The working mechanism of the system is while MP4 formatted files are stored, and also storage is a The structural information and media parameter information of MP4 corresponding with the MP4 files in the storing process.To ensure to be at any time System meets with the abnormal structural information and media parameter information that in the case of causing MP4 file corruptions, can utilize the preservation and will damage Bad MP4 file reparations.
2nd, high reliability Streaming Media storage method (abbreviation method system)
This method is based on high reliability Storage System for Stream Media, comprises the following steps:Start;1. initialize each submodule Block;2. encoder device gathers audio, video data;3. stream media protocol module sends data;4. streaming media server receives sound and regards Frequency evidence;5. stream media protocol module starts to obtain audio, video data;6. MP4 memory modules receive audio, video data;⑦MP4 Memory module constructs MP4 forms, creates MP4 files;8. MP4 memory module backup MP4 parameter informations, file is repaired in generation;⑨ MP4 repair modules judge MP4 file abnormal conditions;It is that MP4 texts are then repaired by MP4 repair modules 10. whether MP4 files are abnormal Otherwise part terminates flow;Terminate.
The present invention has following advantages and good effect:1. the form that the present invention stores is the MP4 forms of standard, convenient for each Resource-sharing is carried out between a different system platform;2. the present invention being capable of reliably power-off and abnormal etc. between the repair system runtime In the case of the MP4 files that damage, improve the stability and robustness of system, ensure that the integrality of data;3. suitable for each Kind needs for audio, video data to be stored as the application scenarios of MP4 forms.
Description of the drawings
The block diagram of Fig. 1 the system;
Fig. 2 is 103 block diagram of encoder device.
Fig. 3 is the work flow diagram of this method;
Fig. 4 .1 are the work flow diagrams that stream media protocol module sends audio/video flow;
Fig. 4 .2 are the work flow diagrams that stream media protocol module receives audio/video flow;
Fig. 5 is the work flow diagram of MP4 memory modules;
Fig. 6 is the work flow diagram of MP4 repair modules.
Specific embodiment
Below in conjunction with the accompanying drawings with embodiment to the detailed description of the invention:
First, system
1st, it is overall
Such as Fig. 1, the system includes streaming media server 101, stream media protocol module 102, encoder device 103, high definition Video camera 105, MP4 memory modules 104, MP4 repair modules 106 and microphone 107;Its connection relation is:High-definition camera 105 With the front and rear connection of encoder device 103, high-definition camera 105 gives the vision signal of acquisition to encoder device 103;Mike Wind 107 and the front and rear connection of encoder device 103, microphone 107 give the audio signal of acquisition to encoder device 103;Coding Device equipment 103, stream media protocol module 102 and streaming media server 101 are sequentially connected, the sound that encoder device 103 will receive Vision signal is converted to can give stream media protocol module 102, stream media protocol module 102 by the audio/video flow of network transmission By giving obtained data to streaming media server 101 by network after protocol processes;Streaming media server 101, stream matchmaker Body protocol module 102, MP4 memory modules 104 and MP4 repair modules 106 are sequentially connected, and streaming media server 101 is by audio and video Data flow gives stream media protocol module 102, and stream media protocol module 102 gives MP4 storages afterwards by repacking processing Module 104, and MP4 files are saved as by MP4 memory modules 104, if system appearance is abnormal during save file file is caused to damage It is bad, then it gives the MP4 files that MP4 memory modules 104 generate to MP4 repair modules 106 and the file of the damage is repaired.
2nd, functional component
1) 101 hardware configuration CPU of streaming media server:Tetra- cores of Intel (R) Xeon (R) CPU X3430 2.40GHz;It is soft The various linux operating systems such as part establishment Ubuntu 10.10 i686 (32) GNU/Linux 2.6.35-22-generic, Etah Media Server.Streaming media server 101 is responsible for that the audio and video data streams received are handled and forwarded.
2) 102 stream media protocol module 102 of stream media protocol module is responsible for the audio and video data streams of encoder device 103 Packing processing is carried out, and passes through network transmission to streaming media server 101.This module is a kind of custom block, and hardware is matched somebody with somebody Putting is:256 MB of memory, CPU frequency 500M HZ, all linux and windows operating systems.Its internal processes such as Fig. 4.
3) encoder device 103
Encoder device 103 is responsible for the signal that microphone 107 and high-definition camera 105 gather being converted into network transmittable Audio and video data streams, and give stream media protocol module 102 and be further processed.Encoder device 103 sets for one kind is self-defined It is standby;Such as Fig. 2, encoder device 103 includes video A/D conversion chip 201, Audio Signal Processing chip 202, codec chip 203 and network pio chip 204;Video A/D conversion chip 201 and Audio Signal Processing chip 202 respectively with codec chip 203 connections, codec chip 203 and network pio chip 204 connect.
The 26S Proteasome Structure and Function of following function component is:1) analog video signal is converted by video A/D conversion chip 201 The digital video signal of 1120 forms of BT.AD9880 can be selected.(2) Audio Signal Processing chip 202 gathers audio signal. AIC23B can be selected.(3) codec chip 203 is responsible for encoding original audio, video data, and being responsible for will be coded Audio, video data decodes.MG3500 can be selected.(4) network pio chip 204 is responsible for the audio, video data of coding passing through net Network is output to the other equipment on internet, can select ADM7001X.
4) MP4 memory modules 104, MP4 memory modules 104 are responsible for the sound that receiving stream media protocol module 102 is brought and are regarded Frequency data stream, and the audio and video data streams are stored as MP4 files, while back up the parameter information of MP4.This module for it is a kind of from Definition module, hardware configuration are:256 MB of memory, CPU frequency 500M HZ, all linux and windows operating systems.At it Manage flow such as Fig. 5.
5) camera of conventional 720P or 1080P, such as rope can be selected in high-definition camera 105, high-definition camera 105 The high-definition camera of Buddhist nun.High-definition camera 105 is responsible for acquisition vision signal, and gives the vision signal of acquisition to encoder device 103。
6) MP4 repair modules 106, the damaged MP4 files of 106 responsible for rehabilitation of MP4 repair modules.This module for it is a kind of from Definition module, hardware configuration are:256 MB of memory, CPU frequency 500M HZ, all linux and windows operating systems.In it Portion's process flow such as Fig. 6.
7) microphone 107, the selection of microphone use general microphone.Microphone 107 is responsible for acquisition audio Signal, and give the audio signal of acquisition to encoder device 103.
2nd, method
Such as Fig. 3, the workflow of this method comprises the following steps:
Start 301;1. each submodule 302 is initialized by streaming media server 101, stream media protocol module 102, coding Device equipment 103, MP4 memory modules 104, high-definition camera 105, MP4 repair modules 106 and microphone 107 initialize, and enable just Often work;2. encoder device gathers audio, video data 303 and judges the validity of the audio, video data, if audio, video data Not in valid format will not then encode;3. stream media protocol module sends the audio and video that 304 stream media protocol module of data will collect Data are packaged as Streaming Media bag, and send audio, video data to streaming media server by network, while stream media protocol module It can check the correctness of audio, video data, will not give out a contract for a project if problematic;4. streaming media server receives audio, video data 305;5. stream media protocol module starts to obtain audio, video data 306;6. MP4 memory modules receive audio, video data 307;⑦ MP4 memory modules construct MP4 forms, create MP4 files 308;8. MP4 memory module backup MP4 parameter informations, generation is repaired File 309;9. MP4 repair modules judge MP4 files abnormal conditions 310;10. MP4 files whether abnormal 311, are repaiied by MP4 Multiple module repairs MP4 files 312, otherwise terminates flow 313;Terminate 313.
3rd, the workflow of each custom block
1st, the workflow of stream media protocol module
1) such as Fig. 4 .1, the workflow that stream media protocol module sends audio/video flow is:1. initialization flow media protocol mould Block 401;2. it is created to the connection CreateConnect () 402 of server;3. send audio/video flow SendStream () 403; 4. judge send whether mistake 404, be to jump to step 2., otherwise into next step;Whether completed 5. judging to send 405, it is to close connection CloseConnect () 406, otherwise jumps to step 3..
2) such as Fig. 4 .2, the workflow that stream media protocol module receives audio/video flow is:1. initialization flow media protocol mould Block 407;2. it is created to the connection CreateConnect () 408 of server;3. receive audio/video flow RecvStream () 409; 4. judge receive whether mistake 410, be to jump to step 2., otherwise into next step;Whether completed 5. judging to receive 411, it is to close connection CloseConnect () 406, otherwise jumps to step 3..
2nd, the workflow of MP4 memory modules
Such as Fig. 5, the workflow of MP4 memory modules is:1. obtain H264, AAC data 501;2. judging data format is No correct 502, it is then otherwise to abandon 511 into next step;3. it is added to MP4Chunk503;4. judge whether to reach The size 504 of MP4Chunk Size is then otherwise to continue step 3. into next step;5. continuous judge whether MP4 files are deposited It is to jump to step 7., otherwise into next step 505;6. construct MP4 formatted files 506;7. Chunk data are write Into MP4 files 507;8. backup MP4 media informations and parameter information 508;It is to close 9. judgement writes whether MP4 completes 509 MP4 files are closed, write operation 510 is completed, otherwise jumps to step 3..
3rd, the workflow of MP4 repair modules
Such as Fig. 6, the work flow diagram of MP4 repair modules is:1. initialize MP4 repair modules 601;2. read damage MP4 repairs file 602;3. read MP4 parameters and media file 603;It is then into next 4. judging file whether effective 604 Step, the handle that otherwise closes all terminate reparation 608;5. compare the MP4 files of damage and MP4 parameters and media file 605;6. the node of MP4 damages is repaired, relevant parameter information and the media information 606 of the MP4 files of Recover from damaging;7. judge Whether reparation completes 607, is that the handle that closes all terminates reparation 608, otherwise jumps to step 5..

Claims (7)

1. a kind of high reliability Storage System for Stream Media, it is characterised in that:Including streaming media server (101), stream media protocol Module (102), encoder device (103), high-definition camera (105), MP4 memory modules (104), MP4 repair modules (106) and Microphone (107);Its connection relation is:High-definition camera (105) and encoder device (103) connection, high-definition camera (105) The vision signal of acquisition is given to encoder to set (103);Microphone (107) and encoder device (103) connection, microphone (107) audio signal of acquisition is given to encoder device (103);Encoder device (103), stream media protocol module (102) It is sequentially connected with streaming media server (101), encoder device (103), which is converted to the audio-video signal received, can pass through network The audio/video flow of transmission gives stream media protocol module (102), and stream media protocol module (102) after protocol processes by inciting somebody to action To data give streaming media server (101) by network;Streaming media server (101), stream media protocol module (102), MP4 memory modules (104) and MP4 repair modules (106) are sequentially connected, and streaming media server (101) streams audio, video data Stream media protocol module (102) is given, stream media protocol module (102) gives MP4 memory modules afterwards by repacking processing (104), MP4 files and by MP4 memory modules (104) are saved as, if system appearance is abnormal during save file file are caused to damage It is bad, then it gives the MP4 files that MP4 memory modules (104) generate to MP4 repair modules (106) and the file of the damage is repaiied It is multiple.
2. by a kind of high reliability Storage System for Stream Media described in claim 1, it is characterised in that:The encoder device (103) it is defeated to include video A/D conversion chip (201), Audio Signal Processing chip (202), codec chip (203) and network Go out chip (204);Video A/D conversion chip (201) and Audio Signal Processing chip (202) respectively with codec chip (203) Connection, codec chip (203) and network pio chip (204) connection.
3. by a kind of storage method of high reliability Storage System for Stream Media described in claim 1, it is characterised in that:Start (301);1. each submodule (302) is initialized, i.e., by streaming media server (101), stream media protocol module (102), coding Device equipment (103), MP4 memory modules (104), high-definition camera (105), MP4 repair modules (106) and microphone (107) are just Beginningization enables normal work;2. encoder device acquisition audio, video data (303), and judge the validity of the audio, video data, It will not be encoded if audio, video data not in valid format;3. stream media protocol module sends data (304), i.e. stream media protocol mould Audio, video data after coding is packaged as Streaming Media bag by block, and is passed through network and be sent to streaming media server, while Streaming Media Protocol module can check the correctness of audio, video data, will not give out a contract for a project if problematic;4. streaming media server receives sound and regards Frequency is according to (305);5. stream media protocol module starts to obtain audio, video data (306);6. MP4 memory modules receive audio and video number According to (307);7. MP4 memory modules construct MP4 forms, MP4 files (308) are created;8. MP4 memory module backup MP4 parameters are believed File (309) is repaired in breath, generation;9. MP4 repair modules judge MP4 files abnormal conditions (310);10. whether judge MP4 files Abnormal (311) are then to repair MP4 files (312) by MP4 repair modules, otherwise terminate flow (313);Terminate (313).
4. the storage method as described in claim 3, it is characterised in that the stream media protocol module sends the work of audio/video flow It is as flow:1. initialization flow media protocol module (401);2. it is created to the connection CreateConnect () of server (402) audio/video flow SendStream () (403) is 3. sent;4. judge whether transmission is wrong (404), is to jump to step 2. otherwise into next step;It is to close connection CloseConnect () (406) 5. judging send whether complete (405), Otherwise step is jumped to 3..
5. the storage method as described in claim 3, it is characterised in that the stream media protocol module receives the work of audio/video flow It is as flow:1. initialization flow media protocol module (407);2. it is created to the connection CreateConnect () of server (408);3. receive audio/video flow RecvStream () (409);4. judge whether reception is wrong (410), is to jump to step 2. otherwise into next step;It is to close connection CloseConnect () 406 5. judging receive whether complete (411), it is no Then jump to step 3..
6. the storage method as described in claim 3, it is characterised in that the workflow of the MP4 memory modules is:1. it obtains Take H264, AAC data (501);It is then otherwise to be abandoned into next step 2. judging whether data format is correct (502) (511);3. it is added to MP4 Chunk (503);It is to enter 4. judging whether the size (50) of arrival MP4 Chunk Size Otherwise 3. next step continues step;5. continuous judge that MP4 files with the presence or absence of (50), are to jump to step 7., otherwise enter Next step;6. construct MP4 formatted files (506);7. Chunk data are write in MP4 files (507);8. backup MP4 media Information and parameter information (508);It is to close MP4 files 9. judgement writes whether MP4 completes (509), completes write operation (510), Otherwise step is jumped to 3..
7. the storage method as described in claim 3, it is characterised in that the work flow diagram of the MP4 repair modules is:① Initialize MP4 repair modules (601);2. the MP4 for reading damage repairs file (602);3. read MP4 parameters and media file (603);4. judge that whether effectively (604) file, is then into next step, the handle that otherwise closes all terminates to repair 608);5. compare the MP4 files of damage and MP4 parameters and media file (60);6. repair the node of MP4 damages, Recover from damaging MP4 files relevant parameter information and media information (606);It is to close all texts 7. judging repair whether complete (607) Part handle terminates to repair (608), otherwise jumps to step 5..
CN201711393025.2A 2017-12-14 2017-12-14 High reliability Storage System for Stream Media and its method Pending CN108111512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711393025.2A CN108111512A (en) 2017-12-14 2017-12-14 High reliability Storage System for Stream Media and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711393025.2A CN108111512A (en) 2017-12-14 2017-12-14 High reliability Storage System for Stream Media and its method

Publications (1)

Publication Number Publication Date
CN108111512A true CN108111512A (en) 2018-06-01

Family

ID=62210727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711393025.2A Pending CN108111512A (en) 2017-12-14 2017-12-14 High reliability Storage System for Stream Media and its method

Country Status (1)

Country Link
CN (1) CN108111512A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327362A (en) * 2013-05-24 2013-09-25 武汉东信同邦信息技术有限公司 High reliability streaming medium memory system and method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327362A (en) * 2013-05-24 2013-09-25 武汉东信同邦信息技术有限公司 High reliability streaming medium memory system and method thereof

Similar Documents

Publication Publication Date Title
TWI474660B (en) Devices for encoding and detecting a watermarked signal
CN103299365B (en) Devices for adaptively encoding and decoding a watermarked signal
CN108235107A (en) Video recording method, device and electric terminal
CN103327362A (en) High reliability streaming medium memory system and method thereof
CN103404146A (en) Video file repairing method and device
WO2020215453A1 (en) Video recording method and system
KR101590239B1 (en) Devices for encoding and decoding a watermarked signal
CN101783955A (en) Data recovering method when data is abnormal and equipment thereof
CN101710983B (en) Method for playing real-time streaming files and device thereof
US20080222463A1 (en) Apparatus, method and product for testing communications components
CN101729529A (en) Device and method for real-time stream file storage
CN108111512A (en) High reliability Storage System for Stream Media and its method
EP2871844A1 (en) Video recording method and system
CN108696713A (en) Safety detecting method, device and the test equipment of code stream
CN101771895B (en) Decoding test method and system
CN108012085B (en) Multimedia information processing method, server and storage medium
JPWO2007032058A1 (en) Decoding device
JP2007324876A (en) Data transmitter, data receiver, data transmitting method, data receiving method, and program
US8949920B2 (en) System and method for storage device emulation in a multimedia processing system
CN113763596B (en) Airborne heterogeneous network data recording method
CN203399229U (en) High reliability streaming media storing device
US8503985B1 (en) Real-time remote storage
US20070189286A1 (en) Method for depacketization of multimedia packet data
JP2007150755A5 (en)
CN110309662A (en) Acoustic signal processing method, electronic equipment, server and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180601