CN105550377B - The processing method and processing device of multimedia file - Google Patents
The processing method and processing device of multimedia file Download PDFInfo
- Publication number
- CN105550377B CN105550377B CN201610076807.2A CN201610076807A CN105550377B CN 105550377 B CN105550377 B CN 105550377B CN 201610076807 A CN201610076807 A CN 201610076807A CN 105550377 B CN105550377 B CN 105550377B
- Authority
- CN
- China
- Prior art keywords
- type
- multimedia
- file
- multimedia file
- folder
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/435—Filtering based on additional data, e.g. user or group profiles
Abstract
The present invention provides a kind of processing method and processing device of multimedia file, and the processing method of the multimedia file includes: acquisition operational order, and the type information of the multimedia file is determined according to the operational order;Whether the number of types for judging the instruction of the type information is more than preset threshold, obtains judging result;Determine that the type of multimedia file folder, the type of the multimedia file stored in multimedia file folder are identical according to the judgment result;Based on the type of multimedia file folder, processing is filtered to multimedia file folder.The processing method and processing device of multimedia file of the invention, when due to by sending operational order to server, to obtain the type identification information of multimedia file, and the type of multimedia file folder is determined by the type identification information, to be filtered according to default broadcast format to multimedia file, the treatment effeciency of system is improved.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of processing method and processing device of multimedia file.
Background technique
There are three types of the types or format of the multimedia file that server (DMS, Digital Media Server) is supported,
Such as video, audio, picture;Player can generally be played out according to the multimedia file that DMS is provided.
But when player (such as playback equipment or playout software etc.), when only supporting one or two kinds of format,
Since in existing DLNA (Digital Life Network Alliance, DIGITAL LIVING NETWORK ALLIANCE) agreement, DMS is not
Unwanted multimedia form can be filtered, when player is to the format that do not support, needs user to be filtered manually and does not need
File format, to reduce the treatment effeciency of system.
Summary of the invention
The embodiment of the present invention provides a kind of processing method and processing device of multimedia file, to solve existing server process
The poor technical problem of efficiency.
To solve the above problems, technical solution provided by the invention is as follows:
The embodiment of the present invention provides a kind of processing method of multimedia file comprising:
Operational order is obtained, the type information of the multimedia file is determined according to the operational order;
Whether the number of types for judging the type information instruction is more than preset threshold, obtains judging result;
The type of multimedia file folder, the multimedia stored in the multimedia file folder are determined according to the judging result
The type of file is identical;
Based on the type of multimedia file folder, processing is filtered to multimedia file folder.
The embodiment of the present invention also provides a kind of processing unit of multimedia file comprising:
Module is obtained, for obtaining operational order, determines that the type of the multimedia file is believed according to the operational order
Breath;
Judgment module, for judging whether the number of types of the type information instruction is more than preset threshold, is judged
As a result;
Determining module, for determining the type of multimedia file folder, the multimedia file folder according to the judging result
The type of the multimedia file of interior storage is identical;
Filtering module, the type for being pressed from both sides based on the multimedia file are filtered place to multimedia file folder
Reason.
Compared to the prior art, the processing method and processing device of the multimedia file of the present embodiment, by obtaining operational order,
The type information of the multimedia file is determined according to the operational order;Judge the type information instruction number of types whether be more than
Preset threshold obtains judging result;The type of multimedia file folder is determined according to the judgment result, which presss from both sides memory
The type of the multimedia file of storage is identical;Based on the type of multimedia file folder, place is filtered to multimedia file folder
Reason.When due to by sending operational order to server, to obtain the type identification information of multimedia file, and pass through such
Type identification information determines that the type of multimedia file folder mentions to be filtered according to default broadcast format to multimedia file
The high treatment effeciency of system.
Detailed description of the invention
Fig. 1 is the flow chart of the processing method for the multimedia file that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the processing method of multimedia file provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the processing method for the multimedia file that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram of the processing unit for the multimedia file that the embodiment of the present invention four provides;
Fig. 5 is the preferred structure schematic diagram of the processing unit for the multimedia file that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, Fig. 1 is the flow chart of the processing method for the multimedia file that the embodiment of the present invention one provides.
The processing method of the multimedia file of this preferred embodiment, comprising:
Step S101 obtains operational order, the type information of the multimedia file is determined according to the operational order.
For example, user is instructed by terminal trigger action, when terminal detects the operational order, terminal is according to the operation
Instruct the type information for determining all multimedia files of server storage, the type information may include multimedia type with
And the quantity with multiple media types;The terminal be such as the mobile phone for being equipped with playout software, tablet computer, apparatus such as computer or
Player (DMC) controller (DMP) etc..The multimedia type may include picture, video, audio etc., the multiple media types
Quantity be such as to have several multiple media types.
Step S102 judges whether the number of types of the type information instruction is more than preset threshold, obtains judging result.
For example, terminal judges whether the quantity of the type of all multimedia files is more than preset threshold, obtains the judgement knot
Fruit, which is such as a kind, such as one of video, picture or audio, for example, terminal judges the number of the type
Whether amount is greater than a kind.
Step S103 determines the type of multimedia file folder according to the judgment result.
For example, the server is stored at least one multimedia file folder, what is stored in multimedia file folder is all more
The type of media file is identical;Namely the type of all multimedia files stored in same multimedia file folder is all identical, eventually
End determines the type of all multimedia file folders in server according to the judging result that step S102 is obtained.
Step S104 is filtered processing to multimedia file folder based on the type of multimedia file folder.
For example, terminal carries out the type that all multimedia files press from both sides and the multimedia file format that its own can be supported
Compare, if the two is identical, obtains corresponding multimedia file and press from both sides and be shown, otherwise just skip the multimedia file
Folder.
The processing method of the multimedia file of this preferred embodiment, due to obtaining multimedia file by operational order
Type information, and judge whether the number of types of the type information instruction is more than preset threshold, obtains judging result;Sentenced according to this
Disconnected result determines the type of multimedia file folder, based on the type of multimedia file folder, is filtered to multimedia file folder
Processing, to improve the treatment effeciency of system.
Referring to figure 2., Fig. 2 is the flow chart of the processing method of multimedia file provided by Embodiment 2 of the present invention.
The processing method of the multimedia file of this preferred embodiment, comprising:
Step S201 receives more matchmakers that the server is returned according to the operational order when sending operational order to server
The type identification information of body file.
For example, terminal connect DMS when, user instructs by terminal trigger action, it is rear to DMS transmission operational order, DMS
After receiving the instruction, the type identification information of all multimedia files in DMS is obtained, and the type identification information is returned
Terminal.The type identification information can carry the title of multimedia file: the type identification information of such as audio file is
Audio, in another example the type identification information of video file is video, in another example the type identification information of picture file is
image.The terminal be such as the mobile phone for being equipped with playout software, tablet computer, apparatus such as computer or player (DMC) or
Controller (DMP) etc..
Step S202 determines the type information of the multimedia file according to the type identification information.
For example, terminal determines the type information of all multimedia files of server storage according to the operational order, such
Type information may include multimedia type and the quantity with multiple media types;Specifically, the type mark that terminal will acquire
Know information and preset kind mark sample to be matched, to determine the type information, for example preset kind identifies sample and is
audio,image,video.For example the type identification information that gets of terminal includes the character string of audio and image;By
After matching, it is determined that the type of all multimedia files includes audio, picture;And determine that the quantity of multiple media types is 2 kinds.
Step S203 judges whether the number of types of the type information instruction is more than preset threshold, obtains judging result.
For example, terminal judges whether the quantity of the type of all multimedia files is more than preset threshold, obtains the judgement knot
Fruit, which is such as a kind, such as one of video, picture or audio, terminal judge the type quantity whether
Greater than a kind.If terminal judges that number of types is less than preset threshold, S204 is thened follow the steps;Otherwise, it thens follow the steps
S205。
Step S204, when the number of types that the judging result is the instruction of the type information is less than preset threshold, by this
The type of the type information instruction of multimedia file is determined as the type of multimedia file folder.
For example, since the file of same format is stored in a file by server, when in terminal determining server
When the number of types of all multimedia files is equal to a kind, namely multimedia file presss from both sides only one at this time, then at this time in server
The type of multimedia file folder i.e. the type of all multimedia files.
Step S205, it when the number of types that the judging result is the instruction of the type information is more than preset threshold, obtains more
The distinctive mark information of media root file;
For example, since the file of same format is stored in a file by server, when in terminal determining server
When the number of types of all multimedia files is greater than a kind, namely multimedia file accompanies the corresponding number of the type quantity at this time.
Such as when number of types is 3 kinds, the quantity of multimedia file folder is 3;Worked as due to server and is stored with greater than 1 seed type
When multimedia file, usually there is multimedia root file (namely first layer file), the multimedia root file clip pack
Include multiple multimedia subfiles.Specifically, terminal successively obtains the title of each first layer file in server.
Step S206, the type that the multimedia root file is determined according to the distinctive mark information, by the multimedia root
The type of portion's file is determined as the type of multimedia file folder.
For example, terminal determines its type according to the title of the first layer file, later by the type of first layer file
As the type of finally determining multimedia file folder, to determine the multimedia type of server storage.
Preferably, above-mentioned steps S206 namely this multimedia root file determined according to the distinctive mark information
The step of type includes:
(1), judge whether the distinctive mark information and default difference message sample are identical;
For example, terminal obtain in advance the corresponding first layer file of the audio file stored in multiple servers title,
The title of the corresponding first layer file of video file and the title of the corresponding first layer file of picture file, and by these
Title stores in the database, obtains the default difference message sample.This step in the specific implementation, terminal will acquire first
The title of layer file is compared with the default difference message sample, judges whether the two is identical, if identical, executes step
Suddenly (2), it is no to then follow the steps (3);
(2) if the distinctive mark information is identical as the default difference message sample, the default difference message sample is obtained
Corresponding first preset kind;First preset kind is determined as to the type of the multimedia root file.
For example, a default difference letter in the title for the first layer file that terminal obtains and default difference message sample
Manner of breathing simultaneously, then obtains the corresponding multiple media types of the default difference message sample, and using the multiple media types as this first
The type of layer file, for example, pre-stored music in the title and terminal of some first layer file that terminal is got
Title it is identical, it is determined that the type of the first layer file be music.
(3) if the distinctive mark information and the default difference message sample be not identical, the multimedia root file is obtained
The data identification information of the content of multimedia sub-folder in folder;The multimedia root file is determined according to the data identification information
The type of folder.
For example, when the title for the first layer file that terminal obtains and not identical default difference message sample, then terminal
Obtain the data identification information of the storage content of sub-folder in first layer file;Certainly, due under normal conditions, server
The last one sub-folder of first layer file be just stored with data, therefore in order to improve treatment effeciency, terminal can be with
Obtain the data identification information of the storage content of the last one sub-folder of first layer file;Later, terminal is according to acquisition
To data identification information determine the type of first layer file belonging to the sub-folder.
Specifically, above-mentioned steps (3) namely this class of the multimedia root file is determined according to the data identification information
The step of type includes:
A, judge whether the data identification information is identical as preset data message sample;
If B, the data identification information is identical as the preset data message sample, the default difference message sample pair is obtained
The second preset kind answered;
C, second preset kind is determined as to the type of the multimedia root file.
For example, the data identification information can be field or character string, it is corresponding that terminal is previously stored with audio file
Field or the corresponding field of character string, video file or character string and the corresponding field of picture file or character string,
And in the database by the storage of these titles, the preset data message sample is obtained.The last one subfile that terminal will acquire
The field or character string for pressing from both sides storage content are compared with the default difference message sample, for example, the field of terminal acquisition or
When person's character string is identical as one in default difference message sample, then the corresponding multimedia of the default difference message sample is obtained
Type, and using the multiple media types as the type of the first layer file, for example, terminal determines some first layer got
Pre-stored music in the field or character string and terminal of storage content in the last one sub-folder of file
Field or character string are identical, it is determined that the type of the first layer file is music.
Step S207, the type based on multimedia file folder is filtered processing to multimedia file folder.
For example, terminal carries out the type that all multimedia files press from both sides and the multimedia file format that its own can be supported
Compare, if the two is identical, obtains corresponding multimedia file and press from both sides and be shown, otherwise just skip the multimedia file
Folder.
The processing method of the multimedia file of this preferred embodiment, due to receiving by sending operational order to server
The type information for the multimedia file that server is returned according to operational order, and the number of types for judging that the type information indicates is
No is more than preset threshold, obtains judging result;It is true also according to the title of root file when number of types is more than preset threshold
Determine the type of multimedia file folder, and the type based on multimedia file folder, multimedia file is filtered, thus further
Improve the treatment effeciency of system.
Referring to figure 3., Fig. 3 is the flow chart of the processing method for the multimedia file that the embodiment of the present invention three provides.
The present embodiment is described in detail so that terminal is DMC as an example, the processing side of the multimedia file of this preferred embodiment
Method, comprising:
Step S301, DMC to server send operational order when, receive the server returned according to the operational order it is more
The type identification information of media file.
For example, actively sending the order of GetProtocolInfo to DMS when DMC connection DMS, DMS is receiving the life
After order, multi-purpose internet mail extensions (MIME, Multipurpose with the DMS multimedia file supported are obtained
Internet Mail Extensions), such as are as follows: " http-get:*:audio/wav:* ", " http-get:*:image/
At least one of gif:* ", " http-get:*:video/mpeg:* ", return to DMC for the MIME later.
Step S302, DMC determine the type information of the multimedia file according to the type identification information.
For example, the mime type that DMS is obtained is " http-get:*:audio/wav:* ", then DMC is by itself and preset kind
Mark sample is matched, and to determine the type information, it is such as " http-get:*:audio/ which, which identifies sample,
Wav:* ", " http-get:*:image/gif:* ", " http-get:*:video/mpeg:* ", after DMC is matched, discovery
The type of all multimedia files in server is audio, and number of types is a kind.In another example the mime type that DMS is obtained
For " http-get:*:audio/wav:* ", " http-get:*:image/gif:* ", " http-get:*:video/
Mpeg:* " has found all multimedia files in server after then DMC is matched it with preset kind mark sample
Type is audio, video, picture, and number of types is 3 kinds.Wherein, the type information includes type and number of types.
Step S303, DMC judge that the number of types of the type information instruction whether more than a kind, obtains judging result.
For example, the number of types that step S302 is obtained is a kind, then DMC determines that the type quantity is less than a kind, then turns
To step S304;For example, the number of types that step S302 is obtained is 2 kinds, then DMC determines that the type quantity is more than a kind, then turns
To step S305;
Step S304, when the number of types that the judging result is the instruction of the type information is less than a kind, DMC is more by this
The type of the type information instruction of media file is determined as the type of multimedia file folder.
For example, DMS supports one of a kind of multimedia form, such as video, audio, picture, audio is supported only with DMS
For file, server does not have the classification of first order catalogue at this time, is directly the true catalogue of file, such as
Forbar2000, it is that (or other are shown to be music file to audio that first layer, which should be a name, as requested originally
File), but since DMS only supports a seed type, it is directly exactly the true catalogue of file that when storage, which does not have first order catalogue,
forbar2000。
Therefore, when the type of the multimedia file obtained in step S302 is music, and number of types is a kind, then DMC
Determine that the multimedia file stored in server is all audio, it is determined that the multiple media types of forbar2000 file are sound
It is happy;For example DMC only supports the multimedia file of audio format, the audio data that DMC is obtained in forbar2000 at this time is broadcast
It puts.
Step S305, when the number of types that the judging result is the instruction of the type information is more than a kind, DMC obtains more matchmakers
The distinctive mark information of body root file;
DMS supports three kinds or two kinds of multimedia forms, such as at least two in video, audio, picture, with server
For supporting three kinds of multimedia forms, the first order catalogue of server all can be divided into three classes according to multimedia form: video, audio
And picture;Server is there are two types of storage mode at this time: the first storage mode be by first order catalogue namely video, audio and
The name of picture according to normal English perhaps Chinese be named such as video be named as video or video.Second
Storage mode is that normal name side is not pressed in first order catalogue namely video, audio and picture at least two name
Formula names, for example audio is named as Music lib.
For example, since the file of same format is stored in a file by server, when what is obtained in step S302
When the type of multimedia file is music, picture and video, obtained number of types is 3 kinds, since server is big when being stored with
When the multimedia file of 1 seed type, usually there is multimedia root file (namely first order catalogue), the multimedia root
File includes multiple multimedia subfiles.Specifically, terminal successively obtains the title of each first order catalogue in server.
Step S306, DMC judges whether the distinctive mark information and default difference message sample are identical.
For example, DMC obtains the title of the corresponding first order catalogue of the audio file stored in multiple servers, video in advance
The title of the corresponding first order catalogue of file and the title of the corresponding first order catalogue of picture file, and these titles are stored
In the database, the default difference message sample is obtained.This step in the specific implementation, the first order catalogue that DMC will acquire
Title is compared with the default difference message sample, judges whether the two is identical, if it is not the same, S307 is thened follow the steps,
It is no to then follow the steps S308;
If step S307, the distinctive mark information and the default difference message sample be not identical, DMC obtains the multimedia
The data identification information of the content of multimedia sub-folder in the file of root;The multimedia is determined according to the data identification information
The type of root file.
For example, the last one subdirectory of the first order catalogue of server is just stored with data due under normal conditions, because
This is in order to improve treatment effeciency, when the title for the first order catalogue that DMC is obtained and not identical default difference message sample, then
DMC obtains the data identification information of the storage content of the last one subdirectory of first order catalogue;The data identification information is for example
For field, perhaps character string DMC is previously stored with the corresponding field of audio file or the corresponding field of character string, video file
Either character string and the corresponding field of picture file or character string, and in the database by the storage of these titles, it is somebody's turn to do
Preset data message sample.
DMC is previously stored with the corresponding field of audio file such as are as follows:
"upnp:class>;object.container.storageFolder<;/upnp:class".
For example, can include audio field in the data that DMS is returned, then the audio data stored in the subdirectory be proved, then
The multiple media types of first order catalogue belonging to the subdirectory are audio;
For example DMC only supports the multimedia file of audio format, DMC just no longer judges the class of remaining first order catalogue at this time
Type.
For example, the field of video or picture can not included in the data that DMS is returned, then prove to store in the subdirectory
Data are that the multiple media types of video perhaps image data then first order catalogue belonging to the subdirectory are video or picture,
DMC needs to judge the type of remaining first order catalogue at this time.
If step S308, the distinctive mark information is identical as the default difference message sample, DMC obtains the default difference
Corresponding first preset kind of message sample;First preset kind is determined as to the type of the multimedia root file.
For example, for example, in the title and terminal of some first layer file that DMC is got pre-stored music name
Claim identical, it is determined that the type of the first layer file is music.
Step S309, the type of the multimedia root file is determined as the type of multimedia file folder by DMC.
For example, DMC determines its type according to the title of the first layer file, the type of first layer file is made later
For the type of finally determining multimedia file folder.
Step S309, the type that DMC is pressed from both sides based on the multimedia file is filtered processing to multimedia file folder.
For example, DMC carries out the type that all multimedia files press from both sides and the multimedia file format that its own can be supported
Compare, for example DMC only supports the multimedia file of audio format, if the type of multimedia file folder is identical as audio format,
It then obtains audio file to press from both sides and play out, skip to the file for being not belonging to audio.
The processing method of the multimedia file of this preferred embodiment connects due to sending operational order to server by DMC
The type information for the multimedia file that server is returned according to operational order is received, and judges the number of types of the type information instruction
Whether it is more than preset threshold, obtains judging result;When number of types is more than preset threshold, also according to the title of root file
It determines the type of multimedia file folder, and the type based on multimedia file folder, multimedia file is filtered, thus into one
Step improves the treatment effeciency of system.
Referring to figure 4., Fig. 4 is the structural schematic diagram of the processing unit for the multimedia file that the embodiment of the present invention four provides.
The processing unit 40 of the multimedia file of this preferred embodiment includes: to obtain module 41, judgment module 42, determining module 43, mistake
Filter module 44;
It obtains module 41 and determines the type information of the multimedia file according to the operational order for obtaining operational order;
For example, user is instructed by terminal trigger action, when terminal detects the operational order, obtains module 41 and obtain
The operational order, and according to the operational order determine server storage all multimedia files type information, the type letter
Breath may include multimedia type and the quantity with multiple media types;The terminal is such as the hand for being equipped with playout software
Machine, tablet computer, apparatus such as computer or player (DMC) controller (DMP) etc..The multimedia type may include figure
Piece, video, audio etc., the quantity of the multiple media types are such as to have several multiple media types.
Judgment module 42, for judging whether the number of types of the type information instruction is more than preset threshold, is judged
As a result;
For example, judgment module 42 judges whether the quantity of the type of all multimedia files is more than preset threshold, is somebody's turn to do
Judging result, which is such as a kind, such as one of video, picture or audio, for example, judgment module 42 is sentenced
Whether the quantity of disconnected the type is greater than a kind.
Determining module 43, for determine according to the judgment result multimedia file folder type, the multimedia file folder in
The type of the multimedia file of storage is identical;
For example, the server is stored at least one multimedia file folder, what is stored in multimedia file folder is all more
The type of media file is identical;Namely the type of all multimedia files stored in same multimedia file folder is all identical, really
Cover half block 43 determines the type of all multimedia file folders in server according to the judging result that judgment module 42 obtains.
Filtering module 44, the type for being pressed from both sides based on the multimedia file are filtered processing to multimedia file folder.
For example, the multimedia file lattice that filtering module 44 can support the type that all multimedia files press from both sides with its own
Formula is compared, if the two is identical, is obtained corresponding multimedia file and is pressed from both sides and be shown, otherwise just skip the multimedia
File.
The acquisition module 41 is specifically used for:
When sending operational order to server, the class for the multimedia file that the server is returned according to the operational order is received
Type identification information;The type information of the multimedia file is determined according to the type identification information.
For example, user is instructed by terminal trigger action when terminal connects DMS, module 41 is obtained later to DMS and sends behaviour
Instruct, DMS after receiving the instruction, obtain server in all multimedia files type identification information, and by such
Type identification information returns to terminal.The type identification information can carry the title of multimedia file: the type of such as audio file
Identification information is audio, in another example the type identification information of video file is video, in another example the type identification of picture file
Information is image.The terminal is such as the mobile phone for being equipped with playout software, tablet computer, apparatus such as computer or player
(DMC) or controller (DMP) etc..
For example, terminal determines the type information of all multimedia files of server storage according to the operational order, such
Type information may include multimedia type and the quantity with multiple media types;Specifically, obtain what module 41 will acquire
Type identification information is matched with preset kind mark sample, to determine that the type information, such as preset kind identify sample
For audio, image, video, such as obtain the character that the type identification information that module 41 is got includes audio and image
String;After overmatching, it is determined that the type of all multimedia files includes audio, picture;And determine the number of multiple media types
Amount is 2 kinds.
Preferably, as shown in figure 5, the determining module 43 specifically includes: first determines that submodule 431 and second determines submodule
Block 432;
First determine submodule 431, for when the judging result be the type information instruction number of types be less than it is pre-
If when threshold value, the type that the type information of the multimedia file indicates to be determined as to the type of multimedia file folder;
For example, since the file of same format is stored in a file by server, when in terminal determining server
When the number of types of all multimedia files is equal to a kind, namely multimedia file presss from both sides only one at this time, then first determines at this time
Submodule 431 determines the type of multimedia file folder i.e. the type of all multimedia files in server.
Second determines submodule 432, for being more than default when the number of types that the judging result is the instruction of the type information
When threshold value, the distinctive mark information of multimedia root file is obtained, wherein multimedia file folder includes the multimedia root
File, which includes multimedia sub-folder;The multimedia root is determined according to the distinctive mark information
The type of the multimedia root file is determined as the type of multimedia file folder by the type of portion's file.
For example, since the file of same format is stored in a file by server, when in terminal determining server
When the number of types of all multimedia files is greater than a kind, namely multimedia file accompanies the corresponding number of the type quantity at this time.
Such as when number of types is 3 kinds, the quantity of multimedia file folder is 3;Worked as due to server and is stored with greater than 1 seed type
When multimedia file, usually there is multimedia root file (namely first layer file), the multimedia root file clip pack
Include multiple multimedia subfiles.Specifically, second determine that submodule 432 successively obtains each first layer file in server
Title.
For example, second determines that submodule 432 determines its type according to the title of the first layer file, later by first layer
Type of the type of file as finally determining multimedia file folder, namely determine the multimedia class of server storage
Type.
The second determining submodule 432 is specifically used for:
Judge whether the distinctive mark information and default difference message sample are identical;
If the distinctive mark information is identical as the default difference message sample, it is corresponding to obtain the default difference message sample
The first preset kind;First preset kind is determined as to the type of the multimedia root file;
If the distinctive mark information and the default difference message sample be not identical, obtain in the multimedia root file
The data identification information of the content of multimedia sub-folder;The multimedia root file is determined according to the data identification information
Type.
For example, terminal obtain in advance the corresponding first layer file of the audio file stored in multiple servers title,
The title of the corresponding first layer file of video file and the title of the corresponding first layer file of picture file, and by these
Title stores in the database, obtains the default difference message sample.In the specific implementation, second determines submodule to this step
The title of the 432 first layer files that will acquire is compared with the default difference message sample, judges whether the two is identical;
For example, second determines in the title and default difference message sample for the first layer file that submodule 432 obtains
One it is identical when, then obtain the corresponding multiple media types of the default difference message sample, and using the multiple media types as this
The type of one layer of file, for example, second determines in the title and terminal for some first layer file that submodule 432 is got
The title of pre-stored music is identical, then second determines that submodule 432 determines that the type of the first layer file is music.
For example, when the title for the first layer file that terminal obtains and not identical default difference message sample, then second
Determine that submodule 432 obtains the data identification information of the storage content of sub-folder in first layer file;Certainly, due to usual
In the case of, just the last one sub-folder of the first layer file of server is stored with data, therefore in order to improve processing effect
Rate, second determines that submodule 432 can also obtain the data of the storage content of the last one sub-folder of first layer file
Identification information;Later, second determine submodule 432 according to the data identification information got determine the sub-folder belonging to the
The type of one layer of file.
The second determining submodule 432 is specifically used for:
Judge whether the data identification information is identical as preset data message sample;
If the data identification information is identical as the preset data message sample, it is corresponding to obtain the default difference message sample
The second preset kind;
Second preset kind is determined as to the type of the multimedia root file.
For example, the data identification information is, for example, field or character string, it is corresponding that terminal is previously stored with audio file
Field or the corresponding field of character string, video file or character string and the corresponding field of picture file or character string,
And in the database by the storage of these titles, the preset data message sample is obtained.Second determines that submodule 432 will acquire most
The field or character string of the latter sub-folder storage content are compared with the default difference message sample, for example, second
When determining that submodule 432 determines that the field obtained or character string are identical as default distinguish in message sample one, then obtain
The corresponding multiple media types of the default difference message sample, and using the multiple media types as the type of the first layer file,
For example, the field or character of the storage content in the last one sub-folder for some first layer file that terminal is got
String is identical as the field of music pre-stored in terminal or character string, then second determines that submodule 432 determines the first layer
The type of file is music.
The processing unit of the multimedia file of this preferred embodiment, due to receiving by sending operational order to server
The type information for the multimedia file that server is returned according to operational order, and the number of types for judging that the type information indicates is
No is more than preset threshold, obtains judging result;It is true also according to the title of root file when number of types is more than preset threshold
Determine the type of multimedia file folder, and the type based on multimedia file folder, multimedia file is filtered, thus further
Improve the treatment effeciency of system.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
The treating method and apparatus for being provided for the embodiments of the invention a kind of multimedia file above has carried out detailed Jie
It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as
Limitation of the present invention.
Claims (8)
1. a kind of processing method of multimedia file characterized by comprising
Terminal obtains operational order, the type information of the multimedia file is determined according to the operational order, comprising: to service
When device sends operational order, the type identification for receiving the multimedia file that the server is returned according to the operational order is believed
Breath determines that the type information of the multimedia file, the type information include multimedia text according to the type identification information
The type and number of types of part, the type of the multimedia file include at least one of picture, video, audio;
The terminal judges whether the number of types of the type information instruction is more than preset threshold, obtains judging result;
The terminal determines the type of multimedia file folder according to the judging result, comprising: when the judging result is described
When the number of types of type information instruction is less than preset threshold, the type that the type information of the multimedia file is indicated is true
It is set to the type of the multimedia file folder;When the number of types that the judging result is type information instruction is more than default
When threshold value, the distinctive mark information of multimedia root file is obtained, wherein multimedia file folder includes the multimedia
Root file, multimedia root file include multimedia sub-folder, determine institute according to the distinctive mark information
The type of multimedia root file is determined as the multimedia file folder by the type for stating multimedia root file
The type of type, the interior multimedia file stored of multimedia file folder is identical, and the multimedia file accompanies the type
The corresponding number of quantity;
The type that the terminal is pressed from both sides based on the multimedia file is filtered processing to multimedia file folder, comprising: will
The type of the multimedia file folder is compared with the type for the multimedia file that terminal itself is supported, if the two is identical,
It then obtains corresponding multimedia file to press from both sides and be shown, otherwise just skips multimedia file folder.
2. the processing method of multimedia file according to claim 1, which is characterized in that
The step of type that multimedia root file is determined according to the distinctive mark information includes:
Judge whether the distinctive mark information and default difference message sample are identical;
If the distinctive mark information is identical as the default difference message sample, the default difference message sample pair is obtained
The first preset kind answered;
First preset kind is determined as to the type of multimedia root file.
3. the processing method of multimedia file according to claim 2, which is characterized in that
After the step for judging whether the distinctive mark information is identical as default difference message sample, the method is also
Include:
If the distinctive mark information and the default difference message sample be not identical, multimedia root file is obtained
The data identification information of the content of middle multimedia sub-folder;
The type of multimedia root file is determined according to the data identification information.
4. the processing method of multimedia file according to claim 3, which is characterized in that
The step of type that multimedia root file is determined according to the data identification information includes:
Judge whether the data identification information is identical as preset data message sample;
If the data identification information is identical as the preset data message sample, the default difference message sample pair is obtained
The second preset kind answered;
Second preset kind is determined as to the type of multimedia root file.
5. a kind of processing unit of multimedia file characterized by comprising
It obtains module and determines the type information of the multimedia file according to the operational order for obtaining operational order;Packet
It includes: when sending operational order to server, receiving the class for the multimedia file that the server is returned according to the operational order
Type identification information determines that the type information of the multimedia file, the type information include according to the type identification information
The type and number of types of multimedia file, the type of the multimedia file include picture, video, at least one in audio
It is a;
Judgment module, for judging whether the number of types of the type information instruction is more than preset threshold, obtains judging result;
Determining module, for determining that the type of multimedia file folder, the determining module are specifically included according to the judging result
First determines submodule and the second determining submodule, and described first determines submodule, for being the class when the judging result
When the number of types of type information instruction is less than preset threshold, the type that the type information of the multimedia file is indicated is determined
For the type of multimedia file folder;Described second determines submodule, for being the type information when the judging result
When the number of types of instruction is more than preset threshold, the distinctive mark information of multimedia root file is obtained, wherein more matchmakers
Body file includes multimedia root file, and multimedia root file includes multimedia sub-folder;According to
The distinctive mark information determines the type of multimedia root file, and the type of multimedia root file is true
It is set to the type of the multimedia file folder;The type of the multimedia file stored in the multimedia file folder is identical, described
Multimedia file accompanies the corresponding number of the number of types;
Filtering module, the type for being pressed from both sides based on the multimedia file are filtered processing to multimedia file folder;Packet
It includes: the type for the multimedia file that type that the multimedia file presss from both sides and terminal itself are supported being compared, if the two
It is identical, then it obtains corresponding multimedia file and presss from both sides and be shown, otherwise just skip multimedia file folder.
6. the processing unit of multimedia file according to claim 5, which is characterized in that described second determines submodule tool
Body is used for:
Judge whether the distinctive mark information and default difference message sample are identical;
If the distinctive mark information is identical as the default difference message sample, the default difference message sample pair is obtained
The first preset kind answered;First preset kind is determined as to the type of multimedia root file;
If the distinctive mark information and the default difference message sample be not identical, multimedia root file is obtained
The data identification information of the content of middle multimedia sub-folder;The multimedia root text is determined according to the data identification information
The type of part folder.
7. the processing unit of multimedia file according to claim 6, which is characterized in that
Described second determines that submodule is specifically used for:
Judge whether the data identification information is identical as preset data message sample;
If the data identification information is identical as the preset data message sample, the default difference message sample pair is obtained
The second preset kind answered;
Second preset kind is determined as to the type of multimedia root file.
8. a kind of computer readable storage medium, storage is used for the computer program of electronic data interchange, wherein the calculating
Machine program makes computer execute the method as described in Claims 1-4 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610076807.2A CN105550377B (en) | 2016-02-03 | 2016-02-03 | The processing method and processing device of multimedia file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610076807.2A CN105550377B (en) | 2016-02-03 | 2016-02-03 | The processing method and processing device of multimedia file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105550377A CN105550377A (en) | 2016-05-04 |
CN105550377B true CN105550377B (en) | 2019-02-12 |
Family
ID=55829566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610076807.2A Active CN105550377B (en) | 2016-02-03 | 2016-02-03 | The processing method and processing device of multimedia file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105550377B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107564553B (en) * | 2016-06-30 | 2020-07-03 | 上海博泰悦臻网络技术服务有限公司 | Control method and system of audio play list and audio play system |
CN108965927B (en) * | 2018-07-25 | 2021-05-04 | 广州市迪士普音响科技有限公司 | Broadcast control method and system |
CN109918516B (en) * | 2019-03-13 | 2021-07-30 | 百度在线网络技术(北京)有限公司 | Data processing method and device and terminal |
CN110928847B (en) * | 2019-10-14 | 2022-10-04 | 佛山科学技术学院 | Batch sampling method and device for files |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101600024A (en) * | 2009-07-14 | 2009-12-09 | 宇龙计算机通信科技(深圳)有限公司 | Method for displaying play list in a kind of portable terminal and the player thereof |
CN103812828A (en) * | 2012-11-08 | 2014-05-21 | 华为终端有限公司 | Method for processing media content, control device, media server, and media player |
CN104078069A (en) * | 2014-06-25 | 2014-10-01 | 广东欧珀移动通信有限公司 | Method and equipment for playing file based on DLNA |
CN104967921A (en) * | 2014-10-11 | 2015-10-07 | 广东欧珀移动通信有限公司 | Subtitle display method and system of audio and videos in DLNA communication process |
-
2016
- 2016-02-03 CN CN201610076807.2A patent/CN105550377B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101600024A (en) * | 2009-07-14 | 2009-12-09 | 宇龙计算机通信科技(深圳)有限公司 | Method for displaying play list in a kind of portable terminal and the player thereof |
CN103812828A (en) * | 2012-11-08 | 2014-05-21 | 华为终端有限公司 | Method for processing media content, control device, media server, and media player |
CN104078069A (en) * | 2014-06-25 | 2014-10-01 | 广东欧珀移动通信有限公司 | Method and equipment for playing file based on DLNA |
CN104967921A (en) * | 2014-10-11 | 2015-10-07 | 广东欧珀移动通信有限公司 | Subtitle display method and system of audio and videos in DLNA communication process |
Also Published As
Publication number | Publication date |
---|---|
CN105550377A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105550377B (en) | The processing method and processing device of multimedia file | |
US7107045B1 (en) | Method and system for distribution of media | |
CN101340274A (en) | Data synchronizing method and apparatus | |
EP1650627A3 (en) | MP3 player capable of automatic updating, automatic updating system for MP3 player and method thereof | |
WO2011023075A1 (en) | Terminal address book management method and terminal device | |
CN105141569B (en) | Media processing method and equipment | |
CN107071711A (en) | Multimedia sharing method, device and Bluetooth equipment | |
CN105975470A (en) | Method and device for processing historical records | |
CN102737690B (en) | Method and terminal that music application starts | |
CN109669795A (en) | Crash info processing method and processing device | |
CN104078069B (en) | Document play-back method and equipment based on DLNA | |
CN107820102B (en) | A kind of data transmission method, device, terminal and server | |
CN101562550A (en) | Digital content service integrated system | |
CN103986842A (en) | Contact person data collecting method and device | |
US20120117197A1 (en) | Content auto-discovery | |
CN110244913A (en) | A kind of control method, control device, storage equipment and control system | |
JP2009086157A (en) | Content reproducing apparatus | |
US9223782B2 (en) | System for performing instructions that are dependent upon received media-based messages and associated methods and components | |
CN111031117B (en) | Multimedia file downloading method and related device | |
CN106453663A (en) | Improved cloud service-based storage capacity expansion method and device | |
CN102362507A (en) | Network control device, network control system, network control method, and program | |
US20150347579A1 (en) | Media file marking method and apparatus | |
WO2012028048A1 (en) | Data transmission method and device based on slide detection | |
EP2605534A2 (en) | Enrichment, multimedia content management and call establishment in accordance with enriched multimedia content | |
JP2008542901A (en) | Portable storage medium, host device, and method of accessing contents of portable storage medium by host device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |