CN102819851B - Method for implementing sound pictures by using computer - Google Patents

Method for implementing sound pictures by using computer Download PDF

Info

Publication number
CN102819851B
CN102819851B CN201210280303.4A CN201210280303A CN102819851B CN 102819851 B CN102819851 B CN 102819851B CN 201210280303 A CN201210280303 A CN 201210280303A CN 102819851 B CN102819851 B CN 102819851B
Authority
CN
China
Prior art keywords
data
audio
entered
character string
file
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.)
Expired - Fee Related
Application number
CN201210280303.4A
Other languages
Chinese (zh)
Other versions
CN102819851A (en
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.)
CHENGDU SIHENG NETWORK TECHNOLOGY Co Ltd
Original Assignee
CHENGDU SIHENG NETWORK 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 CHENGDU SIHENG NETWORK TECHNOLOGY Co Ltd filed Critical CHENGDU SIHENG NETWORK TECHNOLOGY Co Ltd
Priority to CN201210280303.4A priority Critical patent/CN102819851B/en
Publication of CN102819851A publication Critical patent/CN102819851A/en
Application granted granted Critical
Publication of CN102819851B publication Critical patent/CN102819851B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a method for implementing sound pictures by using a computer, comprising the following steps: preparing data, cording for the first time, cording for the second time, synthesizing and compressing, outputting data, and decompressing and playing. Therefore, the output files of the sound pictures can be obtained and played. The compressing and the decompressing can be carried out by programming with a variety of different computer languages, and the sound pictures can be played on the local computer or network.

Description

