CN101630324A - Method for accessing geographic position information in multimedia resource - Google Patents

Method for accessing geographic position information in multimedia resource Download PDF

Info

Publication number
CN101630324A
CN101630324A CN200910091329A CN200910091329A CN101630324A CN 101630324 A CN101630324 A CN 101630324A CN 200910091329 A CN200910091329 A CN 200910091329A CN 200910091329 A CN200910091329 A CN 200910091329A CN 101630324 A CN101630324 A CN 101630324A
Authority
CN
China
Prior art keywords
resource file
multimedia resource
location information
geographical location
extended field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910091329A
Other languages
Chinese (zh)
Other versions
CN101630324B (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.)
Beihang University
Beijing University of Aeronautics and Astronautics
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN2009100913292A priority Critical patent/CN101630324B/en
Publication of CN101630324A publication Critical patent/CN101630324A/en
Application granted granted Critical
Publication of CN101630324B publication Critical patent/CN101630324B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention obtains geographic position information and time information in the collection process of the multimedia resource so as to generate geographic position information element data corresponding to the file type of the multimedia resource; determining the expandable character section set thereof according to the judged file type of the multimedia resource, and determining the usable expandable character section therein according to the occupation tags of different character sections in the expandable character section set; adding geographic position information tags and generate geographic position information element data to the determined usable expandable character section in the multimedia resource file; and realizing the embedment of geographic position information in the multimedia resource file. Based on the geographic position information tags, the usable expandable character sections and the geographic position information element data corresponding to the file type of the multimedia resource, the access of geographic position information tags in the multimedia resource files and the intact transfer of geographic position information during multimedia resource file format conversion and edition can be realized.

Description

A kind of in multimedia resource the method for accessing geographic position information
Technical field
The present invention relates to a kind of in the multimedia resource file accessing geographic position information, and in the multimedia resource file conversion method of complete transmission geographical location information.This invention is based on the novel management of the multimedia resource of geographical location information and inquiry provides the foundation and necessary the support, belongs to multimedia technology field.
Background technology
GPS (Global Positioning System is called for short GPS) is a round orbiter navigational system of middle distance that is begun to develop and built up in 1994 comprehensively the seventies in 20th century by U.S. government.Current, GPS has been widely used in fields such as navigation, traffic, equipment control, safety; Simultaneously increasing digital device has begun to support GPS, for example: PDA, DC, mobile phone etc.
Maturation and development along with multimedia technology, (audio frequency, video, picture, text, animation) of a great variety, form are different, and (with the audio/video is example, AVI, ASF, MP4, MOV, RM, 3GP) multimedia resource produced in large quantities and used, manage these multimedia resources difficulty day by day how effectively, easily.
GPS information provides global accurately unique spatial geographical locations information and temporal information, and basic media integrated as multimedia resource with it and that integrate has the advantage that can not be substituted.
Current, the direct integrated and application of GPS information and multimedia resource still is in the starting stage.Present application is based on the indirect association of GPS information and multimedia resource and integrated more.At first extract the Thumbnail of picture or video, then by using database to carry out the indirect association of GPS and multimedia resource.Directly integrated technology mainly is limited to the GPS embedding of particular picture form at present and reads.For example EXIF2 (Exchangeable image file format) is given in the method that embeds and read GPS information in the picture format of customization.
The invention provides the direct integrated technology of a kind of GPS information and multimedia resource (picture, audio/video).Can realize the direct embedding of the geographical location information of plurality of picture and audio/video form (JPEG, AVI, ASF, 3GP etc.) and read by the present invention; Can realize recurring synchronously in real time of geographical location information and audio frequency and video; Can realize that the geographical location information in audio frequency and video format conversion, the editing process keeps.
Summary of the invention
The purpose of this invention is to provide and a kind ofly in the multimedia resource file, embed and read geographical location information, and in conversion of multimedia resource file layout and editor the method for complete transmission geographical location information.
Based on above goal of the invention, the invention provides a kind of method that in the multimedia resource file, embeds geographical location information, it is characterized in that may further comprise the steps:
Step 1: obtain geographical location information and the temporal information relevant, generate and multimedia resource file type corresponding geographical location information metadata according to the described information of being obtained with the multimedia resource file;
Step 2: the type of judging described multimedia resource file, but determine extended field collection in the described multimedia resource file according to the multimedia resource file type of judging, but but concentrate the identifier that takies of each field to determine wherein available extended field according to described extended field;
Step 3: in described multimedia resource file, but the available extended field of determining is added geographical location information identifier and described geographical location information metadata.
The method of aforesaid embedding geographical location information is characterized in that: geographical location information that the multimedia resource file is relevant and temporal information are meant geographical location information and the temporal information when this multimedia resource is gathered.
The method of aforesaid embedding geographical location information is characterized in that:
A) for the resource file of picture/mb-type, described geographical location information metadata refers to gather longitude, latitude, sea level elevation, date, time, acquisition angles and version information constantly
B) for the resource file of audio/video type, consider the sequential and the dynamic of continuous acquisition, described geographical location information metadata comprises: gather longitude, latitude, sea level elevation, date, time, acquisition angles, version information, movement velocity and the angle of advancing of the zero hour, and several relative longitudes with respect to the zero hour in the gatherer process, latitude, sea level elevation, relative time, acquisition angles, speed of related movement and the relative angle of advancing relatively relatively relatively
The method of aforesaid embedding geographical location information, it is characterized in that: for the resource file of audio/video type, consider the uncertainty of movement velocity in the gatherer process, adopt the on-fixed time interval to generate the geographical location information metadata, promptly when relative longitude, relatively latitude during above preset threshold, generates new geographical location information metadata with relative change of elevation.
The method of aforesaid embedding geographical location information is characterized in that: for the picture resource file of jpeg format, but segment identification is defined as all application Duan Weiqi extended field collection of APPn; For the audio/video resource file of AVI form, but expansion Lists is its extended field collection; For the audio/video resource file of ASF form, but Other Header Ojects group of objects is its extended field collection; For the audio/video resource file of 3GP form, but mdat text bag is its extended field collection.
The method of aforesaid embedding geographical location information is characterized in that: be meant but described geographical location information metadata joined in definite available extended field:
A) but the described geographic position metadata corresponding with picture/mb-type added in the available extended field that is determined of picture resource file
B) but the described geographic position metadata corresponding with the audio/video type added in the available extended field that is determined of audio/video resource file
Based on above goal of the invention, the invention provides a kind of method that in the multimedia resource file, reads geographical location information, it is characterized in that may further comprise the steps:
Step 1: accept the multimedia resource file, judge the type of described multimedia resource file, but determine extended field collection in the described multimedia resource file according to the multimedia resource file type of judging, but concentrate the identifier of each field to judge whether comprise the geographical location information identifier according to described extended field;
Step 2: contain the geographical location information identifier in the multimedia resource file as described, but then in the specified extended field of this identifier, read the geographical location information metadata that is complementary with this resource file type.
Based on above goal of the invention, the invention provides a kind of in multimedia resource file layout conversion and editor the method for complete transmission geographical location information, it is characterized in that may further comprise the steps:
Step 1: the source multimedia resource file that acceptance is converted or edits, judge the file type of described source multimedia resource file, but determine extended field collection in the file according to the type of judging, but concentrate taking sign and judging whether comprise the geographical location information identifier of each field according to described extended field;
Step 2: contain the geographical location information identifier in the source multimedia resource file that is converted as described or edits, but then in the specified extended field of this identifier, read the geographical location information metadata that is complementary with described source multimedia resource file type;
Step 3: the type of judging conversion or editor's target multimedia resource file, but determine the extended field collection of described target multimedia resource file according to the target multimedia resource file type of judging, but but concentrate the sign that takies of each field to determine wherein available extended field according to described extended field;
Step 4: in described target multimedia resource file, but to definite available extended field interpolation geographical location information identifier with by the geographical location information metadata that reads out in the multimedia resource file of described source.
Provided by the present inventionly in the multimedia resource file, embed and read geographical location information, and in multimedia resource file layout conversion and editor the method for complete transmission geographical location information, for novel management and inquiry based on the multimedia resource of geographical location information provide the foundation, can satisfy demand, have good practical values multi-level, multi-faceted management of magnanimity multi-medium data and inquiry.
Description of drawings
Fig. 1 is the process flow diagram that embeds geographical location information in the multimedia resource file;
Fig. 2 is the process flow diagram that reads geographical location information in the multimedia resource file;
Fig. 3 is the process flow diagram of transmission geographical location information among conversion of multimedia resource file layout and the editor;
Fig. 4 is the process flow diagram that the geographical location information metadata generates;
Fig. 5 is the process flow diagram that the multimedia resource file type is judged;
Fig. 6 is the process flow diagram that generates audio/video type corresponding geographical location information metadata;
But Fig. 7 is the process flow diagram that definite multimedia resource file can be used extended field;
Fig. 8 embeds the process flow diagram that geographical location information metadata mode is selected;
Fig. 9 is that the geographical location information metadata of jpeg file embeds basic flow sheet;
Figure 10 is that the geographical location information metadata of avi file embeds basic flow sheet;
Figure 11 is that the geographical location information metadata of ASF file embeds basic flow sheet;
Figure 12 is that the geographical location information metadata of 3GP file embeds basic flow sheet;
Figure 13 is that the geographical location information metadata of jpeg file reads basic flow sheet;
Figure 14 is that the geographical location information metadata of avi file reads basic flow sheet;
Figure 15 is that the geographical location information metadata of ASF file reads basic flow sheet;
Figure 16 is that the geographical location information metadata of 3GP file reads basic flow sheet.
Embodiment
Before address, the present invention is under the prerequisite that does not influence the normal access of multimedia resource file, utilize geographical location information and temporal information in the gps data to generate picture resource file and audio/video resource file corresponding geographical location information metadata, but in conjunction with the available extended field in the detected different multimedia resource file, be implemented in accessing geographic position information metadata in the multimedia resource file, complete transmission geographical location information metadata in multimedia resource file conversion and editor.
Below in conjunction with description of drawings implementation of the present invention, Fig. 1 has represented a kind of method that embeds geographical location information in the multimedia resource file provided by the invention.This method comprises following three steps:
Step 1 is obtained geographical location information and the temporal information relevant with the multimedia resource file, generates and multimedia resource file type corresponding geographical location information metadata according to the above-mentioned information of being obtained;
Step 2, judge the type of described multimedia resource file, but determine extended field collection in the described multimedia resource file according to the multimedia resource file type of judging, but but concentrate the identifier that takies of each field to determine wherein available extended field according to described extended field;
Step 3 in described multimedia resource file, but is added geographical location information identifier and described geographical location information metadata to the available extended field of determining.
For the multimedia resource file of indication in the step 1 relevant geographical location information and temporal information, be meant geographical location information and temporal information when this multimedia resource is gathered, the general GPS information when promptly multimedia resource is gathered.
For the generation of indication in the step 1 geographic position metadata corresponding with the multimedia resource type, being meant needs to consider the time of static images collection and the unicity of position, dynamically the continuity and the dynamic of audio/video collection generate corresponding with it geographical location information metadata based on its different requirement.Fig. 4 has provided the concrete steps that generate the geographical location information metadata:
Step 11 is accepted multimedia resource collection geographical location information and temporal information constantly, i.e. GPS information.Refer to gather GPS information constantly for picture resource; Refer to a series of GPS information in the gatherer process for audio and video resources, adopt the mode that to establish fixed intervals to go to obtain here, 5s for example, 10s, 30s, 60s etc.
Step 12 is accepted multimedia resource file determined type, and Fig. 5 has provided the concrete steps of judgement and verification multimedia resource type: step 121 reads the multimedia resource file suffixes; Step 122 is used the file suffixes that obtains to go retrieval can expand picture typelib 123 and can be expanded audio/video typelib 124; If this suffix exists in 123, then just be judged to picture/mb-type, if this suffix is not present in 123, just retrieve 124 again, if this suffix exists, then just be judged to the audio/video type in 124, if this suffix is not present in 124 yet, directly finish; For just being judged to picture/mb-type, step 125 uses picture extensible type storehouse 123 to carry out the checking of file character code, and coupling determines that then this multimedia resource file be picture/mb-type really, otherwise directly end; For just being judged to the audio/video type, step 126 uses audio/video extensible type storehouse 124 to carry out the checking of file character code, and coupling determines that then this multimedia resource file be the audio frequency and video type really, denys that the person does not directly finish.
Can expand in the picture typelib 123 storage picture file form and corresponding file suffix thereof commonly used, for example corresponding JPG, JPEG of JPEG, JPE or JFIF suffix, the corresponding GIF of GIF, TIFF corresponding TIF, TIFF, the corresponding PNG of PNG.Can expand and also store picture format and corresponding file character code thereof commonly used in the picture typelib 123, for example the image file opening code of JPEG is 0xFFD8, and the file character code of PNG is 0x89504E470D0A1A0A.In addition, can expand picture typelib 123 can expand to support new picture format.
Can expand storage audio/video file layout and corresponding file suffix thereof commonly used in the audio/video typelib 124, for example, AVI corresponding A VI suffix, ASF corresponding A SF, WMV, WMA, the corresponding 3GP of 3GP.Can expand and also store audio/video file layout and corresponding file character code thereof commonly used in the picture typelib 123, for example the file character code of AVI is fourCC " RIFF ", the file character code of ASF is that 128 ASF_Header_Object value is " 75B22630668E11CFA6D900AA0062CE6C ", the file character code of 3GP be that its file header bag identifies " ftyp ".In addition, can expand audio/video typelib 124 can expand to support new audio/video file layout.
The geographical location information metadata that step 13 generates is meant collection of resources longitude, latitude, sea level elevation, date, time, acquisition angles and the version information constantly of static images type.
The geographical location information metadata that step 14 generates, be meant resource file for the audio/video type, need to consider the sequential and the dynamic of continuous acquisition, described metadata comprises: gather longitude, latitude, sea level elevation, date, time, acquisition angles, version information, movement velocity and the angle of advancing of the zero hour, and several relative longitudes with respect to the zero hour in the gatherer process, latitude, sea level elevation, relative time, acquisition angles, speed of related movement and the relative angle of advancing relatively relatively relatively.
Step 14, resource file for the audio/video type, consider the uncertainty of movement velocity in the gatherer process, adopt the on-fixed time interval to generate the geographical location information metadata, promptly when relative longitude, relatively latitude during above preset threshold, generates new geographical location information metadata with relative change of elevation.Fig. 6 provides the process flow diagram that generates audio/video type corresponding geographical location information metadata.
Step 141 refer to described in the step 11 can establish the mode of fixed intervals, constantly obtain geographical location information and temporal information, promptly constantly obtain GPS information;
Step 142 refers to calculate with respect to metadata generation last time constantly, at present latitude, the precision of variation and the height of variation that changes;
Step 143 refer to calculate with respect to last time metadata generate overall amplitude of variation constantly, concrete computing formula as shown in Equation 1:
ΔTotal = Δ x 2 + Δ y 2 + Δ h 2 - - - ( 1 )
Wherein Δ x is the surface distance of the longitude correspondence of variation, and Δ y is the surface distance of the latitude correspondence of variation, and Δ h is the distance of the height correspondence of variation.
The amplitude of variation of setting is decided according to concrete the application, for example, and 5 meters, 10 meters, 20 meters, 50 meters, 100 meters, 200 meters.
For the geographical location information metadata that generates in step 13 and 14, the present invention is divided into Memory Reference metadata among the tissue that two parts carry out data structure: the GPSH (GPS Header) with it; The relative metadata of storage among the GPSI (GPSInformation).
Metadata for the geographical location information of picture/mb-type only needs a GPSH to get final product.
For the metadata of the geographical location information of audio/video type, it needs a GPSH and a plurality of GPSI.The metadata store of geographical location information of gathering the zero hour is in GPSH, and a series of relative geographical location information metadata store in the gatherer process is in a series of GPSI.
But step 2 is determined available extended field in the multimedia resource file, and Fig. 7 has listed concrete steps:
Step 21 is accepted the multimedia resource file of specified type, for example, and the picture file of jpeg format, the audio/video file of AVI form, the audio/video file of ASF form, the audio/video file of 3GP form.
But but step 22 is gathered storehouse 24, but is determined the extended field collection of the multimedia resource file of acceptance according to the extended field set storehouse 23 of picture/mb-type, the extended field of audio/video type.
But but the extended field collection of storage plurality of picture formatted file correspondence in the extended field of the picture/mb-type set storehouse 23, for example, for the jpeg format file, but all application Duan Weiqi extended field collection of APPn.23 can be expanded to support new picture format file.
But but the extended field collection of the multiple audio/video formatted file correspondence of storage in the extended field of the audio/video type set storehouse 24, for example, for the audio/video resource file of AVI form, but expansion Lists is the extended field collection; For the audio/video resource file of ASF form, but Other Header Ojects group of objects is the extended field collection; For the audio/video resource file of 3GP form, but mdat text bag is the extended field collection.24 can be expanded to support new audio/video formatted file.
But step 25 is accepted the extended field collection that step 22 provides, but but retrieves each extended field that extended field is concentrated successively in the multimedia resource file of specified type.If but described extended field occurs in described multimedia resource file, then retrieve it and use identifier, determine whether it shared by other application, if do not have occupied, but but just definite described extended field is available extended field; , but but just determine that described extended field is available extended field in described multimedia resource file if but described extended field does not occur.
Step 3 is in described multimedia resource file, but available extended field interpolation geographical location information identifier and described geographical location information metadata to determining.But at the distribution situation of available extended field in the multimedia resource file structure, Fig. 8 has provided the concrete grammar that adds described identifier and metadata:
But step 31 and 32 is accepted multimedia resource file and its available extended field.
But but step 33 is judged the placement location of this available extended field, but the available extended field of the multimedia resource file of some type can be placed on the optional position of file, for example, and 3GP; But the available extended field of the multimedia resource file of some type need be placed on the constrained position of file, for example, and AVI; If available that field of expanding can be placed into tail of file, then adopt step 34, otherwise adopt step 35.
But step 34 directly embeds identifier and the metadata available extended field to described multimedia resource file.
Step 35 rewrites new described multimedia resource file, but adds identifier and metadata in the rewrite process to available extended field.
Multimedia resource file for the picture/mb-type of jpeg format in the step 3 adopts step 35 to add the geographical location information metadata.
The content of jpeg file is divided into a lot of sections stores, and what and length of section are not fixed, but the extended field collection that APPn is it to be detected.Suppose the multimedia resource file of certain jpeg format, but APP1 detects available extended field for it, so concrete interpolation scheme as shown in Figure 9:
1) reading preceding 2 bytes of original, judge whether it is JPEG picture format (0xFFD8), is then they to be write new file and go to 2), otherwise embed failure, embed and finish;
2) continue to read 8 bytes of original, judge whether preceding 2 bytes are to use section APP1 (0xFFE1), if not, go to 3), otherwise, read ensuing 2 bytes and save as offset (side-play amount), judge whether back 4 bytes are GPS message identification (' gpsl '), if, skip original offset byte, go to 3).Otherwise, go to 3);
3) in new file, write JPEGGPSL+GPSH+GPSI, continue to read original, all write in the new file, embed successfully, embed and finish to finishing.
Multimedia resource file for the audio/video type of AVI form in the step 3 adopts step 35 to add the geographical location information metadata.
But the expansion List in the avi file is its extended field collection that is detected.Suppose the multimedia resource file of certain AVI form, but first expansion List detects available extended field for it, so concrete interpolation scheme as shown in figure 10:
1) read preceding 4 bytes of original, judge whether to be audio video interleaved (' RIFF '), if they are write new file and go to 2), otherwise, embed failure, embed and finish;
2) continue to read 4 bytes of original, change its value (increasing the total bytes of embedded GPS information) and write new file.Continue to read 12 bytes of original, change the value (increasing the total bytes of embedded GPS information) of last 4 bytes and write new file.Read 68 bytes of original (pointing to after the avih) and write new file;
3) in new file, write GPSL+GPSH+GPSI, continue to read original, all write in the new file, embed successfully, embed and finish to finishing.
Multimedia resource file for the audio/video type of ASF form in the step 3 adopts step 35 to add the geographical location information metadata.
But the Other Header Ojects group of objects in the ASF file is its extended field collection that is detected.Suppose the multimedia resource file of certain ASF form, but first Other Header Ojects group of objects detects available extended field for it, so concrete interpolation scheme as shown in figure 11:
1) read preceding 16 bytes of original, judge whether to be ASF file layout (75B22630-668E-11CF-A6D9-00AA0062CE6C), if they are write new file and go to 2), otherwise, embed failure, embed and finish;
2) continue to read 8 bytes of original, revise its value (increasing the total bytes of embedded GPS information), and write new file, continue to read 4 bytes of original, revise its value (increase by 1, expression has increased an Object newly), and write new file, continue to read 106 bytes with after the sensing FileProperties Object, and write new file;
3) in new file, write GPSO+GPSH+GPSI, continue to read original, all write in the new file, embed successfully, embed and finish to finishing.
Multimedia resource file for the audio/video type of 3GP form in the step 3 adopts step 34 to add the geographical location information metadata.
But the mdat text bag in the 3GP file is its extended field collection that is detected.Suppose the multimedia resource file of certain 3GP form, but first mdat text bag detects available extended field for it, so concrete interpolation scheme as shown in figure 12:
1) read preceding 8 bytes of original, get the 5th to the 8th byte and judge whether to be 3GP file layout (' FTYP '), if they are write new file and go to 2), otherwise, embed failure, embed and finish;
2) pointer is moved to end-of-file;
3) write GPSB+GPSH+GPSI, continue to write Box, the record front adds the GPSB+GPSH+GPSI size.Embed successfully, embed and finish.
Fig. 2 has represented a kind of method that reads geographical location information in the multimedia resource file provided by the invention.This method comprises following two steps:
Step 4, accept the multimedia resource file, judge the type of described multimedia resource file, but determine extended field collection in the described multimedia resource file according to the multimedia resource file type of judging, but concentrate the identifier of each field to judge whether comprise the geographical location information identifier according to described extended field;
Step 5 contains the geographical location information identifier in the multimedia resource file as described, but then reads the geographical location information metadata that is complementary with this resource file type in the specified extended field of this identifier.
The process that reads the geographical location information metadata for the multimedia resource file of the picture/mb-type of jpeg format in the step 5 is as shown in figure 13:
1) initialization GPSH, GPSI structure are in order to preserve GPS information;
2) reading preceding 2 bytes of original, judge whether it is JPEG picture format (0xFFD8), is then to go to 3), otherwise read failure, read end;
3) continue to read 8 bytes, judge that whether the 5th to the 8th byte is ' gpsl ', then goes to 4 in this way), otherwise read failure, read end;
4) data to the relevant position read, and are kept among GPSH, the GPSI, read success, read end.
The process that reads the geographical location information metadata for the multimedia resource file of the audio/video type of AVI form in the step 5 is as shown in figure 14:
1) initialization GPSH, GPSI structure are in order to preserve GPS information;
2) read preceding 4 bytes of original, judge whether to be then to go to 3 into audio video interleaved (' RIFF ')), otherwise read failure, read end;
3) continue to read 88 bytes;
4) continue to read 12 bytes, judge that whether the 9th to the 12nd byte is ' GPS ', then goes to 5 in this way), otherwise read end;
5) data to the relevant position read, and are kept among GPSH, the GPSI, read success, go to 4).
The process that reads the geographical location information metadata for the multimedia resource file of the audio/video type of ASF form in the step 5 is as shown in figure 15:
1) initialization GPSH, GPSI structure are in order to preserve GPS information;
2) read preceding 16 bytes of original, judge whether for ASF file layout (75B22630-668E-11CF-A6D9-00AA0062CE6C) be then to go to 3), otherwise read failure, read end;
3) continue to read 118 bytes;
4) continue to read 40 bytes, judge that whether the 1st to the 16th byte is ASF_GPS_Object (75FFFF30-668E-11CF-A6D9-00AA0062CE6C), then goes to 5 in this way), otherwise read end;
5) data to the relevant position read, and are kept among GPSH, the GPSI, read success, go to 4).
The process that reads the geographical location information metadata for the multimedia resource file of the audio/video type of 3GP form in the step 5 is as shown in figure 16:
1) initialization GPSH, GPSI structure are in order to preserve GPS information;
2) read preceding 8 bytes of original, get the 5th to the 8th byte and judge whether into 3GP file layout (' FTYP '), if go to 3), otherwise read failure, read end;
3) file pointer points to preceding 8 bytes of end of file, and preceding four bytes save as offset, judge whether back four bytes are ' GPS ', if then pointer jumps to end-of-file offset position, goes to 4), otherwise, read failure, read end;
4) data to the relevant position read, and are kept among GPSH, the GPSI, read success, read end.
Fig. 3 represented provided by the invention a kind of in multimedia resource file layout conversion and editor the method for complete transmission geographical location information.This method comprises following four steps:
Step 6, the source multimedia resource file that acceptance is converted or edits, judge the file type of described source multimedia resource file, but determine extended field collection in the file according to the type of judging, but concentrate taking sign and judging whether comprise the geographical location information identifier of each field according to described extended field;
Step 7 contains the geographical location information identifier in the source multimedia resource file that is converted as described or edits, but then reads the geographical location information metadata that is complementary with described source multimedia resource file type in the specified extended field of this identifier;
Step 8, judge the type of conversion or editor's target multimedia resource file, but determine the extended field collection of described target multimedia resource file according to the target multimedia resource file type of judging, but but concentrate the sign that takies of each field to determine wherein available extended field according to described extended field;
Step 9, in described target multimedia resource file, but to definite available extended field interpolation geographical location information identifier with by the geographical location information metadata that reads out in the multimedia resource file of described source.
More than disclosed only be instantiation of the present invention, according to thought provided by the invention, those skilled in the art can think and variation, all should fall within the scope of protection of the present invention.

Claims (9)

1. method that embeds geographical location information in the multimedia resource file is characterized in that may further comprise the steps:
Step 1: obtain geographical location information and the temporal information relevant, generate and multimedia resource file type corresponding geographical location information metadata according to the above-mentioned information of being obtained with the multimedia resource file;
Step 2: the type of judging described multimedia resource file, but determine extended field collection in the described multimedia resource file according to the multimedia resource file type of judging, but but concentrate the identifier that takies of each field to determine wherein available extended field according to described extended field;
Step 3: in described multimedia resource file, but the available extended field of determining is added geographical location information identifier and described geographical location information metadata.
2. the method for claim 1 is characterized in that: geographical location information and temporal information when geographical location information that the multimedia resource file is relevant and temporal information are meant this multimedia resource collection.
3. the method for claim 1 is characterized in that:
A) for the resource file of picture/mb-type, described geographical location information metadata refers to gather longitude, latitude, sea level elevation, date, time, acquisition angles and version information constantly;
B) for the resource file of audio/video type, consider the sequential and the dynamic of continuous acquisition, described geographical location information metadata comprises: gather longitude, latitude, sea level elevation, date, time, acquisition angles, version information, movement velocity and the angle of advancing of the zero hour, and several relative longitudes with respect to the zero hour in the gatherer process, latitude, sea level elevation, relative time, acquisition angles, speed of related movement and the relative angle of advancing relatively relatively relatively.
4. method as claimed in claim 3 is characterized in that: for the resource file of audio/video type, consider the uncertainty of movement velocity in the gatherer process, adopt the on-fixed time interval to generate the geographical location information metadata.
5. method as claimed in claim 4 is characterized in that generating new geographical location information metadata when relative longitude, when latitude surpasses preset threshold with relative change of elevation relatively.
6. the method for claim 1 is characterized in that: for the picture resource file of jpeg format, but segment identification be defined as APPn all use Duan Weiqi extended field collection; For the audio/video resource file of AVI form, but expansion Lists is its extended field collection; For the audio/video resource file of ASF form, but Other Header Ojects group of objects is its extended field collection; For the audio/video resource file of 3GP form, but mdat text bag is its extended field collection.
7. the method for claim 1 is characterized in that: be meant but described geographical location information metadata joined in definite available extended field:
A) but the described geographic position metadata corresponding with picture/mb-type added in the available extended field that is determined of picture resource file.
B) but the described geographic position metadata corresponding with the audio/video type added in the available extended field that is determined of audio/video resource file.
8. method that reads geographical location information in the multimedia resource file is characterized in that may further comprise the steps:
Step 1: accept the multimedia resource file, judge the type of described multimedia resource file, but determine extended field collection in the described multimedia resource file according to the multimedia resource file type of judging, but concentrate the identifier of each field to judge whether comprise the geographical location information identifier according to described extended field;
Step 2: contain the geographical location information identifier in the multimedia resource file as described, but then in the specified extended field of this identifier, read the geographical location information metadata that is complementary with this resource file type.
9. the method for a complete transmission geographical location information in multimedia resource file layout conversion and editor is characterized in that may further comprise the steps:
Step 1: the source multimedia resource file that acceptance is converted or edits, judge the file type of described source multimedia resource file, but determine extended field collection in the file according to the type of judging, but concentrate taking sign and judging whether comprise the geographical location information identifier of each field according to described extended field;
Step 2: contain the geographical location information identifier in the source multimedia resource file that is converted as described or edits, but then in the specified extended field of this identifier, read the geographical location information metadata that is complementary with described source multimedia resource file type;
Step 3: the type of judging conversion or editor's target multimedia resource file, but determine the extended field collection of described target multimedia resource file according to the target multimedia resource file type of judging, but but concentrate the sign that takies of each field to determine wherein available extended field according to described extended field;
Step 4: in described target multimedia resource file, but to definite available extended field interpolation geographical location information identifier with by the geographical location information metadata that reads out in the multimedia resource file of described source.
CN2009100913292A 2009-08-18 2009-08-18 Method for accessing geographic position information in multimedia resource Expired - Fee Related CN101630324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100913292A CN101630324B (en) 2009-08-18 2009-08-18 Method for accessing geographic position information in multimedia resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100913292A CN101630324B (en) 2009-08-18 2009-08-18 Method for accessing geographic position information in multimedia resource

Publications (2)

Publication Number Publication Date
CN101630324A true CN101630324A (en) 2010-01-20
CN101630324B CN101630324B (en) 2011-12-07

Family

ID=41575432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100913292A Expired - Fee Related CN101630324B (en) 2009-08-18 2009-08-18 Method for accessing geographic position information in multimedia resource

Country Status (1)

Country Link
CN (1) CN101630324B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887412A (en) * 2010-06-22 2010-11-17 华为终端有限公司 File generation method and file generation device
CN103501469A (en) * 2013-09-25 2014-01-08 深圳先进技术研究院 Method for adding geographic position information to tail part of video file
CN103679506A (en) * 2013-12-02 2014-03-26 小米科技有限责任公司 Information acquiring method, device, terminal and server
CN103686239A (en) * 2013-12-11 2014-03-26 深圳先进技术研究院 Network sharing crime evidence obtaining system and method based on location videos
WO2016184314A1 (en) * 2015-05-20 2016-11-24 山东大学 Device and method for establishing structured video image information
CN106776836A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 Apparatus for processing multimedia data and method
CN107256215A (en) * 2010-10-28 2017-10-17 谷歌公司 Mobile computing device is loaded using media file
CN108446348A (en) * 2018-03-08 2018-08-24 广东国地规划科技股份有限公司 A kind of method of address information insertion office documents
CN112308098A (en) * 2019-07-26 2021-02-02 杭州海康威视数字技术股份有限公司 Image processing method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530326A (en) * 2013-09-25 2014-01-22 深圳先进技术研究院 Method for adding geographical location information into video file and creating index

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170632A (en) * 2006-10-23 2008-04-30 北京锐科天智科技有限责任公司 GPS watermark generation method and device
KR100853379B1 (en) * 2007-07-20 2008-08-21 에스케이에너지 주식회사 Method for transforming based position image file and service server thereof
CN101489178A (en) * 2008-01-14 2009-07-22 中兴通讯股份有限公司 Method for Global positioning system positioning by transmission of mobile phone and combining electronic map

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887412A (en) * 2010-06-22 2010-11-17 华为终端有限公司 File generation method and file generation device
CN107256215A (en) * 2010-10-28 2017-10-17 谷歌公司 Mobile computing device is loaded using media file
CN103501469A (en) * 2013-09-25 2014-01-08 深圳先进技术研究院 Method for adding geographic position information to tail part of video file
CN103679506A (en) * 2013-12-02 2014-03-26 小米科技有限责任公司 Information acquiring method, device, terminal and server
CN103679506B (en) * 2013-12-02 2018-04-24 小米科技有限责任公司 A kind of method, apparatus, terminal and server for obtaining information
CN103686239A (en) * 2013-12-11 2014-03-26 深圳先进技术研究院 Network sharing crime evidence obtaining system and method based on location videos
WO2016184314A1 (en) * 2015-05-20 2016-11-24 山东大学 Device and method for establishing structured video image information
CN106776836A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 Apparatus for processing multimedia data and method
CN108446348A (en) * 2018-03-08 2018-08-24 广东国地规划科技股份有限公司 A kind of method of address information insertion office documents
CN112308098A (en) * 2019-07-26 2021-02-02 杭州海康威视数字技术股份有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN101630324B (en) 2011-12-07

Similar Documents

Publication Publication Date Title
CN101630324B (en) Method for accessing geographic position information in multimedia resource
CN101861583B (en) Hierarchical and reduced index structures for multimedia files
CN101694669B (en) Pace note making method, device thereof, pace note making and sharing system
US8923547B2 (en) Geotagging of audio recordings
US7991234B2 (en) Apparatus and method for image-classifying, and recording medium storing computer-readable program for the same
US9026513B2 (en) Associating digital images with waypoints
EP3338058B1 (en) Location based service tools for video illustration, selection, and synchronization
CN100568238C (en) Image search method and device
CN102289520A (en) Traffic video retrieval system and realization method thereof
CN103530326A (en) Method for adding geographical location information into video file and creating index
CN101051077A (en) Satellite positioning, remote sensing and geographical in for mation integrating method based on mobile device
CN102967315A (en) Navigation map improvement method and device
CN103383690A (en) Distributed data storage method and system
CN104679879A (en) Intelligent storage method and intelligent storage device for photo
CN111447303B (en) GPS-based dynamic coding method for Internet of things platform equipment
US20100162411A1 (en) Apparatus and method for managing hybrid contents generated by combining multimedia information and geospatial information
CN102103600A (en) Map building method and map system
CN102654848B (en) A kind of method and device realized mobile terminal and kept a diary automatically
CN101995244A (en) Method for acquiring object coordinates
CN201063792Y (en) Mobile phone system of implementing navigation using short message
CN102025908B (en) Method for deciding positioning value of image, method for marking a point of interest and device thereof
CN103020200A (en) Method and system for displaying archive catalogue information on map
KR100403535B1 (en) Method For Indication Of Advertisement In Electronic Map
CN201438337U (en) Road coordinate structure
CN102467578A (en) Content data management device, content data management system and method thereof

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111207

Termination date: 20120818