CN108124147A - The synthetic method and synthesis system of sound PNG pictures - Google Patents
The synthetic method and synthesis system of sound PNG pictures Download PDFInfo
- Publication number
- CN108124147A CN108124147A CN201711184119.9A CN201711184119A CN108124147A CN 108124147 A CN108124147 A CN 108124147A CN 201711184119 A CN201711184119 A CN 201711184119A CN 108124147 A CN108124147 A CN 108124147A
- Authority
- CN
- China
- Prior art keywords
- data block
- png pictures
- audio address
- audio
- sound
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/79—Processing of colour television signals in connection with recording
- H04N9/80—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
- H04N9/82—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback the individual colour picture signal components being recorded simultaneously only
- H04N9/8205—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback the individual colour picture signal components being recorded simultaneously only involving the multiplexing of an additional signal and the colour video signal
- H04N9/8211—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback the individual colour picture signal components being recorded simultaneously only involving the multiplexing of an additional signal and the colour video signal the additional signal being a sound signal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The present invention provides a kind of synthetic method and synthesis system of sound PNG pictures, and method includes:Obtain PNG pictures and audio address date;The PNG pictures are parsed, obtain all data blocks of the PNG pictures, all data blocks terminate data block including image;It adds the audio address date to described image and terminates data block;Terminate data block to the image for being with the addition of audio address date to verify;It all data blocks in addition to terminating data block except image after verifying successfully and is with the addition of the video data block of audio address date and preserves successively into same file, generate sound PNG pictures.The PNG pictures of generation can be identified compiling by Android or ios compilers, and the file increment of new PNG pictures is very small.Audio address date therein is obtained subsequently through the PNG pictures for parsing the generation, asks to play audio according to the audio address date set.
Description
Technical field
The present invention relates to the synthesis technical fields more particularly to a kind of synthetic method of sound PNG pictures of picture and audio
And synthesis system.
Background technology
With the development of multimedia technology, user is no longer only limitted to static images to the demand of displaying, but increasingly inclines
It is played simultaneously with audio in picture, therefore the synthetic technology of picture and audio is come into being.The existing picture of existing market and
Audio composite software is very more, such as:In graphic detail, sony vegas, AE etc., but picture and audio are closed through these softwares
Become video after, the file of synthesis is excessive or synthesis after PNG pictures cannot be known by Android or ios compilers
It does not apply, the PNG pictures or file after synthesis cannot be reduced by dynamic analysis.
The content of the invention
The technical problems to be solved by the invention are:A kind of synthetic method and synthesis system of sound PNG pictures, energy are provided
It is enough effectively to solve the problems, such as that file is excessive, be compiled and cannot be reduced after synthesis.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
A kind of synthetic method of sound PNG pictures, including:
Obtain PNG pictures and audio address date;
The PNG pictures are parsed, obtain all data blocks of the PNG pictures, all data blocks include image knot
Beam data block;
It adds the audio address date to described image and terminates data block;
Terminate data block to the image for being with the addition of audio address date to verify;
All data blocks in addition to terminating data block except image after verifying successfully and it is with the addition of audio number of addresses
According to video data block preserve successively into same file, generate sound PNG pictures.
Another technical solution provided by the invention is:
A kind of synthesis system of sound PNG pictures, including:
First acquisition module, for obtaining PNG pictures and audio address date;
First parsing module for parsing the PNG pictures, obtains all data blocks of the PNG pictures, described all
Data block terminates data block including image;
Audio address add module terminates data block for adding the audio address date to described image;
Correction verification module verifies for terminating data block to the image for being with the addition of audio address date;
Image generating module, for data block will to be terminated except image after verifying successfully in addition to all data blocks and
The video data block for being with the addition of audio address date is preserved into same file successively, generates sound PNG pictures.
The beneficial effects of the present invention are:The data block of PNG pictures is obtained by parsing PNG pictures, then by audio address
Data terminate data block added to image, and the image for finally preserving other data blocks successively and having modified terminates data block, generate
New PNG pictures.The PNG pictures so generated can be identified compiling by Android or ios compilers, and new PNG schemes
The file increment of piece is very small.Audio address date therein is obtained subsequently through the PNG pictures for parsing the generation, according to the sound
The request of frequency address date set plays audio.
Description of the drawings
Fig. 1 is the flow diagram of the synthetic method of the sound PNG pictures of the embodiment of the present invention;
Fig. 2 is the structure diagram of the synthesis system of the sound PNG pictures of the embodiment of the present invention;
Fig. 3 is the structure diagram of the synthesis system of the sound PNG pictures of the embodiment of the present invention one.
Label declaration:
1st, the first acquisition module;11st, the second acquisition module;12nd, encrypting module;2nd, the first parsing module;3rd, audio address
Add module;31st, the first modified module;32nd, the second modified module;4th, correction verification module;5th, image generating module;6th, the 3rd obtain
Module;7th, display module;8th, the second parsing module;9th, deciphering module;10th, the 4th acquisition module;11st, playing module.
Specific embodiment
For the technology contents that the present invention will be described in detail, the objects and the effects, below in conjunction with embodiment and coordinate attached
Figure is explained.
The design of most critical of the present invention is:It parses PNG pictures and obtains all data blocks of PNG pictures, by audio address
Data terminate data block added to image.
Fig. 1 is refer to, the present invention provides:
A kind of synthetic method of sound PNG pictures, including:
Obtain PNG pictures and audio address date;
The PNG pictures are parsed, obtain all data blocks of the PNG pictures, all data blocks include image knot
Beam data block;
It adds the audio address date to described image and terminates data block;
Terminate data block to the image for being with the addition of audio address date to verify;
All data blocks in addition to terminating data block except image after verifying successfully and it is with the addition of audio number of addresses
According to video data block preserve successively into same file, generate sound PNG pictures.
As can be seen from the above description, the advantageous effect of the synthetic method of the sound PNG pictures of the present invention is:What is generated is sound
PNG pictures can be compiled by Android or ios compilers, and the file increment of sound PNG pictures is very small.
Further, described image terminate data block structure include length, data block type code, data block data and
Cyclic redundancy check adds the audio address date and terminates data block to described image specifically including:
The data block data is revised as the audio address date;
The length is revised as to the length of the audio address date.
Further, the image for being with the addition of audio address date is terminated data block carry out verification specifically include:
It is verified according to the data in the rule of the cyclic redundancy check and data block type code.
As can be seen from the above description, above-mentioned modification mode can be ensured that the build-in attribute of PNG pictures will not change, and ensure generation
Sound PNG pictures normally can show and compile.
Further, audio address date is obtained to specifically include:
Obtain audio address;
The audio address is encrypted to obtain audio address date.
As can be seen from the above description, in order to ensure data safety, PNG pictures are added to after audio address can be encrypted again
Image terminate in data block.
Further, after generating sound PNG pictures, further comprise:
Obtain sound PNG pictures;
Show the sound PNG pictures;
The PNG pictures are parsed, obtain audio address date;
The audio address date is decrypted to obtain audio address;
According to the audio address that decryption obtains corresponding audio file is obtained from server;
Play the audio file.
As can be seen from the above description, when user uses the sound PNG pictures, directly shown using corresponding compiler,
The sound PNG pictures are parsed simultaneously, obtain audio address date, corresponding sound is asked to server using audio address
Frequency file plays out.If audio address date is encrypted, first audio address date is decrypted with obtaining audio
Location, then carry out subsequent step.
Fig. 2 is refer to, another technical solution of the invention is:
A kind of synthesis system of sound PNG pictures, it is corresponding with the synthetic method of above-mentioned sound PNG pictures, including:
First acquisition module 1, for obtaining PNG pictures and audio address date;
First parsing module 2 for parsing the PNG pictures, obtains all data blocks of the PNG pictures, the institute
There is data block to terminate data block including image;
Audio address add module 3 terminates data block for adding the audio address date to described image;
Correction verification module 4 verifies for terminating data block to the image for being with the addition of audio address date;
Image generating module 5, for data block will to be terminated except image after verifying successfully in addition to all data blocks with
And be with the addition of the video data block of audio address date and preserve successively into same file, generate sound PNG pictures.
Further, described image terminate data block structure include length, data block type code, data block data and
Cyclic redundancy check, audio address add module 3 specifically include:
First modified module 31, for the data block data to be revised as the audio address date;
Second modified module 32, for the length to be revised as to the length of the audio address date.
Further, correction verification module 4 is specifically used for according to the rule of the cyclic redundancy check and data block type code
In data verified.
Further, the first acquisition module 1 specifically includes:
Second acquisition module 11, for obtaining audio address;
Encrypting module 12, for the audio address to be encrypted to obtain audio address date.
Further, further include:
3rd acquisition module 6, for obtaining sound PNG pictures;
Display module 7, for showing the sound PNG pictures;
Second parsing module 8 for parsing the PNG pictures, obtains audio address date;
Deciphering module 9, for being decrypted to obtain audio address to the audio address date;
4th acquisition module 10, for obtaining corresponding audio file from server according to the audio address that decryption obtains;
Playing module 11, for playing the audio file.
Here is two specific embodiments of the present invention, before describing an embodiment, first to the file structures of PNG pictures into
Row simple declaration:
The file of PNG is by multiple data chunks into the information of specific data block is as follows:
The Length (length) by 4 bytes, the Chunk Type Code (data block types of 4 bytes of each database
Code), four part groups of CRC (cyclic redundancy check) of the variable Chunk Data (data block data) of byte length and 4 bytes
Into data block data storage is used for detecting whether wrong according to data block type code specified data, cyclic redundancy check storage
Cyclic Redundancy Code by mistake.
Value in cyclic redundancy check domain is that the data in data block type code domain and data block data domain are calculated
It obtains.V.42 cyclic redundancy check domain specific algorithm is defined on ISO 3309 and ITU-T in, value is given birth to by following CRC code
It is calculated into multinomial:
x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1。
Fig. 1 is refer to, the embodiment of the present invention one is:
A kind of synthetic method of sound PNG pictures, including:
Obtain PNG pictures and audio address;
The audio address is encrypted to obtain audio address date;
The PNG pictures are parsed, read all data blocks of the PNG pictures, all data blocks include image
Terminate data block, the structure that described image terminates data block includes length, data block type code, data block data and cycles superfluous
Remaining detection;Specifically, be read out to PNG pictures, using data block by the length of 4 bytes, 4 bytes data block type code,
The structure of the data block data of variable byte length and the CRC of 4 bytes splits PNG file formats to obtain PNG pictures
Each data block;
The data block data that described image is terminated to data block is revised as the audio address date;
The length is revised as to the length of the audio address date;
The data in data block type code domain and database data field are carried out according to the value in cyclic redundancy check domain
CRC32 encryptions obtain, and recalculate image and terminate value in the cyclic redundancy check domain of data block;
By all data blocks parsed in addition to image terminates data block and sound is with the addition of after verifying successfully
The video data block of frequency address date is preserved into same file successively according to the order of reading, generates sound PNG pictures;
Obtain sound PNG pictures;
PNG pictures are read out, show the sound PNG pictures;
Using data block by the length of 4 bytes, the data block type code of 4 bytes, variable byte length data block data
With the structure of the CRC of 4 bytes, analytical decomposition is carried out to the PNG pictures and obtains each data block of PNG pictures, and is obtained
Image is taken to terminate data block;
Analysis diagram picture terminates data block, reads the data block data that image terminates variable-length in data block, the variable length
The data block data of degree, that is, audio address date;
The audio address date is decrypted to obtain audio address;
According to the audio address that decryption obtains corresponding audio file is obtained from server;
Play the audio file.
Fig. 3 is refer to, the embodiment of the present invention two is:
A kind of synthesis system of sound PNG pictures, including:
First acquisition module 1, for obtaining PNG pictures and audio address date;First acquisition module 1 specifically includes:The
Two acquisition modules 11, for obtaining audio address;Encrypting module 12, for the audio address to be encrypted with obtaining audio
Location data;
First parsing module 2 for parsing the PNG pictures, obtains all data blocks of the PNG pictures, the institute
There is data block to terminate data block including image;The structure that described image terminates data block includes length, data block type code, data
Block number is according to this and cyclic redundancy check;
Audio address add module 3 terminates data block for adding the audio address date to described image;Audio
Location add module 3 specifically includes:First modified module 31, for the data block data to be revised as the audio number of addresses
According to;Second modified module 32, for the length to be revised as to the length of the audio address date.
Correction verification module 4 carries out for the data in the rule according to the cyclic redundancy check and data block type code
Verification;
Image generating module 5, for data block will to be terminated except image after verifying successfully in addition to all data blocks with
And be with the addition of the video data block of audio address date and preserve successively into same file, generate sound PNG pictures;
3rd acquisition module 6, for obtaining sound PNG pictures;
Display module 7, for showing the sound PNG pictures;
Second parsing module 8 for parsing the PNG pictures, obtains audio address date;
Deciphering module 9, for being decrypted to obtain audio address to the audio address date;
4th acquisition module 10, for obtaining corresponding audio file from server according to the audio address that decryption obtains;
Playing module 11, for playing the audio file.
The synthetic method and synthesis system of above-mentioned sound PNG pictures can be applied to various need to carry out picture and audio to broadcast
The scene put.Such as in education product, each subject courseware, both pictures and texts are excellent for courseware, and student sees the picture in courseware sometimes
Be not to know better, it is desirable to teacher can explain the content in picture, then by teacher explanation audio file address link
It is synthesized with original picture, student clicks on the voice that the picture after synthesis can play teacher's explanation when in use, so
The effect that picture influences becomes apparent, and considerably increases the interest and school's effect of student's study.
In conclusion the synthetic method and synthesis system of sound PNG pictures provided by the invention, can generate comprising audio
The PNG pictures of link, can play audio file while picture presentation, and with can be by Android and ios compilers
The advantages of identification compiling and small file increment.
The foregoing is merely the embodiment of the present invention, are not intended to limit the scope of the invention, every to utilize this hair
The equivalents that bright specification and accompanying drawing content are made directly or indirectly are used in relevant technical field, similarly include
In the scope of patent protection of the present invention.
Claims (10)
1. a kind of synthetic method of sound PNG pictures, which is characterized in that including:
Obtain PNG pictures and audio address date;
The PNG pictures are parsed, obtain all data blocks of the PNG pictures, all data blocks terminate to count including image
According to block;
It adds the audio address date to described image and terminates data block;
Terminate data block to the image for being with the addition of audio address date to verify;
All data blocks in addition to terminating data block except image after verifying successfully and it is with the addition of audio address date
Video data block is preserved into same file successively, generates sound PNG pictures.
2. the synthetic method of sound PNG pictures according to claim 1, which is characterized in that described image terminates data block
Structure include length, data block type code, data block data and cyclic redundancy check, add the audio address date extremely
Described image terminates data block and specifically includes:
The data block data is revised as the audio address date;
The length is revised as to the length of the audio address date.
3. the synthetic method of sound PNG pictures according to claim 2, which is characterized in that being with the addition of audio number of addresses
According to image terminate data block carry out verification specifically include:
It is verified according to the data in the rule of the cyclic redundancy check and data block type code.
4. the synthetic method of sound PNG pictures according to claim 1, which is characterized in that obtain audio address date tool
Body includes:
Obtain audio address;
The audio address is encrypted to obtain audio address date.
5. the synthetic method of sound PNG pictures according to claim 4, which is characterized in that generate sound PNG pictures it
Afterwards, further comprise:
Obtain sound PNG pictures;
Show the sound PNG pictures;
The PNG pictures are parsed, obtain audio address date;
The audio address date is decrypted to obtain audio address;
According to the audio address that decryption obtains corresponding audio file is obtained from server;
Play the audio file.
6. a kind of synthesis system of sound PNG pictures, which is characterized in that including:
First acquisition module, for obtaining PNG pictures and audio address date;
First parsing module for parsing the PNG pictures, obtains all data blocks of the PNG pictures, all data
Block terminates data block including image;
Audio address add module terminates data block for adding the audio address date to described image;
Correction verification module verifies for terminating data block to the image for being with the addition of audio address date;
Image generating module, for data block will to be terminated except image after verifying successfully in addition to all data blocks and addition
The video data block of audio address date is preserved into same file successively, generates sound PNG pictures.
7. the synthesis system of sound PNG pictures according to claim 6, which is characterized in that described image terminates data block
Structure include length, data block type code, data block data and cyclic redundancy check, audio address add module specifically wraps
It includes:
First modified module, for the data block data to be revised as the audio address date;
Second modified module, for the length to be revised as to the length of the audio address date.
8. the synthesis system of sound PNG pictures according to claim 7, which is characterized in that correction verification module be specifically used for according to
It is verified according to the data in the rule of the cyclic redundancy check and data block type code.
9. the synthesis system of sound PNG pictures according to claim 6, which is characterized in that the first acquisition module specifically wraps
It includes:
Second acquisition module, for obtaining audio address;
Encrypting module, for the audio address to be encrypted to obtain audio address date.
10. the synthesis system of sound PNG pictures according to claim 9, which is characterized in that further include:
3rd acquisition module, for obtaining sound PNG pictures;
Display module, for showing the sound PNG pictures;
Second parsing module for parsing the PNG pictures, obtains audio address date;
Deciphering module, for being decrypted to obtain audio address to the audio address date;
4th acquisition module, for obtaining corresponding audio file from server according to the audio address that decryption obtains;
Playing module, for playing the audio file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711184119.9A CN108124147B (en) | 2017-11-23 | 2017-11-23 | Method and system for synthesizing audio PNG picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711184119.9A CN108124147B (en) | 2017-11-23 | 2017-11-23 | Method and system for synthesizing audio PNG picture |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108124147A true CN108124147A (en) | 2018-06-05 |
CN108124147B CN108124147B (en) | 2019-12-10 |
Family
ID=62227856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711184119.9A Active CN108124147B (en) | 2017-11-23 | 2017-11-23 | Method and system for synthesizing audio PNG picture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108124147B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609968A (en) * | 2012-03-05 | 2012-07-25 | 信源通科技(深圳)有限公司 | Method and system for realizing audio picture |
CN102819851A (en) * | 2012-08-08 | 2012-12-12 | 成都思珩网络科技有限公司 | Method for implementing sound pictures by using computer |
CN103646048A (en) * | 2013-11-25 | 2014-03-19 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for achieving multimedia pictures |
CN104991950A (en) * | 2015-07-16 | 2015-10-21 | 百度在线网络技术(北京)有限公司 | Picture generating method, display method and corresponding devices |
CN106777204A (en) * | 2016-12-23 | 2017-05-31 | 北京奇虎科技有限公司 | The processing method of image data, device and mobile terminal |
-
2017
- 2017-11-23 CN CN201711184119.9A patent/CN108124147B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609968A (en) * | 2012-03-05 | 2012-07-25 | 信源通科技(深圳)有限公司 | Method and system for realizing audio picture |
CN102819851A (en) * | 2012-08-08 | 2012-12-12 | 成都思珩网络科技有限公司 | Method for implementing sound pictures by using computer |
CN103646048A (en) * | 2013-11-25 | 2014-03-19 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for achieving multimedia pictures |
CN104991950A (en) * | 2015-07-16 | 2015-10-21 | 百度在线网络技术(北京)有限公司 | Picture generating method, display method and corresponding devices |
CN106777204A (en) * | 2016-12-23 | 2017-05-31 | 北京奇虎科技有限公司 | The processing method of image data, device and mobile terminal |
Non-Patent Citations (1)
Title |
---|
来了就走下去: "《https://blog.csdn.net/u012009613/article/details/49928343,将文件内容隐藏到PNG图片中》", 19 November 2015 * |
Also Published As
Publication number | Publication date |
---|---|
CN108124147B (en) | 2019-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101311893B (en) | Mixed reality presentation apparatus and control method | |
US7979719B2 (en) | Data authentication method and data authentication system | |
CN101231622A (en) | Data storage method and equipment base on flash memory, as well as data fetch method and apparatu | |
CN106303303A (en) | Method and device for translating subtitles of media file and electronic equipment | |
CN106249903A (en) | Virtual reality scene content playing method and device | |
CN107516045A (en) | Document protection method and device | |
KR20200009594A (en) | Method for providing virtual-reality cartoon service using panoramic image | |
Mahrous et al. | Enhancing student learning of removable prosthodontics using the latest advancements in virtual 3D modeling | |
CN107562434A (en) | Preparation method, upgrade method, device and the equipment of upgrade file | |
CN112506878A (en) | File processing method and device, storage medium and electronic equipment | |
CN112668453A (en) | Video identification method and related equipment | |
JP5646187B2 (en) | Access method, generation method, user apparatus, and generation apparatus | |
CN104731583A (en) | Study scheme generation system and method based on numbering recording of exercises and knowledge points | |
CN105740661B (en) | A kind of method and apparatus for protecting application program | |
CN104539424B (en) | A kind of anti-tamper examinee's data transmission method | |
WO2012123825A1 (en) | Adding watermarks to video content | |
CN102487455A (en) | Video play system of rich media content and method thereof | |
CN108124147A (en) | The synthetic method and synthesis system of sound PNG pictures | |
CN105430481B (en) | The automatic test approach and device of code stream subtitle | |
Ensom et al. | Preserving virtual reality artworks | |
CN104363466B (en) | A kind of Picture Generation Method and device | |
CN106326779A (en) | App copyright information loading method and system based on digital signature | |
CN103823650B (en) | The display system and display methods of approval and sign person's handwriting | |
CN110189388A (en) | Animation detection method, readable storage medium storing program for executing and computer equipment | |
CN104079982B (en) | The seed file processing method and processing device of video |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |