CN107291866A - Information acquisition method, device, storage medium and computer equipment - Google Patents

Information acquisition method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN107291866A
CN107291866A CN201710444115.3A CN201710444115A CN107291866A CN 107291866 A CN107291866 A CN 107291866A CN 201710444115 A CN201710444115 A CN 201710444115A CN 107291866 A CN107291866 A CN 107291866A
Authority
CN
China
Prior art keywords
data
information
big envelope
file
envelope information
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
CN201710444115.3A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710444115.3A priority Critical patent/CN107291866A/en
Publication of CN107291866A publication Critical patent/CN107291866A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

The embodiment of the invention discloses a kind of information acquisition method, device, storage medium and computer equipment.The information acquisition method includes:After the metadata information of multimedia file is got, do not include big envelope information in the metadata information if detecting, the file header data of the multimedia file are obtained at server;If determining that there are the data for representing big envelope information in the corresponding data of the multimedia file according to this document head data, the target data for representing big envelope information is obtained;The target data is converted into graphic file, and the big envelope information of the graphic file as the multimedia file is shown.The embodiment of the present invention can lift the information integrity of the multimedia file of terminal acquisition.

Description

Information acquisition method, device, storage medium and computer equipment
Technical field
The invention belongs to communication technical field, more particularly to a kind of information acquisition method, device, storage medium and computer Equipment.
Background technology
The functional module of DLNA (Digital Living Network Alliance, abbreviation DLNA) Include:Digital media controller (Digital Media Controller, abbreviation DMC) and digital media server (Digital Media Server, abbreviation DMS).Digital media controller can browse through share in digital media server many Media content.
Such as, digital media controller can download list of songs from digital media server and be browsed.However, Under certain situation, some of list of songs that digital media controller is got from digital media server song is not present There is missing in corresponding big envelope information, namely the information of multimedia file accessed by digital media controller, integrality compared with It is low.
The content of the invention
The embodiment of the present invention provides a kind of information acquisition method, device, storage medium and computer equipment, can lift terminal The information integrity of the multimedia file of acquisition.
The embodiment of the present invention provides a kind of information acquisition method, including:
After the metadata information of multimedia file is got, believe if detecting and not including big envelope in the metadata information Breath, then obtain the file header data of the multimedia file at server;
If being determined to have in the corresponding data of the multimedia file according to the file header data and representing big envelope information Data, then obtain represent big envelope information target data;
The target data is converted into graphic file, and using the graphic file as the multimedia file big envelope Information is shown.
The embodiment of the present invention provides a kind of information acquisition device, including:
First acquisition module, for after the metadata information of multimedia file is got, if detecting the metadata Do not include big envelope information in information, then the file header data of the multimedia file are obtained at server;
Second acquisition module, if for being determined according to the file header data in the corresponding data of the multimedia file With the data for representing big envelope information, then the target data for representing big envelope information is obtained;
Modular converter, for the target data to be converted into graphic file, and using the graphic file as described many The big envelope information of media file is shown.
The embodiment of the present invention also provides a kind of storage medium, including computer program, and the computer program is by processor When loading and performing, the step in information acquisition method provided in an embodiment of the present invention is realized.
The embodiment of the present invention also provides a kind of computer equipment, including memory, processor, and is stored in the storage In device and the computer program that can be run in the processor, described in the computing device during computer program, this is realized Step in the information acquisition method that inventive embodiments are provided.
Brief description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the embodiment to the present invention, technical scheme will be made And its advantage is apparent.
Fig. 1 is the schematic flow sheet of information acquisition method provided in an embodiment of the present invention.
Fig. 2 is another schematic flow sheet of information acquisition method provided in an embodiment of the present invention.
Fig. 3 A to Fig. 3 B are the schematic diagram of a scenario of information acquisition method provided in an embodiment of the present invention.
Fig. 4 is the structural representation of information acquisition device provided in an embodiment of the present invention.
Fig. 5 is the structural representation of mobile terminal provided in an embodiment of the present invention.
Fig. 6 is another structural representation of mobile terminal provided in an embodiment of the present invention.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
The executive agent of the embodiment of the present invention can be that such as smart mobile phone or tablet personal computer can be as Digital Media controls The terminal device of device processed.
It will be detailed below.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of information acquisition method provided in an embodiment of the present invention, flow can be wrapped Include:
In step S101, after the metadata information of multimedia file is got, if detecting in the metadata information Not comprising big envelope information, then the file header data of the multimedia file are obtained at server.
Such as, digital media controller can download list of songs from digital media server and be browsed.However, Under certain situation, some of list of songs that digital media controller is got from digital media server song is not present There is missing in corresponding big envelope information, namely the information of multimedia file accessed by digital media controller, integrality compared with It is low.
In the step S101 of the embodiment of the present invention, such as, obtained in digital media controller from digital media server After the metadata information for getting multimedia file (such as audio or video), digital media controller can detect that the metadata is believed Whether big envelope information is included in breath.
It should be noted that metadata (Metadata) is for describing the data of data (data about data).Member Data message is mainly the information of description data attribute, is the descriptive information to data and information.Such as, in some audio text Title, singer, audio size, audio duration and the big envelope letter of the audio file can be recorded in the metadata information of part The information such as breath.And the big envelope information of multimedia file can be with the front cover picture of audio, video or pictures.For example, song institute Music album front cover, either front cover of the front cover of video or photograph collection etc..
For example, getting certain list of songs (member of audio file from digital media server in digital media controller Data message) after, digital media controller can detect whether the song in the list of songs includes big envelope information.It is appreciated that , list of songs is mainly including information such as title, singer, duration, the big envelope pictures per song, and these information belong to song Bent metadata information.
If digital media controller detects in the metadata information of the multimedia file and includes big envelope information, for example, count Word media controller is detected in list of songs includes corresponding big envelope information per song, then Digital Media is controlled Device can just perform other operations.
If digital media controller, which is detected in the metadata information of the multimedia file, does not include big envelope information, then Digital media controller can obtain the file header data of the multimedia file from digital media server.For example, digital matchmaker Body controller, which is detected in the metadata information of a certain song A in list of songs, does not include big envelope information, then Digital Media Controller can obtain the file header data of the corresponding audio files of song A at server.
The text of the multimedia file not comprising big envelope information in metadata information is got from digital media server After part head data, digital media controller can be judged in the corresponding data of the multimedia file according to this document head data Whether the data that represent big envelope information are included.
It should be noted that file header is the data for being located at one section of recording document summary info that file starts.Such as, it is right In audio file, its file header data can typically record the singer on the audio file, title, album name, age, wind The information of lattice, big envelope etc..
Therefore, after the file header data of the multimedia file are got, digital media controller can be according to this document Head data, judge whether include the data for representing big envelope information in the corresponding data of the multimedia file.
If not having to record any information on the multimedia file big envelope information in file header data, then can be with Think not including the data for representing big envelope information in the corresponding data of the multimedia file.That is, the multimedia file pair Do not have big envelope information in the partial data answered natively.In this case, digital media controller can perform other behaviour Make.
If according to file header data, judging to include expression big envelope information in the corresponding data of the multimedia file Data, then enter step S102.
In step s 102, represented if being determined to have in the corresponding data of the multimedia file according to this document head data The data of big envelope information, then obtain the target data for representing big envelope information.
Such as, according to the song A got at digital media server file header data, digital media controller is sentenced Break in audio file data corresponding with song A include represent big envelope information data, then digital media controller can To obtain the target data that big envelope information is represented in audio file data corresponding with song A.
For example, having recorded table in the file header data of the song A got at digital media server audio file Show the storage location of the data of big envelope information, then digital media controller is assured that the corresponding audio files of song A There are the data for representing big envelope information in data.Then, digital media controller can be obtained and song according to the storage location The target data of big envelope information is represented in the corresponding audio file datas of A.
In step s 103, the target data is converted into graphic file, and regard the graphic file as multimedia text The big envelope information of part is shown.
Such as, after the target data of big envelope information is represented in getting data corresponding with the multimedia file, number Word media controller can be converted to the target data corresponding graphic file, and regard the graphic file as multimedia text The big envelope information of part is shown.
For example, after the target data of big envelope information is represented in getting audio file data corresponding with song A, number Word media controller can be converted to the target data corresponding graphic file, and the graphic file is defined as into song A's Big envelope information.Then, digital media controller can fill the graphic file corresponding positions for being shown to song in list of songs Put.
It is understood that the metadata for the multimedia file that the embodiment of the present invention can be obtained in digital media controller In the case of not including big envelope information in information, triggering digital media controller obtains the multimedia from digital media server The file header data of file.Include expression in data corresponding with the multimedia file are determined according to this document head data After the data of big envelope information, digital media controller can obtain the target data of the expression big envelope information, then by the number of targets According to being converted to graphic file, and the big envelope information that the graphic file is defined as the multimedia file is shown.Therefore, this hair Bright embodiment can lift the information integrity of the multimedia file of digital media controller acquisition.
Referring to Fig. 2, Fig. 2 is another schematic flow sheet of information acquisition method provided in an embodiment of the present invention, flow can With including:
In step s 201, after the metadata information of multimedia file is got, if detecting in the metadata information It is null field not comprising preset field or the preset field, then terminal determines not including big envelope information in the metadata information.
In step S202, terminal obtains the file header data of the multimedia file at server.
Such as, step S201 and S202 can include:
Illustrated in the present embodiment by terminal device of digital media controller.
Such as, after the metadata information of audio file is got at digital media server, digital media controller It can detect in the metadata information whether whether be null field comprising preset field or the preset field, to judge this yuan of number It is believed that whether including big envelope information in breath.
It should be noted that metadata (Metadata) is for describing the data of data (data about data).Member Data message is mainly the information of description data attribute, is the descriptive information to data and information.Such as, in some audio text Title, singer, audio size, audio duration and the big envelope letter of the audio file can be recorded in the metadata information of part The information such as breath.
In one embodiment, preset field can be upnp:AlbumArtURI fields.
For example, by browse (Browse) operation by list of songs (in list correspond to per song information, such as Song title, singer, song duration, song big envelope etc., it is the metadata information of the song) obtained from digital media server After getting that digital media controller is local and being browsed, digital media controller can detect the information of the song in list of songs In whether include upnp:AlbumArtURI fields, or the upnp:Whether albumArtURI fields are null field.
Upnp is included in the information of song if detected:Recorded in albumArtURI fields, and the field corresponding Include big envelope information in information, the then information that can determine the song.In this case, digital media controller can root According to upnp in song information:Uniform Resource Identifier information described in albumArtURI fields, directly from digital media service Corresponding big envelope information is downloaded in device, and is shown in the list of songs of digital media controller.
Upnp is not included in list of songs in the information of a certain song if detected:AlbumArtURI fields, or should Field is null field, then can determine not including big envelope information in the metadata information of the song.In this case, it is digital Media controller can obtain the file header data of the corresponding audio file of the song at digital media server.
It should be noted that file header is the data for being located at one section of recording document summary info that file starts.Such as, it is right In audio file, its file header data can typically record the singer on the audio file, title, album name, age, wind The information of lattice, big envelope etc..
Therefore, getting not comprising default upnp:AlbumArtURI fields or the song that the field is null field After the file header data of corresponding audio file, digital media controller can judge the song pair according to this document head data Whether the data that represent big envelope information are included in the data answered.
If not including any data on song big envelope information in file header data, then it is considered that many matchmakers The data for representing big envelope information are not included in the corresponding data of body file.That is, the audio file that the song is corresponded to Do not have big envelope information in partial data natively.In this case, digital media controller can perform other operations.
If according to file header data, judging to include expression big envelope information in the corresponding audio file data of the song Data, then enter step S203.
In step S203, represented if being determined to have in the corresponding data of the multimedia file according to this document head data The data of big envelope information, then terminal obtain the first data of encoded expression big envelope information according to this document head data Storage location.
Such as, got at digital media server not comprising default upnp:AlbumArtURI fields should After file header data of the field for the corresponding audio file of song of null field, if digital media controller is in this document head data In find record represent big envelope information the first data storage location, then it is considered that in the corresponding data of the song With the data for representing big envelope information.In this case, digital media controller can be according to the note in this document head data Carry, obtain the storage location for the first data for representing big envelope information.It should be noted that the expression envelope stored in the storage location The first data for covering information are encoded data, that is, the first data for representing big envelope information are not decoded data.
In step S204, if detecting the storage location in this document head data, terminal is from this document head number According to middle the first data for obtaining encoded expression big envelope information.
Such as, in the record according to file header data, the first data of encoded expression big envelope information are got After storage location, digital media controller can detect whether the storage location is located in this document head data.
If detecting the storage location in this document head data, then digital media controller can be directly from this The first data of encoded expression big envelope information are obtained in file header data.For example, for the audio file of MP3 format, The data for representing its big envelope information are stored directly in the file header data of audio file, therefore can be directly from getting Audio file file header data in obtain the first data of encoded expression big envelope information.
In step S205, if detecting the storage location outside this document head data, terminal is according to the storage Position, obtains the first data of encoded expression big envelope information at server.
Such as, in the record according to file header data, the first data of encoded expression big envelope information are got After storage location, digital media controller detects the storage location outside this document head data.In this case, Digital media controller according to the storage location, can obtain the first number of encoded expression big envelope information at server According to.
For example, digital media controller detects the storage location in the audio file data beyond file header data A certain section in, then digital media controller needs to access the data for being stored in audio file in digital media server, And according to the storage location, the first data for representing big envelope information are downloaded into Digital Media control from digital media server Device.
In step S206, terminal determines the coded format of first data according to file header data.
In step S207, terminal is according to the coded format, it is determined that corresponding decoding algorithm.
In step S208, terminal is decoded using the decoding algorithm to first data, obtains the second data, and will Second data are defined as target data.
Such as, step S206, S207 and S208 can include:
After the first data of encoded expression big envelope information are got, digital media controller can be according to sound The file header data of frequency file, determine the coded format of first data.
For example, for the audio file of MP3 format, encoded table is not only directly contained in its file header data Show the first data of big envelope information, and describe the coded format of first data.
After the coded format of the first data is determined, digital media controller can be determined according to the coded format Corresponding decoding algorithm, and the first data are decoded using the decoding algorithm, obtain the second data.Then, Digital Media Second data can be defined as representing the target data of big envelope information by controller.
In step S209, the target data is converted to graphic file by terminal, and regard the graphic file as many matchmakers The big envelope information of body file is shown.
Such as, after the target data for representing big envelope information is got, digital media controller can be by the number of targets According to being converted to corresponding graphic file, and shown the graphic file as the big envelope information of song.
For example, the graphic file to be filled to the relevant position for being shown to song in list of songs.In one embodiment, After target data is got, the target data can be converted to bitmap file by digital media controller, be subsequently filled aobvious Show the relevant position of song in list of songs.
It should be noted that bitmap file (Bitmap) is the graphic file of Windows reference formats.Therefore, numeral is worked as When media controller uses Windows operating system, target data can be converted to bitmap file.Or, work as numeral When media controller supports bitmap file format, target data can also be converted to bitmap file.Bitmap file has figure The good advantage of display effect.
In one embodiment, after target data to be converted to bitmap file, digital media controller can be from The Uniform Resource Identifier information (Item res uri) of the audio file is obtained in the metadata information of the audio file, then The corresponding relation between the bitmap file and the Uniform Resource Identifier information will be set up, and generate corresponding mapping table, together When the mapping table is stored in the caching of digital media controller locally.Hereafter, when detecting digital media controller Need to access the data of the corresponding audio file of Uniform Resource Identifier information, to obtain during big envelope information, digital matchmaker again Body controller just can obtain corresponding with the Uniform Resource Identifier information according to mapping table directly from local cache Bitmap file, and the big envelope information of the bitmap file as the audio file is shown.
In one embodiment, terminal can obtain the file header data of multimedia file as follows:
In the metadata information of multimedia file, obtain the corresponding Uniform Resource Identifier field of the multimedia file and The multi-purpose internet mail extensions letter of the multimedia file is recorded in protocol information field, the protocol information field Breath;
According to the multi-purpose internet mail extensions information, mesh corresponding with the data of the multimedia file is determined Mark decoding algorithm;
According to the information of the Uniform Resource Identifier field, the lead-in joint number from the multimedia file is obtained at server According to the flow data of beginning;
Using the target decoder algorithm, the flow data is decoded, and obtains in decoding process the multimedia file File header data.
Such as, digital media controller can obtain audio file correspondence first from the metadata information of audio file Uniform Resource Identifier field (Item res uri fields) and protocol information field (ProtocolInfo fields).At this Multipurpose internet mail extensions (the Mutipurpose Internet of the audio file are recorded in ProtocolInfo fields Mail Extensions, abbreviation MIME) type information, i.e. mimeType information.
It should be noted that mimeType information is intended to indicate that the information of the medium type of resource.For example, to client When holding (such as browser) transmission multi-medium data, the type for the multi-medium data that server can send it tell client, and The means of notice are exactly the mimeType information for illustrating the multi-medium data, thus allow client know the information that receives which It is mp3 file, which is Shockwave files etc..By mimeType information, client can be with next using corresponding plug-in unit Read associated documents.
Therefore, according to the multi-purpose internet mail extensions information of audio file, digital media controller just can be with Determine target decoder algorithm corresponding with the audio file.Meanwhile, digital media controller can be according to the audio file The information of Uniform Resource Identifier field, is obtained since the first byte of data of the audio file at digital media server Flow data.
Afterwards, digital media controller can use the target decoder algorithm, and the flow data is decoded, and in decoding During obtain the file header data of the audio file.
Such as, in one embodiment, it is above-mentioned to use first decoding algorithm, the flow data is decoded, and The step of file header data of the multimedia file are obtained in decoding process, can include:
Using the target decoder algorithm, the flow data is decoded, and recognizes in decoding process the multimedia file File header opening flag position and end mark position;
According to opening flag position and end mark position, the file header data of the multimedia file are obtained.
Such as, the file header data of some audio files have opening flag position and end mark position.Therefore, a kind of real Apply in mode, digital media controller can use target decoder algorithm, to what is obtained at server from the audio file The flow data that first byte of data starts is decoded, and recognizes in decoding process the opening flag of the file header of the audio file Position and end mark position.After opening flag position and end mark position is recognized, digital media controller can obtain this and open The file header data of data, as audio file between beginning flag bit and end mark position.
In another embodiment, it is above-mentioned to use first decoding algorithm, the flow data is decoded, and in decoding During the step of obtain the file header data of the multimedia file, can include:
Using first decoding algorithm, the flow data is decoded, and recognizes in decoding process the multimedia file File header opening flag position and file header data length;
According to opening flag position and this document head data length, the file header data of the multimedia file are obtained.
Such as, the file header of some audio files has opening flag position, without end mark position, but the audio file Data in recorded file header data length.Therefore, in another embodiment, digital media controller can use mesh Decoding algorithm is marked, the flow data since the first byte of data of the audio file obtained at server is decoded, and Opening flag position and the file header data length of the file header of the audio file are recognized in decoding process.Start mark recognizing Will position and file header data length after, digital media controller can according to the opening flag position and file header data length, The file header data of audio file are obtained, namely from opening flag position, obtain size of data long equal to this document head data The one piece of data of degree, this segment data is the file header data of audio file.
Fig. 3 A to Fig. 3 B are referred to, Fig. 3 A to Fig. 3 B illustrate for the scene of information acquisition method provided in an embodiment of the present invention Figure.
Such as, digital media controller (by taking mobile phone as an example) browses (Browse) operation by initiating, and Digital Media is taken The Digital Media control that list of songs (song information in list of songs is the metadata information of song) on business device is got Device processed is locally browsed.For example, including two songs, respectively song A and song B in list of songs.Digital Media is controlled Device is by parsing the metadata information of song subsidiary in the upnp agreements in the data that digital media server is sended over, inspection Measure and upnp is included in song A metadata information:AlbumArtURI fields, and do not include in song B metadata information upnp:AlbumArtURI fields.
For song A, digital media controller can be according to its corresponding upnp:AlbumArtURI fields, directly from number Corresponding big envelope information is downloaded on word media server, such as big envelope information is the photo of song A singer.And for song B, due to not including upnp in its metadata information:AlbumArtURI fields, therefore now song B just not can be used for showing Big envelope information, now the interface in digital media controller can be as shown in Figure 3A.Song A big envelope information display area shows What is shown is the photo of singer, and song B is not due to having big envelope information, therefore its big envelope information display area acquiescence shows one Laser disc pattern, representative does not have big envelope information.
Do not include in the metadata information for determining song B after big envelope information, digital media controller can be from number The file header data of the corresponding audio files of song B are obtained in word media server.
For example, digital media controller can obtain the Item res uri fields in song B metadata information, and root According to the Uniform Resource Identifier information described in the Item res uri fields, B pairs of song is obtained from digital media server The file header data for the audio file answered.
After the file header data of the corresponding audio files of song B are got, digital media controller can be according to this File header data, judge whether include the data for representing big envelope information in the corresponding audio file datas of song B.
For example, digital media controller finds to record in song B file header data represents the of big envelope information The storage location of one data.So, digital media controller can determine there is table in the corresponding audio file datas of song B Show the data of big envelope information.In this case, digital media controller can be obtained according to the record in this document head data Represent the storage location of the first data of big envelope information.
After the storage location for the first data for representing big envelope information is got, digital media controller can detect that this is deposited Whether storage space is put is located in the file header data got before.
It is located at for example, digital media controller detects the storage location in the file header data got before.So, Digital media controller can directly obtain encoded expression big envelope letter according to the storage location from this document head data First data of breath.
After the first data of encoded expression big envelope information are got, digital media controller can be according to sound The file header data of frequency file, determine the coded format of first data.Then, digital media controller can be according to the volume Code form determines corresponding decoding algorithm, and the first data are decoded using the decoding algorithm, obtains the second data.It Afterwards, second data can be defined as representing the target data of big envelope information by digital media controller.
After the target data for representing big envelope information is got, digital media controller can change the target data For corresponding bitmap file, and the big envelope information filling of the bitmap file as song is shown to the phase of song in list of songs Answer position.
For example, photo of the graphic file that is obtained after changing of target data into singer, digital media controller can be incited somebody to action should The photo filling of singer is shown in list of songs, as shown in Figure 3 B.
Referring to Fig. 4, Fig. 4 is the structural representation of information acquisition device provided in an embodiment of the present invention.Acquisition of information is filled Putting 300 can include:First acquisition module 301, the second acquisition module 302, and modular converter 303.
First acquisition module 301, for after the metadata information of multimedia file is got, if detecting first number It is believed that not including big envelope information in breath, then the file header data of the multimedia file are obtained at server.
Such as, multimedia file (such as audio or video is got from digital media server in digital media controller Deng) metadata information after, digital media controller can detect in the metadata information whether to include big envelope information.
It should be noted that metadata (Metadata) is for describing the data of data (data about data).Member Data message is mainly the information of description data attribute, is the descriptive information to data and information.Such as, in some audio text Title, singer, audio size, audio duration and the big envelope letter of the audio file can be recorded in the metadata information of part The information such as breath.And the big envelope information of multimedia file can be with the front cover picture of audio, video or pictures.For example, song institute Music album front cover, either front cover of the front cover of video or photograph collection etc..
For example, getting certain list of songs (member of audio file from digital media server in digital media controller Data message) after, digital media controller can detect whether the song in the list of songs includes corresponding big envelope information.Can With understanding, list of songs mainly includes the information such as title, singer, duration, the big envelope picture per song, and these information are all Belong to the metadata information of song.
If digital media controller detects in the metadata information of the multimedia file and includes big envelope information, for example, count Word media controller detects every song in list of songs and includes corresponding big envelope information, then digital media controller Other operations can just be performed.
If digital media controller, which is detected in the metadata information of the multimedia file, does not include big envelope information, then First acquisition module 301 of digital media controller can obtain the file header of the multimedia file from digital media server Data.For example, digital media controller, which is detected, does not include big envelope letter in the metadata information of a certain song A in list of songs Breath, then the first acquisition module 301 can obtain the file header data of the corresponding audio files of song A at server.
After the file header data of the multimedia file are got from digital media server, digital media controller It can judge whether include the number for representing big envelope information in the corresponding data of the multimedia file according to this document head data According to.For example, digital media controller can judge that song A is corresponding according to the file header data of the corresponding audio files of song A Whether there are the data for representing big envelope information in the data of audio file.
It should be noted that file header is the data for being located at one section of recording document summary info that file starts.Such as, it is right In audio file, its file header data can typically record the singer on the audio file, title, album name, age, wind The information of lattice, big envelope etc..
Therefore, after the file header data of the multimedia file are got, digital media controller can be according to this document Head data, judge whether include the data for representing big envelope information in the corresponding data of the multimedia file.
If not having to record any information on multimedia file big envelope information in file header data, then can recognize Not include the data for representing big envelope information in the corresponding data of the multimedia file.That is, the multimedia file is original Just do not have big envelope information.In this case, digital media controller can perform other operations.
Second acquisition module 302, if for determining the corresponding number of the multimedia file according to the file header data There are the data for representing big envelope information in, then obtain the target data for representing big envelope information.
Such as, according to the file header data of the audio file corresponding with song A got at server, Digital Media Controller is judged to include the data for representing big envelope information in audio file data corresponding with song A, then second obtains mould Block 302 can obtain the target data that big envelope information is represented in audio file data corresponding with song A.
Modular converter 303, for the target data to be converted into graphic file, and using the graphic file as described The big envelope information of multimedia file is shown.
Such as, expression big envelope information is got from audio file data corresponding with song A in the second acquisition module 302 Target data after, modular converter 303 can be converted to the target data corresponding graphic file, and by the graphic file Shown as song A big envelope information.
In one embodiment, the second acquisition module 302 can be used for:
According to the file header data, the first data of encoded expression big envelope information are obtained, and are determined described The coded format of first data;
According to the coded format, it is determined that corresponding decoding algorithm;
First data are decoded using the decoding algorithm, the second data are obtained, and by second data It is defined as target data.
Such as, in file header data of the digital media controller according to the corresponding audio file datas of song A, this is determined Have in audio file data after the data for representing big envelope information, the second acquisition module 302 can be obtained according to this document head data The first data of encoded expression big envelope information are taken, and determine the coded format of first data.
Then, the second acquisition module 302 can determine corresponding decoding algorithm according to the coded format, and use should Decoding algorithm is decoded to first data, obtains the second data.Afterwards, the second acquisition module 302 second can count this According to the target data for being defined as representing big envelope information.
In one embodiment, the second acquisition module 302 can be used for:
According to the file header data, the storage location of the first data of encoded expression big envelope information is obtained;
If detecting the storage location in the file header data, obtain and pass through from the file header data First data of the expression big envelope information of coding.
Such as, after the file header data of the corresponding audio files of song A are got at digital media server, if number Word media controller finds the storage location for recording the first data for representing big envelope information in this document head data, then It is considered that having the data for representing big envelope information in the corresponding data of the song.In this case, the second acquisition module 302 Record that can first in this document head data, obtains the storage location for the first data for representing big envelope information.Need explanation , the first data of the expression big envelope information stored in the storage location are encoded data.
Got in the second acquisition module 302 encoded expression big envelope information the first data storage location it Afterwards, the second acquisition module 302 can detect whether the storage location is located in this document head data.
If detecting the storage location in this document head data, then the second acquisition module 302 can directly from The first data of encoded expression big envelope information are obtained in this document head data.For example, for the audio text of MP3 format Part, represents that the data of its big envelope information are stored directly in the file header data of audio file, therefore the second acquisition module 302 can Directly to obtain encoded the first data for representing big envelope information from the file header data of the audio file got.
In one embodiment, the second acquisition module 302 can be used for:
If the storage location is detected outside the file header data, according to the storage location, from service The first data of encoded expression big envelope information are obtained at device.
Such as, after the storage location of the first data of encoded expression big envelope information is got, second obtains Module 302 detects the storage location outside the file header data of the corresponding audio files of song A.In this case, Second acquisition module 302 according to the storage location, can obtain the first of encoded expression big envelope information at server Data.
For example, the second acquisition module 302 detects audio file data of the storage location beyond file header data In a certain section in, then the second acquisition module 302, which needs to access, is stored in audio file data in digital media server, And according to the storage location, the first data for representing big envelope information are downloaded into Digital Media control from digital media server Device.
In one embodiment, the first acquisition module 301 can be used for:
Do not include preset field or the preset field in the metadata information if detecting for null field, it is determined that Do not include big envelope information in the metadata information, and obtain at server the file header data of the multimedia file.
Such as, after the metadata information of audio file is got at digital media server, the first acquisition module 301 It can detect in the metadata information whether whether be null field comprising preset field or the preset field, to judge this yuan of number It is believed that whether including big envelope information in breath.
In one embodiment, preset field can be upnp:AlbumArtURI fields.
Upnp is included in the information of song if detected:Recorded in albumArtURI fields, and the field corresponding Include big envelope information in information, the then information that can determine the song.In this case, digital media controller can root According to upnp in song information:Uniform Resource Identifier information described in albumArtURI fields, directly from digital media service Corresponding big envelope information is downloaded in device, and is shown in the list of songs of digital media controller.
Upnp is not included in the information of song if detected:AlbumArtURI fields, or the field are null field, So the first acquisition module 301 can determine not including big envelope information in the metadata information of the song, and be obtained at server Take the file header data of the audio file.
The embodiment of the present invention also provides a kind of storage medium, including computer program, and the computer program is by processor When loading and performing, the step in information acquisition method provided in an embodiment of the present invention is realized.
The embodiment of the present invention also provides a kind of computer equipment, including memory, processor, and is stored in the storage In device and the computer program that can be run in the processor, this hair is realized during computer program described in the computing device Step in the information acquisition method that bright embodiment is provided.
For example, above computer equipment can be such as tablet personal computer or smart mobile phone mobile terminal.Referring to Fig. 5, Fig. 5 For mobile terminal structure schematic diagram provided in an embodiment of the present invention.
The mobile terminal 500 can include the parts such as communication unit 501, memory 502, processor 503.Art technology Personnel are appreciated that the mobile terminal structure shown in Fig. 5 does not constitute the restriction to mobile terminal, can include than diagram more Many or less parts, either combine some parts or different parts arrangement.
Communication unit 501 can be used for receiving and sending messages, or in communication process signal reception and transmission, for example, by descending letter After breath is received, transfer to one or more than one processor 503 is handled;In addition, being sent up data are related to.
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 is stored Line code.Application program can constitute various functions module.Processor 503 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.
Processor 503 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in application program in memory 502, and calls and be stored in memory 502 Data, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.
In the present embodiment, the processor 503 in mobile terminal can be according to following instruction, will be one or more The corresponding executable code of process of application program is loaded into memory 502, and is run by processor 503 and be stored in storage Application program in device 502, so as to realize step:
After the metadata information of multimedia file is got, believe if detecting and not including big envelope in the metadata information Breath, then processor 503 obtains the file header data of the multimedia file by communication unit 501 at server;
If being determined to have in the corresponding data of the multimedia file according to the file header data and representing big envelope information Data, then processor 503 obtain represent big envelope information target data;
The target data is converted to graphic file by processor 503, and regard the graphic file as the multimedia The big envelope information of file is shown.
In addition, referring to Fig. 6, mobile terminal 500 can also include input block 504 and output unit 505.
Input block 504 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.One In embodiment, input block 504 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen Or Trackpad.
Output unit 505 can be used for the information that is inputted by user of display or the information for being supplied to user and mobile terminal Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit may include display panel.
In one embodiment, when processor 503 performs the step of the target data for obtaining and representing big envelope information, It can include:According to the file header data, the first data of encoded expression big envelope information are obtained, and are determined described The coded format of first data;According to the coded format, it is determined that corresponding decoding algorithm;Using the decoding algorithm to described First data are decoded, and obtain the second data, and second data are defined as into target data.
In one embodiment, processor 503 performs described according to the file header data, the encoded table of acquisition When showing the step of the first data of big envelope information, it can include:According to the file header data, encoded expression envelope is obtained Cover the storage location of the first data of information;If detecting the storage location in the file header data, from described The first data of encoded expression big envelope information are obtained in file header data.
In one embodiment, processor 503 can also carry out following steps:If detecting the storage location to be located at Outside the file header data, then according to the storage location, encoded expression big envelope information is obtained at server First data.
In one embodiment, if processor 503 performs described detect and do not include big envelope in the metadata information Information, then during the step for the file header data that the multimedia file is obtained at server, can include:If detecting described It is null field not include preset field or the preset field in metadata information, it is determined that do not wrapped in the metadata information Information containing big envelope, and obtain at server the file header data of the multimedia file.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, the detailed description above with respect to information acquisition method is may refer to, here is omitted.
Described information acquisition device provided in an embodiment of the present invention belongs to same with the information acquisition method in foregoing embodiments One design, can run the either method provided in described information acquisition methods embodiment on described information acquisition device, its The process of implementing refers to described information acquisition methods embodiment, and here is omitted.
It should be noted that for described information acquisition methods of the embodiment of the present invention, those of ordinary skill in the art can To understand all or part of flow for realizing described information acquisition methods of the embodiment of the present invention, computer program can be by Related hardware is controlled to complete, the computer program can be stored in a computer read/write memory medium, be such as stored in In memory, and by least one computing device, the embodiment of information acquisition method as described is may include in the process of implementation Flow.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only Memory), random Access/memory body (RAM, Random Access Memory) etc..
For the described information acquisition device of the embodiment of the present invention, its each functional module can be integrated in a processing core In piece or modules are individually physically present, can also two or more modules be integrated in a module.On Stating integrated module can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The collection If into module realized and as independent production marketing or in use, can also be stored in using in the form of software function module In one computer read/write memory medium, the storage medium is for example read-only storage, disk or CD etc..
A kind of information acquisition method, device, storage medium and the computer provided above the embodiment of the present invention is set Standby to be described in detail, specific case used herein is set forth to the principle and embodiment of the present invention, the above The explanation of embodiment is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those skilled in the art Member, according to the thought of the present invention, will change in specific embodiments and applications, in summary, this explanation Book content should not be construed as limiting the invention.

