CN102857794B - A kind of method and apparatus for being used to merge video segmentation - Google Patents
A kind of method and apparatus for being used to merge video segmentation Download PDFInfo
- Publication number
- CN102857794B CN102857794B CN201110179794.9A CN201110179794A CN102857794B CN 102857794 B CN102857794 B CN 102857794B CN 201110179794 A CN201110179794 A CN 201110179794A CN 102857794 B CN102857794 B CN 102857794B
- Authority
- CN
- China
- Prior art keywords
- video
- merging
- segmentation
- information
- data message
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
It is an object of the invention to provide a kind of method and apparatus for being used to merge video segmentation.Wherein, video merges the Video service request that equipment obtains user;Asked according to the Video service, obtain the fragmentation related information of the to be combined video segmentation corresponding with Video service request;According to the fragmentation related information, processing is merged to the video segmentation, to obtain the merging video corresponding with the video segmentation;The merging video is provided to the user.The present invention asks according to the Video service of user, video access request, video merge request etc., obtain the fragmentation related information of corresponding video segmentation, and according to these fragmentation related informations, processing is merged to video segmentation, to obtain merging video, allow users to obtain complete merging video, rather than multiple video segmentation, so as to improve the Web Video Service usage experience of user, and allow user to carry out other subsequently using processing to merging video.
Description
Technical field
The present invention relates to Web Video Service technical field, more particularly to a kind of technology for being used to merge video segmentation.
Background technology
Existing video website, because technology restriction and the network environment of user limit, for a complete video
File, such as a film, are divided into several video segmentations more, are stored in the Video Reservoir of video website.When with
When family desires access to video file, the video playback page corresponding to these video segmentations is supplied to by the server of video website
User, and pass through these video segmentations of the video player played in order of the video playback page.So as to which user can only pass through video
The page is played, downloads these video segmentations, and complete video file can not be directly obtained, therefore, these video segmentations are merged
Demand for complete video file is arisen at the historic moment.
Therefore, how to merge video segmentation and obtain complete merging video, to tackle the various videos of user's request correlation
Service, turns into one of current urgent problem.
The content of the invention
It is an object of the invention to provide a kind of method and apparatus for being used to merge video segmentation.
According to an aspect of the invention, there is provided a kind of computer implemented method for being used to merge video segmentation, its
In, this method comprises the following steps:
A obtains the Video service request of user;
B asks according to the Video service, obtains the to be combined video segmentation corresponding with Video service request
Fragmentation related information;
C merges processing, to obtain and the video segmentation according to the fragmentation related information to the video segmentation
Corresponding merging video;
D provides the merging video to the user.
According to another aspect of the present invention, a kind of equipment for being used to merge video segmentation is additionally provided, wherein, the equipment
Including:
Acquisition request device, the Video service for obtaining user are asked;
Segment information acquisition device, for being asked according to the Video service, obtain relative with Video service request
The fragmentation related information for the video segmentation to be combined answered;
Video merges device, for according to the fragmentation related information, processing being merged to the video segmentation, to obtain
Obtain the merging video corresponding with the video segmentation;
Video providing device, for the merging video to be provided to the user.
Compared with prior art, the present invention asks according to the Video service of user, and such as video access request, video merge
Request etc., the fragmentation related information of corresponding video segmentation is obtained, and according to these fragmentation related informations, video segmentation is carried out
Merging treatment, to obtain merging video so that user can obtain complete merging video, rather than multiple video segmentation, from
And the Web Video Service usage experience of user is improved, and allow user to carry out other subsequently to merging video
Reason.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the schematic diagram for being used to merge the equipment of video segmentation according to one aspect of the invention;
Fig. 2 shows the schematic diagram for being used to merge the equipment of video segmentation in accordance with a preferred embodiment of the present invention;
Fig. 3 shows the schematic diagram for being used to merge the equipment of video segmentation according to another preferred embodiment of the present invention;
Fig. 4 shows the method flow diagram for being used to merge video segmentation according to a further aspect of the present invention;
Fig. 5 shows the method flow diagram for being used to merge video segmentation in accordance with a preferred embodiment of the present invention;
Fig. 6 shows the method flow diagram for being used to merge video segmentation according to another preferred embodiment of the present invention.
Same or analogous reference represents same or analogous part in accompanying drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is the equipment schematic diagram according to one aspect of the invention, shows the equipment for merging video segmentation.Wherein,
Video, which merges equipment 1, includes acquisition request device 11, segment information acquisition device 12, video merging device 13 and video offer dress
Put 14.Specifically, acquisition request device 11 obtains the Video service request of user;Segment information acquisition device 12 regards according to described
Frequency service request, obtain the fragmentation related information of the to be combined video segmentation corresponding with Video service request;Video
Merge device 13 according to the fragmentation related information, processing is merged to the video segmentation, to obtain and the video point
The corresponding merging video of section;Video providing device 14 provides the merging video to the user.Set here, video merges
Standby 1 includes user equipment or the network equipment, wherein, the user equipment, which includes but is not limited to any one, to be handed over user
Mutual electronic product, such as computer, mobile phone, PDA, tablet personal computer, PSP, palm PC PPC etc.;The network equipment includes
But network host, single network server, multiple webserver collection or the set of computers based on cloud computing are not limited to,
This, cloud computing is one kind of Distributed Calculation, a super virtual computer being made up of the computer collection of a group loose couplings.
Those skilled in the art will be understood that above-mentioned video merges equipment, user equipment and the network equipment and is only for example, and other are existing
Or the video that is likely to occur from now on merge equipment, user equipment or the network equipment and be such as applicable to the present invention, should also be included in
Within the scope of the present invention, and it is incorporated herein by reference.
Acquisition request device 11 obtains the Video service request of user.Here, acquisition request device 11 obtains the video
The mode of service request includes but is not limited to:1) video sent by the browser intercepting and capturing user of user equipment from user equipment
Service request;2) the Video service request that user sends from user equipment is received;3) described the regarding of third party device forwarding is received
Frequency service request.Wherein, the Video service request includes any user for being applicable to present invention request related to video,
Such as video merges request, video acceleration request etc..Preferably, the Video service request includes to be combined for inquiring about
The identification information of video segmentation, the merging title of video that the identification information such as user intends obtaining, the title of video segmentation,
The reference address etc. of the reference address of video page corresponding to video segmentation to be combined, video segmentation to be combined.Ability
Field technique personnel will be understood that the mode of above-mentioned acquisition Video service request and Video service request are only for example, and other are existing
The mode of acquisition Video service request that is having or being likely to occur from now on or Video service request are such as applicable to the present invention,
It should be included within the scope of the present invention, and be incorporated herein by reference.
Any one of preferably, the Video service request includes but is not limited to, below at least:
1) video merges request;
2) video access is asked;
3) video download request;
4) video acceleration request.
Specifically, 1) user to video merge equipment 1 submit video merge request, or user via third party device to
The video merges equipment 1 and sends video merging request, and the video merges the acquisition request device 11 of equipment 1 by receiving the video
Merge request, obtain the video and merge request.2) user sends video access request via the browser of user equipment, and video closes
And the acquisition request device 11 of equipment 1 obtains the video access by intercepting and capturing and parsing the packet corresponding to the browser
Request;Or acquisition request device 11 is asked by receiving the video access that third party device forwards, and obtains the video access
Request.3) user merges the submission video download request of equipment 1 to video, or user merges via third party device to the video
Equipment 1 sends video download request, and the video merges the acquisition request device 11 of equipment 1 by receiving the video download request,
Obtain the video download request.4) user merges the submission video acceleration request of equipment 1 to video, or user sets via third party
Standby to merge the transmission video acceleration request of equipment 1 to the video, the acquisition request device 11 that the video merges equipment 1 should by receiving
Video acceleration request, obtain the video acceleration request.Those skilled in the art will be understood that above-mentioned acquisition Video service request
Mode and Video service request are only for example, the mode that other acquisition Video services that are existing or being likely to occur from now on are asked
Or Video service request is such as applicable to the present invention, should also be included within the scope of the present invention, and wrap by reference
It is contained in this.
The Video service that segment information acquisition device 12 obtains according to acquisition request device 11 is asked, and is obtained and the video
The fragmentation related information of the corresponding video segmentation to be combined of service request.Here, segment information acquisition device 12 is according to institute
Video service request is stated, the mode for obtaining the fragmentation related information of the video segmentation includes but is not limited to:Parse the video
Service request, the identification information of the video segmentation is extracted from the relevant field of Video service request, and according to described
Identification information, obtains the header information and data message of the video segmentation, or only obtains the head letter of the video segmentation
Breath;Wherein, 1) identification information includes the reference address of the video segmentation, according to the reference address, is regarded described in acquisition
The header information and data message of frequency division section, or only obtain the header information of the video segmentation;2) the identification information bag
The reference address of the video page corresponding to the video segmentation is included, according to the identification information, obtains and parses the video
The page, to obtain the reference address of the video segmentation, and according to the reference address, the head for obtaining the video segmentation is believed
Breath and data message, or only obtain the header information of the video segmentation;3) identification information includes what user's plan obtained
Merge the title of video or the title of the video segmentation, according to the identification information, Video Reservoir is searched for, to obtain
The reference address of the video page corresponding to video segmentation is stated, obtains and parses the video page, to obtain the video point
The reference address of section, and according to the reference address, the header information and data message of the video segmentation are obtained, or only obtain
Take the header information of the video segmentation.Those skilled in the art will be understood that above-mentioned according to Video service acquisition request video
The mode of the fragmentation related information of segmentation is only for example, and other are existing or what is be likely to occur from now on obtains according to Video service request
Take the mode of the fragmentation related information of video segmentation to be such as applicable to the present invention, should also be included within the scope of the present invention,
And it is incorporated herein by reference.
Video merges the fragmentation related information that device 13 obtains according to segment information acquisition device 12, to the video segmentation
Processing is merged, to obtain the merging video corresponding with the video segmentation.Here, video merges device 13 according to described
The mode that fragmentation related information merges the video segmentation includes but is not limited to:1) header information of the video segmentation is merged,
The merging header information of the merging video is generated, and according to the merging header information, by adjusting the video segmentation
Time offset value corresponding to data message, merge the data message of the video segmentation, so as to obtain the merging video;2)
The optional one merging header information as the merging video from the header information of the video segmentation, and regarded according to each
Frequency division section previous order video segmentation data message in last data cell temporal information, as timestamp and when
It is long, the temporal information of each data cell in the data message of each video segmentation is adjusted, such as timestamp, these are adjusted
Video segmentation afterwards mutually splices according to its temporal information, and with reference to the merging header information, generates the merging video.Ability
Field technique personnel will be understood that the mode of above-mentioned merging video segmentation is only for example, and other are existing or are likely to occur from now on
The mode for merging video segmentation is such as applicable to the present invention, should also be included within the scope of the present invention, and by reference
It is incorporated herein.
Video providing device 14 provides the merging video that video merging device 13 obtains to the user.Here, video
The mode that device 14 provides the merging video is provided to include but is not limited to:1) video, which merges equipment 1, includes user equipment, video
Device 14 is provided the merging video is stored in the predetermined storage location of the user equipment, or by the merging video frequency output
To other aftertreatment devices of the user equipment;2) video, which merges equipment 1, includes the network equipment, video providing device 14 according to
The host-host protocols such as the host-host protocol of agreement, HTTP, RTP, P2P, by it is described merging video send to user equipment or its
His third party device.Those skilled in the art will be understood that the mode of above-mentioned offer merging video is only for example, and other are existing
Or be likely to occur from now on offer merge video mode be such as applicable to the present invention, also should be included in the scope of the present invention with
It is interior, and be incorporated herein by reference.
Preferably, acquisition request device 11, segment information acquisition device 12, video merge device 13 and video providing device
14 constantly work.Specifically, acquisition request device 11 obtains the Video service request of user;Segment information obtains dress
Put 12 to be asked according to the Video service, obtain the segmentation of the to be combined video segmentation corresponding with Video service request
Relevant information;Video merges device 13 according to the fragmentation related information, processing is merged to the video segmentation, to obtain
The merging video corresponding with the video segmentation;Video providing device 14 provides the merging video to the user.
This, it will be understood by those skilled in the art that " lasting " refers to that acquisition request device 11, segment information acquisition device 12, video merge dress
Put 13 and video providing device 14 require to carry out Video service request according to the mode of operation of setting or real-time adjustment respectively
Acquisition, the acquisition of fragmentation related information of video segmentation, the merging of video segmentation and the offer for merging video, until video closes
And equipment 1 stops obtaining in a long time the Video service request of user.
Fig. 2 is the equipment schematic diagram according to a preferred embodiment of the invention, shows the equipment for merging video segmentation.
Wherein, video, which merges equipment 1, includes acquisition request device 21, segment information acquisition device 22, video merging device 23 and video
Device 24 is provided.Specifically, acquisition request device 21 obtains the Video service request of user;The basis of segment information acquisition device 22
The Video service request, obtains and asks the segmentation of corresponding video segmentation to be combined is related to believe to the Video service
Breath, wherein, the fragmentation related information includes the address information of the video segmentation and the header information of the video segmentation;Depending on
Frequency, which merges device 23, includes the first head acquiring unit 231, the combining unit 233 of data capture unit 232 and first, wherein, the
One head acquiring unit 231 obtains the merging header information for merging video, data capture unit according to the header information
232, according to the address information, obtain the data message of the video segmentation corresponding with the address information, first merges
Unit 233 merges the data message, to obtain the merging video according to the merging header information;Video providing device
24 provide the merging video to the user.
Wherein, acquisition request fills in acquisition request device 21 and operation performed by video providing device 24 and Fig. 1 in Fig. 2
Put 11 identical or essentially identical with the operation performed by video providing device 14, for simplicity, be incorporated herein by reference,
Repeat no more.
The Video service that segment information acquisition device 22 obtains according to acquisition request device 21 is asked, and is obtained and the video
The fragmentation related information of the corresponding video segmentation to be combined of service request, wherein, the fragmentation related information includes described
The header information of the address information of video segmentation and the video segmentation.For example, acquisition request device 21 receives the video of user
Service request;Segment information acquisition device 22 parses Video service request, obtains the reference address of corresponding each video segmentation,
And according to these reference address, asked by the RANGE in HTTP transport protocol, obtain the header information of each video segmentation.This
Art personnel will be understood that the mode of the above-mentioned fragmentation related information according to Video service acquisition request video segmentation is only
Citing, other sides of the fragmentation related information according to Video service acquisition request video segmentation that are existing or being likely to occur from now on
Formula is such as applicable to the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Preferably, segment information acquisition device 22 according to the Video service ask, inquire about Video Reservoir, with obtain with
The Video service asks corresponding video page;The video page is parsed, to obtain the address of video segmentation letter
Breath;According to the address information, the header information of the video segmentation is obtained.For example, precedent is connect, segment information acquisition device 22
The Video service request that analysis request acquisition device 21 receives, the merging that user intends obtaining is extracted from Video service request and is regarded
The title of frequency, such as Kung Fu Panda 2, and according to the title of the merging video, Video Reservoir is inquired about, obtains each of the merging video
The reference address of video page corresponding to video segmentation, such as the broadcasting page link of Kung Fu Panda 2, the video page is parsed,
The reference address of each video segmentation is obtained, according to these reference address, is asked, obtained by the RANGE in HTTP transport protocol
The header information of each video segmentation.Those skilled in the art will be understood that the mode of above-mentioned acquisition video page, obtain video point
The mode of the address information of section and the mode of the header information of acquisition video segmentation are only for example, and other are existing or from now on may be used
The mode for the acquisition video page that can occur, the mode of address information for obtaining video segmentation or the head of acquisition video segmentation
The mode of information is such as applicable to the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Video, which merges device 23, includes the first head acquiring unit 231, the combining unit of data capture unit 232 and first
233。
First head acquiring unit 231 obtains the merging head for merging video according to the header information of the video segmentation
Information.For example, the encapsulation format of header information of the first head acquiring unit 231 according to each video segmentation, such as each video segmentation
For MP4, its header information includes the index information of each video segmentation, the index information of each video segmentation is merged, such as
Video segmentation shares 5 sections, and the index information of each video segmentation corresponds to 0-200S data message respectively, then the index letter after merging
The corresponding 0-1000S of breath data message, and the merging header information of video is merged according to the index information after the merging, generation.
And for example, for the first head acquiring unit 231 according to the header information of each video segmentation, the encapsulation format of such as each video segmentation is FLV,
Its header information includes the encapsulation format information of each video segmentation, software version information etc., obtains the head of any video segmentation
Portion's information, as the merging header information for merging video.Those skilled in the art will be understood that above-mentioned acquisition merges the conjunction of video
And the mode of header information is only for example, other acquisitions that are existing or being likely to occur from now on merge the merging header information of video
Mode be such as applicable to the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Data capture unit 232 obtains corresponding with the address information according to the address information of the video segmentation
The data message of the video segmentation.For example, data capture unit 232 passes through HTTP according to the reference address of each video segmentation
RANGE requests in host-host protocol, the corresponding data of each video segmentation is obtained from the video server corresponding to each video segmentation
Information.Those skilled in the art will be understood that the mode of the data message of above-mentioned acquisition video segmentation is only for example, and other are existing
Or the mode of the data message of acquisition video segmentation that is likely to occur from now on be such as applicable to the present invention, should also be included in this hair
Within bright protection domain, and it is incorporated herein by reference.
It should be noted that performed by operation and data capture unit 232 performed by the first head acquiring unit 231
Do not have strict ordinal relation between operation, both can perform simultaneously, can also perform in a certain order.
First combining unit 233 merges the data of the video segmentation according to the merging header information of the merging video
Information, to obtain merging video.For example, the merging header information that the first head acquiring unit 231 obtains includes index information, the
The data message for each video segmentation that the merging data acquiring unit 232 of one combining unit 233 obtains, and according to the index information,
The data message of each video segmentation time offset value corresponding with the index information is adjusted, so as to obtain merging video.And for example,
What the first head acquiring unit 231 obtained merges encapsulation format information, software version information that header information includes merging video
Deng, order of first combining unit 233 according to each video segmentation that data capture unit 232 obtains corresponding to merging video, tune
Temporal information in the data message of whole each video segmentation corresponding to each data cell, such as timestamp, and by respectively regarding after adjustment
Frequency division section corresponds to the order of merging video according to it and spliced, and in conjunction with header information is merged, obtains and merges video.Ability
Field technique personnel will be understood that the mode of above-mentioned merging video segmentation is only for example, and other are existing or are likely to occur from now on
The mode for merging video segmentation is such as applicable to the present invention, should also be included within the scope of the present invention, and by reference
It is incorporated herein.
Here, it should be noted that those skilled in the art will be understood that data capture unit 232 obtains video segmentation
Data message operation and the first combining unit 233 to not having strict order between the operation of the merging treatment of video segmentation
Relation, that is, data capture unit 232 can first obtain the data message of all video segmentations to be combined, then, first closes
And unit 233 merges operation to these video segmentations again, or, data capture unit 232 is to be combined in fetching portion
While the data message of video segmentation, the first combining unit 233 corresponds to the order for merging video according to these video segmentations,
And index information corresponding to the data message of these video segmentations or temporal information merge operation, until completing all
After the union operation of the data message of video segmentation to be combined, complete merging video is obtained.
Preferably, the data message includes multiple data cells;First combining unit 233 is according to video to be combined point
The timestamp and duration of last data cell, adjust institute in the data message of the previous order video segmentation of each in section
The timestamp of each data cell in the data message of each in video segmentation is stated, with the video segmentation after being adjusted
In the data message of each;By the previous order corresponding to the data message of each video segmentation after the adjustment and its
The data message of video segmentation mutually splices, to obtain the merging data information for merging video;According to the merging of the merging video
Header information, and the merging data information, obtain and merge video.For example, each video point that data capture unit 232 obtains
The data message of section includes multiple data cells, as the data message of the video segmentation of stream media format (such as FLV) includes
Multiple data cells (tag);First combining unit 233 according to these video segmentations correspond to merge video order, according to work as
The timestamp and duration of last data cell, such as time in the data message of the previous order video segmentation of preceding video segmentation
Stab as 00:55, when a length of 5S, adjustment deserve before video segmentation data message in each data cell timestamp, such as should
The timestamp skew 60S of each data cell in the data message of preceding video segmentation, by that analogy, until by the number of each video segmentation
It is believed that the data cell adjustment in breath finishes, then the data message of each video segmentation is mutually spliced, and by spliced merging number
It is believed that breath, is combined with the merging header information that the first head acquiring unit 231 obtains, obtains and merge video.Art technology
Personnel will be understood that the mode of above-mentioned merging video segmentation is only for example, and other merging that are existing or being likely to occur from now on regard
The mode of frequency division section is such as applicable to the present invention, should also be included within the scope of the present invention, and be contained in by reference
This.
Preferably, video merges device 23 also to the data message progress pretreatment operation of the video segmentation, to obtain
The pretreated data message, for follow-up merging treatment.Then, the first combining unit 233 is according to the merging video
Merge header information, merge the pretreated data message, to obtain merging video.Here, the pretreatment operation bag
Include but be not limited to it is any be applicable to the present invention to one or more of video segmentation to be combined carry out respective handling, with
The operation of the consistent video segmentation of base attribute is obtained, adjusts code check, resolution ratio of the data message of video segmentation etc..This
Art personnel will be understood that above-mentioned pretreatment operation is only for example, other pretreatments that are existing or being likely to occur from now on
Operation is such as applicable to the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Any one of it is highly preferred that the pretreatment operation includes but is not limited to, below at least:
1) code check of the data message is adjusted;
2) resolution ratio of the data message is adjusted;
3) coded format of the data message is adjusted.
Specifically, video merges device 23 and such as code check of predetermined data message, can divided according to predetermined attribute
Resolution, coded format etc. carry out respective handling to one or more of video segmentation to be combined;Can also be according to be combined
Video segmentation in any video segmentation attribute, adjust the attribute of other video segmentations, such as can regarding according to the first order
The respective attributes of the adjustment following video segment such as the code check of frequency division section, resolution ratio, coded format, or according to video to be combined point
The code check that is accounted for the largest percentage in section, resolution ratio, coded format etc., adjust other video segmentation respective attributes;Can also basis
Merge the terminal attribute of the receiving device of video, such as the resolution ratio of the receiving device, network transmission speed, the coding lattice supported
Formula etc., respective handling is carried out to one or more of video segmentation to be combined.Those skilled in the art will be understood that above-mentioned
Pretreatment operation is only for example, and other pretreatment operations that are existing or being likely to occur from now on are such as applicable to the present invention, also should
Within the scope of the present invention, and it is incorporated herein by reference.
Fig. 3 is according to the equipment schematic diagram of another preferred embodiment of the present invention, shows the equipment for merging video segmentation.
Wherein, video, which merges equipment 1, includes acquisition request device 31, segment information acquisition device 32, video merging device 33 and video
Device 34 is provided.Specifically, acquisition request device 31 obtains the Video service request of user;Segment information acquisition device 32 includes
Acquiring unit 321 and segment information acquiring unit 322 are segmented, wherein, segmentation acquiring unit 321 please according to the Video service
Ask, obtain the video segmentation corresponding with Video service request, segment information acquiring unit 322 is according to the video point
Section, obtains the fragmentation related information, wherein, the header information of the fragmentation related information including the video segmentation and described
The data message of video segmentation;Video, which merges device 33, includes the second head acquiring unit 331 and the second combining unit 332, its
In, the second head acquiring unit 331 obtains the merging head letter for merging video according to the header information of the video segmentation
Breath, the second combining unit 332 merge the data message, obtain the merging video according to the merging header information;Video
Device 34 is provided to provide the merging video to the user.
Wherein, acquisition request fills in acquisition request device 31 and operation performed by video providing device 34 and Fig. 1 in Fig. 3
Put 11 identical or essentially identical with the operation performed by video providing device 14, for simplicity, be incorporated herein by reference,
Repeat no more.
Segment information acquisition device 32 includes segmentation acquiring unit 321 and segment information acquiring unit 322.
It is segmented acquiring unit 321 to be asked according to the Video service of user, obtains corresponding with Video service request
Video segmentation.For example, the video that segmentation acquiring unit 321 parses user merges request, corresponding video to be combined point is obtained
The reference address of section, and according to these reference address, by download tool, such as a sudden peal of thunder, Flashget, Emule download software,
Download corresponding video segmentation.Those skilled in the art will be understood that the mode of above-mentioned acquisition video segmentation is only for example, other
The mode of acquisition video segmentation that is existing or being likely to occur from now on is such as applicable to the present invention, should also be included in present invention protection
Within scope, and it is incorporated herein by reference.
Preferably, it is segmented acquiring unit 321 to be asked according to the Video service, inquires about Video Reservoir, with acquisition and institute
State Video service and ask corresponding video page;The video page is parsed, to obtain the address information;According to described
Location information, obtain the video segmentation corresponding to the video page.For example, under video of the segmentation acquiring unit 321 according to user
Request is carried, obtains the title for merging video that the user intends obtaining, and according to the title, inquire about Video Reservoir, obtain the conjunction
And the video page corresponding to video, the source code of the video page is parsed, obtains each video point corresponding to the video page
The reference address of section, by download tool, download and obtain these video segmentations.Those skilled in the art will be understood that above-mentioned obtain
The mode of video segmentation is taken to be only for example, other modes for obtaining video segmentation that are existing or being likely to occur from now on are for example applicable
In the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
The video segmentation that segment information acquiring unit 322 obtains according to segmentation acquiring unit 321, obtains the video segmentation
Fragmentation related information, wherein, the header information and the video segmentation of the fragmentation related information including the video segmentation
Data message.For example, segmentation acquiring unit 321 obtains each video segmentation to be combined;The basis of segment information acquiring unit 322
The corresponding encapsulation format of these video segmentations, parses these video segmentations, and obtains the header information and data of each video segmentation
Information.Those skilled in the art will be understood that the mode of the fragmentation related information of above-mentioned acquisition video segmentation is only for example, other
The mode of acquisition fragmentation related information that is existing or being likely to occur from now on is such as applicable to the present invention, should also be included in the present invention
Within protection domain, and it is incorporated herein by reference.
Here, it should be noted that those skilled in the art will be understood that segmentation acquiring unit 321 obtains video segmentation
Operation and the fragmentation related information that obtains video segmentation of segment information acquiring unit 322 operation between without strict suitable
Order relation, that is, segmentation acquiring unit 321 can first obtain all video segmentations to be combined, then, segment information obtains single
Member 322 obtains corresponding fragmentation related information further according to these video segmentations, or, segmentation acquiring unit 321 is in fetching portion
While video segmentation to be combined, segment information acquiring unit 322 is obtain these video segmentations obtained corresponding point
Section relevant information.
Video, which merges device 33, includes the second head acquiring unit 331 and the second combining unit 332.
The header information for the video segmentation that second head acquiring unit 331 obtains according to segment information acquiring unit 322, is obtained
The merging header information of video must be merged.Here, the second head acquiring unit 331 obtains the merging header information of merging video
Mode obtained with the first head acquiring unit 231 in Fig. 2 the merging header information for merging video mode is identical or basic phase
Together, for simplicity, it is incorporated herein, repeats no more by reference.
Second combining unit 332 merges the data of the video segmentation according to the merging header information of the merging video
Information, obtain and merge video.Here, the second combining unit 332 merges the in the mode and Fig. 2 of the data message of video segmentation
The mode that one combining unit 233 merges the data message of video segmentation is identical or essentially identical, for simplicity, by reference
It is incorporated herein, repeats no more.
Similarly, here, those skilled in the art will be understood that operation performed by segment information acquisition device 32 with regarding
Frequency has no strict ordinal relation between merging the operation performed by device 33, specifically, divides in segment information acquisition device 32
The operation that segment information acquiring unit 322 obtains the data message of video segmentation merges the second combining unit in device 33 with video
Do not have strict ordinal relation between the merging treatment operation of 332 pairs of video segmentations, that is, segment information acquiring unit 322
The data message of all video segmentations to be combined can be first obtained, then, the second combining unit 332 is again to these video segmentations
Merge operation, or, segment information acquiring unit 322 fetching portion video segmentation to be combined data message it is same
When, the second combining unit 332 corresponds to the order for merging video, and the data of these video segmentations according to these video segmentations
Index information or temporal information corresponding to information merge operation, until completing the data of all video segmentations to be combined
After the union operation of information, complete merging video is obtained.
Preferably, the data message includes multiple data cells;Second combining unit 332 is according in the video segmentation
The timestamp and duration of last data cell, are regarded described in adjustment in the data message of the previous order video segmentation of each
The timestamp of each data cell in the data message of each in frequency division section, with every in the video segmentation after being adjusted
The data message of one;By the previous order video corresponding to the data message of each video segmentation after the adjustment and its
The data message of segmentation mutually splices, to obtain the merging data information for merging video;According to the merging head of the merging video
Information, and the merging data information, obtain and merge video.For example, each video point that segment information acquiring unit 322 obtains
The data message of section includes multiple data cells, as the data message of the video segmentation of stream media format (such as FLV) includes
Multiple data cells (tag);Second combining unit 332 according to these video segmentations correspond to merge video order, according to work as
The timestamp and duration of last data cell, such as time in the data message of the previous order video segmentation of preceding video segmentation
Stab as 00:55, when a length of 5S, adjustment deserve before video segmentation data message in each data cell timestamp, such as should
The timestamp skew 60S of each data cell in the data message of preceding video segmentation, by that analogy, until by the number of each video segmentation
It is believed that the data cell adjustment in breath finishes, then the data message of each video segmentation is mutually spliced, and by spliced merging number
It is believed that breath, is combined with the merging header information that the second head acquiring unit 331 obtains, obtains and merge video.Art technology
Personnel will be understood that the mode of above-mentioned merging video segmentation is only for example, and other merging that are existing or being likely to occur from now on regard
The mode of frequency division section is such as applicable to the present invention, should also be included within the scope of the present invention, and be contained in by reference
This.
Preferably, video, which merges device 33, to carry out pretreatment operation to the data message of video segmentation, such as adjust
The code check of the whole data message, resolution ratio, coded format etc., to obtain pretreated data message, at follow-up merging
Reason.Then, the second combining unit 322 merges the pretreated data according to the merging header information of the merging video
Information, to obtain merging video.Here, the pretreatment operation that video merges performed by device 33 merges device with video in Fig. 2
Pretreatment operation performed by 23 is identical, for simplicity, is incorporated herein, repeats no more by reference.
Fig. 4 is the method flow diagram according to another aspect of the invention, is shown computer implemented for merging video point
The process of section.Here, the computer automatically, can largely be counted at high speed including any according to the program being previously stored
Value calculates and the modernization intelligent electronic device of various information processings, and its hardware includes microprocessor, FPGA, DSP, embedded to set
It is standby etc..
Specifically, in step S41, video merges the Video service request that equipment 1 obtains user;In step S42, depending on
Frequency merges equipment 1 asks according to the Video service, obtains the to be combined video corresponding with Video service request point
The fragmentation related information of section;In step S43, video merges equipment 1 according to the fragmentation related information, to the video segmentation
Processing is merged, to obtain the merging video corresponding with the video segmentation;In step S44, video merges equipment 1 will
The merging video is provided to the user.Here, video, which merges equipment 1, includes user equipment or the network equipment, wherein, it is described
User equipment includes but is not limited to any electronic product that can be interacted with user, such as computer, mobile phone, PDA, flat
Plate computer, PSP, palm PC PPC etc.;The network equipment includes but is not limited to network host, single network server, multiple
Webserver collection or the set of computers based on cloud computing, here, cloud computing is one kind of Distributed Calculation, it is loose by a group
One super virtual computer of the computer collection composition of coupling.Those skilled in the art will be understood that above-mentioned video merges and set
Standby, user equipment and the network equipment are only for example, and other videos that are existing or being likely to occur from now on merge equipment, Yong Hushe
The standby or network equipment is such as applicable to the present invention, should also be included within the scope of the present invention, and be contained in by reference
This.
In step S41, video merges the Video service request that equipment 1 obtains user.Obtained here, video merges equipment 1
The mode of the Video service request is taken to include but is not limited to:1) user is intercepted and captured from user equipment by the browser of user equipment
The Video service request of transmission;2) the Video service request that user sends from user equipment is received;3) third party device is received to turn
The Video service request of hair.Wherein, the Video service request includes any user for being applicable to the present invention and video
Related request, such as video merge request, video acceleration request etc..Preferably, the Video service request includes being used for
The identification information of video segmentation to be combined is inquired about, the title for the merging video that the identification information such as user intends obtaining, is regarded
The visit of the reference address, video segmentation to be combined of video page corresponding to the title of frequency division section, video segmentation to be combined
Ask address etc..Those skilled in the art will be understood that the mode of above-mentioned acquisition Video service request and Video service are asked only
The mode or Video service request asked for citing, other acquisition Video services that are existing or being likely to occur from now on can such as fit
For the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Any one of preferably, the Video service request includes but is not limited to, below at least:
1) video merges request;
2) video access is asked;
3) video download request;
4) video acceleration request.
Specifically, 1) user to video merge equipment 1 submit video merge request, or user via third party device to
The video merges equipment 1 and sends video merging request, and the video merges equipment 1 and merges request by receiving the video, and acquisition should
Video merges request.2) user sends video access request via the browser of user equipment, and video merges equipment 1 and passes through intercepting and capturing
And the packet corresponding to the browser is parsed, obtain video access request;Or video merges equipment 1 by receiving the
The video access request of tripartite's device forwards, obtains video access request.3) user merges the submission video of equipment 1 to video
Download request, or user merge equipment 1 to the video via third party device and send video download request, and the video, which merges, to be set
Standby 1, by receiving the video download request, obtains the video download request.4) user merges the submission video of equipment 1 to video and added
Speed request, or user merge equipment 1 to the video via third party device and send video acceleration request, and the video merges equipment
1, by receiving the video acceleration request, obtains the video acceleration request.Those skilled in the art will be understood that above-mentioned acquisition regards
Mode and the Video service request of frequency service request are only for example, other acquisition video clothes that are existing or being likely to occur from now on
The mode of request of being engaged in or Video service request are such as applicable to the present invention, should also be included within the scope of the present invention, and
It is incorporated herein by reference.
In step S42, video, which merges the Video service that equipment 1 obtains according to it in step S41, asks, acquisition and institute
State the fragmentation related information that Video service asks corresponding video segmentation to be combined.Here, video merges equipment 1 according to institute
Video service request is stated, the mode for obtaining the fragmentation related information of the video segmentation includes but is not limited to:Parse the video
Service request, the identification information of the video segmentation is extracted from the relevant field of Video service request, and according to described
Identification information, obtains the header information and data message of the video segmentation, or only obtains the head letter of the video segmentation
Breath;Wherein, 1) identification information includes the reference address of the video segmentation, according to the reference address, is regarded described in acquisition
The header information and data message of frequency division section, or only obtain the header information of the video segmentation;2) the identification information bag
The reference address of the video page corresponding to the video segmentation is included, according to the identification information, obtains and parses the video
The page, to obtain the reference address of the video segmentation, and according to the reference address, the head for obtaining the video segmentation is believed
Breath and data message, or only obtain the header information of the video segmentation;3) identification information includes what user's plan obtained
Merge the title of video or the title of the video segmentation, according to the identification information, Video Reservoir is searched for, to obtain
The reference address of the video page corresponding to video segmentation is stated, obtains and parses the video page, to obtain the video point
The reference address of section, and according to the reference address, the header information and data message of the video segmentation are obtained, or only obtain
Take the header information of the video segmentation.Those skilled in the art will be understood that above-mentioned according to Video service acquisition request video
The mode of the fragmentation related information of segmentation is only for example, and other are existing or what is be likely to occur from now on obtains according to Video service request
Take the mode of the fragmentation related information of video segmentation to be such as applicable to the present invention, should also be included within the scope of the present invention,
And it is incorporated herein by reference.
In step S43, video merges the fragmentation related information that equipment 1 obtains according to it in step S42, is regarded to described
Frequency division section merges processing, to obtain the merging video corresponding with the video segmentation.Here, video merges equipment 1
The mode for merging the video segmentation according to the fragmentation related information includes but is not limited to:1) head of the video segmentation is merged
Information, the merging header information for merging video is generated, and according to the merging header information, by adjusting the video point
Time offset value corresponding to the data message of section, merge the data message of the video segmentation, regarded so as to obtain the merging
Frequently;2) the optional one merging header information as the merging video from the header information of the video segmentation, and according to
The temporal information of last data cell, such as timestamp in the data message of the previous order video segmentation of each video segmentation
And duration, adjust the temporal information of each data cell in the data message of each video segmentation, such as timestamp, by these
Video segmentation after adjustment mutually splices according to its temporal information, and with reference to the merging header information, generates the merging video.
Those skilled in the art will be understood that the mode of above-mentioned merging video segmentation is only for example, and other are existing or may go out from now on
The mode of existing merging video segmentation is such as applicable to the present invention, should also be included within the scope of the present invention, and to quote
Mode is incorporated herein.
In step S44, video merges equipment 1 and provides the merging video that it is obtained in step S43 to the user.
Here, the mode that video merging equipment 1 provides the merging video includes but is not limited to:1) video, which merges equipment 1, includes user
Equipment, the video merge equipment 1 and the merging video are stored in into the predetermined storage location of the user equipment, or by the conjunction
And video frequency output is to other aftertreatment devices of the user equipment;2) video, which merges equipment 1, includes the network equipment, and the video closes
And equipment 1 sends the merging video to user according to host-host protocols such as the host-host protocol of agreement, HTTP, RTP, P2P
Equipment or other third party devices.Those skilled in the art will be understood that the mode of above-mentioned offer merging video is only for example,
The mode that other offers that are existing or being likely to occur from now on merge video is such as applicable to the present invention, should also be included in the present invention
Within protection domain, and it is incorporated herein by reference.
Preferably, it is constant work in step S41, step S42, step S43 and step S44 that video, which merges equipment 1,
Make.Specifically, in step S41, video merges the Video service request that equipment 1 obtains user;In step S42, video
Merge equipment 1 to be asked according to the Video service, obtain the to be combined video segmentation corresponding with Video service request
Fragmentation related information;In step S43, video merges equipment 1 according to the fragmentation related information, and the video segmentation is entered
Row merging treatment, to obtain the merging video corresponding with the video segmentation;In step S44, video merges equipment 1 by institute
Merging video is stated to provide to the user.Here, it will be understood by those skilled in the art that " lasting " refers to that video merges equipment 1 in step
Mode of operation requirement in rapid S41, step S42, step S43 and step S44 respectively according to setting or real-time adjustment is regarded
The acquisition of frequency service request, the acquisition of the fragmentation related information of video segmentation, the merging of video segmentation and merge video and carry
For until video merges the Video service request that equipment 1 stops obtaining in a long time user.
Fig. 5 is the method flow diagram according to a preferred embodiment of the invention, shows the process for merging video segmentation.Specifically
Ground, in step s 51, video merge the Video service request that equipment 1 obtains user;In step S52, video merges equipment 1
Asked according to the Video service, obtain and ask the segmentation of corresponding video segmentation to be combined related to the Video service
Information, wherein, the fragmentation related information includes the address information of the video segmentation and the header information of the video segmentation;
In step S531, video merges equipment 1 according to the header information, obtains the merging header information for merging video;
In step S532, video merges equipment 1 according to the address information, obtains the video corresponding with the address information point
The data message of section;In step S533, video merges equipment 1 according to the merging header information, merges the data message,
To obtain the merging video;In step S54, video merges equipment 1 and provides the merging video to the user.
Wherein, video merging equipment 1 merges in the operation performed by step S51 and step S54 with video in Fig. 4 in Fig. 5
Equipment 1 is identical or essentially identical in the operation performed by step S41 and step S44, for simplicity, is contained in by reference
This, repeats no more.
In step S52, video, which merges the Video service that equipment 1 obtains in step s 51 according to it, asks, acquisition and institute
The fragmentation related information that Video service asks corresponding video segmentation to be combined is stated, wherein, the fragmentation related information bag
Include the address information of the video segmentation and the header information of the video segmentation.For example, in step s 51, video, which merges, to be set
Standby 1 receives the Video service request of user;In step S52, video merges equipment 1 and parses Video service request, obtains phase
The reference address for each video segmentation answered, and according to these reference address, asked, obtained by the RANGE in HTTP transport protocol
Take the header information of each video segmentation.Those skilled in the art will be understood that above-mentioned according to Video service acquisition request video point
The mode of fragmentation related information of section is only for example, other it is existing or be likely to occur from now on according to Video service acquisition request
The mode of the fragmentation related information of video segmentation is such as applicable to the present invention, should also be included within the scope of the present invention, and
It is incorporated herein by reference.
Preferably, in step S52, video merges equipment 1 asks according to the Video service, inquires about Video Reservoir,
To obtain the video page corresponding with Video service request;The video page is parsed, to obtain the video segmentation
Address information;According to the address information, the header information of the video segmentation is obtained.For example, precedent is connect, in step S52
In, video merges equipment 1 and parses its Video service request received in step s 51, extracts and uses from Video service request
The title of the merging video obtained is intended at family, such as Kung Fu Panda 2, and according to the title of the merging video, inquires about Video Reservoir, obtains
The reference address of the video page corresponding to each video segmentation of the merging video is obtained, such as the broadcasting page link of Kung Fu Panda 2,
The video page is parsed, obtains the reference address of each video segmentation, according to these reference address, by HTTP transport protocol
RANGE is asked, and obtains the header information of each video segmentation.Those skilled in the art will be understood that above-mentioned acquisition video page
The mode of the header information of mode, the mode of the address information of acquisition video segmentation and acquisition video segmentation is only for example, its
His existing or the acquisition video page that is likely to occur from now on mode, obtain video segmentation address information mode or obtain
Take the mode of the header information of video segmentation to be such as applicable to the present invention, should also be included within the scope of the present invention, and with
Way of reference is incorporated herein.
In step S531, video merges header information of the equipment 1 according to the video segmentation, obtains the conjunction for merging video
And header information.For example, video merges the encapsulation format of header information of the equipment 1 according to each video segmentation, such as each video segmentation
For MP4, its header information includes the index information of each video segmentation, the index information of each video segmentation is merged, such as
Video segmentation shares 5 sections, and the index information of each video segmentation corresponds to 0-200S data message respectively, then the index letter after merging
The corresponding 0-1000S of breath data message, and the merging header information of video is merged according to the index information after the merging, generation.
And for example, video merges equipment 1 according to the header information of each video segmentation, and the encapsulation format of such as each video segmentation is FLV, its head
Information includes the encapsulation format information of each video segmentation, software version information etc., obtains the header information of any video segmentation,
As the merging header information for merging video.Those skilled in the art will be understood that above-mentioned acquisition merges the merging head of video
The mode of information is only for example, and other acquisitions that are existing or being likely to occur from now on merge the mode of the merging header information of video
The present invention is such as applicable to, should be also included within the scope of the present invention, and be incorporated herein by reference.
In step S532, video merges address information of the equipment 1 according to the video segmentation, obtains and believes with the address
The data message of the video segmentation corresponding to manner of breathing.For example, video merges reference address of the equipment 1 according to each video segmentation,
Asked by the RANGE in HTTP transport protocol, each video segmentation is obtained from the video server corresponding to each video segmentation
Corresponding data information.Those skilled in the art will be understood that the mode of the data message of above-mentioned acquisition video segmentation is only for example,
Other modes of the data message of acquisition video segmentation that are existing or being likely to occur from now on are such as applicable to the present invention, should also wrap
It is contained within the scope of the present invention, and is incorporated herein by reference.
It should be noted that video merge equipment 1 the operation performed by step S531 and its performed by step S532
Operation between do not have strict ordinal relation, both can perform simultaneously, can also perform in a certain order.
In step S533, video merges merging header information of the equipment 1 according to the merging video, merges the video
The data message of segmentation, to obtain merging video.For example, in step S531, video merges the merging head letter that equipment 1 obtains
Breath includes index information;In step S533, video merges equipment 1 and merges its each video segmentation obtained in step S532
Data message, and according to the index information, adjust each video segmentation data message it is corresponding with the index information time it is inclined
Shifting value, so as to obtain merging video.And for example, in step S531, video merges the merging header information that equipment 1 obtains and includes closing
And the encapsulation format information of video, software version information etc., in step S533, video merges equipment 1 according to it in step
Each video segmentation obtained in S532 corresponds to the order for merging video, adjusts each data sheet in the data message of each video segmentation
Temporal information corresponding to member, such as timestamp, and each video segmentation after adjustment is corresponded to the order for merging video according to it
Spliced, in conjunction with header information is merged, obtain and merge video.Those skilled in the art will be understood that above-mentioned merging video
The mode of segmentation is only for example, and other modes of merging video segmentation that are existing or being likely to occur from now on are such as applicable to this hair
It is bright, it should also be included within the scope of the present invention, and be incorporated herein by reference.
Here, it should be noted that those skilled in the art will be understood that video merges equipment 1 and obtained in step S532
The operation of the data message of video segmentation and its step S533 between the operation of the merging treatment of video segmentation without strict
Ordinal relation, that is, video, which merges equipment 1, can first obtain the data messages of all video segmentations to be combined, Ran Houzai
These video segmentations are merged with operation, or video merges data of the equipment 1 in fetching portion video segmentation to be combined
While information, the order for merging video, and the data message institute of these video segmentations are corresponded to according to these video segmentations
Corresponding index information or temporal information merge operation, until complete the data message of all video segmentations to be combined
After union operation, complete merging video is obtained.
Preferably, the data message includes multiple data cells;In step S533, video merges equipment 1 according to treating
The timestamp of last data cell in the data message of the previous order video segmentation of each in the video segmentation of merging
And duration, the timestamp of each data cell in the data message of each in the video segmentation is adjusted, after being adjusted
The video segmentation in the data message of each;By the data message of each video segmentation after the adjustment and its institute
The data message of corresponding previous order video segmentation mutually splices, to obtain the merging data information for merging video;According to described
Merge the merging header information of video, and the merging data information, obtain and merge video.Obtained for example, video merges equipment 1
The data message of each video segmentation taken includes multiple data cells, such as the number of the video segmentation of stream media format (such as FLV)
It is believed that breath includes multiple data cells (tag);Video merges equipment 1 and corresponds to the suitable of merging video according to these video segmentations
Sequence, according to current video be segmented previous order video be segmented data message in last data cell timestamp and when
It is long, if timestamp is 00:55, when a length of 5S, adjustment deserve before video segmentation data message in each data cell timestamp,
Before such as deserving in the data message of video segmentation each data cell timestamp skew 60S, by that analogy, until by each video
Data cell adjustment in the data message of segmentation is finished, then the data message of each video segmentation is mutually spliced, and by after splicing
Merging data information, be combined with the merging header information that it is obtained in step S531, obtain merge video.This area skill
Art personnel will be understood that the mode of above-mentioned merging video segmentation is only for example, other merging that are existing or being likely to occur from now on
The mode of video segmentation is such as applicable to the present invention, should also be included within the scope of the present invention, and include by reference
In this.
Preferably, video merges equipment 1 also to the data message progress pretreatment operation of the video segmentation, pre- to obtain
The data message after processing, for follow-up merging treatment.Then, video merges merging of the equipment 1 according to the merging video
Header information, merge the pretreated data message, to obtain merging video.Here, the pretreatment operation include but
Be not limited to it is any be applicable to the present invention to one or more of video segmentation to be combined carry out respective handling, with obtain
The operation of the consistent video segmentation of base attribute, adjust code check, resolution ratio of the data message of video segmentation etc..This area
Technical staff will be understood that above-mentioned pretreatment operation is only for example, other pretreatment operations that are existing or being likely to occur from now on
The present invention is such as applicable to, should be also included within the scope of the present invention, and be incorporated herein by reference.
Any one of it is highly preferred that the pretreatment operation includes but is not limited to, below at least:
1) code check of the data message is adjusted;
2) resolution ratio of the data message is adjusted;
3) coded format of the data message is adjusted.
Specifically, video merges equipment 1 and such as code check of predetermined data message, can divided according to predetermined attribute
Resolution, coded format etc. carry out respective handling to one or more of video segmentation to be combined;Can also be according to be combined
Video segmentation in any video segmentation attribute, adjust the attribute of other video segmentations, such as can regarding according to the first order
The respective attributes of the adjustment following video segment such as the code check of frequency division section, resolution ratio, coded format, or according to video to be combined point
The code check that is accounted for the largest percentage in section, resolution ratio, coded format etc., adjust other video segmentation respective attributes;Can also basis
Merge the terminal attribute of the receiving device of video, such as the resolution ratio of the receiving device, network transmission speed, the coding lattice supported
Formula etc., respective handling is carried out to one or more of video segmentation to be combined.Those skilled in the art will be understood that above-mentioned
Pretreatment operation is only for example, and other pretreatment operations that are existing or being likely to occur from now on are such as applicable to the present invention, also should
Within the scope of the present invention, and it is incorporated herein by reference.
Fig. 6 is according to the method flow diagram of another preferred embodiment of the present invention, shows the process for merging video segmentation.Specifically
Ground, in step S61, video merges the Video service request that equipment 1 obtains user;In step S621, video merges equipment 1
Asked according to the Video service, obtain the video segmentation corresponding with Video service request;In step S622, video
Merge equipment 1 according to the video segmentation, obtain the fragmentation related information, wherein, the fragmentation related information includes described
The data message of the header information of video segmentation and the video segmentation;In step S631, video merges equipment 1 according to described
The header information of video segmentation, obtain the merging header information for merging video;In step S632, video merges equipment 1
According to the merging header information, merge the data message, obtain the merging video;Video providing device 34 is by the conjunction
And video is provided to the user.
Wherein, video merging equipment 1 merges in the operation performed by step S61 and step S64 with video in Fig. 4 in Fig. 6
Equipment 1 is identical or essentially identical in the operation performed by step S41 and step S44, for simplicity, is contained in by reference
This, repeats no more.
In step S621, video merges equipment 1 asks according to the Video service of user, and obtaining please with the Video service
Seek corresponding video segmentation.For example, video merges the video merging request that equipment 1 parses user, obtain corresponding to be combined
Video segmentation reference address, and according to these reference address, pass through download tool, such as a sudden peal of thunder, Flashget, Emule
Software is downloaded, downloads corresponding video segmentation.Those skilled in the art will be understood that the mode of above-mentioned acquisition video segmentation is only
Citing, other modes of acquisition video segmentation that are existing or being likely to occur from now on are such as applicable to the present invention, should be also included in
Within the scope of the present invention, and it is incorporated herein by reference.
Preferably, in step S621, video merges equipment 1 asks according to the Video service, inquires about Video Reservoir,
To obtain the video page corresponding with Video service request;The video page is parsed, to obtain the address information;
According to the address information, the video segmentation corresponding to the video page is obtained.For example, video merges equipment 1 according to user
Video download request, obtain the title of merging video that the user intends obtaining, and according to the title, inquire about Video Reservoir,
The video page corresponding to the merging video is obtained, the source code of the video page is parsed, obtains corresponding to the video page
The reference address of each video segmentation, by download tool, download and obtain these video segmentations.Those skilled in the art should be able to manage
Solution, the mode of above-mentioned acquisition video segmentation are only for example, other sides for obtaining video segmentation that are existing or being likely to occur from now on
Formula is such as applicable to the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
In step S622, video merges the video segmentation that equipment 1 obtains according to it in step S621, is regarded described in acquisition
The fragmentation related information of frequency division section, wherein, the header information of the fragmentation related information including the video segmentation and described regard
The data message of frequency division section.For example, in step S621, video merges equipment 1 and obtains each video segmentation to be combined;In step
In S622, video merges corresponding encapsulation format of the equipment 1 according to these video segmentations, parses these video segmentations, and obtains each
The header information and data message of video segmentation.Those skilled in the art will be understood that the segmentation phase of above-mentioned acquisition video segmentation
The mode for closing information is only for example, and other modes for obtaining fragmentation related information that are existing or being likely to occur from now on are for example applicable
In the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Here, it should be noted that those skilled in the art will be understood that video merges equipment 1 and obtained in step S621
The operation of video segmentation and its obtained in step S622 between the operation of the fragmentation related information of video segmentation without strict
Ordinal relation, that is, video, which merges equipment 1, can first obtain all video segmentations to be combined, then further according to these videos
Segmentation, corresponding fragmentation related information is obtained, or video merges equipment 1 in the same of fetching portion video segmentation to be combined
When, obtain the corresponding segment relevant informations of these video segmentations obtained.
In step S631, video merges header information of the equipment 1 according to its video segmentation obtained in step S622,
Obtain the merging header information for merging video.Here, video merges the mode that equipment 1 obtains the merging header information for merging video
It is identical or essentially identical to merge the mode for the merging header information that equipment 1 obtains merging video with video in Fig. 2, is risen to be concise
See, be incorporated herein by reference, repeat no more.
In step S632, video merges merging header information of the equipment 1 according to the merging video, merges the video
The data message of segmentation, obtain and merge video.Here, video merge equipment 1 merge video segmentation data message mode with
The mode for the data message that video merging equipment 1 merges video segmentation is identical or essentially identical in Fig. 2, for simplicity, to draw
It is incorporated herein, is repeated no more with mode.
Similarly, here, those skilled in the art will be understood that video merges equipment 1 and obtains video point in step S622
The operation of the data message of section and its in step S632 to not having strict order between the operation of the merging treatment of video segmentation
Relation, that is, video merges the data message that equipment 1 can first obtain all video segmentations to be combined, then again to these
Video segmentation merges operation, or video merges data message of the equipment 1 in fetching portion video segmentation to be combined
Meanwhile correspond to the order for merging video according to these video segmentations, and corresponding to the data message of these video segmentations
Index information or temporal information merge operation, until completing the merging behaviour of the data message of all video segmentations to be combined
After work, complete merging video is obtained.
Preferably, the data message includes multiple data cells;In step S632, video merges equipment 1 according to institute
State each in video segmentation previous order video segmentation data message in last data cell timestamp and when
It is long, the timestamp of each data cell in the data message of each in the video segmentation is adjusted, with the institute after being adjusted
State the data message of each in video segmentation;By corresponding to the data message of each video segmentation after the adjustment and its
Previous order video segmentation data message mutually splice, with obtain merge video merging data information;According to the merging
The merging header information of video, and the merging data information, obtain and merge video.For example, video merges what equipment 1 obtained
The data message of each video segmentation includes multiple data cells, such as the data letter of the video segmentation of stream media format (such as FLV)
Breath includes multiple data cells (tag);Video merges equipment 1 and corresponds to the order for merging video according to these video segmentations,
The timestamp and duration of last data cell in the data message that the previous order video being segmented according to current video is segmented,
If timestamp is 00:55, when a length of 5S, adjustment deserve before video segmentation data message in each data cell timestamp, such as
The timestamp of each data cell offsets 60S in the data message of video segmentation before deserving, by that analogy, until each video is divided
Data cell adjustment in the data message of section is finished, then the data message of each video segmentation is mutually spliced, and will be spliced
Merging data information, it is combined with the merging header information that it is obtained in step S631, obtains and merge video.Art technology
Personnel will be understood that the mode of above-mentioned merging video segmentation is only for example, and other merging that are existing or being likely to occur from now on regard
The mode of frequency division section is such as applicable to the present invention, should also be included within the scope of the present invention, and be contained in by reference
This.
Preferably, video, which merges equipment 1, to carry out pretreatment operation to the data message of video segmentation, such as adjust
The code check of the data message, resolution ratio, coded format etc., to obtain pretreated data message, for follow-up merging treatment.
Then, video merges merging header information of the equipment 1 according to the merging video, merges the pretreated data message,
Merge video to obtain.Here, performed by the pretreatment operation that video merges performed by equipment 1 with video in Fig. 2 merges equipment 1
Pretreatment operation it is identical, for simplicity, be incorporated herein, repeat no more by reference.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as to the involved claim of limitation.This
Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in system claims is multiple
Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table
Show title, and be not offered as any specific order.
Claims (20)
1. a kind of computer implemented method for being used to merge video segmentation, wherein, this method comprises the following steps:
A obtains the Video service request of user;
B asks according to the Video service, obtains point of the to be combined video segmentation corresponding with Video service request
Section relevant information, wherein, header information and the video segmentation of the fragmentation related information including the video segmentation
One of data message and address information, wherein, the address information is used for the header information and/or number for obtaining corresponding video segmentation
It is believed that breath;
C merges processing according to the fragmentation related information to the video segmentation, relative with the video segmentation to obtain
The merging video answered;
Wherein, according to the header information, the merging header information for merging video is obtained;
According to the merging header information and the merging to the data message, the merging video is obtained;
D provides the merging video to the user.
2. according to the method for claim 1, wherein, the step b also includes:
- asked according to the Video service, the fragmentation related information is obtained, wherein, the fragmentation related information includes described
The header information of the address information of video segmentation and the video segmentation;
Wherein, the step c also includes:
C11 obtains the merging header information for merging video according to the header information;
C12 is according to the address information, the data message of the acquisition video segmentation corresponding with the address information;
C13 merges the data message, to obtain the merging video according to the merging header information.
3. according to the method for claim 2, wherein, the step b also includes:
- asked according to the Video service, Video Reservoir is inquired about, to obtain the video corresponding with Video service request
The page;
- parsing the video page, to obtain the address information;
- according to the address information, obtain the header information.
4. according to the method in claim 2 or 3, wherein, the data message includes multiple data cells;
Wherein, the step c13 also includes:
Last data cell in the-data message being segmented according to the previous order video of each in the video segmentation
Timestamp and duration, the timestamp of each data cell in the data message of each in the video segmentation is adjusted, to obtain
The data message of each in the video segmentation after adjustment;
- the data for being segmented the previous order video corresponding to the data message of each video segmentation after the adjustment and its
Information is mutually spliced, to obtain the merging data information of the merging video;
- according to the merging header information, and the merging data information, obtain the merging video.
5. according to the method for claim 1, wherein, the step b also includes:
B1 asks according to the Video service, obtains the video segmentation corresponding with Video service request;
B2 obtains the fragmentation related information according to the video segmentation, wherein, the fragmentation related information includes the video
The data message of the header information of segmentation and the video segmentation;
Wherein, the step c also includes:
C21 obtains the merging header information for merging video according to the header information of the video segmentation;
C22 merges the data message, obtains the merging video according to the merging header information.
6. according to the method for claim 5, wherein, the step b1 also includes:
- asked according to the Video service, Video Reservoir is inquired about, to obtain the video corresponding with Video service request
The page;
- parsing the video page, to obtain the address information of the video segmentation;
- according to the address information, obtain the video segmentation.
7. the method according to claim 5 or 6, wherein, the data message includes multiple data cells;
Wherein, the step c22 also includes:
Last data cell in the-data message being segmented according to the previous order video of each in the video segmentation
Timestamp and duration, the timestamp of each data cell in the data message of each in the video segmentation is adjusted, to obtain
The data message of each in the video segmentation after adjustment;
- the data for being segmented the previous order video corresponding to the data message of each video segmentation after the adjustment and its
Information is mutually spliced, to obtain the merging data information of the merging video;
- according to the merging header information, and the merging data information, obtain the merging video.
8. the method according to claim 2 or 5, wherein, the step c also includes:
- pretreatment operation is carried out to the data message, to obtain the pretreated data message, at follow-up merging
Reason.
9. according to the method for claim 8, wherein, the pretreatment operation includes following at least any one:
The code check of-adjustment the data message;
The resolution ratio of-adjustment the data message;
The coded format of-adjustment the data message.
10. according to the method for claim 1, wherein, the Video service request includes following at least any one:
- video merges request;
- video access is asked;
- video download request;
- video acceleration request.
11. a kind of equipment for being used to merge video segmentation, wherein, the equipment includes:
Acquisition request device, the Video service for obtaining user are asked;
Segment information acquisition device, for being asked according to the Video service, obtain corresponding with Video service request
The fragmentation related information of video segmentation to be combined, wherein, the head that the fragmentation related information includes the video segmentation is believed
One of breath and the data message of the video segmentation and address information, wherein, the address information is used to obtain corresponding video
The header information and/or data message of segmentation;
Video merges device, for according to the fragmentation related information, processing to be merged to the video segmentation, to obtain and
The corresponding merging video of the video segmentation;
Wherein, according to the header information, the merging header information for merging video is obtained;
According to the merging header information and the merging to the data message, the merging video is obtained;
Video providing device, for the merging video to be provided to the user.
12. equipment according to claim 11, wherein, the segment information acquisition device is additionally operable to:
- asked according to the Video service, the fragmentation related information is obtained, wherein, the fragmentation related information includes described
The header information of the address information of video segmentation and the video segmentation;
Wherein, the video merges device and included:
First head acquiring unit, for according to the header information, obtaining the merging header information for merging video;
Data capture unit, for according to the address information, obtaining the video segmentation corresponding with the address information
Data message;
First combining unit, for according to the merging header information, merging the data message, being regarded with obtaining the merging
Frequently.
13. equipment according to claim 12, wherein, the segment information acquisition device is additionally operable to:
- asked according to the Video service, Video Reservoir is inquired about, to obtain the video corresponding with Video service request
The page;
- parsing the video page, to obtain the address information;
- according to the address information, obtain the header information.
14. the equipment according to claim 12 or 13, wherein, the data message includes multiple data cells;
Wherein, first combining unit is additionally operable to:
Last data cell in the-data message being segmented according to the previous order video of each in the video segmentation
Timestamp and duration, the timestamp of each data cell in the data message of each in the video segmentation is adjusted, to obtain
The data message of each in the video segmentation after adjustment;
- the data for being segmented the previous order video corresponding to the data message of each video segmentation after the adjustment and its
Information is mutually spliced, to obtain the merging data information of the merging video;
- according to the merging header information, and the merging data information, obtain the merging video.
15. equipment according to claim 11, wherein, the segment information acquisition device also includes:
Acquiring unit is segmented, for being asked according to the Video service, obtains the video corresponding with Video service request
Segmentation;
Segment information acquiring unit, for according to the video segmentation, obtaining the fragmentation related information, wherein, the segmentation
Relevant information includes the header information of the video segmentation and the data message of the video segmentation;
Wherein, the video merges device and included:
Second head acquiring unit, for the header information according to the video segmentation, obtain the merging head for merging video
Portion's information;
Second combining unit, for according to the merging header information, merging the data message, obtaining the merging video.
16. equipment according to claim 15, wherein, segmentation acquiring unit is additionally operable to:
- asked according to the Video service, Video Reservoir is inquired about, to obtain the video corresponding with Video service request
The page;
- parsing the video page, to obtain the address information of the video segmentation;
- according to the address information, obtain the video segmentation.
17. the equipment according to claim 15 or 16, wherein, the data message includes multiple data cells;
Wherein, second combining unit is additionally operable to:
Last data cell in the-data message being segmented according to the previous order video of each in the video segmentation
Timestamp and duration, the timestamp of each data cell in the data message of each in the video segmentation is adjusted, to obtain
The data message of each in the video segmentation after adjustment;
- the data for being segmented the previous order video corresponding to the data message of each video segmentation after the adjustment and its
Information is mutually spliced, to obtain the merging data information of the merging video;
- according to the merging header information, and the merging data information, obtain the merging video.
18. the equipment according to claim 12 or 15, wherein, the video merges device and is additionally operable to:
- pretreatment operation is carried out to the data message, to obtain the pretreated data message, at follow-up merging
Reason.
19. equipment according to claim 18, wherein, the pretreatment operation includes following at least any one:
The code check of-adjustment the data message;
The resolution ratio of-adjustment the data message;
The coded format of-adjustment the data message.
20. equipment according to claim 11, wherein, the Video service request includes following at least any one:
- video merges request;
- video access is asked;
- video download request;
- video acceleration request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110179794.9A CN102857794B (en) | 2011-06-28 | 2011-06-28 | A kind of method and apparatus for being used to merge video segmentation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110179794.9A CN102857794B (en) | 2011-06-28 | 2011-06-28 | A kind of method and apparatus for being used to merge video segmentation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102857794A CN102857794A (en) | 2013-01-02 |
CN102857794B true CN102857794B (en) | 2018-03-06 |
Family
ID=47403927
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110179794.9A Expired - Fee Related CN102857794B (en) | 2011-06-28 | 2011-06-28 | A kind of method and apparatus for being used to merge video segmentation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102857794B (en) |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103517135B (en) * | 2012-06-28 | 2017-02-08 | Tcl集团股份有限公司 | Method, system and television capable of playing MP4-format video files continuously |
CN103152654A (en) * | 2013-03-15 | 2013-06-12 | 杭州智屏软件有限公司 | Low-latency video fragment interception technology |
CN104284250A (en) | 2013-07-12 | 2015-01-14 | 贝壳网际(北京)安全技术有限公司 | Video processing method and device, server and client device |
CN104427331B (en) * | 2013-08-28 | 2017-12-01 | 华为技术有限公司 | A kind of video traffic processing method, device and the network equipment |
CN104469510B (en) * | 2013-09-16 | 2018-07-06 | 联想(北京)有限公司 | A kind of multimedia series document handling method and electronic equipment |
KR102111436B1 (en) * | 2014-01-06 | 2020-05-18 | 에스케이 텔레콤주식회사 | Method and Apparatus for Generating Single Bit Stream from Multiple Video Stream |
CN105338259B (en) * | 2014-06-26 | 2020-06-02 | 北京新媒传信科技有限公司 | Method and device for synthesizing video |
CN106034252B (en) * | 2015-03-12 | 2019-08-23 | 深圳市腾讯计算机系统有限公司 | A kind of Streaming Media processing method and processing device |
CN104980665A (en) * | 2015-06-29 | 2015-10-14 | 北京金山安全软件有限公司 | Multi-video-clip merging method and multi-video-clip merging device |
CN104980794A (en) * | 2015-06-30 | 2015-10-14 | 北京金山安全软件有限公司 | Video splicing method and device |
CN104980805A (en) * | 2015-07-28 | 2015-10-14 | 无锡天脉聚源传媒科技有限公司 | Video playing method and video playing device |
CN105141973A (en) * | 2015-09-01 | 2015-12-09 | 北京暴风科技股份有限公司 | Multi-segment media file mosaicing method and system |
CN105915945A (en) * | 2015-12-08 | 2016-08-31 | 乐视云计算有限公司 | Content distribution method used for CDN platform and scheduling proxy server thereof |
CN106331763B (en) * | 2016-09-12 | 2020-01-14 | 北京小度互娱科技有限公司 | Method for seamlessly playing fragmented media file and device for implementing method |
CN107995499B (en) * | 2017-12-04 | 2021-07-23 | 腾讯科技(深圳)有限公司 | Media data processing method and device and related equipment |
CN110636374A (en) * | 2018-06-22 | 2019-12-31 | 北京京东尚科信息技术有限公司 | Method and device for searching information |
CN109120997A (en) * | 2018-09-30 | 2019-01-01 | 北京微播视界科技有限公司 | Method for processing video frequency, device, terminal and medium |
CN111147888B (en) * | 2018-11-06 | 2022-06-03 | 中兴通讯股份有限公司 | Streaming media video data processing method and device, computer equipment and storage medium |
CN109413487A (en) * | 2018-11-07 | 2019-03-01 | 成都索贝数码科技股份有限公司 | A method of spelling is dodged after storing fragment transcoding/synthetic video file based on object |
CN109495752A (en) * | 2018-11-07 | 2019-03-19 | 成都索贝数码科技股份有限公司 | A method of MXF file is combined into based on object storage fragment transcoding/synthesis sudden strain of a muscle |
CN109640170B (en) * | 2018-12-04 | 2021-02-19 | 广东力昂电子科技有限公司 | Speed processing method of self-shooting video, terminal and storage medium |
CN111510790B (en) | 2019-01-30 | 2021-10-15 | 上海哔哩哔哩科技有限公司 | Video request method, system, computer device and computer readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098327A (en) * | 2010-12-15 | 2011-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for downloading online video sniffer |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4595190B2 (en) * | 2000-10-30 | 2010-12-08 | 株式会社デンソー | Download method and user terminal and distribution server for executing the download method |
CN101409831B (en) * | 2008-07-10 | 2010-10-27 | 浙江师范大学 | Method for processing multimedia video object |
CN101646076A (en) * | 2008-08-08 | 2010-02-10 | 厦门时迅信息科技有限公司 | Video transmission method in wireless network |
CN101415069B (en) * | 2008-10-22 | 2010-07-14 | 清华大学 | Server and method for sending on-line play video |
CN102075792B (en) * | 2010-12-23 | 2013-01-02 | 华为技术有限公司 | Video file playing method and system, user equipment and server equipment |
-
2011
- 2011-06-28 CN CN201110179794.9A patent/CN102857794B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098327A (en) * | 2010-12-15 | 2011-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for downloading online video sniffer |
Also Published As
Publication number | Publication date |
---|---|
CN102857794A (en) | 2013-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102857794B (en) | A kind of method and apparatus for being used to merge video segmentation | |
CN105721620B (en) | Video information method for pushing and device and video information exhibit method and apparatus | |
CN102572557B (en) | Current device location advertisement distribution method and system | |
AU2014354766B2 (en) | Media presentation description | |
CN102474504B (en) | Various collections and the system and method for ways of distribution support are provided for content distributing network | |
KR100941348B1 (en) | Apparatus and methods for delivering and presenting auxiliary services for customizing a channel | |
CN105519123A (en) | Live crowdsourced media streaming | |
US8886896B2 (en) | Storage format for media streams | |
CN104253814B (en) | A kind of Streaming Media processing method, server and browser | |
CN104572952B (en) | The recognition methods of live multimedia file and device | |
WO2013101841A1 (en) | Dynamically-executed syndication services | |
WO2015074209A1 (en) | A method, apparatus, system and terminal of implanting advertisements in files | |
CN102572555A (en) | Method and system for realizing live video playback at HTTP live streaming (HLS) client | |
JP2013509743A (en) | Method and system for individualizing content streams | |
KR20140061295A (en) | Method for image playback verification | |
CN111343415A (en) | Data transmission method and device | |
CN106791915A (en) | A kind of method and apparatus for showing video image | |
CN104918108A (en) | Video accurate positioning device and method based on HLS (HTTP Live Streaming) protocol | |
JP2016532969A (en) | Related content processing method and system | |
CN109168043B (en) | Method, equipment and system for displaying recommendation information | |
US8296389B2 (en) | Content reproduction apparatus, content delivery apparatus, content delivery system, and method for generating metadata | |
CN110381378A (en) | Projectional technique, device, server and the storage medium of network multimedia playback volume | |
CN101895406B (en) | Method and system for providing direct broadcast service of mobile streaming media | |
CN103826158B (en) | A kind of network direct broadcasting apparatus and method | |
CN105392028B (en) | A kind of transmission method and device of data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180306 Termination date: 20210628 |
|
CF01 | Termination of patent right due to non-payment of annual fee |