CN107786490A - Media information method for packing and device, package file analysis method and device - Google Patents

Media information method for packing and device, package file analysis method and device Download PDF

Info

Publication number
CN107786490A
CN107786490A CN201610716530.5A CN201610716530A CN107786490A CN 107786490 A CN107786490 A CN 107786490A CN 201610716530 A CN201610716530 A CN 201610716530A CN 107786490 A CN107786490 A CN 107786490A
Authority
CN
China
Prior art keywords
information
fragment
media information
logical process
media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610716530.5A
Other languages
Chinese (zh)
Other versions
CN107786490B (en
Inventor
肖磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610716530.5A priority Critical patent/CN107786490B/en
Priority to PCT/CN2017/073737 priority patent/WO2018036109A1/en
Publication of CN107786490A publication Critical patent/CN107786490A/en
Application granted granted Critical
Publication of CN107786490B publication Critical patent/CN107786490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Abstract

The present invention discloses a kind of media information method for packing and device, package file analysis method and device;Media information method for packing includes:Determine the media information fragment of target medium information, and the logical process information of each media information fragment;Sequencing based on each media information fragment on a timeline, each media information fragment is associated with respective logical process information successively, and be packaged related information, each media information fragment and logical process information, obtain package file corresponding to target medium information.Using the present invention, the workload of audio frequency and video encapsulation/parsing can be reduced, improves treatment effeciency.

Description

Media information method for packing and device, package file analysis method and device
Technical field
The present invention relates to the media information of communication technical field encapsulation/analytic technique, more particularly to a kind of media information to seal Fill method and device, package file analysis method and device.
Background technology
Existing audio frequency and video method for packing is primarily upon following aspect:How support which coded system, audio, video data Storage, sequence, index and synchronization etc..Typically controlled for the logical process of audio, video data by player, or by calling Program realize logical process;Here logical process includes but is not limited to:Circulation, pause, previous head, the logic such as next.
In the prior art, audio-video document belongs to the passive consumer goods, to broadcasting in itself in itself as just the carrier of data There is no too much influence.However, in practice, even with a audio-video frequency content, such as video is greeted, it is necessary to be directed to different languages The user of speech provides the audio-video document of corresponding language respectively;If it is desired to increase logic, it is necessary to change player or again New release process.In this way, causing that the workload of audio frequency and video encapsulation/parsing is big, treatment effeciency is low.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provide a kind of media information method for packing and device, Package file analysis method and device, the workload of audio frequency and video encapsulation/parsing can be reduced, improve treatment effeciency.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of media information method for packing, method includes:
Determine the media information fragment of target medium information, and the logical process information of each media information fragment;
Sequencing based on each media information fragment on a timeline, by each media information fragment successively with Respective logical process information is associated, and related information, each media information fragment and logical process information are carried out Encapsulation, obtains package file corresponding to the target medium information.
In such scheme, the sequencing based on each media information fragment on a timeline will be each described Media information fragment is associated with respective logical process information successively, including:
Sequencing based on each media information fragment on a timeline handles each media information fragment successively; According to the logical process information of each media information fragment, data block corresponding to each media information fragment is determined successively Header, and by each media information fragment be respectively written into corresponding to data block data field;
It is described by related information, each media information fragment and logical process information be packaged, obtain the target Package file corresponding to media information, including:
Sequencing based on each media information fragment on a timeline, by corresponding to each media information fragment Data block is encapsulated successively, obtains package file corresponding to the target medium information.
In such scheme, the sequencing based on each media information fragment on a timeline will be each described Media information fragment is associated with respective logical process information successively, including:
The logical process information of each media information fragment is write into logical process information aggregate, and determines each logic The index information of processing information;Sequencing based on each media information fragment on a timeline handles each matchmaker successively Body information segment;According to the index information of the logical process information of each media information fragment, each media are determined successively The header of data block corresponding to information segment, and by each media information fragment be respectively written into corresponding to data block data Area;
It is described by related information, each media information fragment and logical process information be packaged, obtain the target Package file corresponding to media information, including:Sequencing based on each media information fragment on a timeline, by described in Data block corresponding to logical process information aggregate, each media information fragment is encapsulated successively, obtains the target medium Package file corresponding to information.
Second aspect, the embodiment of the present invention provide a kind of package file analytic method, and method includes:
Package file is parsed, obtains each media information fragment, logical process information and the related information of target medium information;
Sequencing based on each media information fragment on a timeline, each media information fragment is determined successively The logical process information of association simultaneously performs, and the parsing matchmaker corresponding with the implementing result when implementing result meets preparatory condition Body information segment simultaneously plays.
In such scheme, the parsing package file, each media information fragment of target medium information is obtained, at logic Information and related information are managed, including:
Parse package file, obtain logical process information aggregate, target medium information each media information fragment corresponding to Data block;The logical process information aggregate is parsed, the logical process information of each media information fragment is obtained and each patrols Collect the index information of processing information;
The sequencing based on each media information fragment on a timeline, each media information is determined successively The logical process information of fragment association simultaneously performs, and parsing is corresponding with the implementing result when implementing result meets preparatory condition Media information fragment and play, including:
Sequencing based on each media information fragment on a timeline, each media information fragment is parsed successively The header of corresponding data block, obtains the index information of the logical process information of each media information fragment, described in execution Logical process information corresponding to obtained index information, and parsing and the execution when implementing result meets the preparatory condition As a result corresponding media information fragment and play.
The third aspect, the embodiment of the present invention provide a kind of media information packaging system, and device includes:
Determining module, for determining the media information fragment of target medium information, and each media information fragment is patrolled Collect processing information;
Relating module, for the sequencing based on each media information fragment on a timeline, by each media Information segment is associated with respective logical process information successively;
Package module, for related information, each media information fragment and logical process information to be packaged, obtain Package file corresponding to the target medium information.
In such scheme, the relating module, specifically for based on each media information fragment on a timeline Sequencing handles each media information fragment successively;According to the logical process information of each media information fragment, successively The header of data block corresponding to each media information fragment is determined, and each media information fragment is respectively written into correspondingly Data block data field;
The package module, will be each specifically for the sequencing based on each media information fragment on a timeline Data block corresponding to the media information fragment is encapsulated successively, obtains package file corresponding to the target medium information.
In such scheme, the relating module, it is specifically used for:By the logical process information of each media information fragment Logical process information aggregate is write, and determines the index information of each logical process information;Based on each media information fragment Sequencing on a timeline handles each media information fragment successively;At the logic of each media information fragment The index information of information is managed, determines the header of data block corresponding to each media information fragment successively, and by each matchmaker Body information segment is respectively written into the data field of corresponding data block;
The package module, specifically for the sequencing based on each media information fragment on a timeline, by institute State logical process information aggregate, data block is encapsulated successively corresponding to each media information fragment, obtain the target matchmaker Package file corresponding to body information.
The third aspect, the embodiment of the present invention provide a kind of package file resolver, and device includes:
Parsing module, for parsing package file, obtain each media information fragment, the logical process letter of target medium information Breath and related information;
Execution module, for the sequencing based on each media information fragment on a timeline, each institute is determined successively State the logical process information of media information fragment association and perform, and parse when implementing result meets preparatory condition and held with described Media information fragment corresponding to row result simultaneously plays.
In such scheme, the parsing module, specifically for parse package file, obtain logical process information aggregate, Data block corresponding to each media information fragment of target medium information;The logical process information aggregate is parsed, is obtained each described The index information of the logical process information of media information fragment and each logical process information;
The execution module, specifically for the sequencing based on each media information fragment on a timeline, successively The header of data block corresponding to each media information fragment is parsed, obtains the logical process letter of each media information fragment The index information of breath, logical process information corresponding to the index information obtained described in execution, and meet default bar in implementing result Media information fragment corresponding with implementing result is parsed during part and is played.
In embodiments of the present invention, the priority of each media information fragment on a timeline based on target medium information is suitable Sequence, media information fragment and logical process information are associated, related information, each media information fragment and logical process are believed Breath is packaged to obtain package file;Because package file adds logical process information to each section of media information fragment, make Obtain a package file can and meet the needs of multiple different users;When needing to increase logic, it is only necessary to carried out in encapsulation Increase, without release process again;In this way, the workload of audio frequency and video encapsulation/parsing can be reduced, processing effect is improved Rate.
Brief description of the drawings
In accompanying drawing (it is not necessarily drawn to scale), similar reference phase described in different views As part.Similar reference numerals with different letter suffix can represent the different examples of similar component.Accompanying drawing with example and Unrestricted mode generally shows each embodiment discussed herein.
Fig. 1 is an optional schematic flow sheet of media information method for packing in the embodiment of the present invention;
Fig. 2 a are an optional encapsulating structure schematic diagram of package file in the embodiment of the present invention;
Fig. 2 b are another optional encapsulating structure schematic diagram of package file in the embodiment of the present invention;
Fig. 3 is an optional schematic flow sheet of package file analytic method in the embodiment of the present invention;
Fig. 4 is another optional schematic flow sheet of media information method for packing in the embodiment of the present invention;
Fig. 5 a are another optional encapsulating structure schematic diagram of package file in the embodiment of the present invention;
Fig. 5 b are the structural representation of logical process information in package file in the embodiment of the present invention;
Fig. 5 c are the structural representation of the header of data block in package file in the embodiment of the present invention;
Fig. 5 d are the structural representation of the data field of data block in package file in the embodiment of the present invention;
Fig. 6 is another optional schematic flow sheet of package file analytic method in the embodiment of the present invention;
Fig. 7 is an optional structural representation of media information packaging system in the embodiment of the present invention;
Fig. 8 is an optional structural representation of package file resolver in the embodiment of the present invention.
Embodiment
In various embodiments of the present invention:Determine the media information fragment of target medium information, and each media letter Cease the logical process information of fragment;Sequencing based on each media information fragment on a timeline, by each media Information segment is associated with respective logical process information successively, and by related information, each media information fragment and is patrolled Collect processing information to be packaged, obtain package file corresponding to the target medium information.
Below in conjunction with drawings and Examples, the present invention will be described in further detail.It is it should be appreciated that described herein Specific embodiment only to explain the present invention, is not intended to limit the present invention.
Embodiment one
The present embodiment provides a kind of media information method for packing, the media information encapsulation side provided referring to Fig. 1, the present embodiment Method, comprise the following steps:
Step 101, the media information fragment for determining target medium information, and the logical process of each media information fragment Information.
Here, the executive agent for the media information method for packing that the present embodiment provides can be media information packaging system.
In practice, target medium information can be audio-frequency information and/or video information;Target medium information includes multiple matchmakers Body information segment;For example, it is assumed that target medium information is to be said hello to user, it is contemplated that the system language of user Time zone residing for (here by taking Chinese and English as an example) and user is different (here so that the time difference is 12 hours as an example), then target The media information fragment that media information includes can include:Audio-frequency information " good morning ", audio-frequency information " Good morning ", sound Frequency information " good night ", " Good evening ", background reflect that the video information on daytime, background reflect regarding for night to audio-frequency information Frequency information etc..
Here, logical process information can comprise at least following classification:
Password authentification:Word password, figure new password, vocal print password or finger-print cipher etc. can be included;When player parses To corresponding to password authentification during media information fragment, can be inputted according to the type prompts user of password authentification password, vocal print or Fingerprint, current media information segment can be just decrypted after password match and is played;
Authority Verification:Digital Right Management (DRM, Digital Right Management) card or user can be included Packet authentication etc.;For example, only play the media information fragment that the Permission Levels of the user can access to the user for meeting authority;When When player is resolved to media information fragment corresponding to Authority Verification, user can be judged according to user profile or DRM checkings Authority, meet that authority can just decrypt current media information segment and play;
Environmental information is verified:Time, system language, system setting or geographical position etc. can be included;Such as according to system Speech selection plays or skipped current media information segment, is selected to play or skip current media information according to system time Fragment;Set according to system, such as Jing Yin set prompts user to be currently at mute state, if needs continue broadcasting etc..
It should be noted that the present embodiment is the exemplary several classifications for describing logical process information, and still, this reality Example is applied not to be defined the classification of logical process information.
In practice, logical process information can also include:Verify correction data;
Specifically, if the classification of logical process information is password authentification, then verification correction data can include:Password Hash (hash) value or Secure Hash Algorithm (sha1, Secure Hash Algorithm) value, encryption after fingerprint or Voice print database etc..
If the classification of logical process information is authorization check, verification correction data can include:Related DRM information or User right list etc..
If the classification of logical process information is verified for environmental information, verification correction data can include:It is corresponding effective Beginning and ending time, effective language or global positioning system (GPS, Global Positioning System) data etc..
Step 102, the sequencing based on each media information fragment on a timeline, by each media information piece Duan Yici is associated with respective logical process information.
For example, audio-frequency information " good morning " is associated with system language for Chinese.
Step 103, related information, each media information fragment and logical process information is packaged, obtained described Package file corresponding to target medium information.
Each section of media information fragment is directed in the present embodiment, during encapsulation, increases some optional logical process information.On Stating step 102,103 can at least be implemented using any one following implementation:
Implementation 1, the sequencing based on each media information fragment on a timeline handle each matchmaker successively Body information segment;According to the logical process information of each media information fragment, each media information fragment pair is determined successively The header for the data block answered, and by each media information fragment be respectively written into corresponding to data block data field;Based on each The sequencing of the media information fragment on a timeline, data block corresponding to each media information fragment is carried out successively Encapsulation, obtains package file corresponding to the target medium information.Illustrate referring to the encapsulating structure of the package file shown in Fig. 2 a Figure;The header of data block corresponding to media information fragment includes the logical process information of media information fragment.
Implementation 2, the logical process information write-in logical process information aggregate by each media information fragment, and really The index information of fixed each logical process information;Sequencing based on each media information fragment on a timeline is located successively Manage each media information fragment;According to the index information of the logical process information of each media information fragment, determine successively The header of data block corresponding to each media information fragment, and each media information fragment is respectively written into corresponding number According to the data field of block;Sequencing based on each media information fragment on a timeline, by the logical process information collection Data block corresponding to conjunction, each media information fragment is encapsulated successively, obtains encapsulating corresponding to the target medium information File.Referring to the encapsulating structure schematic diagram of the package file shown in Fig. 2 b;Logical process information aggregate shown in Fig. 2 b at least wraps 3 logical process information are included, index information is followed successively by 1-3;The header of data block includes corresponding to media information fragment The index information of the logical process information of media information fragment.
Here, processing logical message is not necessarily intended to be unifiedly stored in the logical process information combination that file starts, It can also be stored directly in the header of data block.
Following defect in the prior art be present:Even with a audio-video frequency content, such as video is greeted, it is necessary to for not User with language provides the audio-video document of corresponding language respectively;If it is desired to increase logic, it is necessary to change player or Person's release process again.
It is exemplified below using the application scenarios of the embodiment of the present invention:
Application scenarios 1, the embodiment of the present invention, a screen is sent out in wechat circle of friends or group, different recipients are (assuming that be Language setting of uniting is different or time zone is different) when opening, it is seen that video and the audio heard can different (for example some be heard " early It is first-class ", some hear " good night ", some hear " " good morning " etc.), or even same user beats in different time Open, also have different results, the background such as screen picture is different.
Application scenarios 2, the embodiment of the present invention, company's site issues an advertising film, when the user of country variant plays, Hear be will be audio-video frequency content corresponding with system language.
In the present embodiment, the sequencing of each media information fragment on a timeline based on target medium information, by matchmaker Body information segment is associated with logical process information, and related information, each media information fragment and logical process information are carried out Encapsulation obtains package file;Because package file adds logical process information to each section of media information fragment so that one Package file can meets the needs of multiple different users;When needing to increase logic, it is only necessary to increased i.e. in encapsulation Can, without release process again;In this way, the workload of audio frequency and video encapsulation/parsing can be reduced, treatment effeciency is improved.
Embodiment two
The present embodiment is corresponding with above-described embodiment one, and the present embodiment provides a kind of package file analytic method, to right The package file for encapsulating to obtain in above-described embodiment one is parsed and played;The package file provided referring to Fig. 3, the present embodiment Analytic method, comprise the following steps:
Step 301, parsing package file, obtain each media information fragment of target medium information, logical process information and Related information.
Here, the executive agent for the package file analytic method that the present embodiment provides can be package file resolver.
Step 302, the sequencing based on each media information fragment on a timeline, determine each media successively The logical process information of information segment association simultaneously performs.
Step 303, the parsing media information fragment corresponding with the implementing result when implementing result meets preparatory condition And play.
Above-mentioned steps 301,302 can at least be implemented using any one following implementation:
Implementation 1, parsing package file, obtain data block corresponding to each media information fragment of target medium information; Sequencing based on each media information fragment on a timeline, number corresponding to each media information fragment is parsed successively According to the header of block, the logical process information of each media information fragment is obtained;The logical process information obtained described in execution, And media information fragment corresponding with the implementing result is parsed when implementing result meets the preparatory condition and is played.
Implementation 2, parsing package file, obtain logical process information aggregate, each media information of target medium information Data block corresponding to fragment;The logical process information aggregate is parsed, obtains the logical process letter of each media information fragment The index information of breath and each logical process information;Sequencing based on each media information fragment on a timeline, according to The header of data block, obtains the logical process of each media information fragment corresponding to secondary each media information fragment of parsing The index information of information, logical process information corresponding to the index information obtained described in execution, and described in meeting in implementing result Media information fragment corresponding with the implementing result is parsed during preparatory condition and is played.
In the present embodiment, package file resolver parsing package file, each media information of target medium information is obtained Fragment, logical process information and related information;Sequencing based on each media information fragment on a timeline, successively really The logical process information of fixed each media information fragment association simultaneously performs;Parsing and institute when implementing result meets preparatory condition State media information fragment corresponding to implementing result and play.Because package file adds logic to each section of media information fragment Processing information so that package file can meet the needs of different user;When needing to increase logic, it is only necessary to carried out in encapsulation Increase, without release process again;In this way, the workload of audio frequency and video encapsulation/parsing can be reduced, processing effect is improved Rate.
Embodiment three
The present embodiment is based on above-mentioned any embodiment, the media information method for packing provided referring to Fig. 4, the present embodiment, real Matter is a kind of embedded audio frequency and video method for packing for playing logic, including:
Step 401:Start to encapsulate;
Step 402:Write global profile head;
Step 403:Traversal analyzes all audio frequency and video materials and its configuration information;Configuration information can include:Logical process The sequencing of information and each audio frequency and video material on a timeline.The UI interfaces that configuration information can be encapsulated by media information It is defined, or is defined by script.
Step 404:Extract all logical process information being related to and numeral index;
Step 405:Write logical process information aggregate;Referring to Fig. 5 b, each logical process information, including:
A) sync key word (fixation);
B) logical process information encoding, numbered according to scanning sequency;
C) logical process information category, including:
Password authentification:Word password or graphical passwords etc.;
Authority Verification:DRM is verified or user grouping is verified etc.;
Environmental information is verified:Time, system language, system setting or geographical position etc.;
D) correction data is verified, including:
If logical process information category is password authentification, after the hash values or sha1 values, the encryption that preserve password Fingerprint or voice print database etc..
If logical process information category is authorization check, related DRM information or user right list etc. is preserved.
If logical process information category be environmental information checking, preserve corresponding to effectively the beginning and ending time, effective language, Or gps data etc..
Step 406:Handle audio frequency and video material successively according to time sequencing;N-th of material is parsed, n value is 1,2 ...;
Step 407:According to the configuration information of material, writing data blocks (Box), wherein the header comprising the data block, Header content can be determined, its form refer to Fig. 5 c, if common material, then " need according to the configuration information of the material Logical process " (need logic process) is set to 0, no counterlogic processing information, if necessary to logical process, then " need logic process " are set to 1, and logical process information index number (logic process id) is set to logical process and existed Call number in the logical process information aggregate of file beginning;
Step 408:Audio, video data in the data field of data block write-in material;
Step 409:Judge whether last material;If so, go to step 411;Otherwise, step 410 is gone to;
Step 410:Continue with next material;
Step 411:Terminate encapsulation process, obtain package file;The encapsulating structure of package file refers to Fig. 5 a-5d.
Example IV
The present embodiment is based on above-mentioned any embodiment, the package file analytic method bag provided referring to Fig. 6, the present embodiment Include:
Step 601:Start to parse;
Step 602:Read file header;
Step 603:All logical process information in positioning parsing logical process information aggregate;
Step 604:The state of each logical process information is arranged to initialized (initialized);
Step 605:Position and parse next data block;
Step 606:Judge whether to find data block;If so, go to step 607;Otherwise step 614 is gone to;
Step 607:Parse the header of the data block;
Step 608:According to the data block head information parsed, judge whether to need logical process;If so, then go to step Rapid 610, otherwise go to step 609;
Step 609:Parsing audio, video data simultaneously plays;
Step 610:Read logical process information index number;
Step 611:Corresponding logical process information in execution logic processing information set, such as:If corresponding mark Display needs logical process, then parses logical process information index number thereafter, found and patrolled according to logical process information index number Corresponding logical process information in processing information set is collected, and is performed.
If corresponding logical process information is password authentification, its state is checked, if state is initialized, Interface for password input is then ejected, waits user to input password, if Password Input is correct, the state of counterlogic processing information It is updated to by (pass), play the audio, video data in the data block.If Password Input mistake, counterlogic processing letter The state of breath is updated to failure (fail), skips the audio, video data in current data block, continues with next data block.Such as Fruit state has been pass, then directly plays the audio, video data in the data block.If state is fail, directly skips and work as Audio, video data in preceding data block, continue with next data block.
If corresponding logical process information is Authority Verification, the audio frequency and video of DRM interfaces parsing current data block are called Data, the state of successfully resolved then counterlogic processing information are updated to pass, play the audio, video data in current data block, Unsuccessfully then the state of counterlogic processing information is updated to fail, skips the audio, video data in current data block, continues with Next data block.
If corresponding logical process information is time range, judge whether current time meets in logical process information Effective time scope, meet then play current data block audio, video data, be unsatisfactory for, skip the sound in current data block Video data, continue with next data block.
If corresponding logical process information is verified for language, judge whether current system language meets that logical process is believed Speech range in breath, meet the audio, video data for then playing current data block, be unsatisfactory for, skip the sound in current data block Video data, continue with next data block.
Step 612:Whether decision logic result meets preparatory condition;Step 609 is gone to if meeting;Otherwise go to Step 613;
Step 613:Current data block is skipped, goes to and performs step 605;
Step 614:Ends file parses.
Embodiment five
Corresponding with the record of previous embodiment one, the present embodiment also records a kind of media information packaging system;Referring to figure 7, media information packaging system includes:
Determining module 701, for determining the media information fragment of target medium information, and each media information fragment Logical process information;
Relating module 702, for the sequencing based on each media information fragment on a timeline, by each matchmaker Body information segment is associated with respective logical process information successively;
Package module 703, for related information, each media information fragment and logical process information to be packaged, Obtain package file corresponding to the target medium information.
In the present embodiment, the sequencing of each media information fragment on a timeline based on target medium information, by matchmaker Body information segment is associated with logical process information, and related information, each media information fragment and logical process information are carried out Encapsulation obtains package file;Because package file adds logical process information to each section of media information fragment so that encapsulation File can meet the needs of different user;When needing to increase logic, it is only necessary to increased in encapsulation, without weight New release process;In this way, the workload of audio frequency and video encapsulation/parsing can be reduced, treatment effeciency is improved.
On the basis of above-described embodiment, the relating module 702, specifically for being existed based on each media information fragment Sequencing on time shaft handles each media information fragment successively;According to the logical process of each media information fragment Information, the header of data block corresponding to each media information fragment is determined successively, and each media information fragment is divided Not Xie Ru corresponding to data block data field;
The package module 703, will specifically for the sequencing based on each media information fragment on a timeline Data block corresponding to each media information fragment is encapsulated successively, obtains encapsulation text corresponding to the target medium information Part.
On the basis of above-described embodiment, the relating module 702, it is specifically used for:By each media information fragment Logical process information writes logical process information aggregate, and determines the index information of each logical process information;Based on each described The sequencing of media information fragment on a timeline handles each media information fragment successively;According to each media information The index information of the logical process information of fragment, the header of data block corresponding to each media information fragment is determined successively, And each media information fragment is respectively written into the data field of corresponding data block;
The package module 703, will specifically for the sequencing based on each media information fragment on a timeline Data block corresponding to the logical process information aggregate, each media information fragment is encapsulated successively, obtains the target Package file corresponding to media information.
In actual applications, determining module 701, relating module 702, package module 703 can be by sealing positioned at media information Central processing unit (CPU), microprocessor (MPU), application specific integrated circuit (ASIC) or the field programmable gate array of assembling device Etc. (FPGA) realize.
Embodiment six
The present embodiment is corresponding with above-described embodiment two, and the present embodiment provides a kind of package file resolver;Referring to figure 8, package file resolver includes:
Parsing module 801, for parsing package file, obtain each media information fragment of target medium information, at logic Manage information and related information;
Execution module 802, for the sequencing based on each media information fragment on a timeline, determine successively each The logical process information of the media information fragment association simultaneously performs, and when implementing result meets preparatory condition parsing with it is described Media information fragment corresponding to implementing result simultaneously plays.
On the basis of above-described embodiment, the parsing module 801, specifically for parsing package file, obtain at logic Manage information aggregate, target medium information each media information fragment corresponding to data block;The logical process information aggregate is parsed, Obtain the logical process information of each media information fragment and the index information of each logical process information;
The execution module 802, specifically for the sequencing based on each media information fragment on a timeline, according to The header of data block, obtains the logical process of each media information fragment corresponding to secondary each media information fragment of parsing The index information of information, logical process information corresponding to the index information obtained described in execution, and described in meeting in implementing result Media information fragment corresponding with the implementing result is parsed during preparatory condition and is played.
In the present embodiment, package file resolver parsing package file, each media information of target medium information is obtained Fragment, logical process information and related information;Sequencing based on each media information fragment on a timeline, successively really The logical process information of fixed each media information fragment association simultaneously performs;Parsing and institute when implementing result meets preparatory condition State media information fragment corresponding to implementing result and play.Because package file adds logic to each section of media information fragment Processing information so that package file can meet the needs of different user;When needing to increase logic, it is only necessary to carried out in encapsulation Increase, without release process again;In this way, the workload of audio frequency and video encapsulation/parsing can be reduced, processing effect is improved Rate.
In actual applications, parsing module 801, execution module 802 can by the CPU positioned at package file resolver, MPU, ASIC or FPGA etc. are realized.
Embodiment seven
The present embodiment records a kind of computer-readable medium, can be ROM (for example, read-only storage, FLASH memory, Transfer device etc.), magnetic storage medium (for example, tape, disc driver etc.), optical storage medium is (for example, CD-ROM, DVD- ROM, paper card, paper tape etc.) and other well-known types program storage;Computer is stored with computer-readable medium to be held Row instruction, when executing an instruction, causes at least one computing device to include following operation:
Determine the media information fragment of target medium information, and the logical process information of each media information fragment;Base In the sequencing of each media information fragment on a timeline, by each media information fragment successively with respective logic Processing information is associated, and related information, each media information fragment and logical process information are packaged, and obtains institute State package file corresponding to target medium information.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of media information method for packing, it is characterised in that methods described includes:
Determine the media information fragment of target medium information, and the logical process information of each media information fragment;
Sequencing based on each media information fragment on a timeline, by each media information fragment successively with each Logical process information be associated, and related information, each media information fragment and logical process information are packaged, Obtain package file corresponding to the target medium information.
2. according to the method for claim 1, it is characterised in that described to be based on each media information fragment on a timeline Sequencing, each media information fragment is associated with respective logical process information successively, including:
Sequencing based on each media information fragment on a timeline handles each media information fragment successively;According to The logical process information of each media information fragment, the head letter of data block corresponding to each media information fragment is determined successively Cease, and each media information fragment is respectively written into the data field of corresponding data block;
It is described by related information, each media information fragment and logical process information be packaged, obtain the target medium Package file corresponding to information, including:
Sequencing based on each media information fragment on a timeline, by data corresponding to each media information fragment Block is encapsulated successively, obtains package file corresponding to the target medium information.
3. method according to claim 1 or 2, it is characterised in that described to be based on each media information fragment in the time Sequencing on axle, each media information fragment is associated with respective logical process information successively, including:
The logical process information of each media information fragment is write into logical process information aggregate, and determines each logical process The index information of information;Sequencing based on each media information fragment on a timeline handles each media letter successively Cease fragment;According to the index information of the logical process information of each media information fragment, each media information is determined successively The header of data block corresponding to fragment, and by each media information fragment be respectively written into corresponding to data block data field;
It is described by related information, each media information fragment and logical process information be packaged, obtain the target medium Package file corresponding to information, including:Sequencing based on each media information fragment on a timeline, by the logic Data block corresponding to processing information set, each media information fragment is encapsulated successively, obtains the target medium information Corresponding package file.
4. a kind of package file analytic method, it is characterised in that methods described includes:
Package file is parsed, obtains each media information fragment, logical process information and the related information of target medium information;
Sequencing based on each media information fragment on a timeline, each media information fragment association is determined successively Logical process information and perform, and corresponding with the implementing result media of parsing are believed when implementing result meets preparatory condition Breath fragment simultaneously plays.
5. according to the method for claim 4, it is characterised in that the parsing package file, obtain target medium information Each media information fragment, logical process information and related information, including:
Parse package file, obtain logical process information aggregate, target medium information each media information fragment corresponding to data Block;The logical process information aggregate is parsed, is obtained at logical process information and each logic of each media information fragment Manage the index information of information;
The sequencing based on each media information fragment on a timeline, each media information fragment is determined successively The logical process information of association simultaneously performs, and the parsing matchmaker corresponding with the implementing result when implementing result meets preparatory condition Body information segment simultaneously plays, including:
Sequencing based on each media information fragment on a timeline, it is corresponding that each media information fragment is parsed successively Data block header, obtain the index information of the logical process information of each media information fragment, obtained described in execution Index information corresponding to logical process information, and when implementing result meets the preparatory condition parsing with the implementing result Corresponding media information fragment simultaneously plays.
6. a kind of media information packaging system, it is characterised in that described device includes:
Determining module, for determining at the media information fragment of target medium information, and the logic of each media information fragment Manage information;
Relating module, for the sequencing based on each media information fragment on a timeline, by each media information Fragment is associated with respective logical process information successively;
Package module, for related information, each media information fragment and logical process information to be packaged, obtain described Package file corresponding to target medium information.
7. device according to claim 6, it is characterised in that the relating module, specifically for based on each media The sequencing of information segment on a timeline handles each media information fragment successively;According to each media information fragment Logical process information, determine the header of data block corresponding to each media information fragment successively, and by each media Information segment is respectively written into the data field of corresponding data block;
The package module, will be each described specifically for the sequencing based on each media information fragment on a timeline Data block corresponding to media information fragment is encapsulated successively, obtains package file corresponding to the target medium information.
8. the device according to claim 6 or 7, it is characterised in that the relating module, be specifically used for:By each matchmaker The logical process information write-in logical process information aggregate of body information segment, and determine the index letter of each logical process information Breath;Sequencing based on each media information fragment on a timeline handles each media information fragment successively;According to The index information of the logical process information of each media information fragment, number corresponding to each media information fragment is determined successively According to the header of block, and by each media information fragment be respectively written into corresponding to data block data field;
The package module, specifically for the sequencing based on each media information fragment on a timeline, patrolled described Data block corresponding to volume processing information set, each media information fragment is encapsulated successively, is obtained the target medium and is believed Package file corresponding to breath.
9. a kind of package file resolver, it is characterised in that described device includes:
Parsing module, for parsing package file, obtain each media information fragment of target medium information, logical process information and Related information;
Execution module, for the sequencing based on each media information fragment on a timeline, each matchmaker is determined successively The logical process information of body information segment association simultaneously performs, and parsing performs knot with described when implementing result meets preparatory condition Media information fragment corresponding to fruit simultaneously plays.
10. device according to claim 9, it is characterised in that the parsing module, specifically for parsing package file, Obtain logical process information aggregate, target medium information each media information fragment corresponding to data block;Parse at the logic Information aggregate is managed, obtains the logical process information of each media information fragment and the index information of each logical process information;
The execution module, specifically for the sequencing based on each media information fragment on a timeline, parse successively The header of data block corresponding to each media information fragment, obtains the logical process information of each media information fragment Index information, logical process information corresponding to the index information obtained described in execution, and meet the default bar in implementing result Media information fragment corresponding with the implementing result is parsed during part and is played.
CN201610716530.5A 2016-08-24 2016-08-24 Media information packaging method and device and packaging file analysis method and device Active CN107786490B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610716530.5A CN107786490B (en) 2016-08-24 2016-08-24 Media information packaging method and device and packaging file analysis method and device
PCT/CN2017/073737 WO2018036109A1 (en) 2016-08-24 2017-02-16 Method and device for packaging media information, and method and device for parsing packaged file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610716530.5A CN107786490B (en) 2016-08-24 2016-08-24 Media information packaging method and device and packaging file analysis method and device

