CN103871440A - Method for quickly judging compression format of audio and video archive and related playing device - Google Patents

Method for quickly judging compression format of audio and video archive and related playing device Download PDF

Info

Publication number
CN103871440A
CN103871440A CN201210552118.6A CN201210552118A CN103871440A CN 103871440 A CN103871440 A CN 103871440A CN 201210552118 A CN201210552118 A CN 201210552118A CN 103871440 A CN103871440 A CN 103871440A
Authority
CN
China
Prior art keywords
video
compressed format
audio archive
processor
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210552118.6A
Other languages
Chinese (zh)
Inventor
赵光正
陈致豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Amtran Technology Co Ltd
Original Assignee
Amtran 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 Amtran Technology Co Ltd filed Critical Amtran Technology Co Ltd
Priority to CN201210552118.6A priority Critical patent/CN103871440A/en
Publication of CN103871440A publication Critical patent/CN103871440A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method for quickly judging the compression format of an audio and video archive and a related playing device. The playing device comprises a receiver, a sensor, a buffer and a processor. The method comprises the following steps that the receiver receives the audio and video archive; the sensor senses whether a tag part exists after the header part of the audio and video archive; the processor sets a starting position for reading the data of the audio and video archive in a way of bypassing the tag part when the sensor senses the tag part; the processor filters compression formats which do not support the type of the tag part; the processor reads a first part from the starting position, stores the first part into the buffer, and judges the compression format of the audio and video archive according to the first part. According to the method and the playing device, the efficiency of judging the compression format of the audio and video archive can be improved, and the shortcomings of the prior art can be overcome.

Description

The method of the quick compressed format that judges video/audio archive and relevant playing device thereof
Technical field
The invention relates to a kind of method of compressed format of quick judgement video/audio archive and relevant device thereof, all labels in espespecially a kind of at least one label of the header that skips over video/audio archive, and according to supporting the compressed format of at least one label, to judge fast the method for compressed format of video/audio archive and relevant device thereof.
Background technology
In multimedia technical field, Ge Jia manufacturer develops many different compress techniques, and be applied in the video/audio archive of different-format, therefore audio-visual playout software now need to be supported the video/audio archive of each different-format as far as possible, the playout software FFmpeg of for example open source is exactly well-known audio-visual playout software, can support tens of kinds of different File Formats.Utilize audio-visual playout software to open after a video/audio archive user, processor can start the Part I of video/audio archive to read in working area from the header of video/audio archive (header), then processor can, according to the Part I that is stored in the video/audio archive in working area, judge the compressed format of video/audio archive.In above-mentioned deterministic process, processor is according to examination mistake mode, compares the various video/audio archive forms and the Part I that is stored in the video/audio archive in working area of existing support, to find out the video/audio archive form meeting.If cannot find out the File Format meeting according to examination mistake mode, processor can require to increase the space, working area of storing audio video files data, the Part II that reads video/audio archive again after the Part I of video/audio archive is to working area, compare again afterwards the compressed format and the first part and the Part II that are stored in the video/audio archive in working area of existing video/audio archive according to examination mistake mode, to judge the compressed format of video/audio archive.So repeat above-mentioned steps, until processor is judged the video/audio archive form meeting.
For example, but in some video/audio archives, the label segment of the header of video/audio archive (ID3 label and APE label) can be embedded into image or out of Memory.In the time that the label segment of the header of video/audio archive is embedded into these information, can cause label segment many storage areas that account for, and processor cannot go out from the direct contrast judgement of these information the form of video/audio archive, therefore in the time judging the form of these class archives, processor may must many times read and determining program in execution, and in the time again reading archives, increase the space, working area of storage data at every turn, be greater than label segment until read into the data capacity in working area, that is when comprising in working area after label segment and follow-up data, processor just may be judged correct video/audio archive form according to the archive content after label segment.Therefore, in prior art, judge that the method for the compressed format of video/audio archive can cause system to spend a large amount of time and space, working area, just can complete the judgement flow process of video/audio archive form.
Summary of the invention
One embodiment of the invention provide an a kind of playing device to judge fast the method for the compressed format of video/audio archive, and wherein this playing device comprises a receiver, a detector, a buffer and a processor.The method comprises that this receiver receives a video/audio archive; Whether this detector there is a label segment after detecting this video/audio archive; In the time that this detector detects this label segment, this processor skips over this label segment and sets a start position that reads these video/audio archive data; The compressed format of the affiliated kind of this label segment is not supported in this processor filtering; Read a first part from this start position and deposit this buffer in, and judge the compressed format of this video/audio archive according to this first part.
Another embodiment of the present invention provides an a kind of playing device to judge fast the method for the compressed format of video/audio archive, and wherein this playing device comprises a receiver, a detector, a buffer and a processor.The method comprises that this receiver receives a video/audio archive; Whether this detector there is a label segment after detecting this video/audio archive; In the time that this detector does not detect this label segment, this processor is set a start position that reads these video/audio archive data; In the time that this detector detects this label segment, this processor skips over this label segment and sets this start position that reads these video/audio archive data; This processor is set the capacity in a working area in this buffer according to an initial predetermined value; This processor reads a Part I to this buffer according to the capacity in this working area from this start position of this video/audio archive; Judge the compressed format of this video/audio archive according to this first part.
Another embodiment of the present invention provides a kind of playing device of compressed format of quick judgement video/audio archive.This playing device comprises a buffer, a receiver, a detector and a processor.This buffer has a max cap..This receiver is to receive a video/audio archive.This detector is whether to have a label segment after detecting this video/audio archive.This processor is the capacity of setting a working area in this buffer, wherein in the time that this detector detects this label segment, this processor is not supported the compressed format of kind under this label segment according to this label segment filtering, and skips over this label segment and set a start position that reads these video/audio archive data.
The invention provides a kind of method of compressed format of quick judgement video/audio archive and relevant device thereof.The method and this device are whether the header part of utilizing a detector to detect a video/audio archive exists a label.There is at least one label segment in this detector detects this video/audio archive time, one processor can skip over all label segments and set reading a little of comparison data, and according to the kind of all labels in video/audio archive, get rid of the compressed format of not supporting these labels, use the compressed format of quick this video/audio archive of judgement.Therefore, compared to prior art, this processor can skip over all label segments in video/audio archive in the time of contrast judgement compressed format, and according to the compressed format of supporting these tag class, get rid of and do not support the compressed format of these tag class to reduce comparison number of times, so the present invention can reduce the number of times of comparison and increase the efficiency that judges compressed format, improves the shortcoming of prior art.
Brief description of the drawings
Fig. 1 is the schematic diagram for the device of the compressed format of a kind of quick judgement video/audio archive of one embodiment of the invention explanation.
Fig. 2 is the schematic diagram for explanation video/audio archive with ID3v2 label.
Fig. 3 is the schematic diagram for explanation video/audio archive with APE label.
Fig. 4 is the process flow diagram for the method for the compressed format of a kind of quick judgement video/audio archive of another embodiment of the present invention explanation.
Wherein, description of reference numerals is as follows:
100 devices
102 buffers
104 receivers
106 detectors
108 processors
VAF video/audio archive
400-424 step
Embodiment
Please refer to Fig. 1, Fig. 1 is the system architecture schematic diagram that judges File Format in a video/audio archive playing device 100.Playing device 100 comprises a buffer 102, a receiver 104, a detector 106 and a processor 108, and the wherein working area volume-variable in buffer 102, and buffer 102 has a max cap. (for example 2 20individual byte).As shown in Figure 1, receiver 104 is to receive a video/audio archive VAF.When receiver 104 receives after video/audio archive VAF, whether the header part that detector 106 is detected video/audio archive VAF there is a label segment (for example an ID3 label, an APE label or other label).While there is a label part in the header part that detects video/audio archive VAF when detector 106, processor 108 can skip over the label part reading out data of video/audio archive VAF to judge the compressed format of video/audio archive, and according to the form of this label segment, the compressed format of this label segment is not supported in filtering, to accelerate to judge the processing of video/audio archive compressed format.For example, while there is the ID3 second edition (ID3v2) label in the header part that detects video/audio archive VAF when detector 106, processor 108 can skip over ID3v2 label and read data afterwards, and the form of ID3v2 label is not supported in filtering in the time judging File Format, owing to only having at present OpenMG form or dynamic image expert compression standard message aspect 3 (MPEG-1/MPEG-2Audio Layer III, MP3) compressed format is supported ID3v2 label, therefore processor is understood remaining compressed format of filtering and is only judged whether video/audio archive is OpenMG or MP3 compressed format.Except ID3v2 label, the label of other form also can be used to the compressed format that filtering is not supported, reach the effect of quick judgement video/audio archive compressed format, if similarly be the label that processor reads APE form, can get rid of MP3, WavPack or OptimFROG compressed format in addition.In addition, in another embodiment of the present invention, processor 108 can be according to the information of label segment, select multiple possible compressed format to treat candidate, processor can be to these candidate's compressed format scorings in the time judging compressed format, to determine the compressed format of video/audio archive VAF according to mark height, this mode can be avoided in video/audio archive, putting into incompatible tag format under specific circumstances, causes processor cannot correctly judge compressed format.
Please refer to Fig. 2 and Fig. 3, Fig. 2 is the archives configuration diagram that comprises ID3v2 label in video/audio archive, and Fig. 3 is the archives configuration diagram for comprising APE label in explanation video/audio archive.As shown in Figure 2, the video/audio archive related datas such as ID3v2 label segment contents, the lyrics, pictorial information or comment, processor 108 cannot utilize the compressed format of these discriminating data video/audio archives.For skip over label before differentiation compressed format, when detector 106 detects video/audio archive while having ID3v2 label, the the 0th, the 1st and the 2nd byte of ID3v2 label is in order to mark " ID3 " character, kind that thus can identification label, ID3v2 label the 6th, the 7th, the 8th and the 9th byte represents the length of whole section of ID3v2 label, the method according to this invention, detector 106 or processor 108 are in the time detecting ID3v2 label, the length that can indicate according to these is skipped whole section of label segment, reads the real data in video/audio archive.In addition, as shown in Figure 3, APE label has at least one footer (footer) and at least one header (header), wherein front 8 bytes of footer and header are in order to mark " APETAGEX ", processor can be recognized as the label of APE kind in the time reading these thus, the the 12nd, the 13rd, the 14th and the 15th byte of APE label is to represent in APE label all tag entry object length except header, the length that processor 108 can indicate according to these is skipped APE label segment, reads the real data in video/audio archive.
If detector 106 detects the header part of video/audio archive VAF and has a label part, processor 108 can skip over label portion piece of data according to the length of label segment definition, and the compressed format of this tag class is not supported in filtering, can be initialised and to set working area be an initial predetermined value (for example 2 to buffer 102 afterwards 11byte) size, the first part data that processor 108 starts to read initial predetermined value size from the end of label segment deposit buffer 102 in.For example, if it is to be 2,000 bytes (2K Bytes) that video/audio archive VAF only has the size of ID3 label and ID3 label, processor 108 can be according to the capacity in working area, from the header of video/audio archive VAF, economize the position of 2,000 bytes that skip over ID3 label, the data that start again to read video/audio archive VAF deposit in to the working area of buffer 102, and these data that deposit working area in are the Part I of video/audio archive VAF.When processor 108 is according to the size of the initial predetermined value in working area, the Part I that reads video/audio archive VAF deposits in to buffer 102, processor 108 can be according to the existing tag class detecting, find out all to candidate's compressed format that should tag class, in order to judge whether the first part of video/audio archive VAF meets a certain specific candidate's compressed format, include not only a kind of label if detect video/audio archive VAF, processor 108 can be selected simultaneously candidate's compressed format of corresponding each tag class and judges.For example, if video/audio archive VAF only has ID3v2 label, can support ID3v2 label because only have at present oma compressed format and mp3 compressed format, so processor 108 is considered as candidate's compressed format, in order to judge whether the data in video/audio archive VAF meet some compressed format (determining whether the one in oma and mp3) wherein, if if when video/audio archive VAF has ID3v2 and APE label, because the compressed format that may support at present these two kinds of labels is mp3 simultaneously, processor 108 can preferentially judge whether the data that read meet mp3 compressed format.
Do not meet any candidate's compressed format when processor 108 judges the first part of video/audio archive VAF, or cannot judge according to the data that read time, the capacity that processor 108 can increase working areas judges with the data that read in more video/audio archives.For example, when processor 108 judgement has the video/audio archive VAF of ID3v2 label, while not meeting two candidate's compressed format corresponding to ID3v2 label, processor 108 doubles, and (capacity in for example working area is from 2 for the capacity in working area 11byte is increased to 2 12byte), for example, when the working area capacity after multiplication is not greater than the max cap. (2 of buffer 102 20byte) time, processor 108, according to the capacity in the working area of multiplication, reads the Part II data after video/audio archive VAF first part, deposits in to the working area of buffer 102.When processor 108 is according to the working area capacity of multiplication, read the Part II of video/audio archive VAF to buffer 102, processor 108 can be again according to candidate's compressed format of corresponding label kind, judges whether the first part of video/audio archive VAF and Part II meet some compressed format wherein.So, repeat above-mentioned steps until processor 108 is judged video/audio archive VAF meets some compressed format, reads whole video/audio archive and still can not judge for which kind of compressed format or the off-capacity of buffer 102.
In addition, if detector 106 does not detect label segment in video/audio archive VAF, processor 108 can for example, according to an initial predetermined value (2 11byte) set the working area capacity in buffer 102.Then the data that, processor 108 starts to read Part I from the header of video/audio archive VAF according to the capacity in working area are to buffer 102.When processor 108 is according to initial predetermined value, read the Part I of video/audio archive VAF to buffer 102, the compressed format that processor 108 is supported according to playing program, judges whether video/audio archive VAF meets a compressed format wherein.In the time that processor 108 judges that video/audio archive VAF does not meet any in the compressed format of current support, the capacity that processor 108 can increase working areas again reading out data judges.For example, in the time that processor 108 judges that video/audio archive VAF does not meet the compressed format of current support, processor 108 doubles, and (for example working area capacity is from 2 for the capacity in working area 11byte increases to 2 12byte).For example, when the working area capacity of multiplication is not greater than the max cap. (2 of buffer 102 20byte) time, processor 108, according to the working area capacity of multiplication, reads the Part II of video/audio archive VAF to buffer 102, and wherein the Part II of video/audio archive VAF is after the Part I of video/audio archive VAF.When processor 108 is according to the working area capacity of multiplication, read the Part II of video/audio archive VAF to buffer 102, processor 108 can be again according to the compressed format existing at present, judge whether the first part of video/audio archive VAF and Part II meet the compressed format in the compressed format of support.So, processor 108 repeats above-mentioned steps until processor 108 is judged video/audio archive VAF meets some compressed format, reads whole video/audio archive and still can not judge for which kind of compressed format or the off-capacity of buffer 102.
In addition, in another embodiment of the present invention, when video/audio archive VAF only has APE label, or while thering is ID3 label and APE label simultaneously, playing device 100 also can utilize aforesaid way to judge fast the compressed format of video/audio archive VAF, so further narration does not repeat them here, the tag class of other kind and video/audio archive compressed format also can be complied with method of the present invention and judge fast, and are not limited to above stated specification.
Please refer to Fig. 1, Fig. 2, Fig. 3 and Fig. 4, Fig. 4 is to be one embodiment of the invention, is a kind of process flow diagram of compressed format method of quick judgement video/audio archive.The method of Fig. 4 is to utilize the playing device 100 of Fig. 1 to illustrate, detailed step is as follows:
Step 400: start;
Step 402: receiver 104 receives a video/audio archive VAF;
Step 404: whether detector 106 exists a label segment after detecting the header of video/audio archive VAF; If so, carry out step 406; If not, carry out step 410;
Step 406: processor 108 skips over the position of reading of label segment setting video/audio archive VAF data;
Step 408: the compressed format of tag class, rebound step 404 are not supported in processor 108 filterings;
Step 410: processor 108 is set the capacity in buffer 102 interior working areas according to an initial predetermined value;
Step 412: processor 108 reads video/audio archive VAF according to the capacity in working area Part I from video/audio archive VAF is to buffer 102;
Step 414: processor 108 is compared candidate's compressed format at least one candidate's compressed format and the Part I of video/audio archive VAF;
Step 416: processor 108 judges whether video/audio archive meets the candidate's compressed format at least one candidate's compressed format; If not, carry out step 418; If so, carry out step 424;
Step 418: whether completed all compressed format of comparison; If not, carry out step 414; If so, carry out step 420;
Step 420: processor 108 increases the capacity in working area;
Step 422: whether the capacity in working area is greater than the max cap. of buffer 102, or whether video/audio archive has read complete; If not, carry out step 412; If so, carry out step 424;
Step 424: finish.
In step 404, when receiver 104 receives after video/audio archive VAF, detector 106 is whether the header bits postpone of detecting video/audio archive VAF exists at least one label segment (for example ID3 label, APE label or other label).
Taking Fig. 2 as example:
In step 406 and step 408, there is at least one label segment after detector 106 detects the header position of video/audio archive VAF time, processor 108 can skip over the position that the label segment setting data in video/audio archive VAF reads, and does not support the compressed format of this tag class according to the kind filtering of label.For example, while there is ID3 label in the header bits postpone that detects video/audio archive VAF when detector 106, processor 108 can skip over whole section of ID3 label according to the length information in ID3 label, the starting point of the set positions reading out data finishing at ID3 label, and in all compressed formats of filtering image player program support, do not support ID3 label compressed format (for example processor 108 can filtering oma compressed formats and mp3 compressed format beyond compressed format).In step 410, if detector 106 detects the header bits postpone of video/audio archive VAF and has a label segment, skip at processor 108 that this label segment setting data reads starting point and filtering is not supported after the compressed format of this label, processor 108 for example, according to an initial predetermined value (2 11byte) setting working area capacity.Then,, in step 412, processor 108 from the data of the header bits postpone of video/audio archive VAF read starting point, reads the Part I of video/audio archive VAF to buffer 102 according to the capacity in working area according to initial predetermined value.For example, if it is to be 2,000 bytes that video/audio archive VAF only has the size of ID3 label and ID3 label, processor 108 can skip over the ID3 label of 2,000 bytes in step 410, the starting point reading at label end position setting data, and in step 412, read starting point according to working area capacity from data, read the Part I of video/audio archive VAF to buffer 102.In step 414, all compressed formats that processor 108 is supported according to playing program are as candidate's compressed format, in candidate's compressed format, selecting candidate's compressed format and Part I compares, judge if existing in video/audio archive VAF and there is label segment, do not support the candidate's compressed format after the compressed format of tag class according to step 408 filtering, compare in wherein selecting one.In step 416, processor 108, according to comparison result, judges whether video/audio archive VAF meets the candidate's compressed format being compared.For example, if video/audio archive VAF only has ID3 label and only has at present oma compressed format and mp3 compressed format can be supported ID3 label, processor 108 can according to corresponding in two candidate's compressed formats of ID3 label select candidate's compressed format and Part I is compared (for example first selecting mp3 compressed format to compare), judge whether the first part of video/audio archive VAF meets the candidate's compressed format being compared.In step 418, if judged result does not meet the candidate's compressed format being compared in step 416, judge whether that all candidate's compressed format all compared complete, if still having candidate's compressed format does not compare, processor 108 is got back to step 416 and is selected candidate's compressed format of not yet comparing to compare, until compare out the candidate's compressed format meeting, or all candidate's compressed format all compared complete till.In step 420, in the time that processor 108 judges that the first part of video/audio archive VAF does not meet all candidate's compressed format, processor 108 increases the capacity in working area.For example, when video/audio archive has ID3 label, and processor 108 has been compared after two candidate's compressed formats of supporting ID3 label, cannot find the compressed format of the first part that meets video/audio archive VAF, processor 108 doubles, and (for example working area capacity is from 2 for the capacity of buffer 102 11byte increases to 2 12byte).In step 422, judge whether the working area capacity after increasing is greater than the max cap. of buffer 102, if do not exceed the max cap. of buffer 102, and video/audio archive VAF is not yet read complete, rebound step 412 the working area capacity according to increase, read the Part II of video/audio archive VAF to buffer 102, wherein the Part II of video/audio archive VAF is after the Part I of video/audio archive VAF.When processor 108 is according to the working area capacity increasing, read the Part II of video/audio archive VAF to buffer 102, processor 108 can repeat above-mentioned steps until processor 108 is judged video/audio archive VAF meets some compressed format, reads whole video/audio archive and still can not judge for which kind of compressed format or the off-capacity of buffer 102.
In addition, in step 410, if detector 106 does not detect any label of header bits postpone of video/audio archive VAF, processor 108 can for example, according to initial predetermined value (2 11byte) set the capacity in working area.In step 412, processor 108 is the header tail end from video/audio archive VAF according to working area capacity, and the Part I that starts to read video/audio archive VAF is to buffer 102.In step 414 and step 416, processor 108 is compared compressed format that playing program supports as candidate's compressed format, select one and the Part I of video/audio archive VAF compare, judge whether video/audio archive VAF meets the candidate's compressed format being compared.In step 418, if judged result does not meet the candidate's compressed format being compared in step 416, judge whether that all candidate's compressed format all compared complete, if still having candidate's compressed format does not compare, processor 108 is got back to step 416 and is selected candidate's compressed format of not yet comparing to compare, until compare out the candidate's compressed format meeting, or all candidate's compressed format all compared complete till.In step 420, in the time that processor 108 judges that the first part of video/audio archive VAF does not meet all candidate's compressed format, processor 108 increases the capacity in working area.For example, compared after all candidate's compressed format when processor 108, judged that the first part of video/audio archive VAF does not meet all candidate's compressed format, processor 108 doubles, and (for example working area capacity is from 2 for the capacity in working area 11byte increases to 2 12byte).In step 422, when the working area capacity increasing is not greater than the max cap. of buffer 102, and video/audio archive VAF is not yet read when complete, processor 108 rebound steps 412 according to the working area capacity increasing, read the Part II of video/audio archive VAF to buffer 102.When processor 108 is according to the working area capacity increasing, read the Part II of video/audio archive VAF to buffer 102, processor 108 can repeat above-mentioned steps until processor 108 is judged video/audio archive VAF meets some compressed format, reads whole video/audio archive and still can not judge for which kind of compressed format or the off-capacity of buffer 102.
In addition, in another embodiment of the present invention, when video/audio archive VAF only has APE label, or while thering is ID3 label and APE label simultaneously, playing device 100 also can utilize aforesaid way to judge fast the compressed format of video/audio archive VAF, so further narration does not repeat them here, the tag class of other kind and video/audio archive compressed format also can be complied with method of the present invention and judge fast, and are not limited to above stated specification.
In one embodiment of this invention, processor 108 can be according to the information of each label segment of video/audio archive VAF, select multiple candidate's compressed format, wherein these candidate's compressed formats are not limited to the compressed format that playing program is supported, in the time comparing out the compressed format that playing program do not support, can notify user to upgrade playing program to increase the compressed format of supporting, or system is upgraded playing program voluntarily.In addition, in one embodiment of this invention, the compressed format that processor can be supported playing program is all as candidate's compressed format, and be not limited only to support the compressed format of the tag class having in video/audio archive, meaning in step 408 not filtering do not support to detect the compressed format of tag class, then, in step 414 to step 418, processor 108 is compared the first part of video/audio archive and candidate's compressed format and scoring, reject the candidate compressed format of mark lower than a critical value according to appraisal result, if wherein the mark of multiple candidate's compressed formats is all lower than critical value, processor 108 can perform step 414 again to step 418, again multiple candidate's compressed format is marked.In step 408, processor can not filtering support to detect the compressed format of tag class yet, and will support the compressed format that detects tag class to set more preferential order in all candidate's compressed format, in in step 414 to step 418, first part preferential and video/audio archive is compared and scoring, if it is the compressed format being compared that mark higher than a critical value, judges video/audio archive.Video-audio playing device in the present invention is not limited to the framework in the first figure, wherein detector 106 can be also the part in processor 108, or be processor 108 function performed according to program code, receiver 104 or buffer 102 also can be integrated mutually with other assembly, and are not considered as being limited by the foregoing description.
In sum, the invention provides a kind of method of compressed format of quick judgement video/audio archive and relevant device thereof, whether exist a label segment to judge fast the compressed format of video/audio archive after utilizing the header part of detecting video/audio archive.There is at least one label segment in detector detects video/audio archive time, processor can skip over all label segments and set reading a little of comparison data, and according to the kind of all labels in video/audio archive, get rid of the compressed format of not supporting these labels, use the compressed format of quick judgement video/audio archive.Therefore, compared to prior art, processor can skip over all label segments in video/audio archive in the time of contrast judgement compressed format, and according to the compressed format of supporting these tag class, get rid of and do not support the compressed format of these tag class to reduce comparison number of times, increase the efficiency of the compressed format that judges video/audio archive so the present invention can reduce the number of times of comparison, improve the shortcoming of prior art.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a playing device judges a method for the compressed format of video/audio archive fast, and wherein this playing device comprises a receiver, a detector, a buffer and a processor, and the method comprises:
This receiver receives a video/audio archive;
Also the method is characterized in that and comprise:
Whether this detector there is a label segment after detecting a header of this video/audio archive;
In the time that this detector detects this label segment, this processor skips over this label segment and sets a start position that reads these video/audio archive data;
The compressed format of the affiliated kind of this label segment is not supported in this processor filtering; And
Read a first part from this start position and deposit this buffer in, and judge the compressed format of this video/audio archive according to this first part.
2. the method for claim 1, is characterized in that, separately comprises:
When this processor filtering is not supported after the compressed format of kind under this label segment, whether this detector there is another label after detecting the header of this video/audio archive.
3. the method for claim 1, is characterized in that, separately comprises:
This processor is set the capacity in a working area in this buffer according to an initial predetermined value;
This Part I that this processor reads this video/audio archive according to the capacity in this working area deposits this working area in;
When this processor filtering is not supported after the compressed format of kind under this label segment, judge according to this Part I whether this video/audio archive meets this at least one candidate's compressed format to kind under should label segment;
In the time that this video/audio archive does not meet this at least one candidate's compressed format, this processor increases the capacity in this working area; And
When this working area capacity after increasing is not greater than the max cap. of this buffer, this processor is according to this working area capacity after increasing, read a Part II of this video/audio archive to this working area, wherein this Part II of this video/audio archive is after the Part I of this video/audio archive.
4. method as claimed in claim 3, is characterized in that, this judges according to this Part I whether this video/audio archive meets this at least one candidate's compressed format to kind under should label segment and comprise:
This processor is compared candidate's compressed format in this at least one candidate's compressed format and the Part I of this video/audio archive; And
In the time that the Part I of this candidate's compressed format and this video/audio archive does not meet, this processor is compared another candidate's compressed format of this at least one candidate's compressed format and the Part I of this video/audio archive.
5. a playing device judges a method for the compressed format of video/audio archive fast, and wherein this playing device comprises a receiver, a detector, a buffer and a processor, and the method comprises:
This receiver receives a video/audio archive;
Also the method is characterized in that and comprise:
Whether this detector there is a label segment after detecting a header of this video/audio archive;
In the time that this detector does not detect this label segment, this processor is set a start position that reads these video/audio archive data;
In the time that this detector detects this label segment, this processor skips over this label segment and sets this start position that reads these video/audio archive data;
This processor is set the capacity in a working area in this buffer according to an initial predetermined value;
This processor reads a Part I to this buffer according to the capacity in this working area from this start position of this video/audio archive; And
Judge the compressed format of this video/audio archive according to this first part.
6. method as claimed in claim 5, is characterized in that, this processor judges that according to this first part the compressed format of this video/audio archive comprises:
This processor is compared candidate's compressed format in this at least one candidate's compressed format and this Part I of this video/audio archive; And
In the time that this candidate's compressed format and this Part I do not meet, this processor is compared another candidate's compressed format and this Part I of this at least one candidate's compressed format.
7. method as claimed in claim 5, is characterized in that, separately comprises:
In the time that this video/audio archive does not meet this at least one candidate's compressed format, this processor increases the capacity in this working area; And
When this working area capacity after increasing is not greater than the max cap. of this buffer, this processor is according to this working area capacity after increasing, read a Part II of this video/audio archive to this working area, wherein this Part II of this video/audio archive is after the Part I of this video/audio archive; And
Judge the compressed format of this video/audio archive according to this first part and this Part II.
8. a playing device that judges fast the compressed format of video/audio archive, comprising:
One buffer, it has a max cap.;
One receiver, in order to receive a video/audio archive;
This playing device is also characterised in that and comprises:
Whether one detector, there is a label segment after detecting a header of this video/audio archive; And
One processor, in order to set the capacity in a working area in this buffer, wherein in the time that this detector detects this label segment, this processor is not supported the compressed format of kind under this label segment according to this label segment filtering, and skips over this label segment and set a start position that reads these video/audio archive data.
9. playing device as claimed in claim 8, it is characterized in that, this processor reads a first part from this start position and deposits this buffer in, and judge the compressed format of this video/audio archive according to this first part, in the time cannot judging the compressed format meeting, this processor increases the capacity in this working area, and according to this working area capacity after increasing, read a Part II of this video/audio archive to this working area, judge the compressed format of this video/audio archive according to this first part and this Part II.
10. playing device as claimed in claim 9, it is characterized in that, this processor is to compare and scoring according to the data in this working area and at least one candidate's compressed format while judging the compressed format of this video/audio archive, selects the candidate's compressed format meeting according to appraisal result.
CN201210552118.6A 2012-12-18 2012-12-18 Method for quickly judging compression format of audio and video archive and related playing device Pending CN103871440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210552118.6A CN103871440A (en) 2012-12-18 2012-12-18 Method for quickly judging compression format of audio and video archive and related playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210552118.6A CN103871440A (en) 2012-12-18 2012-12-18 Method for quickly judging compression format of audio and video archive and related playing device

Publications (1)

Publication Number Publication Date
CN103871440A true CN103871440A (en) 2014-06-18

Family

ID=50909896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210552118.6A Pending CN103871440A (en) 2012-12-18 2012-12-18 Method for quickly judging compression format of audio and video archive and related playing device

Country Status (1)

Country Link
CN (1) CN103871440A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030158737A1 (en) * 2002-02-15 2003-08-21 Csicsatka Tibor George Method and apparatus for incorporating additional audio information into audio data file identifying information
CN1991821A (en) * 2005-12-30 2007-07-04 英业达股份有限公司 Document format recognition system and method
CN101040258A (en) * 2004-12-21 2007-09-19 中兴通讯股份有限公司 Method and apparatus for loading compatibly equipment software in distributed control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030158737A1 (en) * 2002-02-15 2003-08-21 Csicsatka Tibor George Method and apparatus for incorporating additional audio information into audio data file identifying information
CN101040258A (en) * 2004-12-21 2007-09-19 中兴通讯股份有限公司 Method and apparatus for loading compatibly equipment software in distributed control system
CN1991821A (en) * 2005-12-30 2007-07-04 英业达股份有限公司 Document format recognition system and method

Similar Documents

Publication Publication Date Title
US20150254737A1 (en) Method, apparatus and system for providing customized service based on beacon signal
JP5243430B2 (en) Method and apparatus for updating consumer product software
US7870165B2 (en) Electronic apparatus having data playback function, database creation method for the apparatus, and database creation program
CN102256030A (en) Photo album showing system capable of matching background music and background matching method thereof
CN101071441A (en) Content marking method and playback equipment and method and storage medium
CN107977222A (en) Suitable for the conversion of the upgrade file of eMMC, generation method and device
CN101540184B (en) Method and apparatus for reproducing first part of music data having plurality of repeated parts
JP4736201B2 (en) Information retrieval apparatus and method, and storage medium
CN102298534B (en) Method for writing software into set-top box
US20060178766A1 (en) Method and apparatus for copying data from recordable media directly to portable storage devices
CN113518187A (en) Video editing method and device
CN102014214A (en) Hand-held terminal powered-on/powered-off method and identification method of memory card of hand-held terminal
CN109101435A (en) The multi partition recognition methods of movable storage device and system, car-mounted terminal
CN103871440A (en) Method for quickly judging compression format of audio and video archive and related playing device
CN108132793A (en) Transmission, upgrade method and the device of eMMC online upgrading files
CN106653070B (en) Audio node insertion method and device and terminal equipment
US8326946B2 (en) Compact disc playing system and its play back method
CN102866946A (en) Method and device for testing reading/writing function
CN112380226A (en) Data loading method and device, electronic equipment and storage medium
CN107948741B (en) Dynamic cartoon playing method and system based on intelligent terminal
TWI521945B (en) Method for quickly determining a compression format of an audio or video file and related playback device thereof
US20070091736A1 (en) System and method for storing and managing digital content
CN116506691B (en) Multimedia resource processing method and device, electronic equipment and storage medium
CN111124743B (en) Disk enumeration method, device and computer readable storage medium based on DiskArbitration
US7643389B2 (en) File-based recordable disc playback apparatus and file-based recordable disc playback 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140618

WD01 Invention patent application deemed withdrawn after publication