CN103501469A - Method for adding geographic position information to tail part of video file - Google Patents

Method for adding geographic position information to tail part of video file Download PDF

Info

Publication number
CN103501469A
CN103501469A CN201310443075.2A CN201310443075A CN103501469A CN 103501469 A CN103501469 A CN 103501469A CN 201310443075 A CN201310443075 A CN 201310443075A CN 103501469 A CN103501469 A CN 103501469A
Authority
CN
China
Prior art keywords
information
file
geographical location
location information
video file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310443075.2A
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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201310443075.2A priority Critical patent/CN103501469A/en
Publication of CN103501469A publication Critical patent/CN103501469A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention provides a method for adding geographic position information to a tail part of a video file. The method comprises the following steps of S10, obtaining a geographic position information data sample of a video file collection area by utilizing a locating device; S20, manufacturing a geographic position information file according to the sample, wherein the geographic position information file is formed by a header field, the sample and a verification character string, and the sample comprises current time information, current latitude information and current longitude information; S30, adding the geographic position information file to the tail part of the video file; S40, utilizing the attribute information of the geographic position information file in a header file of the video file as a marker. According to the method for adding the geographic position information to the tail part of the video file, which is disclosed by the invention, the geographic position information data can be added artificially and randomly without breaking the universality and the completeness of the current video, meanwhile the storage and management efficiency is higher, and the complexity and the development cost of software play are reduced; simultaneously the video retrieval based on the position information in the later period is facilitated.

Description

Add the method for geographical location information at the video file afterbody
[technical field]
The present invention relates to the video location technology, relate in particular to a kind of method of adding geographical location information at the video file afterbody.
[background technology]
Positioning video data acquisition at present, generally adopt in capture video geographical coordinate, speed and corresponding video frame number according to certain hour or space interval record object, and set up the table of comparisons of video time or frame of video and its position coordinates, speed by the later stage, realize the organic integration of video data and spatial geography data.
The position data that wherein reflects geographical coordinate can be stored in video file, and for example the JUNK piece in the AVI formatted file, also can be loaded in audio track, or can set up independent data files etc.Yet, be not that all videos all exist the JUNK field, the said method applicability is limited; And some geographical location information adding method is taked the multifile pattern of depositing separately, need to set up the corresponding relation of geography information file and video file, increase file management, retrieval, management and the complexity of safeguarding, complexity and development cost are higher thus, and storage and the efficiency of management are lower; In addition, in said method, for the video frequency searching carried out based on geographical location information, such as according to certain ,Mou path, position, inquire about the efficiency of holding within a plurality of associated videos and need further raising.
[summary of the invention]
The present invention is intended to solve above-mentioned problems of the prior art, proposes a kind of method of adding geographical location information at the video file afterbody.
The method at video file afterbody interpolation geographical location information that the present invention proposes comprises the following steps: S10, employing positioner obtain the geographical location information data sample that video file gathers ground; S20, according to described sample, make the geographical location information file, described geographical location information file consists of a field, described sample and the string of checking character, and described sample comprises current time information, current latitude information and current longitude information; S30, described geographical location information file is added to the afterbody of described video file; S40, the attribute information with described geographical location information file in the header file of described video file serve as a mark.
The method of at the video file afterbody, adding geographical location information that the present invention proposes has following advantage: 1) data can increase arbitrarily, unrestricted 2) data load on afterbody, do not destroy existing video general and integrality, and with conventional video player compatibility; 3) by geographical location information and video file direct correlation, there is higher storage and the efficiency of management, reduced complexity and development cost; 4) later stage is carried out the video frequency searching of position-based information, can effectively improve the efficiency of management.
[accompanying drawing explanation]
The method flow diagram at video file afterbody interpolation geographical location information that Fig. 1 is one embodiment of the invention.
The geographical location information file format figure that Fig. 2 is one embodiment of the invention.
The geographical location information file format figure that Fig. 3 is another embodiment of the present invention.
Fig. 4 is video heads file File functional mark field format figure.
[embodiment]
Below in conjunction with specific embodiment and accompanying drawing, the present invention is described in further detail.Below describe embodiments of the invention in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label means same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, only for explaining technical scheme of the present invention, and do not should be understood to limitation of the present invention.
In description of the invention, term " interior ", " outward ", " vertically ", " laterally ", " on ", orientation or the position relationship of the indications such as D score, " top ", " end " be based on orientation shown in the drawings or position relationship, be only the present invention for convenience of description rather than require the present invention with specific orientation structure and operation, therefore not should be understood to limitation of the present invention.
The invention provides a kind of method of adding geographical location information at the video file afterbody.Said method comprising the steps of:
S10, employing positioner obtain the geographical location information data sample that video file gathers ground;
S20, according to described sample, make the geographical location information file, described geographical location information file consists of a field, sample and the string of checking character, described field comprises initial latitude information and longitude information, and described sample comprises current latitude information and current longitude information;
S30, described geographical location information file is added to the afterbody of described video file;
S40, carry out mark in the header file of described video file.
The AVI video file of take in embodiment hereinafter is described in further detail as each step principle of method of at the video file afterbody, adding geographical location information that example proposes the present invention.
In step S10, at first adopt positioner to obtain the geographical location information data sample that video file gathers ground.The device that wherein, can adopt GPS, AGPS, LBS etc. to have positioning function obtains the geographical location information data sample that video file gathers ground.
Wherein, described sample comprises current time information, current latitude information and current longitude information.Preferably, in situation one, described current time information is as absolute time information, and described current latitude information is as absolute latitude information, and described current longitude information is absolute longitude information, in addition, in situation two, described current time information can also comprise relative time information, described current latitude information can also comprise relative latitude information, described current longitude information can also comprise relative longitude information, thereby further reduce data volume, there is initial time information, in the situation of initial latitude information and initial longitude information, can be in the hope of current time information in conjunction with described initial time information and relative time information, can be in the hope of current latitude information in conjunction with described initial latitude information and relative latitude information, can be in the hope of current longitude information in conjunction with described initial longitude information and relative longitude information.
In step S20, make the geographical location information file according to described sample, described geographical location information file consists of a field, described sample and the string of checking character.
For showing more intuitively the form of described geographical location information file, please refer to Fig. 2 and Fig. 3, Fig. 2 corresponds to situation one mentioned above, and Fig. 3 corresponds to situation two mentioned above.GEO_Header is described field, and GEO_Header comprises following son field: the geography information file indicates position DWORD dwLabel; Geography information file size DWORD dwTotalLength; Sampling time interval DWORD dwSampleInterval, wherein, if uniform sampling indicates the sampling interval, if nonuniform sampling is set to 0; Sampling time DWORD dwSampleTime[4]; Collecting device information D WORD dwGEODevice; Number of samples DWORD dwTotalNumberofSample; Initial latitude information DWORD LATITUDE[2]; Initial longitude information DWORD LONGITUDE[2]; Reserved field DWORD dwGEO_Reserved[4]; ' START ' the symbol DWORD dwStartLabel that starts to sample.
GEO_Sample#1, GEO_Sample#2 ..., GEO_Sample#N is corresponding to the described sample of situation one mentioned above.GEO_Sample#1, GEO_Sample#2 ..., GEO_Sample#N comprises following son field: absolute time information DWORD Time[4]; Absolute latitude information DWORD LATITUDE[2]; Absolute longitude information DWORD LONGITUDE[2].
GEO_DeltaSample#2, GEO_DeltaSample#3 ..., GEO_DeltaSample#N is corresponding to the described sample of situation two mentioned above.GEO_DeltaSample#2, GEO_DeltaSample#3 ..., GEO_DeltaSample#N comprises following son field: relative time information DWORD DeltaTime[4]; Relative latitude information DWORD LATITUDE[2]; Relative longitude information DWORD LONGITUDE[2].
Preferably, after making described geographical location information file with reference to above-mentioned form, can further to described geographical location information file, be compressed, be encrypted, with the size of further dwindling described geographical location information file and the confidentiality that improves described geographical location information file.Wherein, known DEA and cryptographic algorithm be can adopt, described compression and cryptographic operation carried out.
In step S30, described geographical location information file or the described geographical location information file after overcompression/encryption are added to the afterbody of described video file.After interpolation, need execution step S40, in the header file of described video file, carry out mark, to show described video file afterbody, comprised described geographical location information file.
Take the AVI video file as example, and there is the avih piece in AVI video file head, for recording the global information of avi file, and wide and high such as quantity, the video image of stream, it comprises following son field: FOURCC fcc, this is necessary for ' avih '; The big or small DWORDcb of data structure; Frame of video DWORD interval time dwMicroSecPerFrame(be take millisecond as unit); Maximum data rate DWORD dwMaxBytesPerSec; Data stuffing granularity DWORD dwPaddingGranularity; Global mark DWORD dwFlags; Totalframes DWORD dwTotalFrames; Mutual form is specified numer of initial frames DWORD dwInitialFrames; The number DWORD dwStreams of the stream that presents comprises; The cache size DWORD dwSuggestedBufferSize of presents is read in suggestion; The wide DWORD dwWidth of video image; The high DWORD dwHeight of video image; Retain son field DWORD dwReserved[4].
DwReserved[4 wherein] be the system reserved field, 16 bytes of size, former data are 0, by dwReserved[4] in add the relevant informations such as file mark, length, address of Dynamic Geographic information, specifically add content and be: DWORD dwHeadLabel; Afterbody adds the number DWORD dwTotalLengthofSamples of geography information; The functional mark Byte BFlags of geography information; The compressed format Byte BCodingFormat of mark geography information; Mark encryption format Byte BEncrypt; 6 kinds of function items retain son field Byte BReserved[6]; Error check byte Byte Bcheck.
Wherein, whether whether BFlags is mainly used in the function of the file that mark adds, as compressed, encrypt etc., and in this way, the corresponding bit position is 1, if not, is set to 0.As shown in Figure 4, wherein R1-R6, for retaining position, can be used for functional expansion to its specific definition.
While extracting described geographical location information, only need to carry out the inverse step of said process, thereby obtain the geographical location information data sample that video file gathers ground.
The method at video file afterbody interpolation geographical location information that the present invention proposes has following advantage: 1), than expansion JUNK piece, data can increase arbitrarily, unrestricted; The JUNK field is not that all videos all exist in addition, and applicability is limited, and the present invention has general applicability; 2) data load on afterbody, do not destroy existing video general and integrality, and with conventional video player compatibility; 3) the multifile pattern of depositing separately with path is compared, and has higher storage and the efficiency of management, has reduced complexity and development cost that software is play; 4) later stage is carried out the video frequency searching of position-based information, such as according to certain ,Mou path, position, inquires about within a plurality of associated videos and holds, and can effectively improve the efficiency of management.
Although the present invention is described with reference to current better embodiment; but those skilled in the art will be understood that; above-mentioned better embodiment only is used for explaining and illustrating technical scheme of the present invention; and not be used for limiting protection scope of the present invention; any within the spirit and principles in the present invention scope; any modification of doing, equivalent replacement, distortion, improvement etc., within all should being included in claim protection range of the present invention.

Claims (9)

1. a method of adding geographical location information at the video file afterbody comprises the following steps:
S10, employing positioner obtain the geographical location information data sample that video file gathers ground;
S20, according to described sample, make the geographical location information file, described geographical location information file consists of a field, described sample and the string of checking character, and described sample comprises current time information, current latitude information and current longitude information;
S30, described geographical location information file is added to the afterbody of described video file;
S40, the attribute information with described geographical location information file in the header file of described video file serve as a mark.
2. method of adding geographical location information at the video file afterbody according to claim 1, is characterized in that, described field also comprises the length of described geographical location information file and the sampling interval of described sample.
3. method of adding geographical location information at the video file afterbody according to claim 2, it is characterized in that, described current time information is absolute time information, and described current latitude information is absolute latitude information, and described current longitude information is absolute longitude information.
4. method of adding geographical location information at the video file afterbody according to claim 3, it is characterized in that, described current time information also comprises relative time information, and described current latitude information also comprises relative latitude information, and described current longitude information also comprises relative longitude information.
5. method of adding geographical location information at the video file afterbody according to claim 1, is characterized in that, before carrying out step S30, described geographical location information file compressed.
6. method of adding geographical location information at the video file afterbody according to claim 1, is characterized in that, before carrying out step S30, described geographical location information file is encrypted.
7. method of adding geographical location information at the video file afterbody according to claim 1, is characterized in that, in step S40, carries out mark in the reserved field of described video file header file.
8. according to the described method of adding geographical location information at the video file afterbody of claim 1 or 7, it is characterized in that, described attribute information comprises size and the memory address of described geographical location information file.
9. method of adding geographical location information at the video file afterbody according to claim 1, is characterized in that, described positioner is a kind of in GPS, AGPS and LBS.
CN201310443075.2A 2013-09-25 2013-09-25 Method for adding geographic position information to tail part of video file Pending CN103501469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310443075.2A CN103501469A (en) 2013-09-25 2013-09-25 Method for adding geographic position information to tail part of video file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310443075.2A CN103501469A (en) 2013-09-25 2013-09-25 Method for adding geographic position information to tail part of video file

Publications (1)

Publication Number Publication Date
CN103501469A true CN103501469A (en) 2014-01-08

Family

ID=49866630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310443075.2A Pending CN103501469A (en) 2013-09-25 2013-09-25 Method for adding geographic position information to tail part of video file

Country Status (1)

Country Link
CN (1) CN103501469A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984710A (en) * 2014-05-05 2014-08-13 深圳先进技术研究院 Video interaction inquiry method and system based on mass data
CN105553933A (en) * 2015-11-30 2016-05-04 华为技术有限公司 Note processing method and system, and terminal device
CN106055610A (en) * 2016-05-25 2016-10-26 维沃移动通信有限公司 Retrieval method for voice messages and mobile terminal
CN106210928A (en) * 2016-08-10 2016-12-07 深圳市企拍文化科技有限公司 Add real-time geographical locations information watermaking system and method in video
WO2017185807A1 (en) * 2016-04-29 2017-11-02 努比亚技术有限公司 Data acquisition device and method
CN111782730A (en) * 2020-07-09 2020-10-16 腾讯科技(深圳)有限公司 File uploading method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547360A (en) * 2009-05-08 2009-09-30 南京师范大学 Localizable video file format and method for collecting data of formatted file
CN101630324A (en) * 2009-08-18 2010-01-20 北京航空航天大学 Method for accessing geographic position information in multimedia resource
CN102088564A (en) * 2009-12-02 2011-06-08 新奥特(北京)视频技术有限公司 Opening switching method of marathon race

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547360A (en) * 2009-05-08 2009-09-30 南京师范大学 Localizable video file format and method for collecting data of formatted file
CN101630324A (en) * 2009-08-18 2010-01-20 北京航空航天大学 Method for accessing geographic position information in multimedia resource
CN102088564A (en) * 2009-12-02 2011-06-08 新奥特(北京)视频技术有限公司 Opening switching method of marathon race

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984710A (en) * 2014-05-05 2014-08-13 深圳先进技术研究院 Video interaction inquiry method and system based on mass data
CN103984710B (en) * 2014-05-05 2017-07-18 深圳先进技术研究院 Video interactive querying method and system based on mass data
CN105553933A (en) * 2015-11-30 2016-05-04 华为技术有限公司 Note processing method and system, and terminal device
WO2017185807A1 (en) * 2016-04-29 2017-11-02 努比亚技术有限公司 Data acquisition device and method
CN106055610A (en) * 2016-05-25 2016-10-26 维沃移动通信有限公司 Retrieval method for voice messages and mobile terminal
CN106055610B (en) * 2016-05-25 2020-02-14 维沃移动通信有限公司 Voice information retrieval method and mobile terminal
CN106210928A (en) * 2016-08-10 2016-12-07 深圳市企拍文化科技有限公司 Add real-time geographical locations information watermaking system and method in video
CN111782730A (en) * 2020-07-09 2020-10-16 腾讯科技(深圳)有限公司 File uploading method and device and storage medium
CN111782730B (en) * 2020-07-09 2021-07-06 腾讯科技(深圳)有限公司 File uploading method and device and storage medium

Similar Documents

Publication Publication Date Title
CN103501469A (en) Method for adding geographic position information to tail part of video file
CN103530326A (en) Method for adding geographical location information into video file and creating index
JP4481889B2 (en) Data recording apparatus and method, program, and recording medium
CN102129474B (en) Method, device and system for retrieving video data
CN104951515B (en) A method of it extracts and analyzes Android phone whereabouts trace information
US7496978B1 (en) Location aware voice calls and messages
US20100082712A1 (en) Location and Time Based Media Retrieval
CN106600708B (en) A kind of processing method and system of map
CN103226965B (en) Based on the audio/video data access method of time bitmap
CN102306194B (en) Methods for storing and querying GPS (global positioning system) data
CN104581406A (en) Network video recording and playback system and method
CN106155845B (en) XFS-based file system data reorganization and recovery method
CN102393854A (en) Method and device obtaining audio/video data
CN104240741A (en) Method for performing video dotting and searching in video recording, and video recording equipment thereof
CN104702874B (en) A kind of file memory method of facing video monitoring
CN101751456B (en) A kind of method for processing multimedia information, system and multimedia terminal
CN111897675B (en) Method for restoring recently deleted files of F2FS file system at mobile phone end
WO2020211858A1 (en) Methods for generating sub-video, and system and medium storing corresponding program
CN102594878A (en) Internet of things information fusion method, internet of things terminal equipment and internet of things platform
CN102325179A (en) Mobile storage equipment and cloud content sharing method thereof
CN101782917B (en) Video information control apparatus and method
JP2015136084A (en) Data transmission apparatus, information processing apparatus, data transmission program, and data transmission method
CN104219205B (en) It pushes the method for media file, receive the methods, devices and systems of media file
CN112954445B (en) Streaming media file playing method and device, computer equipment and storage medium
US10515053B2 (en) Electronic device and database constructing 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140108

RJ01 Rejection of invention patent application after publication