Claims (11)

1. a kind of information acquisition method, it is characterised in that methods described includes:
After the metadata information of multimedia file is got, do not include big envelope information in the metadata information if detecting, The file header data of the multimedia file are then obtained at server;
If determining that there is the number for representing big envelope information in the corresponding data of the multimedia file according to the file header data According to then acquisition represents the target data of big envelope information;
The target data is converted into graphic file, and using the graphic file as the multimedia file big envelope information Shown.
2. information acquisition method according to claim 1, it is characterised in that the acquisition represents the number of targets of big envelope information According to, including:
According to the file header data, the first data of encoded expression big envelope information are obtained, and determine described first The coded format of data;
According to the coded format, it is determined that corresponding decoding algorithm;
First data are decoded using the decoding algorithm, the second data are obtained, and second data are determined For target data.
3. information acquisition method according to claim 2, it is characterised in that described according to the file header data, is obtained First data of encoded expression big envelope information, including:
According to the file header data, the storage location of the first data of encoded expression big envelope information is obtained;
If detecting the storage location in the file header data, obtain encoded from the file header data Expression big envelope information the first data.
4. information acquisition method according to claim 3, it is characterised in that obtain encoded expression big envelope described After the storage location of first data of information, in addition to:
If the storage location is detected outside the file header data, according to the storage location, at server Obtain the first data of encoded expression big envelope information.
5. information acquisition method according to claim 1, it is characterised in that if described detect in the metadata information Not comprising big envelope information, then the file header data of the multimedia file are obtained at server, including:
Preset field or the preset field are not included in the metadata information if detecting for null field, it is determined that described Do not include big envelope information in metadata information, and obtain at server the file header data of the multimedia file.
6. a kind of information acquisition device, it is characterised in that described device includes:
First acquisition module, for after the metadata information of multimedia file is got, if detecting the metadata information In do not include big envelope information, then the file header data of the multimedia file are obtained at server;
Second acquisition module, if for determining have in the corresponding data of the multimedia file according to the file header data The data of big envelope information are represented, then obtain the target data for representing big envelope information;
Modular converter, for the target data to be converted into graphic file, and regard the graphic file as the multimedia The big envelope information of file is shown.
7. information acquisition device according to claim 6, it is characterised in that second acquisition module is used for:
According to the file header data, the first data of encoded expression big envelope information are obtained, and determine described first The coded format of data;
According to the coded format, it is determined that corresponding decoding algorithm;
First data are decoded using the decoding algorithm, the second data are obtained, and second data are determined For target data.
8. information acquisition device according to claim 7, it is characterised in that second acquisition module is used for:
According to the file header data, the storage location of the first data of encoded expression big envelope information is obtained;
If detecting the storage location in the file header data, obtain encoded from the file header data Expression big envelope information the first data.
9. information acquisition device according to claim 8, it is characterised in that second acquisition module is used for:
If the storage location is detected outside the file header data, according to the storage location, at server Obtain the first data of encoded expression big envelope information.
10. a kind of storage medium, including computer program, it is characterised in that the computer program is loaded and held by processor During row, the step in any described information acquisition method in claim 1 to 5 is realized.
11. a kind of computer equipment, including memory, processor, and it is stored in the memory and can be in the processing The computer program run in device, it is characterised in that described in the computing device during computer program, realize claim 1 Step into 5 in any described information acquisition method.
CN201710444115.3A 2017-06-13 2017-06-13 Information acquisition method, device, storage medium and computer equipment Pending CN107291866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710444115.3A CN107291866A (en) 2017-06-13 2017-06-13 Information acquisition method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710444115.3A CN107291866A (en) 2017-06-13 2017-06-13 Information acquisition method, device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN107291866A true CN107291866A (en) 2017-10-24

Family

ID=60096918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710444115.3A Pending CN107291866A (en) 2017-06-13 2017-06-13 Information acquisition method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107291866A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291375A (en) * 2010-06-18 2011-12-21 上海博泰悦臻电子设备制造有限公司 System and method for providing music file and music information
CN102289438A (en) * 2010-06-18 2011-12-21 上海博泰悦臻电子设备制造有限公司 Providing system and providing method for music information
CN102487414A (en) * 2010-12-01 2012-06-06 上海晨兴希姆通电子科技有限公司 Method for applying external moving picture experts group audio layer-3 (MP3) song to mobile phone without storage card
CN105930377A (en) * 2016-04-12 2016-09-07 广东欧珀移动通信有限公司 Method, device and mobile terminal for obtaining envelope pictures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291375A (en) * 2010-06-18 2011-12-21 上海博泰悦臻电子设备制造有限公司 System and method for providing music file and music information
CN102289438A (en) * 2010-06-18 2011-12-21 上海博泰悦臻电子设备制造有限公司 Providing system and providing method for music information
CN102487414A (en) * 2010-12-01 2012-06-06 上海晨兴希姆通电子科技有限公司 Method for applying external moving picture experts group audio layer-3 (MP3) song to mobile phone without storage card
CN105930377A (en) * 2016-04-12 2016-09-07 广东欧珀移动通信有限公司 Method, device and mobile terminal for obtaining envelope pictures

Similar Documents

Publication Publication Date Title
KR101942308B1 (en) Method for providing message function and an electronic device thereof
CN110941500B (en) Interface display method and device
CN106415664A (en) System and methods of generating user facial expression library for messaging and social networking applications
US8504906B1 (en) Sending selected text and corresponding media content
US8903771B2 (en) Method and device for importing backup data for a mobile terminal
US20130012245A1 (en) Apparatus and method for transmitting message in mobile terminal
CN112073307B (en) Mail processing method, mail processing device, electronic equipment and computer readable medium
US10650085B2 (en) Providing interactive preview of content within communication
CN110049456A (en) A kind of method, device and mobile terminal showing Rich Media in mobile terminal
US10757052B2 (en) Embedding actionable content in electronic communication
CN107277244A (en) Screenshot processing method and device
CN108829753A (en) A kind of information processing method and device
WO2016023378A1 (en) Method and device for storing information about contact person
CN102394977A (en) Processing method of unread cellphone text messages and cellphone
CN107888989A (en) A kind of interactive system and method live based on internet
CN103078782A (en) Friend note recommendation note implementation method and system
CN108667722A (en) Short message cancelling method, electronic device and computer readable storage medium
CN104485122B (en) Communication information deriving method, device, and terminal device
CN107862035A (en) Network read method, device, Intelligent flat and the storage medium of minutes
CN106557706A (en) Date storage method, device and mobile terminal
CN107291866A (en) Information acquisition method, device, storage medium and computer equipment
CN108228773A (en) A kind of method and device realized information and preserved
KR20150022639A (en) Electronic device and method for using captured image in electronic device
US20110142223A1 (en) Method and system for remote call forwarding set-up and modification
CN115081412A (en) Table content processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20171024

RJ01 Rejection of invention patent application after publication