Publications (2)

Publication Number Publication Date
CN107786490A true CN107786490A (en) 2018-03-09
CN107786490B CN107786490B (en) 2021-08-24

Family

ID=61245474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610716530.5A Active CN107786490B (en) 2016-08-24 2016-08-24 Media information packaging method and device and packaging file analysis method and device

Country Status (2)

Country Link
CN (1) CN107786490B (en)
WO (1) WO2018036109A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516184A (en) * 2003-01-10 2004-07-28 华为技术有限公司 Processing method of multi-media data
CN101035279A (en) * 2007-05-08 2007-09-12 孟智平 Method for using the information set in the video resource
CN101335884A (en) * 2008-07-21 2008-12-31 深圳市同洲电子股份有限公司 Multimedia data acquiring method and multimedia equipment
CN101577627A (en) * 2009-06-17 2009-11-11 腾讯科技(深圳)有限公司 System and method for downloading and playing multimedia file
CN101695123A (en) * 2009-01-23 2010-04-14 李冬 Media broadcasting system and method for respectively customizing broadcast strategy for media segment
CN104080015A (en) * 2014-06-19 2014-10-01 宁波公众信息产业有限公司 Video coding method
US20140295849A1 (en) * 2013-03-29 2014-10-02 Alexander Sirotkin Handover of user equipment with non-gbr bearers

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972166B (en) * 2006-11-30 2011-05-25 中兴通讯股份有限公司 An audio stream transport method of mobile multimedia broadcast system
CN101325684B (en) * 2007-06-14 2010-10-06 中兴通讯股份有限公司 Method and system for transmitting ciphering control message based on mobile multimedia broadcast
CN101465996B (en) * 2008-12-31 2013-04-24 华为技术有限公司 Method, equipment and system for displaying network television time
CN103368960A (en) * 2013-07-09 2013-10-23 深圳市同洲电子股份有限公司 Method, related equipment and system for media information push

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516184A (en) * 2003-01-10 2004-07-28 华为技术有限公司 Processing method of multi-media data
CN101035279A (en) * 2007-05-08 2007-09-12 孟智平 Method for using the information set in the video resource
CN101335884A (en) * 2008-07-21 2008-12-31 深圳市同洲电子股份有限公司 Multimedia data acquiring method and multimedia equipment
CN101695123A (en) * 2009-01-23 2010-04-14 李冬 Media broadcasting system and method for respectively customizing broadcast strategy for media segment
CN101577627A (en) * 2009-06-17 2009-11-11 腾讯科技(深圳)有限公司 System and method for downloading and playing multimedia file
US20140295849A1 (en) * 2013-03-29 2014-10-02 Alexander Sirotkin Handover of user equipment with non-gbr bearers
CN104080015A (en) * 2014-06-19 2014-10-01 宁波公众信息产业有限公司 Video coding method

