CN104104971B - A kind of video file processing method and system - Google Patents
A kind of video file processing method and system Download PDFInfo
- Publication number
- CN104104971B CN104104971B CN201310113025.8A CN201310113025A CN104104971B CN 104104971 B CN104104971 B CN 104104971B CN 201310113025 A CN201310113025 A CN 201310113025A CN 104104971 B CN104104971 B CN 104104971B
- Authority
- CN
- China
- Prior art keywords
- video file
- video
- transcoded
- terminal
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to Internet technical field, a kind of video file processing method and system are disclosed.Wherein, which includes: the video file playing request for receiving terminal and sending, which carries the video playing format that video file mark and the terminal are supported;It is corresponding that it whether is stored with video file mark in discrimination cloud server, and meets the transcoded video file of the video playing format;If being stored with, the download link address information for sending the transcoded video file gives the terminal, video file downloading request is sent to cloud server according to the download link address information by the terminal, and by cloud server by this transcoded video file division at the file of transcoded video slice be sent to the terminal according to the sequence of transcoded video file slice number and play out.The embodiment of the present invention, which can reduce the occupancy to terminal resource and realize, quickly plays starting.
Description
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of video file processing method and system.
Background technique
Video file broadcasting is a kind of popular application of current internet, and user can access cloud by various terminals
Server, and the video file of cloud server storage is played out.Wherein, currently to the video text of cloud server storage
There are mainly two types of the broadcast modes of part, a kind of broadcast mode be user can from cloud server by video file completely under
It is downloaded to terminal, then load video file plays out at the terminal;Another broadcast mode is that user can be on one side from cloud
To download video files is to terminal on server, and load video file plays out at the terminal on one side.
But no matter above-mentioned any broadcast mode, terminal is required to for video file to be transcoded into the video playing of terminal support
It is played again after format, and video file transcoding needs to occupy a large amount of terminal resource;Moreover, video file after transcoding compared with
When greatly (as more than 1G), the buffer time that the video file after terminal loads transcoding just needs to grow very much, opened to will lead to broadcasting
The dynamic time extends.
Summary of the invention
The embodiment of the present invention can be dropped the technical problem to be solved is that a kind of video file processing method and system is provided
It is low that starting is quickly played to the occupancy of terminal resource and realization.
First aspect of the embodiment of the present invention provides a kind of video file processing method, comprising:
The video file playing request that terminal is sent is received, the video file playing request carries video file mark
And the video playing format that the terminal is supported;
It is corresponding that it whether is stored with the video file mark in discrimination cloud server, and meets what the terminal was supported
The transcoded video file of video playing format;
If being stored with, the download link address information of the transcoded video file is sent to the terminal, by the end
End sends video file downloading request according to the download link address information and takes to the cloud server, and by the cloud
Be engaged in device by the file division of transcoded video at the file of transcoded video be sliced according to transcoded video file slice number
Sequence is sent to the terminal and plays out.
Second aspect of the embodiment of the present invention provides a kind of video file processing system, including receiving unit, discrimination unit and
Transmission unit, in which:
The receiving unit for receiving the video file playing request of terminal transmission, and notifies the discrimination unit;Its
In, the video file playing request carries the video playing format that video file mark and the terminal are supported;
The discrimination unit, for distinguishing that whether to be stored with video file mark in cloud server corresponding, and
Meet the transcoded video file for the video playing format that the terminal is supported, and discrimination results are notified into the transmission unit;
The transmission unit is to send the transcoding when being stored with and regard for the discrimination results in the discrimination unit
The download link address information of frequency file gives the terminal, sends video according to the download link address information by the terminal
File download request give the cloud server, and by the cloud server by the file division of transcoded video at
Transcoded video file slice is sent to the terminal according to the sequence of transcoded video file slice number and plays out.
In the embodiment of the present invention, terminal does not need to be transcoded into video file after the video playing format that terminal is supported again
It plays, avoids terminal and carry out occupying a large amount of terminal resource when video file transcoding, terminal is provided so as to be effectively reduced
The occupancy in source;Moreover, terminal receive cloud server send the file division of transcoded video at the file of transcoded video cut
Piece is conducive to shorten the buffer time of load, plays the starting time so as to shorten, realizes and quickly play starting.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow chart of video file processing method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another video file processing method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another video file processing method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another video file processing method provided in an embodiment of the present invention;
Fig. 5 is a kind of structure chart of video file processing system provided in an embodiment of the present invention;
Fig. 6 is the structure chart of another video file processing system provided in an embodiment of the present invention;
Fig. 7 is the structure chart of another video file processing system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of video file processing method and systems, can reduce the occupancy to terminal resource
And it realizes and quickly plays starting.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of video file processing method provided in an embodiment of the present invention.Such as Fig. 1 institute
Show, which may comprise steps of.
S101, the video file playing request that terminal is sent is received, which carries video file
The video playing format that mark and terminal are supported.
In the embodiment of the present invention, it is mutual that terminal can be smart phone, PC (PC), tablet computer and other movements
Networked devices (Mobile Internet Devices, MID), the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, video file mark can be indicated using Hash (hash) value of video file, this hair
Bright embodiment is not construed as limiting.
In the embodiment of the present invention, terminal support video playing format can have AVI, wma, rmvb, rm, flash, mp4,
Mid and 3GP etc., wherein the video file of AVI format is generally bigger, but its clear highest;The video of rmvb, wma format
File clarity is medium;The video file clarity of rm format is somewhat poorer;And the video text of flash, mp4, mid, 3GP format
Part clarity is worst, is generally adapted netcast and mobile media devices broadcasting.In practical application, the video of terminal support
Broadcast format can also be characterized using the type identification of terminal, and the embodiment of the present invention is not construed as limiting.
It is corresponding that video file mark whether is stored in S102, discrimination cloud server, and meets terminal support
Video playing format transcoded video file, if being stored with, execute step S103;If not stored have, terminate this process.
In the embodiment of the present invention, the video playing for being stored with video file mark, the terminal is supported can be discerned whether
Format is identified in cloud server and is stored if being stored with transcoded video file slice number three mapping relations
There is video file mark corresponding, and meets the transcoded video file of the video playing format of terminal support.Specifically,
The embodiment of the present invention can beyond the clouds server store the video file mark it is corresponding, and meet the terminal support video
The file of transcoded video of broadcast format and then store the video file mark, the terminal support video playing format with
Transcoded video file slice number three mapping relations are stored with video file mark, the end as long as identifying in this way
Hold the video playing format supported and transcoded video file slice number three mapping relations that can identify cloud service
It is stored with the video file in device and identifies the text of transcoded video that is corresponding, and meeting the video playing format of terminal support
Part.
In the embodiment of the present invention, video file mark is corresponding, and meet the video playing format of terminal support
The file of the transcoded video slice number of transcoded video file can be identified by the video file plus transcoded video file
The serial number of slice is constituted, wherein transcoded video file slice number has uniqueness for each.
S103, the download link address information for sending transcoded video file give the terminal, by the terminal according to the downloading
Link address information sends video file downloading request to cloud server, and by cloud server by the transcoded video file
The file of the transcoded video slice being divided into is sent to the terminal according to the sequence of transcoded video file slice number and plays out.
In the embodiment of the present invention, terminal receive cloud server transmission the file division of transcoded video at transcoding regard
Frequency file slice after, can load this transcoded video file slice to terminal player or terminal Web browser into
Row plays, and the embodiment of the present invention is not construed as limiting.
In the method depicted in fig. 1, terminal does not need the video playing format that video file is transcoded into terminal support
It plays again later, avoids terminal and carry out occupying a large amount of terminal resource when video file transcoding, so as to be effectively reduced pair
The occupancy of terminal resource;Moreover, terminal receive cloud server send the file division of transcoded video at transcoded video
File slice is conducive to shorten the buffer time of load, plays the starting time so as to shorten, realizes and quickly play starting.
Referring to Fig. 2, Fig. 2 is a kind of flow chart of video file processing method provided in an embodiment of the present invention.Wherein, scheme
The video file that video file processing method shown in 2 can increase cloud server newly is handled.As shown in Fig. 2, the view
Frequency processing method may comprise steps of.
Whether stored in S201, the offline download information analysis cloud server according to the video file of statistics newly-increased
Video file thens follow the steps S202 if stored;If not stored, step S201 is continued to execute.
In the embodiment of the present invention, the offline download information of the video file of statistics may include the offline downloading of video file
Speed, offline downloading duration, offline downloading result and video file mark, size etc., and the downloading offline of video file is complete
Bi Hou, it will usually be stored in cloud server, therefore, can be analyzed according to the offline download information of the video file of statistics
Whether newly-increased video file has been stored in cloud server.For example, when the offline download information of the video file of statistics
Show some video file identify corresponding video file offline downloading result be a hundred percent when, then can analyze out cloud
The corresponding video file of video file mark has been stored in the server of end in other words to analyze in cloud server
Store newly-increased video file.
S202, newly-increased video file is downloaded from cloud server.
S203, newly-increased video file is transcoded into the text of transcoded video for meeting the video playing format of terminal support
Part.
For example, newly-increased video file can be transcoded into the transcoded video file of mp4 format.Wherein, mp4 is
A kind of good video file format of comprehensive performance is supported with very wide Web browser, and newly-increased video file is transcoded into
The transcoded video file of mp4 format can also direct using terminal so that terminal is in the case where not provided with player
Web browser plays, so as to extend the performance of Web browser.Certainly, terminal, will be new in the case where provided with player
The file of transcoded video that the video file of increasing is transcoded into mp4 format is nor affected on to be played out using the player of terminal.
S204, transcoded video file division is sliced at transcoded video file, wherein transcoded video is literary for each
Part slice carries unique number.
In the present embodiment, transcoded video file slice number can be by newly-increased video file mark plus for each
The serial number of transcoded video file slice is constituted, wherein transcoded video file slice number has uniqueness for each.
S205, by transcoded video file division at the file of transcoded video slice be uploaded to cloud server storage.
The video playing format and transcoded video file slice number that S206, storage video file mark, terminal are supported
Three mapping relations, wherein video file mark is newly-increased video file mark.
S207, the video file playing request that terminal is sent is received, which carries video file
The video playing format that mark and terminal are supported.
S208, discern whether that video file mark, the terminal for being stored with video file playing request carrying are supported
Video playing format and transcoded video file slice number three mapping relations if being stored with identify cloud clothes
The video file mark that video file playing request carrying is stored in business device is corresponding, and meets the view of terminal support
The transcoded video file of frequency broadcast format, and execute step S209;If not stored have, terminate this process.
S209, the download link address information for sending transcoded video file give the terminal, by the terminal according to the downloading
Link address information sends video file downloading request to cloud server, and by cloud server by the transcoded video file
The file of the transcoded video slice being divided into is sent to the terminal according to the sequence of transcoded video file slice number and plays out.
In one embodiment, video file processing method described in Fig. 1 can with the following steps are included:
Delete video playing format and transcoded video that video file mark, the terminal that storage time is more than threshold value are supported
The mapping relations that file slice number is three;And/or delete all transcodings that storage time in cloud server is more than threshold value
The file of the transcoded video slice that video file is divided into.
In the method depicted in fig. 2, terminal does not need the video file that cloud server increases newly being transcoded into terminal branch
It is played again after the video playing format held, avoids terminal and carry out occupying a large amount of terminal money when newly-increased video file transcoding
Source, so as to which the occupancy to terminal resource is effectively reduced;Moreover, terminal receives the text of transcoded video that cloud server is sent
The file of the transcoded video slice that part is divided into is conducive to shorten the buffer time of load, when playing starting so as to shorten
Between, it realizes and quickly plays starting.
Referring to Fig. 3, Fig. 3 is a kind of flow chart of video file processing method provided in an embodiment of the present invention.Wherein, scheme
Video file processing method shown in 3 can the history video file to cloud server handle.As shown in figure 3, the view
Frequency processing method may comprise steps of.
S301, history video file is downloaded from cloud server.
S302, history video file is transcoded into the transcoded video file for meeting the video playing format of terminal support.
For example, history video file can be transcoded into the transcoded video file of mp4 format.
S303, transcoded video file division is sliced at transcoded video file, wherein transcoded video is literary for each
Part slice carries unique number.
In the present embodiment, transcoded video file slice number can be by newly-increased video file mark plus for each
The serial number of transcoded video file slice is constituted, wherein transcoded video file slice number has uniqueness for each.
S304, by transcoded video file division at the file of transcoded video slice be uploaded to cloud server storage.
The video playing format and transcoded video file slice number that S305, storage video file mark, terminal are supported
Three mapping relations, wherein video file mark is history video file mark.
S306, the video file playing request that terminal is sent is received, which carries video file
The video playing format that mark and terminal are supported.
S307, discern whether that video file mark, the terminal for being stored with video file playing request carrying are supported
Video playing format and transcoded video file slice number three mapping relations if being stored with identify cloud clothes
The video file mark that video file playing request carrying is stored in business device is corresponding, and meets the view of terminal support
The transcoded video file of frequency broadcast format, and execute step S308;If not stored have, terminate this process.
S308, the download link address information for sending transcoded video file give the terminal, by the terminal according to the downloading
Link address information sends video file downloading request to cloud server, and by cloud server by the transcoded video file
The file of the transcoded video slice being divided into is sent to the terminal according to the sequence of transcoded video file slice number and plays out.
In one embodiment, video file processing method described in Fig. 3 can with the following steps are included:
Delete video playing format and transcoded video that video file mark, the terminal that storage time is more than threshold value are supported
The mapping relations that file slice number is three;And/or delete all transcodings that storage time in cloud server is more than threshold value
The file of the transcoded video slice that video file is divided into.
In the method depicted in fig. 3, terminal does not need the history video file of cloud server being transcoded into terminal branch
It is played again after the video playing format held, avoids terminal and carry out occupying a large amount of terminal money when history video file transcoding
Source, so as to which the occupancy to terminal resource is effectively reduced;Moreover, terminal receives the text of transcoded video that cloud server is sent
The file of the transcoded video slice that part is divided into is conducive to shorten the buffer time of load, when playing starting so as to shorten
Between, it realizes and quickly plays starting.
Referring to Fig. 4, Fig. 4 is a kind of flow chart of video file processing method provided in an embodiment of the present invention.Wherein, scheme
Video file processing method shown in 4 is realized on the basis of optimizing to cloud video on-demand system.Wherein, solid line
Frame indicates the existing component part of cloud video on-demand system, and after dotted line frame expression optimizes cloud video on-demand system
Obtained component part.As shown in figure 4, the method for processing video frequency may comprise steps of.
S401, download terminal submit the offline downloading task of video file to offline task management server, wherein the video
The offline downloading task of file can be the offline download address of video file, BT seed or Magnet link etc..
After S402, offline task management server receive the download terminal submission offline downloading task of video file, it will download
The offline downloading task of video file that terminal is submitted is stored to offline assignment database.
The download terminal submission offline downloading task of video file is sent to offline appoint by S403, offline task management server
Business the distribution server.
Wherein, the sequencing between above-mentioned steps S402 and step S403 is not construed as limiting.
S404, offline task the distribution server, which receive the video file that offline task management server is sent and download offline, appoints
After business, dispatches offline download server group and go to execute the corresponding video file of the offline downloading task of the video file and download offline.
S405, when the corresponding video file of the offline downloading task of the successful execution video file is downloaded offline and obtains video
After file, the corresponding video file of the offline downloading task of the video file is downloaded result offline and write by offline download server group
Enter offline assignment database, is appointed with updating the video file that the download terminal stored in offline assignment database is submitted and downloading offline
The state of business is that offline downloading is completed.
S406, when the corresponding video file of the offline downloading task of the successful execution video file is downloaded offline and obtains video
After file, offline download server group stores the video file to cloud server.
Wherein, the sequencing between above-mentioned steps S405 and step S406 is not construed as limiting.
S407, offline download server group are by the offline downloading of the corresponding video file of the offline downloading task of the video file
Information is sent to offline task the distribution server.
Wherein, the corresponding video file of the offline downloading task of the video file of offline download server pocket transmission is offline
Download information includes offline speed of download, offline downloading duration, video file mark, size etc..
S408, offline task the distribution server are by the offline downloading task of the video file of offline download server pocket transmission
The offline download information of corresponding video file is sent to offline task management server.
S409, offline task management server receive the video file that offline task the distribution server is sent and download offline
After the offline download information of the corresponding video file of task, it is offline that the video file is further obtained from offline assignment database
The corresponding video file of downloading task downloads result offline.
S410, offline task management server download the corresponding video file of the offline downloading task of the video file offline
As a result it is incorporated into the offline of the corresponding video file of the offline downloading task of the video file that offline task the distribution server is sent
After download information, it is sent to download terminal.
The offline download information for the video file that offline task management server is sent is sent to system by S411, download terminal
Count server.
The offline download information for the video file that S412, statistical server count, and it is sent to transcoding segmentation dispatch service
Device.
The offline download information for the video file that S413, transcoding segmentation dispatch server are counted according to statistical server is analyzed
Newly-increased video file, triggering increment transcoding segmentation server starting have been stored in cloud server out.
S414, increment transcoding segmentation server download newly-increased video file, and the view that will be increased newly from cloud server
Frequency file be transcoded into meet terminal support video playing format transcoded video file, by transcoded video file division at
Transcoded video file is sliced, wherein transcoded video file slice carries unique number for each, and transcoding is regarded
The file of the transcoded video slice that frequency file is divided into is uploaded to cloud server storage.
S415, increment transcoding segmentation server store video file mark, the video playing format that terminal is supported and have turned
The mapping relations of code video file slice number three are into transcoding segmentation result database, wherein the video file, which identifies, is
Newly-increased video file mark.
Wherein, the sequencing between above-mentioned steps S414 and step S415 is not construed as limiting.
S416, the segmentation server/storage of storage transcoding eliminate server and download history video file from cloud server,
History video file is transcoded into the transcoded video file for meeting the video playing format of terminal support, by the text of transcoded video
Part is divided into transcoded video file slice, wherein transcoded video file slice carries unique number for each, and will
Transcoded video file division at the file of transcoded video slice be uploaded to cloud server storage.
The video that S417, the segmentation server/storage of storage transcoding eliminate server storage video file mark, terminal is supported
Broadcast format and transcoded video file slice number three mapping relations are into transcoding segmentation result database, wherein should
Video file mark is history video file mark.
S418, playback terminal pull video file list from offline task management server, and show to user, by with
The video file that family selection needs to play.
Wherein, it is the video text that offline downloading is completed which, which can be the state in offline assignment database,
The offline downloading task of part.
S419, playback terminal send video file playing request and give video playing format match server, the video file
The video playing format that playing request carries video file mark and playback terminal is supported.
In the embodiment of the present invention, download terminal and playback terminal can be the same terminal, be also possible to different terminals,
The embodiment of the present invention is not construed as limiting.
S420, video playing format match server distinguish video text whether is stored in transcoding segmentation result database
The video playing format of video file mark, playback terminal support that part playing request carries is cut with transcoded video file
The mapping relations that piece number is three identify if being stored with and are stored with the video file playing request in cloud server and take
The video file mark of band is corresponding, and meets the transcoded video file of the video playing format of playback terminal support.
The download link address information that S421, video playing format match server send transcoded video file is broadcast to this
Put terminal.
S422, playback terminal send video file downloading according to the download link address information and request to cloud server,
By cloud server by this transcoded video file division at the file of transcoded video be sliced and cut according to transcoded video file
Piece number order is sent to the playback terminal and plays out.
Wherein, after the file of transcoded video that playback terminal receives cloud server transmission is sliced, broadcasting can be loaded into
The player or Web browser of terminal play out.
S423, the superseded server of storage transcoding segmentation server/storage are deleted when storing in transcoding segmentation result database
Between be more than threshold value the video playing format supported of video file mark, terminal with transcoded video file slice number three
Mapping relations.
It is more than threshold that S424, the segmentation server/storage of storage transcoding, which eliminate server and delete storage time in cloud server,
Value all file divisions of transcoded video at the file of transcoded video be sliced.
Wherein, the sequencing of above-mentioned steps S423 and step S424 can replace, and the embodiment of the present invention is not construed as limiting.
In the method described in Fig. 4, terminal does not need the video file by cloud server (including newly-increased video text
Part and history video file) be transcoded into terminal support video playing format after play again, avoid terminal carry out video text
A large amount of terminal resource is occupied when part transcoding, so as to which the occupancy to terminal resource is effectively reduced;Moreover, terminal receives cloud
Server send the file division of transcoded video at the file of transcoded video slice be conducive to shorten load buffer time,
The starting time is played so as to shorten, realizes and quickly plays starting.
Referring to Fig. 5, Fig. 5 is a kind of structure chart of video file processing system provided in an embodiment of the present invention.Such as Fig. 5 institute
Show, which includes receiving unit 501, discrimination unit 502 and transmission unit 503, in which:
Receiving unit 501 for receiving the video file playing request of terminal transmission, and notifies discrimination unit 502;Its
In, which carries the video playing format that video file mark and the terminal are supported;
Discrimination unit 502 and meets for distinguishing that whether to be stored with video file mark in cloud server corresponding
The transcoded video file for the video playing format that the terminal is supported, and discrimination results are notified into transmission unit 503;
Transmission unit 503 is when being stored with, to send transcoded video file for the discrimination results in discrimination unit 502
Download link address information give the terminal, by the terminal according to download link address information send video file downloading request to
Cloud server, and by cloud server by transcoded video file division at the file of transcoded video be sliced according to transcoding
Video file slice number sequence is sent to the terminal and plays out.
Referring to Figure 6 together, Fig. 6 is the structure chart of another video file processing system provided in an embodiment of the present invention.
Wherein, video file processing system shown in fig. 6 is that video file processing system as shown in Figure 5 optimizes.?
In video file processing system shown in fig. 6, discrimination unit 502 includes that the first discrimination subelement 5021 and second distinguish subelement
5022, in which:
First distinguishes subelement 5021, the video for discerning whether to be stored with video file mark, the terminal is supported
Broadcast format and transcoded video file slice number three mapping relations, and discrimination results are notified into the second discrimination subelement
5022;
Second distinguishes subelement 5022, for distinguishing when the discrimination results of the first discrimination subelement 5021 are to be stored with
It is corresponding that video file mark is stored in cloud server out, and meets having turned for the video playing format that the terminal is supported
Code video file, and discrimination results are notified into transmission unit 503.
In one embodiment, video file processing system shown in fig. 6 further include:
Storage unit 504, video playing format and transcoded video for storing video file mark, terminal is supported
The mapping relations that file slice number is three.
Correspondingly, the first discrimination subelement 5021 is for distinguishing whether be stored with the video file mark in storage unit 504
Know, video playing format (the i.e. video file mark of video file playing request carrying and end that the terminal is supported
Hold the video playing format supported) with transcoded video file slice number three mapping relations, and discrimination results are notified
Second distinguishes subelement 5022.
In one embodiment, video file processing system shown in fig. 6 further include:
Incremental processing unit 505, for downloading newly-increased video file from cloud server, and newly-increased video is literary
Part be transcoded into meet terminal support video playing format transcoded video file, and by transcoded video file division at
Transcoded video file is sliced, wherein transcoded video file slice carries unique number for each;And by transcoded video
File division at the file of transcoded video slice be uploaded to cloud server storage;And notice storage unit 504 executes
The video playing format and transcoded video file slice number three mappings that storage video file mark, the terminal stated are supported
The step of relationship, wherein video file mark is newly-increased video file mark at this time.
In one embodiment, video file processing system shown in fig. 6 further include:
Trigger unit 506, in the offline download information analysis cloud server according to the video file of statistics whether
Newly-increased video file has been stored, if stored, has triggered the starting of incremental processing unit 505.
Correspondingly, incremental processing unit 505 is triggered after the triggering starting of unit 506, can execute from cloud server
The newly-increased video file of downloading, and newly-increased video file is transcoded into the transcoding for meeting the video playing format of terminal support
Video file, and transcoded video file division is sliced at transcoded video file, wherein transcoded video is literary for each
Part slice carries unique number;And by transcoded video file division at the file of transcoded video slice be uploaded to cloud clothes
Business device storage;And the video playing lattice that notice storage unit 504 executes above-mentioned storage video file mark, terminal is supported
Formula and operation the step of transcoded video file slice number three mapping relations.
Referring to Figure 7 together, Fig. 7 is the structure chart of another video file processing system provided in an embodiment of the present invention.
Wherein, video file processing system shown in Fig. 7 is that video file processing system as shown in Figure 6 optimizes.?
In video file processing system shown in Fig. 7, the video file processing system further include:
Storage processing unit 507 turns for downloading history video file from cloud server, and by history video file
Code at the video playing format for meeting terminal support transcoded video file, and by transcoded video file division at having turned
Code video file slice, wherein transcoded video file slice carries unique number for each;And by transcoded video file
The file of the transcoded video slice being divided into is uploaded to cloud server storage;And notice storage unit 504 execute it is above-mentioned
Store video file mark, video playing format and transcoded video file slice number three mapping relations that terminal is supported
The step of, wherein video file mark is history video file mark at this time.
In one embodiment, video file processing system shown in Fig. 7 further include:
Unit 508 is eliminated, is identified more than the video file of threshold value, eventually for deleting the storage time in storage unit 504
Hold the video playing format supported and transcoded video file slice number three mapping relations;
And/or for delete storage time in cloud server be more than threshold value all file divisions of transcoded video at
The file of transcoded video slice.
In the system described in Fig. 5, Fig. 6 or Fig. 7, terminal is not needed video file (including newly-increased video file
With history video file) be transcoded into terminal support video playing format after play again, avoid terminal carry out video file
A large amount of terminal resource is occupied when transcoding, so as to which the occupancy to terminal resource is effectively reduced;Moreover, terminal receives cloud clothes
Business device send the file division of transcoded video at the file of transcoded video slice be conducive to shorten load buffer time, from
And the broadcasting starting time can be shortened, it realizes and quickly plays starting.
Introduction is had been described in detail to video file processing method provided in an embodiment of the present invention, system above, the present invention is real
Apply that example carries out transcoding to the video file of cloud server and segmentation is sliced, by the video file of cloud server be divided into increment and
Storage two large divisions is respectively adopted different strategies and carries out transcoding and fragment processing to this two parts video file, then passes through
The player module (such as player or Web browser) of terminal is come the broadcasting of the file of the transcoded video slice carried out, player module
It can be combined with the product form of different terminals, to realize cloud playing function.In the embodiment of the present invention, video file
Transcoding and sectioning are all carried out in network-side, can adapt to various environment and terminal.It, can be very by being sliced again after transcoding
Cloud playing function is realized well, is carried out seamless play video file in various terminals, is realized and pass through distinct device and terminal whenever and wherever possible
Access the application of the same video file.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
It is provided for the embodiments of the invention method for processing video frequency above and system is described in detail, it is used herein
A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand
Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention
There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention
Limitation.
Claims (10)
1. a kind of video file processing method characterized by comprising
Server storage video file identifies the view of transcoding of video playing format that is corresponding and meeting terminal support beyond the clouds
After frequency file slice, video playing format and the slice of transcoded video file that storage video file mark, terminal are supported are compiled
Numbers three mapping relations;The video file playing request that terminal is sent is received, the video file playing request carries view
The video playing format that frequency file mark and the terminal are supported;
Discern whether the video playing format and transcoded video file that are stored with the video file mark, the terminal is supported
The mapping relations that slice number is three;
If being stored with, identify that be stored with video file mark in cloud server corresponding, and meets the terminal
The transcoded video file of the video playing format of support, send the download link address information of the transcoded video file to
The terminal sends video file downloading request to the cloud service according to the download link address information by the terminal
Device, and by the cloud server by the file division of transcoded video at the file of transcoded video be sliced according to transcoding
Video file slice number sequence is sent to the terminal and plays out;If not stored have, terminate process.
2. video file processing method according to claim 1, which is characterized in that the storage video file identifies, eventually
It holds the video playing format supported and before transcoded video file slice number three mapping relations, the method is also wrapped
It includes:
Newly-increased video file is downloaded from cloud server;
The newly-increased video file is transcoded into the transcoded video file for meeting the video playing format of terminal support;
The transcoded video file division is sliced at transcoded video file, wherein transcoded video is literary described in each
Part slice carries unique number;
By the file division of transcoded video at the file of transcoded video slice be uploaded to cloud server storage;
And it executes the video playing format that the storage video file identifies, terminal is supported and is cut with transcoded video file
The step of mapping relations that piece number is three, wherein the video file mark is the newly-increased video file mark.
3. video file processing method according to claim 2, which is characterized in that described to be downloaded newly from cloud server
Before the video file of increasing, the method also includes:
Analyze in cloud server whether stored newly-increased video file according to the offline download information of the video file of statistics,
If stored, the step of downloading newly-increased video file in the slave cloud server is executed.
4. video file processing method according to claim 1, which is characterized in that the storage video file identifies, eventually
It holds the video playing format supported and before transcoded video file slice number three mapping relations, the method is also wrapped
It includes:
History video file is downloaded from cloud server;
The history video file is transcoded into the transcoded video file for meeting the video playing format of terminal support;
The transcoded video file division is sliced at transcoded video file, wherein transcoded video is literary described in each
Part slice carries unique number;
By the file division of transcoded video at the file of transcoded video slice be uploaded to cloud server storage;
And execute the storage video file mark, the video playing format that terminal is supported and transcoded video file
The step of mapping relations that slice number is three, wherein the video file mark is the history video file mark.
5. video file processing method according to any one of claims 1 to 4, which is characterized in that the method also includes:
Delete video playing format and transcoded video file that video file mark, the terminal that storage time is more than threshold value are supported
The mapping relations that slice number is three;
And/or delete cloud server in storage time be more than threshold value all file divisions of transcoded video at transcoding
Video file slice.
6. a kind of video file processing system, which is characterized in that including storage unit, receiving unit, discrimination unit and send single
Member, in which:
The storage unit stores video file for server beyond the clouds and identifies view that is corresponding and meeting terminal support
Frequency broadcast format the file of transcoded video slice after, storage video file mark, terminal support video playing format with
And transcoded video file slice number three mapping relations;
The receiving unit for receiving the video file playing request of terminal transmission, and notifies the discrimination unit;Wherein,
The video file playing request carries the video playing format that video file mark and the terminal are supported;
The discrimination unit for distinguishing that whether to be stored with video file mark in cloud server corresponding, and meets
The transcoded video file for the video playing format that the terminal is supported, and discrimination results are notified into the transmission unit;
The discrimination unit includes that the first discrimination subelement and second distinguish subelement, in which:
Described first distinguishes subelement, the video for discerning whether to be stored with the video file mark, the terminal is supported
Broadcast format and transcoded video file slice number three mapping relations, and notify described second to distinguish son discrimination results
Unit;
Described second distinguishes subelement, for identifying cloud when the discrimination results of the first discrimination subelement are to be stored with
It is corresponding that it is stored with the video file mark in the server of end, and meets having turned for the video playing format that the terminal is supported
Code video file, and discrimination results are notified into the transmission unit;
The transmission unit is to send the text of transcoded video when being stored with for the discrimination results in the discrimination unit
The download link address information of part gives the terminal, sends video file according to the download link address information by the terminal
Downloading request to the cloud server, and by the cloud server by the file division of transcoded video at transcoding
Video file slice is sent to the terminal according to the sequence of transcoded video file slice number and plays out.
7. video file processing system according to claim 6, which is characterized in that the system also includes:
Incremental processing unit, for downloading newly-increased video file from cloud server, and by the newly-increased video file
It is transcoded into the transcoded video file for meeting the video playing format of terminal support, and will the transcoded video file division
It is sliced at transcoded video file, wherein transcoded video file slice carries unique number described in each;And it will be described
Transcoded video file division at the file of transcoded video slice be uploaded to cloud server storage;And it is deposited described in notice
The video playing format that storage unit executes the storage video file mark, terminal is supported is compiled with the slice of transcoded video file
The step of numbers three mapping relations, wherein the video file mark is the newly-increased video file mark.
8. video file processing system according to claim 7, which is characterized in that the system also includes:
Whether trigger unit is new for having stored in the offline download information analysis cloud server according to the video file of statistics
The video file of increasing triggers the incremental processing unit starting if stored.
9. video file processing system according to claim 6, which is characterized in that the system also includes:
Storage processing unit, for downloading history video file from cloud server, and by the history video file transcoding
At the transcoded video file for the video playing format for meeting terminal support, and by the transcoded video file division at
Transcoded video file slice, wherein transcoded video file slice carries unique number described in each;And turn described
The file of the transcoded video slice that code video file is divided into is uploaded to cloud server storage;And notify that the storage is single
Member executes the storage video file mark, the video playing format that terminal is supported and transcoded video file slice number three
The step of mapping relations of item, wherein the video file mark is the history video file mark.
10. according to the described in any item video file processing systems of claim 6~9, which is characterized in that the system is also wrapped
It includes:
Eliminate unit, for delete storage time more than threshold value video file mark, terminal support video playing format with
Transcoded video file slice number three mapping relations;
It and/or for deleting storage time in cloud server is more than all file divisions of transcoded video of threshold value at
Transcoded video file slice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310113025.8A CN104104971B (en) | 2013-04-02 | 2013-04-02 | A kind of video file processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310113025.8A CN104104971B (en) | 2013-04-02 | 2013-04-02 | A kind of video file processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104104971A CN104104971A (en) | 2014-10-15 |
CN104104971B true CN104104971B (en) | 2018-12-07 |
Family
ID=51672724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310113025.8A Active CN104104971B (en) | 2013-04-02 | 2013-04-02 | A kind of video file processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104104971B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104837033B (en) * | 2015-05-20 | 2018-09-25 | 腾讯科技(北京)有限公司 | A kind of information processing method and server |
CN105357593B (en) * | 2015-10-30 | 2019-06-07 | 努比亚技术有限公司 | A kind of methods, devices and systems of uploaded videos |
CN106101744B (en) | 2016-06-23 | 2020-07-10 | 深圳创维-Rgb电子有限公司 | Method and device for playing television online |
CN106303581A (en) * | 2016-08-25 | 2017-01-04 | 乐视控股(北京)有限公司 | A kind of video file download process method, device and server |
CN106791930B (en) * | 2017-01-04 | 2020-03-31 | 北京百度网讯科技有限公司 | Video processing method and device |
CN106953892B (en) * | 2017-02-14 | 2020-08-07 | 北京时间股份有限公司 | Method, device and system for acquiring file |
CN107682713B (en) * | 2017-04-11 | 2020-11-03 | 腾讯科技(北京)有限公司 | Media file playing method and device |
CN108289226B (en) * | 2018-01-19 | 2021-02-12 | 数码辰星科技发展(北京)有限公司 | Method, server and system for showing digital movie video data |
CN108574855A (en) * | 2018-03-15 | 2018-09-25 | 西安万像电子科技有限公司 | Video streaming method, apparatus and system |
CN111479139B (en) | 2019-01-23 | 2022-10-04 | 上海哔哩哔哩科技有限公司 | Video playing control method and device based on video source selection and storage medium |
CN110602555B (en) * | 2019-07-30 | 2021-01-01 | 华为技术有限公司 | Video transcoding method and device |
CN110662086A (en) * | 2019-10-31 | 2020-01-07 | 成都威爱新经济技术研究院有限公司 | 5G high-definition live broadcast system and video processing method |
CN111093094A (en) * | 2019-12-03 | 2020-05-01 | 深圳市万佳安物联科技股份有限公司 | Video transcoding method, device and system, electronic equipment and readable storage medium |
CN111327951A (en) * | 2020-03-24 | 2020-06-23 | 苏州科达科技股份有限公司 | Multimedia data playing method, device, system and storage medium |
CN112312162B (en) * | 2020-10-16 | 2022-11-08 | 安擎(天津)计算机有限公司 | Video server for transmitting video stream |
CN112423124B (en) * | 2020-11-20 | 2023-03-21 | 广州欢网科技有限责任公司 | Dynamic playing method, device and system based on large-screen video player |
CN114189698A (en) * | 2021-12-07 | 2022-03-15 | 广州慧联网络科技有限公司 | Video file display control method and system based on cloud server |
CN115002543B (en) * | 2021-12-23 | 2023-03-31 | 荣耀终端有限公司 | Video sharing method, electronic device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1434386A (en) * | 2003-01-25 | 2003-08-06 | 华中科技大学 | Division distributed storage method of program source based on cluster video server |
CN101404652A (en) * | 2008-10-10 | 2009-04-08 | 华南理工大学 | Media format conversion system and method used for digital house |
CN101710974A (en) * | 2009-11-27 | 2010-05-19 | 广东亿迅科技有限公司 | Method for monitoring fused video |
CN101977218A (en) * | 2010-10-20 | 2011-02-16 | 深圳市融创天下科技发展有限公司 | Internet playing file transcoding method and system |
CN102045540A (en) * | 2009-10-20 | 2011-05-04 | 华为软件技术有限公司 | Video monitoring method, system and equipment |
CN102143385A (en) * | 2011-03-16 | 2011-08-03 | 华为技术有限公司 | Media play processing method, digital media server and system |
CN102404369A (en) * | 2010-09-17 | 2012-04-04 | 中国电信股份有限公司 | Real-time video propelling method, system and central business server |
CN102710966A (en) * | 2012-06-13 | 2012-10-03 | 百视通网络电视技术发展有限责任公司 | Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol) |
CN102984547A (en) * | 2012-11-29 | 2013-03-20 | 乐视致新电子科技(天津)有限公司 | Self-adaption cloud playback system |
-
2013
- 2013-04-02 CN CN201310113025.8A patent/CN104104971B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1434386A (en) * | 2003-01-25 | 2003-08-06 | 华中科技大学 | Division distributed storage method of program source based on cluster video server |
CN101404652A (en) * | 2008-10-10 | 2009-04-08 | 华南理工大学 | Media format conversion system and method used for digital house |
CN102045540A (en) * | 2009-10-20 | 2011-05-04 | 华为软件技术有限公司 | Video monitoring method, system and equipment |
CN101710974A (en) * | 2009-11-27 | 2010-05-19 | 广东亿迅科技有限公司 | Method for monitoring fused video |
CN102404369A (en) * | 2010-09-17 | 2012-04-04 | 中国电信股份有限公司 | Real-time video propelling method, system and central business server |
CN101977218A (en) * | 2010-10-20 | 2011-02-16 | 深圳市融创天下科技发展有限公司 | Internet playing file transcoding method and system |
CN102143385A (en) * | 2011-03-16 | 2011-08-03 | 华为技术有限公司 | Media play processing method, digital media server and system |
CN102710966A (en) * | 2012-06-13 | 2012-10-03 | 百视通网络电视技术发展有限责任公司 | Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol) |
CN102984547A (en) * | 2012-11-29 | 2013-03-20 | 乐视致新电子科技(天津)有限公司 | Self-adaption cloud playback system |
Also Published As
Publication number | Publication date |
---|---|
CN104104971A (en) | 2014-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104104971B (en) | A kind of video file processing method and system | |
CN109408132A (en) | A kind of configuration file processing method and server, user terminal, storage medium | |
CN104077162B (en) | Renewal, dissemination method and the device of mobile terminal application template | |
US20180027061A1 (en) | Method and apparatus for elastically scaling virtual machine cluster | |
CN108200070B (en) | Method and device for generating list | |
CN109618176B (en) | Processing method, equipment and storage medium for live broadcast service | |
CN104601736A (en) | Method and device for realizing short uniform resource locator (URL) service | |
CN104253869A (en) | Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device | |
CN106790549A (en) | A kind of data-updating method and device | |
CN103647756A (en) | Advertisement broadcasting method, server, client and system | |
CN103796040A (en) | Method and device for releasing multimedia data according to network status of mobile terminal | |
CN104468222A (en) | Method, device and system for reporting log information | |
US10938773B2 (en) | Method and apparatus for synchronizing contact information and medium | |
CN111193792A (en) | Message transmission method and device, electronic equipment and storage medium | |
CN104468330A (en) | Data processing method and device of distributed information queue | |
CN106658042B (en) | A kind of data push method and relative clients end, server | |
CN103646054B (en) | Method for playing multimedia data and browser device | |
CN111176706A (en) | Terminal upgrading method and device, electronic equipment and storage medium | |
CN108449607B (en) | File compliance checking method and system | |
CN110874301A (en) | Method and device for acquiring program pause information | |
CN109800005A (en) | A kind of hot update method of client and device | |
CN107454456B (en) | Management control method and system for floating layer elements | |
CN102333280A (en) | Business secret key renewing method and system and business processing server | |
CN105392028A (en) | Data transmission method and device | |
CN101977221A (en) | Method, device and system for realizing resource sharing |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190730 Address after: Shenzhen Futian District City, Guangdong province 518057 Zhenxing Road, SEG Science Park 2 East Room 403 Co-patentee after: Tencent cloud computing (Beijing) limited liability company Patentee after: Tencent Technology (Shenzhen) Co., Ltd. Address before: Shenzhen Futian District City, Guangdong province 518057 Zhenxing Road, SEG Science Park 2 East Room 403 Patentee before: Tencent Technology (Shenzhen) Co., Ltd. |