CN1812533A - Video recording method - Google Patents
Video recording method Download PDFInfo
- Publication number
- CN1812533A CN1812533A CN 200610041631 CN200610041631A CN1812533A CN 1812533 A CN1812533 A CN 1812533A CN 200610041631 CN200610041631 CN 200610041631 CN 200610041631 A CN200610041631 A CN 200610041631A CN 1812533 A CN1812533 A CN 1812533A
- Authority
- CN
- China
- Prior art keywords
- data
- picture data
- picture
- buffer
- buffering
- 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
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
A video recording method includes recording acoustic data in section according to preset time length, recording picture data corresponding to said acoustic data and storing it in picture buffer-scratch address of buffer storage, accumulating time length of acoustic data recorded in sections, judging whether accumulated acoustic time length is over time length of corresponding picture data or not, obtaining said picture data from data buffer-scratch address of buffer storage, compressing acoustic data or simultaneously compressing picture data for storing them as audio-video file ,judging whether the size of audio-video file to be stored is over storage default or not .
Description
One, technical field
The present invention is a kind of kinescope method, but especially a kind of kinescope method that is used for realizing the audio/video file synchronous playing recorded.
Two, background technology
At present, on the market, can record or play audio-visual electronic installation day by day increases, and also day by day develops to possess multi-purpose electronic installation, makes that the consumer can be by the audio-visual dribs and drabs of noting down in the daily life.
Generally speaking, the form of the audio/video file that is used for recording a video mainly is the Motion-JPEG form, but after using this form to record a video to obtain audio/video file, but often this audio/video file synchronous playing on existing platform can't be gone out sound and picture, with such video recording technology, be difficult to allow the consumer accept, its desire that can attract the consumer to buy of more leisure opinion.
Three, summary of the invention
The present invention is for solving the above-mentioned technical problem that exists in the background technology, and a kind of kinescope method is provided, but is used for realizing the kinescope method of the audio/video file synchronous playing recorded.
Technical solution of the present invention is: the present invention is a kind of kinescope method, and its special character is: this method may further comprise the steps:
1) by prefabricated time span segmentation recorded voice data;
2) record the picture data corresponding simultaneously with this voice data; And the continuous in regular turn picture data buffering that picture data is stored in the buffer is kept in the address;
3) time span of every section voice data that will record adds up;
4) judging whether the sound time span through adding up surpasses the time span of corresponding picture data, otherwise directly proceed to step 6), is then to proceed to step 5);
5) the temporary address of the buffering of the picture data from buffer obtains relative picture data;
6) compression sound data or compression sound data and picture data simultaneously, and storage forms audio/video file;
7) whether the size of the audio/video file of judgement storage exceeds the storage default value, if not, then returns step 1) and then records new voice data, if then finish.
Above-mentioned prefabricated time span is less than the time span of a picture.
Above-mentioned steps 5) it is as follows to obtain the method for relative picture data, suppose the P that is numbered of the last temporary address of picture data buffering that obtains, the temporary address number of the data buffering of present up-to-date picture is C, then sets the N=C-1 that is numbered of this less important picture data that obtains earlier, then, if N-P>1 then makes N=N-1, if N-P=0, then make N=N+1, wherein-1 represent a last picture data, the next picture data of+1 expression, N-P>1 expression differs and exceeds a picture data.
Above-mentioned steps 6) concrete steps in are as follows:
6.1) first compression sound data, and the voice data that will compress is stored in the buffer;
6.2) determine whether to want the squeezed data, otherwise proceed to step 7), be then in the temporary address of buffering, to obtain picture data;
6.3) the squeezed data, the picture data of this compression is stored in the buffer.
The temporary address of picture data buffering in the above-mentioned buffer is more than 4 or 4.
The temporary address of picture data buffering in the above-mentioned buffer is circulating.
But the present invention is used for recording the audio/video file of the Motion-JPEG form of synchronous playing, it is activating a recording Thread with after carrying out the continuous recording of segmentation, also activate several compression Threads during the course to carry out the compression of data, therefore can record continuous voice data, and utilize up-to-date picture data, and the continuity of temporary picture, with synchronous stored voice data and picture data in the buffer of electronic installation, when being accumulated to certain storage default value, be stored in again in the holder of electronic installation, thereby make the AVI form that electronic installation can be play.Therefore, the present invention can be under the Motion-JPEG form, obtain the voice data and picture data of synchronous recording after, but the video/audio archive of the Motion-JPEG form of synchronous playing.
Four, embodiment
Earlier AVI form and Motion-JPEG form are done a concise and to the point introduction at this.The file header standard of general AVI form the form of voice data and picture data, the data field of then having continued, marking the voice data or the picture data of special label, the last of audio/video file then is the data directory of enclosing voice data district and picture data district, and it includes original position and data length.As for the Motion-JPEG form then is to be attached in the data field of AVI form, it is identical with jpeg format, both differences are to be that Motion-JPEG is when compression and decompression, adopted the huffman table (Huffman Table) of standard, therefore it does not need the huffman table of each picture data of additional storage when the stored picture data.
Concrete grammar of the present invention is as follows:
1) by prefabricated time span segmentation recorded voice data, this prefabricated time span is less than the time span of a picture;
2) record the picture data corresponding simultaneously with this voice data; And the continuous in regular turn picture data buffering that picture data is stored in the buffer is kept in the address;
3) time span of every section voice data that will record adds up;
4) judging whether the sound time span through adding up surpasses the time span of corresponding picture data, otherwise directly proceed to step 6), is then to proceed to step 5);
5) the temporary address of the buffering of the picture data from buffer obtains relative picture data;
6) compression sound data or compression sound data and picture data simultaneously, and storage forms audio/video file;
6.1) first compression sound data, and the voice data that will compress is stored in the buffer;
6.2) determine whether to want the squeezed data, otherwise proceed to step 7), be then in the temporary address of buffering, to obtain picture data;
6.3) the squeezed data, the picture data of this compression is stored in the buffer.
7) whether the size of the audio/video file of judgement storage exceeds the storage default value, if not, then returns step 1) and then records new voice data, if then finish.
Wherein, the compression of voice data also can directly be compressed after having recorded voice data, and then after the voice data after will compressing is stored in the buffer, the sound length of the voice data of this storage that adds up again, the effect of its method is identical.
The temporary address of picture data buffering in the above-mentioned buffer is more than 4 or 4, these 4 temporary addresses of data buffering are circulating, that is when being stored into the temporary address of the 4th picture data buffering, picture stores and gets back to the 1st the temporary address of picture data buffering again next time, and there is an at present up-to-date picture data buffering of parameter record to keep in the address, and the temporary address of picture data buffering of another parameter record last acquisition at present, when obtaining picture data, ban use of the temporary address of the next one of the up-to-date temporary address of picture data buffering, this can be avoided it to be covered by up-to-date picture data at any time, and gets access to the imperfect picture of filling out data.
Below in conjunction with specific embodiment method of the present invention is described in further detail
When the broadcasting pictures rate (Frame Rate) of audio/video file is 10 picture datas of per second (10 picture data/per seconds; Fps; Frame per second), then the image time length of this picture data is two picture datas time interval of playing, 1000 milliseconds of (ms)/10 frame numbers/per seconds (fps)=100 millisecond (ms) just.The scheduled time length of determining to record every section voice data according to the image time length of this picture data is 10 milliseconds, reaching with 10 milliseconds is the continuous recorded voice data of unit segmentation, every section voice data is added up, judge whether the time span that is spent record this voice data has surpassed the actual time that spends of picture data institute of recording should voice data, if not, then directly this voice data and picture data are stored in compression, if, then the temporary address of the buffering of the picture data from buffer obtains relative picture data, and then store this voice data and picture data, repeat said process, continue to record subsequently voice data and picture data, finish exceed the storage default value of buffer until the size of audio/video file of storage after.
Certainly, generally speaking, the broadcasting pictures rate in each electronic installation is all default definite value, so prefabricated time span can be done definite with default value in each electronic installation.
Claims (6)
1, a kind of kinescope method is characterized in that: this method may further comprise the steps:
1) by prefabricated time span segmentation recorded voice data;
2) record the picture data corresponding simultaneously, and the continuous in regular turn picture data buffering that picture data is stored in the buffer is kept in the address with this voice data;
3) time span of every section voice data that will record adds up;
4) judging whether the sound time span through adding up surpasses the time span of corresponding picture data, otherwise directly proceed to step 6), is then to proceed to step 5);
5) the temporary address of the buffering of the picture data from buffer obtains relative picture data;
6) compression sound data or compression sound data and picture data simultaneously, and storage forms audio/video file;
7) whether the size of the audio/video file of judgement storage exceeds the storage default value, if not, then returns step 1) and then records new voice data, if then finish.
2, kinescope method according to claim 1 is characterized in that: described prefabricated time span is less than the time span of a picture.
3, according to claim 1 or 2 or described kinescope method, it is characterized in that: the method that described step 5) is obtained relative picture data is as follows, suppose the P that is numbered of the last temporary address of picture data buffering that obtains, the temporary address number of the data buffering of present up-to-date picture is C, then set the N=C-1 that is numbered of this less important picture data that obtains earlier, then, if N-P>1, then make N=N-1, if N-P=0 then makes N=N+1, wherein-1 represent a last picture data, the next picture data of+1 expression, N-P>1 expression differs and exceeds a picture data.
4, kinescope method according to claim 3 is characterized in that: the concrete steps in the described step 6) are as follows:
6.1) first compression sound data, and the voice data that will compress is stored in the buffer;
6.2) determine whether to want the squeezed data, otherwise proceed to step 7), be then in the temporary address of buffering, to obtain picture data;
6.3) the squeezed data, the picture data of this compression is stored in the buffer.
5, kinescope method according to claim 4 is characterized in that: the temporary address of picture data buffering in the described buffer is more than 4 or 4.
6, kinescope method according to claim 4 is characterized in that: the temporary address of picture data buffering in the described buffer is circulating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610041631 CN1812533A (en) | 2006-01-10 | 2006-01-10 | Video recording method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610041631 CN1812533A (en) | 2006-01-10 | 2006-01-10 | Video recording method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1812533A true CN1812533A (en) | 2006-08-02 |
Family
ID=36845167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200610041631 Pending CN1812533A (en) | 2006-01-10 | 2006-01-10 | Video recording method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1812533A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015131700A1 (en) * | 2014-10-15 | 2015-09-11 | 中兴通讯股份有限公司 | File storage method and device |
CN105141869A (en) * | 2015-08-19 | 2015-12-09 | 中山市天启电子科技有限公司 | Android system based segmented video data processing method |
CN104199816B (en) * | 2008-05-14 | 2019-04-09 | 起元技术有限责任公司 | The management storage of independent accessible data unit |
-
2006
- 2006-01-10 CN CN 200610041631 patent/CN1812533A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199816B (en) * | 2008-05-14 | 2019-04-09 | 起元技术有限责任公司 | The management storage of independent accessible data unit |
WO2015131700A1 (en) * | 2014-10-15 | 2015-09-11 | 中兴通讯股份有限公司 | File storage method and device |
CN105573921A (en) * | 2014-10-15 | 2016-05-11 | 中兴通讯股份有限公司 | File storage method and device |
CN105141869A (en) * | 2015-08-19 | 2015-12-09 | 中山市天启电子科技有限公司 | Android system based segmented video data processing method |
CN105141869B (en) * | 2015-08-19 | 2018-12-18 | 中山市天启智能科技有限公司 | Segmentation Video data processing method based on android system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6792195B2 (en) | Method and apparatus implementing random access and time-based functions on a continuous stream of formatted digital data | |
US6771703B1 (en) | Efficient scaling of nonscalable MPEG-2 Video | |
US6871006B1 (en) | Processing of MPEG encoded video for trick mode operation | |
US8554062B2 (en) | Accelerated access to frames from a compressed digital video stream without keyframes | |
US6337880B1 (en) | Indexing for motion video that is compressed using interframe and intraframe techniques | |
US6937770B1 (en) | Adaptive bit rate control for rate reduction of MPEG coded video | |
US20030156649A1 (en) | Video and/or audio processing | |
US20060039469A1 (en) | Scalable video compression based on remaining battery capacity | |
CN101843099B (en) | Apparatus and method of storing video data | |
JPH08506229A (en) | Digital video tape recorder for digital HDTV | |
CN1284366C (en) | Device for recording and/or reproducing digital data and control method thereof | |
CN1812533A (en) | Video recording method | |
CN100346644C (en) | Method for realizing digital video frequency cut-off screen | |
US7343088B2 (en) | Disc apparatus, disc recording method, disc playback method, recording medium, and program | |
CN1925596A (en) | Individual video storing device and its image playing method | |
CN1933560A (en) | Television intelligent storing and playback system and method thereof | |
WO2007092891A2 (en) | Methods and systems for picture rate reduction of stored video while under continuous record load | |
KR20050057632A (en) | Sequential digital image compression | |
CN1647026A (en) | Circuit, apparatus and method for storing audiovisual data | |
CN1863298A (en) | Multimedia reproduction apparatus | |
CN1758357A (en) | Reproduction control method and reproducing apparatus | |
CN1592389A (en) | Image reproducing device and image data reverse reproducing method | |
CN1726724A (en) | Method of recording a stream of audio-visual data | |
TWI382760B (en) | Digital video apparatus and method thereof for video playing and recording | |
TWI290435B (en) | Image recording method |
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 |