Also Published As

Publication number Publication date
WO2018036109A1 (en) 2018-03-01
CN107786490B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN103514351B (en) Method, device and system for editing multi-media file
CN103999090B (en) Improve the startup time of streaming digital media playback
US20080189546A1 (en) Method and apparatus for providing and using content allowing integrity verification
CN108985081A (en) A kind of watermark encrypting method, apparatus, medium and electronic equipment
CN113378236B (en) Evidence data online security notarization platform and security method
CN109348252A (en) Video broadcasting method, video transmission method, device, equipment and storage medium
CN106549920A (en) Log-on message input method, log-on message store method and relevant apparatus
CN104918097B (en) A kind of method for generating captions and device
CN107392623A (en) The method and device that a kind of business performs
JP2005065262A5 (en)
US20150326393A1 (en) Content individualization
CN107516045A (en) Document protection method and device
CN106548092A (en) A kind of document handling method and device
CN105791893B (en) Video file encryption and decryption method and device
CN105631361A (en) Application program channel source identification method and device
US20200151331A1 (en) Image data alteration detection device, image data alteration detection method, and data structure of image data
CN106709368A (en) Data analysis method and device
CN107786490A (en) Media information method for packing and device, package file analysis method and device
CN107318045A (en) The method and device of playing video data stream
US9953682B2 (en) Apparatus and method for providing sensory effects for vestibular rehabilitation therapy
KR101252053B1 (en) System and Method for Sharing Black Box Record Data
US20200151917A1 (en) Image reproduction device, information processing device, image reproduction method, and data structure of image data
CN110968885A (en) Model training data storage method and device, electronic equipment and storage medium
CN108322907A (en) One kind opening chucking method and terminal
CN104185032B (en) A kind of video frequency identifying method and system

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
GR01 Patent grant
GR01 Patent grant