A kind of computer implemented method of talking picture
Technical field
A kind of computer implemented method of talking picture.
Background technology
Computer technology is advanced by leaps and bounds, multimedia era of having passed by, the Internet era of entering, people can very easily on network search check picture, audio frequency or audio-visual.Nowadays, internet progresses into interaction and shares the epoch, types of facial makeup in Beijing operas net facebook fashionable abroad, push away special twitter and domestic fashionable Renren Network, microblogging, micro-letter etc. large area obtain the accreditation of user and like, a lot of people has even become " everybody control ", " microblogging control ", user has strong self consciousness or shares love knot, the lunch had today can be taken and be dealt into microblogging and surround and watch friend, or share a first pleasing to the ear song to everybody, more or send a micro-letter to toots.The inventor of talking picture is intended to the multimedia form that people provide a kind of " photo is dubbed ", shares the audio frequency of moment and the record oneself taken for people on the internet, and this is audio-visual more meaningful than traditional.
Existing video capture combine with technique picture and sound, but shooting and complex manufacturing process, share also inconvenient.Video original data after shooting needs through coding, there are the major video codings such as AVI, RM at present, the equipment and the software license cost of use that make video file are expensive, require high to the professional skill of wright, the video file data volume produced is large, editability is poor, and the video file of band audio frequency is well known on the media play such as TV, film carrier, and attractive force weakens.
In addition, video file is difficult to directly play on webpage usually, and existing main flow web browser typically uses FLASH player plug-in unit to play video, and the video file of many forms, video file as AVI, RM form all can not utilize FLASH player plays.
Summary of the invention
The invention provides a kind of computer implemented method of talking picture.
Technical scheme of the present invention comprises the steps:
A. data preparation step: prepare the view data and the voice data that need synthesis; If these images and voice data have been binary formats, then skip step b and directly entered step c; If not, then enter step b;
B. the first coding step: be scale-of-two raw information by view data and audio data coding, i.e. image scale-of-two raw information and Audio Binary raw information;
C. the second coding step: the image scale-of-two raw information obtained in a or b step and Audio Binary raw information are carried out encoding and compressing, obtains view data P1 to be entered and voice data S1 to be entered;
D. compression step is synthesized:
Described synthesis compression step comprises following d1 and d2 two kinds of implementations:
D1 creates a byte arrays B1, and the view data P1 to be entered drawn in file header character string, picture identification character string, step c, audio frequency are judged that the voice data S1 to be entered drawn in valid data, audio identification character string, step c inputs this byte arrays B1 by the corresponding relation of the address preset and data; Input this byte arrays of rear compression; Described file header character string is the binary data of definition output file form, picture identification character string is the binary data of Description Image data layout, audio frequency judges that valid data are the binary data judging to have audio file, and audio identification character string is the binary data of identification audio data layout;
D2 creates a byte arrays B2, and the view data P2 to be entered drawn in file header character string, picture identification character string, step c, audio frequency are judged that invalid data inputs this byte arrays B2 by the corresponding relation of the address preset and data; Input this byte arrays of rear compression; Described file header character string is the binary data of definition output file form, and picture identification character string is the binary data of Description Image data layout, and described audio frequency judges that invalid data is the binary data judging absence of audio file;
E. data step is exported: the byte arrays after compression in Step d is exported the data file B3 for talking picture and stores;
F. decompress(ion) plays step: the data file B3 of the talking picture obtained in step e is carried out decompress(ion) and decoding broadcasting.
Utilize above-mentioned steps can obtain the output file of talking picture of the present invention, and the output file of talking picture is play.
Preferably, the view data P1 to be entered that the implementation procedure image scale-of-two raw information obtained in a or b step being carried out encoding and compress to obtain view data P1 to be entered in c. second coding step is is PNG or jpeg format by PNG or jpeg coder compression coding.The implementation procedure of encoding to Audio Binary raw information and compress to obtain voice data S1 to be entered is: the data by WAV encoder encodes being WAV form, then is the voice data S1 to be entered of MP3 format by MP3 encoder compresses by the data of WAV form.By the compression efficiency using the Software Compression technology of the known maturation in the industry such as PNG, JPEG, WAV, MP3 can improve talking picture file of the present invention, reduce data space.
Also OBJECTIVE-C language programming can be used to realize, and OBJECTIVE-C is the Object-Oriented Programming Language expanding C language, the programming language of IPhone and the iPad Application and Development of current American apple company
Another preferred embodiment: d. synthesizes compression step and/or f. decompress(ion) broadcasting step uses computerese JAVA or C++ programming realization.C++ programming efficiency is high, and JAVA language has professional platform independence, convenient transplanting.When using these language programming, as long as correspondence carries out language programming uncompressed encoding in f. decompress(ion) broadcasting step, just can realize both playing on this locality or server, also can play on the web browser that uncompressed encoding software is housed.
D. synthesis compression step and/or f. decompress(ion) broadcasting step also can use Objective-C language programming to realize, Objective-C is the Object-Oriented Programming Language expanding C language, also be the programming language of IPhone and the iPad Application and Development of current American apple company, use Objective-C language compilation, be convenient to use on IPhone and iPad.
Another is preferred embodiment: it is use computerese Action Script3.0 programming realization that d. synthesizes compression step, and f. decompress(ion) is play step and directly used FLASH player software to realize.Due to FLASH player software widely using in main flow web browser software, the present embodiment is actual achieves talking picture file of the present invention play-overing on webpage.
The present invention is simple about the computer implemented method of talking picture, software and hardware is required that environment is all not high, use various computerese can programming realization to the making of talking picture data file of the present invention and broadcasting, easy and simple to handle, owing to carrying out synthesis compression step to picture and audio file, the data volume of the talking picture obtained is little, not only takies storage space little, and is conducive to fast transport and broadcasting on the limited network of network speed.
Play in step at f. decompress(ion), the software program using any one computerese to write carries out uncompressed encoding broadcasting to the data of talking picture, both can locally on computers play, also can play on network, as long as carry this software package for uncompressed encoding on web browser, just can be implemented in the broadcasting on web browser.
Preferably, technical solutions according to the invention are when Step d adopts Action Script3.0 Programming with Pascal Language to realize, and the output file of the talking picture obtained can directly be play-overed on the webpage with FLASH player plug-in unit.
Accompanying drawing explanation
Figure of description illustrates the step block diagram of the computer implemented method of talking picture of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
Accompanying drawing illustrates the computer implemented method of talking picture of the present invention, comprises the steps:
A. data preparation step: prepare the view data and the voice data that need synthesis; If these images and voice data have been binary format, then skip step b and directly entered step c; If not, then enter step b;
B. the first coding step: be scale-of-two raw information by view data and audio data coding, i.e. image scale-of-two raw information and Audio Binary raw information;
C. the second coding step: the image scale-of-two raw information obtained in a or b step and Audio Binary raw information are carried out encoding and compressing, obtains view data P1 to be entered and voice data S1 to be entered;
D. synthesize compression step: create a byte arrays B1, the view data P1 to be entered drawn in file header character string, picture identification character string, step c, audio frequency are judged that the voice data S1 to be entered drawn in valid data, audio identification character string, step c inputs this byte arrays B1 by the corresponding relation of the address preset and data; Input this byte arrays of rear compression; Described file header character string is the binary data of definition output file form, picture identification character string is the binary data of Description Image data layout, audio frequency judges that valid data are the binary data judging to have audio file, and audio identification character string is the binary data of identification audio data layout;
E. data step is exported: the byte arrays after compression in Step d is exported the data file B3 for talking picture and stores;
F. decompress(ion) plays step: the data file B3 of the talking picture obtained in step e is carried out decompress(ion) and decoding broadcasting.
Below the specific embodiment of the present invention and optimal technical scheme are set forth:
A. can by various mode in data preparation step, such as scanning, digital filming, digital recording or selection are used as with the picture file of arbitrary format preservation and audio file the image data and the voice data that need synthesis.Because follow-up step c needs the file of binary format, if what therefore obtain in a step is not picture and the voice data of binary format, so enter b step and be translated into binary format, if what obtain in a step is picture and the voice data of binary format, so do not need carry out b step and directly enter step c.
The data storage method of binary format is the basic storage mode that computing machine stores data, nearly all computing machine can realize described b. first coding step, be scale-of-two raw information by view data and audio data coding, i.e. image scale-of-two raw information and Audio Binary raw information
C. the second coding step can adopt various conventional compression processing format to carry out compression coding to image and voice data, obtain view data P1 to be entered and voice data S1 to be entered, the compression process of data is wished that decrement is larger, fidelity is more high better.PNG and jpeg format is preferably selected to carry out compression coding to view data, the maximum compressibility to view data and high fidelity can be realized, the processing selecting PNG of view data or JPEG coding is decided by whether image to be processed has transparent channel, namely PNG form can process the picture of transparent background, and JPEG then can not process the picture of transparent background.For the same reason, preferably adopt WAV scrambler to be the data of WAV form to audio data coding, then be that MP3 format is with maximum compression data by the data of described WAV form by MP3 encoder compresses.PNG and JPEG be all a kind of according to certain rule, compression coding is carried out to view data after a kind of file memory format of exporting, possess high compression amount and high fidelity.WAV is a kind of audio files compressed software of Microsoft's exploitation, also be used for name compression after file layout, i.e. WAV form, MP3 is a kind of audio compression techniques, its full name is Moving Picture Experts Group Audio Layer III, referred to as MP3, audio file significantly can be compressed into the little file of data volume, file after compression is also referred to as MP3, and the present invention utilizes the software engineering of these known maturations to improve compressing file effect.
D. synthesize in compression step, by the form of picture and voice data, namely picture identification character string and audio identification character string; With the information of data itself, namely the File header information etc. of view data P1 to be entered and voice data S1 to be entered and output file is stored into a byte arrays, when storing these information, need according to certain address corresponding relation, above-mentioned various data to be inputted into this array, picture and voice data information can be read from this byte arrays accurately according to address location in follow-up uncompressed encoding step, and define the extension name of output file.Synthesize in compression step at d., if do not need audio file, so no longer input audio frequency and judge valid data, and change into and input audio frequency and judge invalid data, and follow-up audio identification character string and voice data to be entered also no longer input.The final like this file obtained will only have picture show and do not have audio frequency to play when playing.Such as when needs input audio file, audio frequency judges valid data input 1, and when not needing to input audio file, input audio frequency judges invalid data 0.
After Data Synthesis, the data exported are exactly talking picture data file of the present invention, on the hard disk these data being stored in local computer or on server, when user plays this file, only need the data file to this exports to carry out uncompressed encoding, the process of uncompressed encoding is play step at f. decompress(ion) and is realized by language programming.
D. synthesis compression step and f. decompress(ion) broadcasting step carry out compression coding and uncompressed encoding broadcasting to the file of input respectively, this process can utilize various mainstream computer Programming with Pascal Language to realize, such as use a large amount of JAVA and C++ computerese used at present, use C Plus Plus programming efficiency high, use JAVA language then can realize coding on various devices, there is professional platform independence.Step d and f step can adopt identical language programming, but different computereses also can be adopted to realize, as long as can encode and uncompressed encoding to data.Such as Step d adopts JAVA, f step to adopt C++ programming realization.D. synthesis compression step and/or f. decompress(ion) broadcasting step also can use Objective-C language programming to realize, Objective-C is the Object-Oriented Programming Language expanding C language, also be the programming language of IPhone and the iPad Application and Development of current American apple company, use Objective-C language compilation, be convenient to use on IPhone and iPad.
Corresponding, play in step at f. decompress(ion), the software program using any one computerese to write carries out uncompressed encoding broadcasting to the data of talking picture, both can locally on computers play, also can play on network, as long as carry this software package for uncompressed encoding on web browser, just can be implemented in the broadcasting on web browser.
The present invention preferably uses Action Script3.0 computerese in d. synthesis compression step, be called for short AS3.0 language and carry out programming realization, AS3.0 language is for Adobe Flash Player software program, the programming language of the FLASH player software running environment be namely usually called for short, it achieves interactivity, data processing and other many function in Flash content and application program.Synthesizing in compression step at d. uses AS3.0 Programming with Pascal Language to realize, play in step at f. decompress(ion) and just need not use demoder in addition, and directly use FLASH player software to play, and FLASH player plug-in unit uses in a large number at present in the web browser of main flow, user is directly by just playing the data file of talking picture of the present invention with the webpage of FLASH player plug-in unit, easy to use.
Present invention achieves a kind of multimedia show form, namely the implementation method of the picture of band sound is shown on computers, the present invention is simple about the computer implemented method of talking picture, software and hardware is required that environment is all not high, use various computerese can programming realization to the making of talking picture data file of the present invention and broadcasting, easy and simple to handle, band picture after the synthesis obtained and the data file of audio-frequency information are owing to adopting image and the audio coding formats of high compression ratio, carry out synthesis compression process again, coded data volume is very little, such as more than screen resolution 1000x600, only less than 300KB during 10 seconds sound, not only storage space is little, and be easy to fast transport and broadcasting on the network that network speed is certain.
Above-describedly be only the preferred embodiments of the present invention; described embodiment is also not used to limit scope of patent protection of the present invention; therefore the principle done of every utilization instructions of the present invention and accompanying drawing content is identical; the change that specific implementation is different, in like manner all should be included in protection scope of the present invention.

Claims (5)

1. a computer implemented method for talking picture, comprises the steps:
A. data preparation step: prepare the view data and the voice data that need synthesis; If these images and voice data have been binary formats, then skip step b and directly entered step c; If not, then enter step b;
B. the first coding step: be scale-of-two raw information by view data and audio data coding, i.e. image scale-of-two raw information and Audio Binary raw information;
C. the second coding step: the image scale-of-two raw information obtained in a or b step and Audio Binary raw information are carried out encoding and compressing, obtains view data P1 to be entered and voice data S1 to be entered;
D. compression step is synthesized:
Described synthesis compression step comprises following d1 and d2 two kinds of implementations:
D1 creates a byte arrays B1, and the view data P1 to be entered drawn in file header character string, picture identification character string, step c, audio frequency are judged that the voice data S1 to be entered drawn in valid data, audio identification character string, step c inputs this byte arrays B1 by the corresponding relation of the address preset and data; Input this byte arrays of rear compression; Described file header character string is the binary data of definition output file form, picture identification character string is the binary data of Description Image data layout, audio frequency judges that valid data are the binary data judging to have audio file, and audio identification character string is the binary data of identification audio data layout;
D2 creates a byte arrays B2, and the view data P2 to be entered drawn in file header character string, picture identification character string, step c, audio frequency are judged that invalid data inputs this byte arrays B2 by the corresponding relation of the address preset and data; Input this byte arrays of rear compression; Described file header character string is the binary data of definition output file form, and picture identification character string is the binary data of Description Image data layout, and described audio frequency judges that invalid data is the binary data judging absence of audio file;
E. data step is exported: the byte arrays after compression in Step d is exported the data file B3 for talking picture and stores;
F. decompress(ion) plays step: the data file B3 of the talking picture obtained in step e is carried out decompress(ion) and decoding broadcasting.
2. the computer implemented method of a kind of talking picture as claimed in claim 1, is characterized in that: the implementation procedure carrying out the image scale-of-two raw information obtained in a or b step to encode and compress to obtain view data P1 to be entered in described c. second coding step is: the view data P1 to be entered by PNG or jpeg coder compression coding being PNG or jpeg format.
3. the computer implemented method of a kind of talking picture as claimed in claim 1, it is characterized in that: the implementation procedure in described c. second coding step carrying out the Audio Binary raw information obtained in a or b step encoding and compress to obtain voice data S1 to be entered is: the data by WAV encoder encodes being WAV form, then be the voice data S1 to be entered of MP3 format by MP3 encoder compresses by the data of WAV form.
4. the computer implemented method of talking picture as claimed in claim 1, is characterized in that: described d. synthesizes compression step and/or f. decompress(ion) broadcasting step uses computerese JAVA or C++ or Objective-C programming realization.
5. the computer implemented method of talking picture as claimed in claim 1, it is characterized in that: it is use computerese Action Script3.0 programming realization that described d. synthesizes compression step, and described f. decompress(ion) is play step and directly used FLASH player software to realize.
CN201210280303.4A 2012-08-08 2012-08-08 Method for implementing sound pictures by using computer Expired - Fee Related CN102819851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210280303.4A CN102819851B (en) 2012-08-08 2012-08-08 Method for implementing sound pictures by using computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210280303.4A CN102819851B (en) 2012-08-08 2012-08-08 Method for implementing sound pictures by using computer

Publications (2)

Publication Number Publication Date
CN102819851A CN102819851A (en) 2012-12-12
CN102819851B true CN102819851B (en) 2015-03-18

Family

ID=47303954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210280303.4A Expired - Fee Related CN102819851B (en) 2012-08-08 2012-08-08 Method for implementing sound pictures by using computer

Country Status (1)

Country Link
CN (1) CN102819851B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646048A (en) * 2013-11-25 2014-03-19 宇龙计算机通信科技(深圳)有限公司 Method and device for achieving multimedia pictures
CN106033617B (en) * 2015-03-16 2019-10-18 广州四三九九信息科技有限公司 A kind of method that combination visualization tool carries out game picture Intelligent Compression
CN105261054A (en) * 2015-08-27 2016-01-20 努比亚技术有限公司 Device and method for compositing audio GIF image
CN105472289B (en) * 2015-11-11 2019-02-22 努比亚技术有限公司 Edit the device and method of sound photo
CN107888558A (en) * 2017-10-09 2018-04-06 广东教教圈圈动漫科技有限公司 One kind paints this dubbing method, device and system
CN108124147B (en) * 2017-11-23 2019-12-10 福建天晴数码有限公司 Method and system for synthesizing audio PNG picture
CN110288666B (en) * 2019-06-28 2023-10-03 深圳前海微众银行股份有限公司 Data compression method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1379951A (en) * 1999-09-03 2002-11-13 托马斯·W·米耶 Digital computer system
US6687383B1 (en) * 1999-11-09 2004-02-03 International Business Machines Corporation System and method for coding audio information in images
CN1744717A (en) * 1997-09-22 2006-03-08 索尼公司 Device for generating stream of bits containing binary image/voice data
CN101174448A (en) * 2007-12-10 2008-05-07 北京炬力北方微电子有限公司 Talking picture playing method and device, method for generating index file of talking picture
CN102609968A (en) * 2012-03-05 2012-07-25 信源通科技(深圳)有限公司 Method and system for realizing audio picture

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744717A (en) * 1997-09-22 2006-03-08 索尼公司 Device for generating stream of bits containing binary image/voice data
CN1379951A (en) * 1999-09-03 2002-11-13 托马斯·W·米耶 Digital computer system
US6687383B1 (en) * 1999-11-09 2004-02-03 International Business Machines Corporation System and method for coding audio information in images
CN101174448A (en) * 2007-12-10 2008-05-07 北京炬力北方微电子有限公司 Talking picture playing method and device, method for generating index file of talking picture
CN102609968A (en) * 2012-03-05 2012-07-25 信源通科技(深圳)有限公司 Method and system for realizing audio picture

Also Published As

Publication number Publication date
CN102819851A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN102819851B (en) Method for implementing sound pictures by using computer
CN103391414B (en) A kind of video process apparatus and processing method for being applied to cell phone platform
JP5084644B2 (en) System and method for generating and interfacing bit streams representing MPEG encoded audio-visual objects
WO2018024179A1 (en) Video processing method, server, terminal, and computer storage medium
KR101387212B1 (en) System and method for generating and playing three dimensional image files based on two dimensional image media standards
CN107645491A (en) Media flow transmission equipment and media serving device
CN105049920B (en) A kind of method for recording and device of multimedia file
US8255437B2 (en) Method and apparatus for encoding/decoding
JP2006085681A (en) File conversion and sharing system and method thereof
KR101550462B1 (en) A method and an apparatus for embedding data in a media stream
WO2022105597A1 (en) Method and apparatus for playing back video at speed multiples , electronic device, and storage medium
JP2007060286A (en) Content-editing device and reproducing device thereof
WO2017219980A1 (en) Played picture generation method, apparatus, and system
CN105049904B (en) A kind of playing method and device of multimedia file
US20150371426A1 (en) Motion covers
CN104091608A (en) Video editing method and device based on IOS equipment
CN114222156A (en) Video editing method, video editing device, computer equipment and storage medium
CN103430558A (en) A method for optimizing a video stream
CN101802803A (en) Method and apparatus for generating and reproducing media object-based metadata
WO2022135105A1 (en) Video dubbing method and apparatus for functional machine, terminal device and storage medium
CN114449295A (en) Video processing method and device, electronic equipment and storage medium
CN101395909A (en) Method and system for combining edit information with media content
CN1980368A (en) Multi-media document generating method of media playing apparatus and apparatus thereof
CN111866542B (en) Audio signal processing method, multimedia information processing device and electronic equipment
CN102802002A (en) Method for mobile phone to play back 3-dimensional television videos

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150318

Termination date: 20180808

CF01 Termination of patent right due to non-payment of annual fee