CN102710589A - Local area network multi-core node-based audio conversion method - Google Patents
Local area network multi-core node-based audio conversion method Download PDFInfo
- Publication number
- CN102710589A CN102710589A CN2011103281075A CN201110328107A CN102710589A CN 102710589 A CN102710589 A CN 102710589A CN 2011103281075 A CN2011103281075 A CN 2011103281075A CN 201110328107 A CN201110328107 A CN 201110328107A CN 102710589 A CN102710589 A CN 102710589A
- Authority
- CN
- China
- Prior art keywords
- audio file
- node
- centroid
- audio
- file fragment
- 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
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a local area network multi-core node-based audio conversion method, which comprises the following implementation steps of: (1) acquiring an available node list with a multi-core processor computer in a local area network; (2) receiving an audio file to be converted by a central node, segmenting the audio file to be converted into audio file segments according to the number of computer nodes, and sequentially transmitting to each computer node; (3) receiving the audio file segments by each computer node respectively, turning on all cores of the processor and performing format conversion on the audio file segments to obtain audio file segments in a target format by using all the cores, transmitting to the central node, and then arranging all the cores of the processor in a single-core open state after successful transmission; and (4) receiving the audio file segments in the target format and combining by the central node to obtain a final audio file in the target format. According to the local area network multi-core node-based audio conversion method, the local area network computer node resources can be fully utilized, the format conversion efficiency is high, the structure is simple, the use is convenient, and the implementation cost is low.
Description
Technical field
The present invention relates to multimedia switch technology field, be specifically related to a kind of audio conversion method based on local area network (LAN) multinuclear node.
Background technology
Along with applying gradually of the Internet, also increasingly extensive based on all kinds of multimedia application of the Internet.Wherein,, obtained quoting widely owing to have the advantage that data volume is little, intuitive is good especially with the multimedia of audio form.But increasing along with the multi-medium data of audio form; Just become an increasingly serious problem if realize the efficient storage of the multi-medium data of audio form; And for the efficient storage of the multi-medium data of realizing audio form; Adopt a kind of archive format of multi-medium data of audio form efficiently extremely important; The format conversion that therefore just must relate to the multi-medium data of audio form converts the multi-medium data file of original audio format into the multi-medium data of new audio format.And the format conversion of the multi-medium data of existing audio form generally is to be main with unit, can't realize the application of large scale computer node, and inefficiency can't satisfy the needs of format conversion of the multi-medium data of extensive audio form.
Summary of the invention
The purpose of this invention is to provide and a kind ofly can make full use of local area network (LAN) computer node resource, format conversion efficient is high, simple in structure, easy to use, implementation cost is low audio conversion method based on local area network (LAN) multinuclear node.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of audio conversion method based on local area network (LAN) multinuclear node, and implementation step is following:
1) obtains the enabled node tabulation that has the multi-core processor computer in the local area network (LAN);
2) Centroid receives audio file to be converted, and according to the quantity of computer node in the enabled node tabulation audio file to be converted is divided into the audio file fragment of respective amount, and sends to each computer node in the enabled node tabulation successively;
3) after each computer node receives the audio file fragment respectively; Open whole cores of processor; And whole cores of utilizing processor are carried out format conversion with the audio file fragment and are obtained purpose form audio file fragment; And sending to Centroid, whole cores of processor are set to the monokaryon opening after sending successfully then;
4) Centroid is received the purpose form audio file fragment that each computer node sends, and after reception finishes, all purpose form audio file fragments merging is obtained final purpose format audio file.
Further improvement as technique scheme:
After said step 3) Centroid is divided into the audio file fragment with audio file to be converted, generate the cryptographic hash that is used to verify audio file complete segment property, and send to computer node together with the format audio file fragment according to the audio file fragment; Before said computer node carries out format conversion with the audio file fragment; At first the audio file fragment that receives is generated cryptographic hash; And cryptographic hash that generates and the cryptographic hash that receives compared; Carry out format conversion if cryptographic hash is identical, otherwise require to send the corresponding audio files fragment again to Centroid.
The detailed step that said step 4) Centroid is received the purpose form audio file fragment of each computer node transmission comprises: said Centroid preestablishes overtime critical value; Said Centroid picks up counting from receiving first purpose form audio file fragment; If timing time surpasses said overtime critical value then said Centroid abandons receiving the convert task of corresponding computer node; And the corresponding audio files fragment resend to each computer node in the enabled node tabulation, and after receiving corresponding purpose form audio file fragment, all purpose form audio file fragments are merged and obtain final purpose format audio file.
The present invention has following advantage: in the technical scheme of the present invention; Centroid receives audio file to be converted; And audio file to be converted is divided into the audio file fragment of respective amount, and send to each computer node in the enabled node tabulation successively according to the quantity of computer node in the enabled node tabulation; After each computer node receives the audio file fragment respectively; Open whole cores of processor; And whole cores of utilizing processor carry out format conversion with the audio file fragment and obtain purpose form audio file fragment, and send to Centroid, and whole cores of processor are set to the monokaryon opening after sending successfully then; Therefore can make full use of local area network (LAN) computer node resource, have the advantage that format conversion efficient is high, simple in structure, easy to use, implementation cost is low.
Description of drawings
Fig. 1 is the implementing procedure sketch map of the embodiment of the invention.
Embodiment
As shown in Figure 1, the embodiment of the invention is following based on the implementation step of the audio conversion method of local area network (LAN) multinuclear node:
1) obtains the enabled node tabulation that has the multi-core processor computer in the local area network (LAN);
2) Centroid receives audio file to be converted, and according to the quantity of computer node in the enabled node tabulation audio file to be converted is divided into the audio file fragment of respective amount, and sends to each computer node in the enabled node tabulation successively;
3) after each computer node receives the audio file fragment respectively; Open whole cores of processor; And whole cores of utilizing processor are carried out format conversion with the audio file fragment and are obtained purpose form audio file fragment; And sending to Centroid, whole cores of processor are set to the monokaryon opening after sending successfully then;
4) Centroid is received the purpose form audio file fragment that each computer node sends, and after reception finishes, all purpose form audio file fragments merging is obtained final purpose format audio file.
In the present embodiment; After the step 3) Centroid is divided into the audio file fragment with audio file to be converted; Generate the cryptographic hash that is used to verify audio file complete segment property according to the audio file fragment, and send to computer node together with the format audio file fragment; Before computer node carries out format conversion with the audio file fragment; At first the audio file fragment that receives is generated cryptographic hash; And cryptographic hash that generates and the cryptographic hash that receives compared; Carry out format conversion if cryptographic hash is identical, otherwise require to send the corresponding audio files fragment again to Centroid.
In the present embodiment; The detailed step that the step 4) Centroid is received the purpose form audio file fragment of each computer node transmission comprises: Centroid preestablishes overtime critical value; Centroid picks up counting from receiving first purpose form audio file fragment; If timing time surpasses overtime critical value then Centroid abandons receiving the convert task of corresponding computer node; And the corresponding audio files fragment resend to each computer node in the enabled node tabulation, and after receiving corresponding purpose form audio file fragment, all purpose form audio file fragments are merged and obtain final purpose format audio file.
The above is merely preferred implementation of the present invention, and protection scope of the present invention is not limited in above-mentioned execution mode, and every technical scheme that belongs to the principle of the invention all belongs to protection scope of the present invention.For a person skilled in the art, some improvement and the retouching under the prerequisite that does not break away from principle of the present invention, carried out, these improvement and retouching also should be regarded as protection scope of the present invention.
Claims (3)
1. audio conversion method based on local area network (LAN) multinuclear node is characterized in that implementation step is following:
1) obtains the enabled node tabulation that has the multi-core processor computer in the local area network (LAN);
2) Centroid receives audio file to be converted, and according to the quantity of computer node in the enabled node tabulation audio file to be converted is divided into the audio file fragment of respective amount, and sends to each computer node in the enabled node tabulation successively;
3) after each computer node receives the audio file fragment respectively; Open whole cores of processor; And whole cores of utilizing processor are carried out format conversion with the audio file fragment and are obtained purpose form audio file fragment; And sending to Centroid, whole cores of processor are set to the monokaryon opening after sending successfully then;
4) Centroid is received the purpose form audio file fragment that each computer node sends, and after reception finishes, all purpose form audio file fragments merging is obtained final purpose format audio file.
2. the audio conversion method based on local area network (LAN) multinuclear node according to claim 1; It is characterized in that: after said step 3) Centroid is divided into the audio file fragment with audio file to be converted; Generate the cryptographic hash that is used to verify audio file complete segment property according to the audio file fragment, and send to computer node together with the format audio file fragment; Before said computer node carries out format conversion with the audio file fragment; At first the audio file fragment that receives is generated cryptographic hash; And cryptographic hash that generates and the cryptographic hash that receives compared; Carry out format conversion if cryptographic hash is identical, otherwise require to send the corresponding audio files fragment again to Centroid.
3. the audio conversion method based on local area network (LAN) multinuclear node according to claim 2; It is characterized in that; The detailed step that said step 4) Centroid is received the purpose form audio file fragment of each computer node transmission comprises: said Centroid preestablishes overtime critical value; Said Centroid picks up counting from receiving first purpose form audio file fragment; If timing time surpasses said overtime critical value then said Centroid abandons receiving the convert task of corresponding computer node; And the corresponding audio files fragment resend to each computer node in the enabled node tabulation, and after receiving corresponding purpose form audio file fragment, all purpose form audio file fragments are merged and obtain final purpose format audio file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103281075A CN102710589A (en) | 2011-10-26 | 2011-10-26 | Local area network multi-core node-based audio conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103281075A CN102710589A (en) | 2011-10-26 | 2011-10-26 | Local area network multi-core node-based audio conversion method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102710589A true CN102710589A (en) | 2012-10-03 |
Family
ID=46903150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103281075A Pending CN102710589A (en) | 2011-10-26 | 2011-10-26 | Local area network multi-core node-based audio conversion method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102710589A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103237037A (en) * | 2013-05-08 | 2013-08-07 | 华迪计算机集团有限公司 | Media format conversion method and system based on cloud computing architecture |
CN105912927A (en) * | 2015-02-20 | 2016-08-31 | 卡巴斯基实验室股份制公司 | System And Method For Generating Application Control Rules |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123279A (en) * | 2010-12-28 | 2011-07-13 | 乐视网信息技术(北京)股份有限公司 | Distributed real-time transcoding method and system |
CN102214086A (en) * | 2011-06-20 | 2011-10-12 | 复旦大学 | General-purpose parallel acceleration algorithm based on multi-core processor |
-
2011
- 2011-10-26 CN CN2011103281075A patent/CN102710589A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123279A (en) * | 2010-12-28 | 2011-07-13 | 乐视网信息技术(北京)股份有限公司 | Distributed real-time transcoding method and system |
CN102214086A (en) * | 2011-06-20 | 2011-10-12 | 复旦大学 | General-purpose parallel acceleration algorithm based on multi-core processor |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103237037A (en) * | 2013-05-08 | 2013-08-07 | 华迪计算机集团有限公司 | Media format conversion method and system based on cloud computing architecture |
CN103237037B (en) * | 2013-05-08 | 2015-11-18 | 华迪计算机集团有限公司 | Based on the media format conversion method and system of cloud computing framework |
CN105912927A (en) * | 2015-02-20 | 2016-08-31 | 卡巴斯基实验室股份制公司 | System And Method For Generating Application Control Rules |
CN105912927B (en) * | 2015-02-20 | 2019-03-08 | 卡巴斯基实验室股份制公司 | System and method for generating application control rule |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104899325A (en) | APP (application) acquired data collection method, terminal, server and system | |
CN101673289B (en) | Method and device for constructing distributed file storage framework | |
CN102780641B (en) | Flow table aging method and device of quick forwarding engine, and switch | |
CN105518641A (en) | Method, device, and system for peer-to-peer data replication and method, device, and system for master node switching | |
CN111340456A (en) | Edge cloud collaborative data processing method, device and equipment based on Internet of things | |
CN101876984A (en) | Data management system and data relation query method and device thereof | |
US20160006814A1 (en) | Method for propagating network management data for energy-efficient iot network management and energy-efficient iot node apparatus | |
CN104219298A (en) | Cluster system and data backup method thereof | |
CN102710589A (en) | Local area network multi-core node-based audio conversion method | |
US20220004524A1 (en) | Chunking method and apparatus | |
CN107422980B (en) | Internet of things data file storage system and data file storage method thereof | |
CN105337850A (en) | Internet of Things data processing method and internet of Things gateway | |
CN104618371A (en) | Data downloading method, device and system | |
CN103607731A (en) | Method and device for processing measurement reports | |
CN104008116A (en) | File synchronization method and electronic device | |
CN115277871B (en) | Data transmission method, data analysis method, electronic device and storage medium | |
CN102611680A (en) | Multi-core synchronous audio converting method based on multi-core nodes in local area network (LAN) | |
CN103685602A (en) | In-band out-band multiple-address associating method bringing convenience to node management | |
CN102611679A (en) | Multi-core parallel audio converting method based on multi-core nodes in local area network (LAN) | |
CN103605768A (en) | Massive file synchronization speed increasing method in storage systems | |
CN102546659A (en) | Durable TCP (transmission control protocol) connection method oriented to remote procedure call | |
CN115858672A (en) | Power terminal management method and device, electronic equipment and storage medium | |
CN110493216B (en) | Method, system and storage medium for data transparent transmission interception based on embedded serial port | |
CN103714142A (en) | Data search method and device | |
CN110648140B (en) | Multi-chain matching method and device based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20121003 |