CN105516736A - Video file processing method and device - Google Patents

Video file processing method and device Download PDF

Info

Publication number
CN105516736A
CN105516736A CN201610032848.1A CN201610032848A CN105516736A CN 105516736 A CN105516736 A CN 105516736A CN 201610032848 A CN201610032848 A CN 201610032848A CN 105516736 A CN105516736 A CN 105516736A
Authority
CN
China
Prior art keywords
video file
head
parameter
video
preset format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610032848.1A
Other languages
Chinese (zh)
Other versions
CN105516736B (en
Inventor
秦智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610032848.1A priority Critical patent/CN105516736B/en
Publication of CN105516736A publication Critical patent/CN105516736A/en
Application granted granted Critical
Publication of CN105516736B publication Critical patent/CN105516736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement

Landscapes

  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video file processing method and device. The video file processing method comprises the following steps of obtaining head leader video data of a target video file; executing coding on the head leader video data to obtain a head leader coding data stream; executing film editing on the head leader coding data stream to obtain a head leader video file; executing encapsulation on the head leader video file and the target video file to obtain an encapsulation video file; issuing the encapsulation video file. The method and the device solve the technical problem that in related technologies, the head leader video file cannot be added when the video file is fast issued.

Description

Video file processing method and device
Technical field
The present invention relates to data processing field, in particular to a kind of video file processing method and device.
Background technology
At present, can by obtaining the burst content of the preset format of original video files to the process of video file, then the burst content of preset format is merged, obtain amalgamation result, be combined result execution again and turn encapsulation process, obtain encapsulated result, finally encapsulated result is committed to transcoding cluster and carries out transcoding and process.After completing encapsulated result transcoding, original video files can off the netly outside be play, thus realizes the common issue to video file.Due to the common issue transcoding process length consuming time to Video processing, head video file can be added in the process of transcoding.
Can by obtaining the burst content of the preset format of original video to the process of video file, the burst content of preset format is merged, obtain amalgamation result, then be combined result and turn the process such as encapsulation, again by video standard process, obtain standardization result, finally standardization result is stored in the unified storage server in architecture platform portion, just can play off the net outside for video after storage completes, thus realize the release quickly of video file.To the fast processing of video without transcoding, consuming time short.
For the video content of the variety video file of 90 minutes, the release quickly method of video file is adopted to need reaching the standard grade of the video file of all video formats that can complete this video content for about 5 minutes, and adopt common dissemination method to need the transcoding time of 2 hours, just can complete reaching the standard grade of the video file of all video formats of this video content.But, because video file processes in real time when release quickly, without transcoding, consuming time short, so head video file cannot be added in video file, thus the optimal design to video cannot be realized.
For the problem cannot adding head video file in correlation technique when video file release quickly, at present effective solution is not yet proposed.
Summary of the invention
Embodiments provide a kind of video file processing method and device, at least to solve the problem cannot adding head video file in correlation technique when video file release quickly.
According to an aspect of the embodiment of the present invention, provide a kind of video file processing method.This video file processing method comprises: the head video data obtaining target video file; Coding is performed to head video data, obtains head encoded data stream; Editing is performed to head encoded data stream, obtains head video file; Head video file and target video file are performed encapsulation, obtains encapsulate video file; Issue encapsulate video file.
According to the another aspect of the embodiment of the present invention, additionally provide a kind of video file processing unit.This video file processing unit comprises: the first acquiring unit, for obtaining the head video data of target video file; Coding unit, for performing coding to head video data, obtains head encoded data stream; Editing unit, for performing editing to head encoded data stream, obtains head video file; Encapsulation unit, for head video file and target video file are performed encapsulation, obtains encapsulate video file; Release unit, for issuing encapsulate video file.
In embodiments of the present invention, adopt the head video data obtaining target video file, head video data is the data of the head video of target video file; Coding is performed to head video data, obtains head encoded data stream; Editing is performed to head encoded data stream, obtains head video file; Head video file and target video file are performed encapsulation, obtains encapsulate video file; Issue encapsulate video file, reach the object of release quickly encapsulate video file, thus achieve technique effect video file being added to head video file when release quickly, and then the technical problem of head video file when solving video file release quickly in correlation technique, cannot be added.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware block diagram of the terminal of video file processing method according to the embodiment of the present invention;
Fig. 2 is the flow chart of video file processing method according to a first embodiment of the present invention;
Fig. 3 is the flow chart of the method for encapsulation that head video file and target video file performed according to the embodiment of the present invention;
Fig. 4 is flow chart head video file being performed the method for process according to preset format according to the embodiment of the present invention;
Fig. 5 is the flow chart of the method for issue encapsulate video file according to the embodiment of the present invention;
Fig. 6 is the flow chart of video file processing method according to a second embodiment of the present invention;
Fig. 7 is the schematic diagram of video file processing unit according to a first embodiment of the present invention;
Fig. 8 is the schematic diagram of video file processing unit according to a second embodiment of the present invention;
Fig. 9 is the schematic diagram of video file processing unit according to a third embodiment of the present invention;
Figure 10 is the schematic diagram of video file processing unit according to a fourth embodiment of the present invention;
Figure 11 is the schematic diagram of video file processing unit according to a fifth embodiment of the present invention;
Figure 12 is the schematic diagram of video file processing unit according to a sixth embodiment of the present invention; And
Figure 13 is the structured flowchart of the terminal according to the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to the embodiment of the present invention, provide a kind of embodiment of video file processing method, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the method that the embodiment of the present application one provides can perform in mobile terminal, terminal or similar arithmetic unit.To run on computer terminals, Fig. 1 is the hardware block diagram of the terminal of video file processing method according to the embodiment of the present invention.As shown in Figure 1, terminal 1 can comprise one or more (only illustrating one in figure) processor 102 (processor 102 can include but not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), for storing the memory 104 of data and the transmitting device 106 for communication function.One of ordinary skill in the art will appreciate that, the structure shown in Fig. 1 is only signal, and it does not cause restriction to the structure of above-mentioned electronic installation.Such as, terminal 10 also can comprise than assembly more or less shown in Fig. 1, or has the configuration different from shown in Fig. 1.
Memory 104 can be used for the software program and the module that store application software, program command/module as corresponding in the video file processing method in the embodiment of the present invention, processor 102 is by running the software program and module that are stored in memory 104, thus perform the application of various function and data processing, namely realize above-mentioned video file processing method.Memory 104 can comprise high speed random asccess memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 104 can comprise the memory relative to the long-range setting of processor 102 further, and these remote memories can be connected to terminal 10 by network.The example of above-mentioned network includes but not limited to the Internet, intranet, local area network (LAN), mobile radio communication and combination thereof.
Transmitting device 106 for via a network reception or send data.The wireless network that the communication providers that above-mentioned network instantiation can comprise terminal 10 provides.In an example, transmitting device 106 comprises a network adapter (NetworkInterfaceController, referred to as NIC), and it to be connected with other network equipments by base station thus can to carry out communication with the Internet.In an example, transmitting device 106 can be radio frequency (RadioFrequency, referred to as RF) module, and it is for wirelessly carrying out communication with the Internet.
Under above-mentioned running environment, this application provides video file processing method as shown in Figure 2.The method can be applied in intelligent terminal, and performed by the processor in intelligent terminal, intelligent terminal can be smart mobile phone, panel computer etc.Be provided with at least one application program in intelligent terminal, the kind of the embodiment of the present invention not defining application, can be system class application program, also can be software class application program.Application program in the embodiment of the present invention comprises at least one application function.
Fig. 2 is the flow chart of video file processing method according to a first embodiment of the present invention.As shown in Figure 2, the optional scheme of the one of this video file processing method comprises the steps:
Step S202, obtains the head video data of target video file.
In the scheme that the application above-mentioned steps S202 provides, target video file is the video file will issued on website, and also, website is about to reach the standard grade the video file carrying out playing, and video file comprises target video file and head video file.The head video of target video file is combine with target video file and before the video playback that target video file is corresponding, carry out the video play, such as, combine with target video file and before the video playback that target video file is corresponding, carry out advertisement head, TV subject packaging head, the first-class video of TV programme propaganda film play.The head video data of target video file is the data of the head video of target video file, can play head video by head video data, head video data can for the video content parameter of head, video editing parameter, also can comprise the decoded data that head video carries out.Alternatively, the head video data of select target video file in a database, thus determine the head video data of target video file.
Preferably, when carrying out editing process to target video file, the head video data of cloud editing system to target video file is adopted to obtain.Wherein, cloud editing system can carry out editing process to the video file of Cloud Server, such as, deletes, adds, shears the video information content in video file, the process such as merging, thus obtains the satisfied video content of user terminal.Alternatively, cloud editing system can be the nonlinear editing system of media business portion of company of Tengxun exploitation, non-linear editing process is carried out to video file, editor for video content reaches the standard grade, there is the process of editor's task simple, fast live video content turning point can being broadcast the features such as process, making there is less image quality loss when editing target video file.The editor of the videos such as this nonlinear editing system news video be applied in Tengxun's video is reached the standard grade, TV play is reached the standard grade, variety show video is reached the standard grade reaches the standard grade, and improves the Experience Degree of user terminal viewing video.The head video file of the target video file pre-determined inputs in cloud editing system by this embodiment, makes cloud editing system obtain the head video data of target video file.
The head video data of the embodiment of the present invention is the data of the head video of target video file, by obtaining the head video data of target video file, thus achieves the determination of the head video data to target video file.
Step S204, performs coding to head video data, obtains head encoded data stream.
In the scheme that the application above-mentioned steps S204 provides, after the head video data obtaining target video file, coding is performed to head video data, compressed encoding can be performed to obtain the coded format of video playback needs, the demand adapting to the different network bandwidths, meet different terminal processing capacity, meet different user terminals to head video data.Alternatively, head video data is full decoder head video datas, after carrying out image procossing to head video, performs coding to full decoder head according to video encoding standard to video data, and wherein, video encoding standard is used in live video communication.
This embodiment can by performing coding to head video data.The original video data of this head video can with dynamic image expert group (MovingPictureExpertsGroup, referred to as MPEG) the head video compression file of form stores in a hard disk, the head video compression file of mpeg format is temporarily decoded, obtain the head video compression file of decoding, the form needed when then video playback being re-encoded as to the head video compression file of decoding, such as, head video is encoded into SD form, high-definition format, the video of super clear form, thus be another kind of form by the head video of input from a kind of format conversion.Alternatively, after head video compression file is temporarily decoded, the coding rule of the form needed when the head video compression file of decoding is re-encoded as video playback can be identical with the coding rule of the original video data of head video, also can be different.
Coding is performed to head video data, obtains head encoded data stream.Head encoded data stream be head video data encoded after transmission data, such as, head encoded data stream can be stablized, flow through network continuously, and client computer or plug-in unit just can show video corresponding to head video data before whole head video data transmission completes.This head encoded data stream is the video flowing of many definition, and such as, head encoded data stream comprises the video flowing of the different definition such as SD format video stream, high-definition format video flowing, super clear format video stream of this head encoded data stream.
Preferably, when carrying out editing process to target video file, by cloud editing system, coding being performed to head video data, obtaining head encoded data stream.Cloud editing system comprises hardware encoding machine, performs coding by hardware encoding machine to head video data, obtains head encoded data stream.The original video data of head video stores in a hard disk with the head video compression file of preset format by hardware encoding machine, the head video compression file of preset format is temporarily decoded by hardware encoding machine, obtain the head video compression file of decoding, the form that needs when the head video compression file of hardware encoding machine to decoding is re-encoded as video playback, thus be another kind of form by the head video of input from a kind of format conversion by hardware encoding machine.
The embodiment of the present invention by performing coding to head video data, thus obtains head encoded data stream.
Step S206, performs editing to head encoded data stream, obtains head video file.
In the scheme that the application above-mentioned steps S206 provides, coding is being performed to head video data, after obtaining head encoded data stream, editing is performed to head encoded data stream, also be, by the mass data in head encoded data stream through selecting, decomposing, accept or reject and set up, thus secondary generation is carried out to head video, obtains coherent smoothness, head video file that implication understands, has a distinct theme.This head video file is can by the e-file of computer system identification, convenient and simple for operation easy, be convenient to management, save memory space, retrieval is quick, improves the utilance of head video.And this head video file has multi-format, comprise SD format video file, high-definition format video file, super clear format video file.
Preferably, when carrying out editing process to target video file, by cloud editing system, editing being performed to head encoded data stream, obtaining head video file.The materials such as background music, special efficacy, scene can be added in head video file by cloud editing system, the materials such as background music, special efficacy, scene be mixed with head video file, obtains new head video file.
The embodiment of the present invention, by performing editing to head encoded data stream, obtains head video file, thus realizes head encoded data stream to be processed into head video file.
Step S208, performs encapsulation by head video file and target video file, obtains encapsulate video file.
In the scheme that the application above-mentioned steps S208 provides, after obtaining head video file, head video file and target video file are performed encapsulation, obtains encapsulate video file.This embodiment is release quickly task to the task of target video file process.Alternatively, head video file and target video file are carried out physics merging, also namely, head video file and target video file are carried out directly without other algorithms, thus make the encapsulate video file obtained comprise head video file and target video file.Head video file and target video file can be turned and be encapsulated as preset format, such as, head video file and target video file be turned and is encapsulated as transport stream format (TransportStream, referred to as TS) file.TS file is a kind of files in stream media, and TS file format is a kind of high definition encapsulation format, video data stream can be cut into some TS fragments, such as, within every 10 seconds, be a fragment, TS fragment puts together by the m3u list finally by an expansion, and the player of client is received.TS file format from any one section of independent decoding of video data stream, can transmit, such as in real time, the TV programme of real-time broadcast, like this, after head video file and target video file are carried out physics merging, the video file Quick thread after can merging being made.
This embodiment is when video file process turns release quickly task, head video file and target video file are performed encapsulation, obtain encapsulate video file, encapsulate video file is carried out video standard process, comprise the process of the code check to encapsulate video file, resolution, and other is to the optimization process of encapsulate video file, realize the fast processing to encapsulate video file, thus achieve technique effect video file being added to head video file when release quickly.
Preferably, when carrying out editing process to target video file, by cloud editing system, head video file and target video file being performed encapsulation, obtaining encapsulate video file.Can after head video file and target video file be carried out physics merging, the turning point that video file after merging is issued to cloud editing system is broadcast processor, wherein, it is for carrying out to video file the machine that turning point broadcasts process that turning point broadcasts handling machine, the video of user terminal selecting can be processed, such as, add head parameter, analyze definition parameter, merge the process such as head video file and target video file, wherein, head parameter is the parameter for identifying head video file, the form of head video file can be determined, such as, determine that this head video file is the head video file of SD form by head parameter, or the head video file of high-definition format, or the head video file of super clear form.The form of the video file after the merging that cloud editing system acceptance arrives can be TS file format.Video file after this merging can be SD format video file, can be high-definition format video file, also can be super clear format video file.After obtaining encapsulate video file, turning point is broadcast processor and encapsulate video file can be turned and be encapsulated as mp4 form, and wherein, mp4 form is the compression and coding standard of audio frequency, video.
The embodiment of the present invention can adopt various ways that head video file and target video file are being performed encapsulation, obtain encapsulate video file, above-mentioned mode head video file and target video file being performed encapsulation is only the preferred embodiments of the present invention, and what do not represent the embodiment of the present invention only comprises aforesaid way by head video file and target video file execution encapsulation.The embodiment of the present invention can also comprise other add head video file mode when video file release quickly, illustrates no longer one by one herein.
The embodiment of the present invention by head video file and target video file are performed encapsulation, thus obtains encapsulate video file.
Step S210, issues encapsulate video file.
In the scheme that the application above-mentioned steps S210 provides, head video file and target video file are being performed encapsulation, after obtaining encapsulate video file, issue encapsulate video file, also be, encapsulate video file is reached the standard grade, by encapsulate video files passe on website, can be play by the video corresponding to this encapsulate video file by this website.Alternatively, the video format that encapsulate video file comprises comprises SD video format, HD video form, super clear video format, respectively the encapsulate video file of the encapsulate video file of the encapsulate video file of SD video format, HD video form, super clear video format is issued, encapsulate video file is stored in the unified storage server in architecture platform portion.After unified storage server encapsulate video file being stored to architecture platform portion, the video that encapsulate video file is corresponding can off the netly outside be play.
By above-mentioned steps S202 to step S210, scheme provided by the invention can realize the head video data by obtaining target video file, and head video data is the data of the head video of target video file; Coding is performed to head video data, obtains head encoded data stream; Editing is performed to head encoded data stream, obtains head video file; Head video file and target video file are performed encapsulation, obtains encapsulate video file; Issue encapsulate video file, reach the object of release quickly encapsulate video file, thus achieve technique effect video file being added to head video file when release quickly, and then when solving editing release quickly in correlation technique, video cannot add the technical problem of head video file.
As one real-time mode alternatively, performing editing to head encoded data stream, after obtaining head video file, head video file and target video file are performed encapsulation.
Fig. 3 is the flow chart of the method for encapsulation that head video file and target video file performed according to the embodiment of the present invention.As shown in Figure 3, the method that head video file and target video file perform encapsulation comprises the following steps by this:
Step S301, performs process by head video file according to preset format, obtains the head video file of preset format.
At the application step S206, editing is performed to head encoded data stream, after obtaining head video file, head video file is performed process according to preset format.Alternatively, head video file is encapsulated according to TS form.Be some TS bursts by the cutting of head video file.Once complete the cutting of head video file, ready-made content distributing network can be used at distribution procedure afterwards, make head video content transmit ground sooner, more stable.Can download the TS burst of corresponding head video file according to the time shaft in the listing file of expansion, wherein, the listing file of expansion has concentrated the TS burst of head video file.The head video file self-adaption code rate of TS form spreads, and also, client can select the video flowing of different code check automatically according to network condition.High code check is selected when network system idle condition, low bit-rate is used when network system busy state, and code check is changed automatically under two kinds of network states, thus ensure that head video also can be play glibly when network state instability.Server end provides the video flowing of the target video file of various code rate, and indicates in listing file, and player adjusts automatically according to speed of download and broadcasting speed.Alternatively.The TS burst of head video file comprises multiple, and multiple TS burst can realize seamless spliced, enables player Continuous Play, improves the experience of user terminal, and the phenomenon that there will not be distorsion and picture to be interrupted, affect the experience of user terminal.
After the head video file obtaining preset format, the head video file of preset format is issued to video turning point and broadcasts in processor and process.
Step S302, performs process by target video file according to preset format, obtains the target video file of preset format.
At the application step S206, editing is performed to head encoded data stream, after obtaining head video file, target video file is performed process according to preset format.Alternatively, target video file is encapsulated according to TS form.Be some TS bursts by the cutting of target video file.Once complete the cutting of target video file, ready-made content distributing network can be used at distribution procedure afterwards, make target video file transfer ground sooner, more stable.Can download the TS burst of corresponding target video file according to the time shaft in the listing file of expansion, wherein, the listing file of expansion has concentrated the TS burst of target video file.The target video file self-adaption code rate of TS form spreads.Server end provides the video flowing of the target video file of various code rate, and indicates in listing file, and player adjusts automatically according to speed of download and broadcasting speed.Alternatively.The TS burst of target video file comprises multiple, and multiple TS burst can realize seamless spliced, enables player Continuous Play, improves the experience of user terminal, and the phenomenon that there will not be distorsion and picture to be interrupted, affect the experience of user terminal.
In order to web download is convenient, or imprinting stores, and the TS burst of target video file is through merging shear treatment.
Step S303, performs merging by the head video file of preset format and the target video file of preset format, obtains merging video file.
Head video file is being performed process according to preset format, obtain the head video file of preset format, and target video file is performed process according to preset format, after obtaining the target video file of preset format, the head video file of preset format and the target video file of preset format are performed merging, obtains merging video file.Alternatively, when being release quickly task to the task of target video file process, the target video file of the head video file of preset format and preset format is performed physics merging, obtain merging video file, also be, the head video file of preset format and the target video file of preset format directly merge without other algorithm, obtain merging video file.
Alternatively, head video file is being performed process according to TS form, obtain the TS file of head video file, and target video file is performed process according to TS form, after obtaining the TS file of video file, the TS file of head video file and the TS file of video file are performed merging, obtains merging video file.The target video file of the head video file of preset format and preset format can be performed physics merging, obtain merging video file, also namely, the TS file of head video file and the TS file of video file directly merge without other algorithm, obtain merging video file.
Step S304, will merge video file and perform encapsulation, obtain encapsulate video file.
When being release quickly task to the task of target video file process, after obtaining merging video file, video file will being merged and perform encapsulation.Alternatively, merging video file is turned and is encapsulated as mp4 form, obtain the encapsulate video file of mp4 form.Alternatively, video standard process is carried out to encapsulate video file, also, the code check, resolution etc. of video are processed, also comprises other optimization process to encapsulate video file, thus the video Quick thread making encapsulate video file corresponding.
The embodiment of the present invention is by performing process by head video file according to preset format, obtain the head video file of preset format, target video file is performed process according to preset format, obtain the target video file of preset format, the head video file of preset format and the target video file of preset format are performed merging, obtain merging video file, video file will be merged and perform encapsulation, obtain encapsulate video file, thus achieve head video file and target video file are performed encapsulation, thus achieve technique effect video file being added to head video file when release quickly.
As the optional execution mode of one, head video file comprises multiple, such as, and the head video file of the head video file of SD form, the head video file of high-definition format, super clear form.The head video file of often kind of form comprises head parameter, and wherein, head parameter is the parameter for identifying head video file, also, for determining that according to head parameter concrete needs and target video file carry out the head video file merged.Before head video file and target video file are performed encapsulation, obtain head parameter, according to head parameter determination target head video file, target head video file is the head video file that needs and target video file carry out merging, and can be any one in SD form, high-definition format and super clear form.Alternatively, head video file and target video file are performed encapsulation to comprise: target head video file and target video file are performed encapsulation, obtains encapsulate video file.
Alternatively, if head video file only has one, such as, head video file is any one in the head video file of the head video file of SD form, the head video file of high-definition format and super clear form, then do not need to obtain head parameter.Only current head video file and target video file are encapsulated, obtain encapsulate video file.
Target video file in this embodiment can be that target video file is performed process according to preset format, and through merging the video file that shear treatment obtains.
The embodiment of the present invention comprises multiple by head video file, and before head video file and target video file are performed encapsulation, obtain head parameter, head parameter is the parameter for identifying head video file; According to head parameter determination target head video file, and target head video file and target video file are performed encapsulation, thus obtain encapsulate video file,
As the optional execution mode of one, the head video file of preset format comprises multiple head video files of different definition, and definition can be SD, high definition, super clear, the definition that multiple head video file is corresponding different respectively.Wherein, the physical resolution of the video of SD is 720p × 576p, and the physical resolution of the video of high definition is 1280p × 720p, and the physical resolution of super clear video is 1920p × 1080p.After head video file is performed process according to preset format, determine definition parameter, wherein, definition parameter is the parameter of the definition of head video file for representing preset format, such as, definition parameter can represent the definition of the head video file of TS form.Analyze definition parameter, determine the video format that definition parameter is corresponding, thus from multiple head video file, select the head video file of the preset format corresponding with definition parameter, such as, the head video file of the TS form corresponding with SD definition parameter is selected from multiple head video file, or from multiple head video file, select the head video file of the TS form corresponding with high definition definition parameter, or select the head video file of the TS form corresponding with super clear definition parameter from multiple head video file.Alternatively, the target video file execution merging of the head video file of preset format and preset format is comprised: the head video file of preset format corresponding for definition parameter and the target video file of preset format are performed merging, obtains merging video file.
Alternatively, the head video file of preset format only includes a kind of definition, such as, the definition of head video file be SD, high definition and super clear in any one, then direct the head video file of preset format corresponding for definition parameter and the target video file of preset format are performed merging, obtain merging video file.
Target video file in this embodiment can be that target video file is performed process according to preset format, and through merging the video file that shear treatment obtains.
The embodiment of the present invention comprises multiple head video files of different definition by the head video file of preset format, after head video file is performed process according to preset format, determine definition parameter, definition parameter is the parameter of the definition of head video file for representing preset format; The head video file of the preset format corresponding with definition parameter is selected from multiple head video file, the head video file of preset format corresponding for definition parameter and the target video file of preset format are performed merging, thus obtain merging video file, thus achieve technique effect video file being added to head video file when release quickly.
As the optional execution mode of one, after editing is performed to head encoded data stream, obtain multiple video parameters of the head video file of preset format corresponding to different definition respectively, such as, obtain multiple video parameters of the head video file of TS form corresponding to SD definition respectively, multiple video parameters of the head video file of the TS form that high definition definition is corresponding, multiple video parameters of the head video file of the TS form that super clear definition is corresponding, video parameter can be the parameter such as the code check of video, the resolution of video.Judge that whether multiple video parameter is consistent; If judge that multiple video parameter is inconsistent, multiple video parameter is adjusted to consistent video parameter, thus reduce the otherness of video parameter corresponding to different definition, guarantee accuracy and the reliability of head video file and target video Document encapsulation, thus ensure the success rate that the play quality of the video that encapsulate video file is corresponding and turning point are broadcast.
As the optional execution mode of one, head video file is performed process according to preset format and comprises.Fig. 4 is flow chart head video file being performed the method for process according to preset format according to the embodiment of the present invention.As shown in Figure 4, the method that head video file performs process according to preset format comprises the following steps by this:
Step S401, obtains preset task parameter.
Obtain preset task parameter, wherein, preset task parameter is the parameter of parameter for determining head video file and target video file.By preset task parameter determination target video file.Preset task parameter stores in a database, can be the content parameters of video, the parameter when carrying out non-linear editing, video file Download Info parameter etc., also can be the parameter of the information of store video files, such as, m3u8 fileinfo, wherein, m3u8 is a kind of stream media protocol of Apple's setting, and coded format is UTF-8 form, with directory information.
Alternatively, this embodiment is processed by cloud editing system.When cloud editing backstage turning point broadcasts task process, from database, obtain pending preset task parameter.
Step S402, resolves preset task parameter, obtains download address.
Preset task parameter comprises the Download Info of video file.After acquisition preset task parameter, by resolving preset task parameter, obtain download address, server corresponding to download address is for the data of the data and target video file that store head video file.
Step S403, obtains head video file and the target video file of preset format according to download address.
Resolve the preset task parameter of head video file and target video file, after obtaining the download address of head video file and target video file, obtain the head video file of preset format and the target video of preset format according to download address.Such as, website is clicked the download address of head video file and target video file, then the client of displaying video and server connect, and obtain the head video file of preset format and the target video file of preset format.
Alternatively, after the acquisition head video file of preset format and the target video file of preset format, by the video file that the head video file of preset format and the target video Piece file mergence of preset format are a preset format, obtain the merging video file of preset format.Alternatively, whether the mode judging video distribution is release quickly.Under the release quickly mode of video file, precise cutting is carried out to the merging video file of this preset format.When issuing multistage video, each section of video file is processed according to the method described above, until all video file tasks all process, finally the merging video file of all preset format is merged, always merged video file.If merging video file total is also release quickly mode, then carry out video streaming process to total video file that merges, make the video file finally obtained meet the requirement of video file release quickly.
The embodiment of the present invention is by obtaining preset task parameter, preset task parameter is the parameter of parameter for determining head video file and target video file, resolve preset task parameter, obtain download address, server corresponding to download address is for the data of the data and target video file that store head video file, the head video file of preset format is obtained according to download address, thus realize head video file to perform process according to preset format, thus achieve the technique effect to video file interpolation head video file when release quickly.
As the optional execution mode of one, at the application step S208, head video file and target video file are performed encapsulation, after obtaining encapsulate video file, issue encapsulate video file.Fig. 5 is the flow chart of the method for issue encapsulate video file according to the embodiment of the present invention.As shown in Figure 5, the method for this issue encapsulate video file comprises the following steps:
Step S501, is stored to preset service device by encapsulate video file.
This preset service device can be the unified storage server in architecture platform portion.After obtaining encapsulate video file, encapsulate video file is stored in the unified storage server in architecture platform portion.
Step S502, receives instruction to be released from preset service device.
Instruction to be released is the instruction of issuing encapsulate video file stored in preset service device, receives the instruction to be released of this encapsulate video file from preset service device.
Step S503, issues video corresponding to encapsulate video file according to instruction to be released.
After receive instruction to be released from preset service device, issue encapsulate video file, make website play video corresponding to encapsulate video file.
The embodiment of the present invention is by being stored to preset service device by encapsulate video file, instruction to be released is received from preset service device, video corresponding to encapsulate video file is issued according to instruction to be released, thus realize issuing encapsulate video file, thus achieve head video file is added and the technique effect issued encapsulate video file when release quickly to video file.
Be described below in conjunction with a preferred embodiment.
Fig. 6 is the flow chart of video file processing method according to a second embodiment of the present invention.As shown in Figure 6, this video file processing method comprises:
Step S601, cloud editing system turning point broadcasts task process.
The head video data of target video file is obtained by cloud editing system, coding is performed to head video data, obtains head encoded data stream, editing is performed to head encoded data stream, obtain head video file, cloud editing system is broadcast processor by turning point and is carried out turning point and broadcast task process.
Step S602, obtains preset task parameter and performs parsing to preset task parameter from database.
From database, obtain preset task parameter, preset task parameter can be the content parameters of video, the parameter when carrying out non-linear editing, video file Download Info parameter etc.
Step S603, obtains task m3u8 fileinfo and resolves m3u8 fileinfo.
After performing parsing to preset task parameter, obtain task m3u8 fileinfo, m3u8 file is the information of store video files, and resolves m3u8 fileinfo, obtains the directory information of video, also, and the index information of video.
Step S604, downloads the burst content of the video file of preset format.
After obtaining task m3u8 fileinfo and m3u8 fileinfo is resolved, can be downloaded the burst content of the video file of preset format by the download address in m3u8, or the download address of video file acquiescence downloads the burst content of the video file of preset format.Such as, download the head video file of TS form and the target video file of TS form, obtain the TS burst content of head video file and the TS burst content of target video file.
Step S605, merges into a preset format video file by the burst content of the video file of preset format.
After the burst content of video file downloading preset format, the burst content of the video file of the preset format of download is merged into a preset format video file, such as, by the video file that the head video file of the TS form of download and the target video Piece file mergence of TS form are a TS form, obtain the TS format video file merged.
Step S606, turns encapsulation process by preset format video file, obtains encapsulated result.
After the burst content of the video file by preset format merges into a preset format video file, preset format video file is turned encapsulation process, obtains encapsulated result, this encapsulated result comprises video file preset format being converted into other form.Such as, TS format video file is turned encapsulation process, the video file of mp4 form must be beaten.
Step S607, judges whether to the process of video file be release quickly.
Common issue to video file is comprised to the process of video file, and the release quickly to video file.Judge whether this cloud editing system is release quickly to the Processing tasks of video file.If be release quickly to the process of video file, perform step S608, if be not release quickly to the process of video file, directly perform step S609.
Step S608, carries out precise cutting to encapsulated result.
After judging whether the process of video file is release quickly, if be release quickly to the process of video file, precise cutting is carried out to encapsulated result, then perform step S609.
Step S609, judges whether to issue multistage video.
Cloud editing system, when processing video file, comprises process multistage video.Judge whether cloud editing system issues multistage video.If judge that cloud editing system issues multistage video, perform step S610, if judge that cloud editing system does not issue multistage video, perform step S613.
Step S610, whether multistage video processes.
If judge that cloud editing system issues multistage video, judge whether multistage video has processed, also be, judge that whether multistage video resolves m3u8 fileinfo through acquisition task m3u8 fileinfo, download the burst content of the video file of preset format, the burst content of the video file of preset format being merged into a preset format video file, when being release quickly to the Processing tasks of preset format video file, precise cutting being carried out to preset format video file.If do not processed multistage video, perform step S611, if complete to multistage Video processing, perform step S612.
Step S611, processes next section of video.
Next section of video in cloud editing system process multistage video, carries out the process such as editing to next section of video, realize the process to next section of video by execution step S603 to step S609.
Step S612, merges multistage video.
If processed multistage video, merge multistage video.
Whether step S613 is release quickly to the process of video file.
Again determine whether cloud editing system is release quickly to the process of food file.If be release quickly to the process of video file, perform step S615, if be not release quickly to the process of video file, perform step S614.
Step S614, uses default uploading tools uploaded videos concurrent transcoding.
If be not release quickly to the process of video file, use default uploading tools uploaded videos concurrent transcoding, also, the video obtained after merging multistage video by default uploading tools uploading step S612.
Step S615, video standard process.
If be release quickly to the process of video file, perform video standard process to multistage video, obtain standard video file, this standard video file meets the processing requirements of video playback.
Head video data can be input to hardware encoding machine and encode by the embodiment of the present invention, exports the video flowing of many definition.Use cloud editing system to carry out editing to the video flowing exported, obtain the head video file of many definition.Head video file is turned and is encapsulated as TS formatted file, and be issued to turning point and broadcast handling machine.Cloud editing system is when process turns release quickly task, turning point is broadcast machine and is obtained head parameter and analyze definition parameter, TS form target video file after the process such as merging shearing and head video file are carried out physics merging, again whole video file is turned and be encapsulated as mp4 form, be finally stored in the unified storage server in architecture platform portion.
The embodiment of the present invention is reached the standard grade by the fast worktodo of cloud editing system process video when issuing, by the process of sheet header file hardware encoding machine being gone out the sheet header file of many definition, when turning point broadcasts process, sheet header file and video file are carried out physics merging, make the video of Quick thread also can bring head, and the video parameter of each form is consistent, thus the play quality of the video that video file is corresponding can be ensured and guarantee that turning point is broadcast successfully.
Alternatively, the embodiment of the present invention can also at the head video data locally through acquisition target video file; Coding is performed to head video data, obtains head encoded data stream; Editing is performed to head encoded data stream, obtains head video file; Head video file and target video file are performed encapsulation, obtains encapsulate video file; Issue encapsulate video file, realize technique effect video file being added to head video file when release quickly.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, as read-only memory (Read-OnlyMemory, referred to as ROM)/random access memory (RandomAccessMemory, referred to as RAM), magnetic disc, in CD, comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, or the network equipment etc.) perform method described in the present invention each embodiment.
Embodiment 2
According to the embodiment of the present invention, additionally provide a kind of device for implementing above-mentioned video file processing method.Fig. 7 is the schematic diagram of video file processing unit according to a first embodiment of the present invention, and as shown in Figure 7, this video file processing unit comprises: the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50.
In the video file processing unit of this embodiment, first acquiring unit 10 may be used for performing the step S202 in the embodiment of the present invention, coding unit 20 may be used for performing the step 204 in the embodiment of the present invention, editing unit 30 may be used for performing the step S206 in the embodiment of the present invention, encapsulation unit 40 may be used for performing the step S208 in the embodiment of the present invention, and release unit 210 may be used for performing the step S210 in the embodiment of the present invention.
Above-mentioned first acquiring unit 10 of the application, for obtaining the head video data of target video file, wherein, head video data is the data of the head video of target video file.Target video file is the video file will issued on website.The head video of target video file is combine with target video file and before the video playback that target video file is corresponding, carry out the video play.The head video data of target video file is the data of the head video of target video file, can play head video by head video data.Alternatively, the head video data of select target video file in a database, thus determine the head video data of target video file.
Preferably, when carrying out editing process to target video file, the first acquiring unit 10 is obtained by the head video data of cloud editing system to target video file.Wherein, cloud editing system can carry out editing process to the video file of Cloud Server, such as, deletes, adds, shears the video information content in video file, the process such as merging, thus obtains the satisfied video content of user terminal.
The above-mentioned coding unit 20 of the application, for performing coding to head video data, obtains head encoded data stream.After the first acquiring unit 10 obtains the head video data of target video file, perform coding by coding unit 20 pairs of head video datas.Coding unit 20 can perform compressed encoding to obtain the coded format of video playback needs, the demand adapting to the different network bandwidths, meet different terminal processing capacity, meet different user terminals to head video data.
The coding unit 20 of this embodiment can by performing coding to head video data.The original video data of this head video can store in a hard disk by head video compression file in the mpeg format, the head video compression file of mpeg format is temporarily decoded, obtain the head video compression file of decoding, the form that the head video compression file of coding unit 20 to decoding needs when being re-encoded as video playback, such as, head video is encoded into the video of SD form, high-definition format, super clear form by coding unit 20, thus is another kind of form by the head video of input from a kind of format conversion.Alternatively, after head video compression file is temporarily decoded, the coding rule of the form that coding unit 20 needs when the head video compression file of decoding is re-encoded as video playback can be identical with the coding rule of the original video data of head video, also can be different.
Coding unit 20 pairs of head video datas perform coding, obtain head encoded data stream.Head encoded data stream be head video data encoded after transmission data.This head encoded data stream is the video flowing of many definition, and such as, head encoded data stream comprises the video flowing of the different definition such as SD format video stream, high-definition format video flowing, super clear format video stream of this head encoded data stream.
Preferably, when carrying out editing process to target video file, coding unit 20 performs coding by hardware encoding machine to head video data, obtains head encoded data stream.The original video data of head video stores in a hard disk with the head video compression file of preset format by hardware encoding machine, the head video compression file of preset format is temporarily decoded by hardware encoding machine, obtain the head video compression file of decoding, the form that needs when again video playback being re-encoded as to the head video compression file of decoding, thus by being another kind of form by the head video of input from a kind of format conversion.
The above-mentioned editing unit 30 of the application, for performing editing to head encoded data stream, obtains head video file.Perform coding at coding unit 20 pairs of head video datas, after obtaining head encoded data stream, editing is performed to head encoded data stream, obtains head video file.This head video file is can by the e-file of computer system identification, convenient and simple for operation easy, be convenient to management, save memory space, retrieval is quick, improves the utilance of head video.And this head video file has multi-format, comprise SD format video file, high-definition format video file, super clear format video file.
Preferably, when editing unit 30 pairs of target video files carry out editing process, by cloud editing system, editing is performed to head encoded data stream, obtain head video file.The materials such as background music, special efficacy, scene can be added in head video file by cloud editing system, the materials such as background music, special efficacy, scene be mixed with head video file, obtains new head video file.
The above-mentioned encapsulation unit 40 of the application, for head video file and target video file are performed encapsulation, obtains encapsulate video file.After obtaining head video file, head video file and target video file are performed encapsulation by encapsulation unit 40, obtain encapsulate video file.This embodiment is release quickly task to the task of target video file process.Alternatively, head video file and target video file are carried out physics merging by encapsulation unit 40, thus make the encapsulate video file obtained comprise head video file and target video file.Head video file and target video file can turn and be encapsulated as preset format by encapsulation unit 40, such as, head video file and target video file are turned and are encapsulated as TS file, the video file Quick thread after can making merging.
This embodiment is when video file process turns release quickly task, head video file and target video file are performed encapsulation by encapsulation unit 40, obtain encapsulate video file, then encapsulate video file is carried out video standard process, comprise the process of the code check to encapsulate video file, resolution, and other is to the optimization process of encapsulate video file, realize fast processing to encapsulate video file, thus achieve technique effect video file being added to head video file when release quickly.
Preferably, when carrying out editing process to target video file, head video file and target video file are performed encapsulation by cloud editing system by encapsulation unit 40, obtain encapsulate video file.The turning point that video file after merging is issued to cloud editing system after head video file and target video file are carried out physics merging, can be broadcast processor by encapsulation unit 40.The form of the video file after the merging that cloud editing system acceptance arrives can be TS file format.Video file after this merging can be SD format video file, can be high-definition format video file, also can be super clear format video file.After obtaining encapsulate video file, turning point is broadcast processor and encapsulate video file can be turned and be encapsulated as mp4 form.
The encapsulation unit 40 of the embodiment of the present invention can adopt various ways that head video file and target video file are being performed encapsulation, obtain encapsulate video file, the mode that head video file and target video file perform encapsulation is only the preferred embodiments of the present invention by above-mentioned encapsulation unit 40, and what do not represent the embodiment of the present invention only comprises aforesaid way by head video file and target video file execution encapsulation.The embodiment of the present invention can also comprise other add head video file mode when video file release quickly, illustrates no longer one by one herein.
The above-mentioned release unit 50 of the application, for issuing encapsulate video file.Head video file and target video file are performed encapsulation, after obtaining encapsulate video file, issues encapsulate video file by release unit 50.Alternatively, the video format that encapsulate video file comprises comprises SD video format, HD video form, super clear video format, the encapsulate video file of the encapsulate video file of the encapsulate video file of SD video format, HD video form, super clear video format is issued by release unit 50 respectively, is stored in the unified storage server in architecture platform portion by encapsulate video file.After encapsulate video file to be stored to the unified storage server in architecture platform portion by release unit 50, the video that encapsulate video file is corresponding can off the netly outside be play.
As the optional execution mode of one, Fig. 8 is the schematic diagram of video file processing unit according to a second embodiment of the present invention.As shown in Figure 8, this video file processing unit comprises: the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, wherein, encapsulation unit 40 comprises: the first processing module 41, second processing module 42, merges module 43 and package module 44.
In this embodiment, the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 is identical with the effect in the video file processing unit of first embodiment of the invention with release unit 50, does not repeat them here.
First processing module 41, for head video file is performed process according to preset format, obtains the head video file of preset format.
Second processing module 42, for target video file is performed process according to preset format, obtains the video file of preset format.
Merge module 43, for the head video file of preset format and the video file of preset format are performed merging, obtain merging video file.
Package module 44, performs encapsulation for merging video file, obtains encapsulate video file.
As the optional execution mode of one, Fig. 9 is the schematic diagram of video file processing unit according to a third embodiment of the present invention.As shown in Figure 9, this video file processing unit comprises: the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, encapsulation unit 40 comprises: the first processing module 41, second processing module 42, merge module 43 and package module 44, this video file processing unit also comprises: second acquisition unit 60 and the first determining unit 70.
In this embodiment, head video file comprises multiple, first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, first processing module 41, second processing module 42, merges module 43 and package module 44, identical with the effect in the video file processing unit of second embodiment of the invention, do not repeat them here.
Second acquisition unit 60, for before head video file and target video file are performed encapsulation, obtain head parameter, wherein, head parameter is the parameter for identifying head video file.
First determining unit 70, for according to head parameter determination target head video file.
Encapsulation unit 40, for target head video file and target video file are performed encapsulation, obtains encapsulate video file.
As the optional execution mode of one, Figure 10 is the schematic diagram of video file processing unit according to a fourth embodiment of the present invention.As shown in Figure 10, this video file processing unit comprises: the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, encapsulation unit 40 comprises: the first processing module 41, second processing module 42, merge module 43 and package module 44, this video file processing unit also comprises: the second determining unit 80 and selected cell 90.
In this embodiment, the head video file of preset format comprises multiple head video files of different definition, first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, first processing module 41, second processing module 42, merges module 43 and package module 44, identical with the effect in the video file processing unit of second embodiment of the invention, do not repeat them here.
Second determining unit 80, for after head video file is performed process according to preset format, determine definition parameter, wherein, definition parameter is the parameter of the definition of head video file for representing preset format.
Selected cell 90, for selecting the head video file of the preset format corresponding with definition parameter from multiple head video file.
Merge module 43 for the head video file of preset format corresponding for definition parameter and the video file of preset format are performed merging, obtain merging video file.
As the optional execution mode of one, Figure 11 is the schematic diagram of video file processing unit according to a fifth embodiment of the present invention.As shown in figure 11, this video file processing unit comprises: the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, second determining unit 80 and selected cell 90, encapsulation unit 40 comprises: the first processing module 41, second processing module 42, merges module 43 and package module 44.This video file processing unit also comprises: the 3rd acquiring unit 100, judging unit 110 and adjustment unit 120.
In this embodiment, the head video file of preset format comprises multiple head video files of different definition, the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40, release unit 50, second determining unit 80 and selected cell 90, first processing module 41, second processing module 42, merges module 43 and package module 44, identical with the effect in the video file processing unit of fourth embodiment of the invention, do not repeat them here.
3rd acquiring unit 100, for after performing editing to head encoded data stream, obtains multiple video parameters of the head video file of preset format corresponding to different definition respectively.
Judging unit 110, for judging that whether multiple video parameter is consistent.
If adjustment unit 120 judges that multiple video parameter is inconsistent, multiple video parameter is adjusted to consistent video parameter.
As the optional execution mode of one, Figure 12 is the schematic diagram of video file processing unit according to a sixth embodiment of the present invention.As shown in figure 12, this video file processing unit comprises: the first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, second determining unit 80 and selected cell 90, encapsulation unit 40 comprises: the first processing module 41, second processing module 42, merges module 43 and package module 44.First processing module comprises: obtain submodule 411, analyzing sub-module 412 and acquisition submodule 413.
In this embodiment, first acquiring unit 10, coding unit 20, editing unit 30, encapsulation unit 40 and release unit 50, first processing module 41, second processing module 42, merge module 43 and package module 44, identical with the effect in the video file processing unit of second embodiment of the invention, do not repeat them here.
Obtain submodule 411, for obtaining preset task parameter, wherein, preset task parameter is the parameter for determining target video file.
Analyzing sub-module 412, for resolving preset task parameter, obtains download address, and wherein, server corresponding to download address is for storing the data of target video file.
Obtain submodule 413, for obtaining the head video file of preset format according to download address.
The embodiment of the present invention obtains the head video data of target video file by the first acquiring unit 10, head video data is the data of the head video of target video file, coding is performed by coding unit 20 pairs of head video datas, obtain head encoded data stream, editing is performed by editing unit 30 pairs of head encoded data streams, obtain head video file, by encapsulation unit 40, head video file and target video file are performed encapsulation, obtain encapsulate video file, encapsulate video file is issued by release unit 50, achieve technique effect video file being added to head video file when release quickly.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium may be used for preserving the program code performed by a kind of video file processing method of above-described embodiment.
Alternatively, in the present embodiment, above-mentioned storage medium can be arranged at least one network equipment of multiple network equipments of computer network.
Alternatively, in the present embodiment, storage medium is set to store the program code for performing following steps:
Obtain the head video data of target video file, wherein, head video data is the data of the head video of target video file.
Coding is performed to head video data, obtains head encoded data stream.
Editing is performed to head encoded data stream, obtains head video file.
Head video file and target video file are performed encapsulation, obtains encapsulate video file.
Issue encapsulate video file.
Alternatively, storage medium is also set to store the program code for performing following steps: head video file is performed process according to preset format, obtains the head video file of preset format; Target video file is performed process according to preset format, obtains the video file of preset format; The head video file of preset format and the video file of preset format are performed merging, obtains merging video file; Video file will be merged and perform encapsulation, obtain encapsulate video file.
Alternatively, storage medium is also set to store the program code for performing following steps: head video file comprises multiple, before head video file and target video file are performed encapsulation, obtains head parameter, wherein, head parameter is the parameter for identifying head video file; According to head parameter determination target head video file, wherein, head video file and target video file are performed encapsulation to comprise: target head video file and target video file are performed encapsulation, obtains encapsulate video file.
Alternatively, storage medium is also set to store the program code for performing following steps: the head video file of preset format comprises multiple head video files of different definition, after head video file is performed process according to preset format, determine definition parameter, wherein, definition parameter is the parameter of the definition of head video file for representing preset format; The head video file of the preset format corresponding with definition parameter is selected from multiple head video file, wherein, the video file execution merging of the head video file of preset format and preset format is comprised: the head video file of preset format corresponding for definition parameter and the video file of preset format are performed merging, obtains merging video file.
Alternatively, storage medium is also set to store the program code for performing following steps: after performing editing to head encoded data stream, obtain multiple video parameters of the head video file of preset format corresponding to different definition respectively; Judge that whether multiple video parameter is consistent; If judge that multiple video parameter is inconsistent, multiple video parameter is adjusted to consistent video parameter.
Alternatively, storage medium is also set to store the program code for performing following steps: obtain preset task parameter, wherein, preset task parameter is the parameter for determining target video file; Resolve preset task parameter, obtain download address, wherein, server corresponding to download address is for storing the data of target video file; The head video file of preset format is obtained according to download address.
Alternatively, storage medium is also set to store the program code for performing following steps: encapsulate video file is stored to preset service device; Instruction to be released is received from preset service device; Video corresponding to encapsulate video file is issued according to instruction to be released.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, read only memory ROM, random access memory ram, portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
Embodiment 4
Embodiments of the invention also provide a kind of terminal, and this terminal can be any one computer terminal in terminal group.Alternatively, in the present embodiment, above computer terminal also can replace with the terminal equipments such as mobile terminal.
Alternatively, in the present embodiment, above computer terminal can be arranged at least one network equipment of multiple network equipments of computer network.
Alternatively, Figure 13 is the structured flowchart of the terminal according to the embodiment of the present invention.As shown in figure 13, this terminal A can comprise: one or more (only illustrating one in figure) processor 131, memory 133 and transmitting device 135.
Wherein, memory 133 can be used for storing software program and module, as the video file processing method in the embodiment of the present invention and program command/module corresponding to device, processor 131 is by running the software program and module that are stored in memory 133, thus perform the application of various function and data processing, namely realize above-mentioned video file processing method.Memory 133 can comprise high speed random asccess memory, can also comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 133 can comprise the memory relative to the long-range setting of processor 131 further, and these remote memories can be connected to terminal A by network.The example of above-mentioned network includes but not limited to the Internet, intranet, local area network (LAN), mobile radio communication and combination thereof.
Above-mentioned transmitting device 135 for via a network reception or send data.Above-mentioned network instantiation can include spider lines and wireless network.In an example, transmitting device 135 comprises a network adapter NIC, and it to be connected with router by netting twine and other network equipments thus can to carry out communication with the Internet or local area network (LAN).In an example, transmitting device 135 is radio frequency module, and it is for wirelessly carrying out communication with the Internet.
Memory 133 is for storing information and the application program of deliberate action condition and default access user.
Processor 131 can call information and the application program of memory 133 storage by transmitting device, to perform the program code of following step:
Obtain the head video data of target video file, wherein, head video data is the data of the head video of target video file.
Coding is performed to head video data, obtains head encoded data stream.
Editing is performed to head encoded data stream, obtains head video file.
Head video file and target video file are performed encapsulation, obtains encapsulate video file.
Issue encapsulate video file.
Alternatively, the concrete example in the present embodiment can with reference to the example described in above-described embodiment 1 and embodiment 2, and the present embodiment does not repeat them here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
If the integrated unit in above-described embodiment using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in the storage medium that above computer can read.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in storage medium, comprises all or part of step of some instructions in order to make one or more computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed client, the mode by other realizes.Wherein, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (13)

1. a video file processing method, is characterized in that, comprising:
Obtain the head video data of target video file;
Coding is performed to described head video data, obtains head encoded data stream;
Editing is performed to described head encoded data stream, obtains head video file;
Described head video file and described target video file are performed encapsulation, obtains encapsulate video file; And
Issue described encapsulate video file.
2. method according to claim 1, is characterized in that, described described head video file and described target video file is performed encapsulation, obtains encapsulate video file and comprises:
Described head video file is performed process according to preset format, obtains the head video file of described preset format;
Described target video file is performed process according to described preset format, obtains the target video file of described preset format;
The head video file of described preset format and the target video file of described preset format are performed merging, obtains merging video file; And
Described merging video file is performed encapsulation, obtains described encapsulate video file.
3. method according to claim 2, is characterized in that, described head video file comprises multiple, and before described head video file and described target video file are performed encapsulation, described method also comprises:
Obtain head parameter, wherein, described head parameter is the parameter for identifying described head video file; And
According to described head parameter determination target head video file,
Wherein, described head video file and described target video file are performed encapsulation, obtains encapsulate video file and comprise: described target head video file and described target video file are performed encapsulation, obtains described encapsulate video file.
4. method according to claim 2, is characterized in that, the head video file of described preset format comprises multiple head video files of different definition,
After described head video file is performed process according to described preset format, described method also comprises: determine definition parameter, and wherein, described definition parameter is the parameter of the definition of head video file for representing described preset format; The head video file of the described preset format corresponding with described definition parameter is selected from described multiple head video file,
Wherein, described the head video file of described preset format and the target video file of described preset format are performed merging, obtain merging video file to comprise: the head video file of preset format corresponding for described definition parameter and the target video file of described preset format are performed merging, obtains described merging video file.
5. method according to claim 4, is characterized in that, after performing editing to described head encoded data stream, described method also comprises:
Obtain multiple video parameters of the head video file of preset format corresponding to different definition respectively;
Judge that whether described multiple video parameter is consistent; And
If judge that described multiple video parameter is inconsistent, described multiple video parameter is adjusted to consistent video parameter.
6. method according to claim 2, is characterized in that, before the target video file of the head video file of described preset format and described preset format is performed merging, described method also comprises:
Obtain preset task parameter, wherein, described preset task parameter is the parameter of parameter for determining described head video file and described target video file;
Resolve described preset task parameter, obtain download address, wherein, server corresponding to described download address is for the data of the data and described target video file that store described head video file; And
The head video file of described preset format and the target video file of described preset format is obtained according to described download address.
7. method according to claim 1, is characterized in that, the described encapsulate video file of described issue comprises:
Described encapsulate video file is stored to preset service device;
Instruction to be released is received from described preset service device; And
Video corresponding to described encapsulate video file is issued according to described instruction to be released.
8. a video file processing unit, is characterized in that, comprising:
First acquiring unit, for obtaining the head video data of target video file;
Coding unit, for performing coding to described head video data, obtains head encoded data stream;
Editing unit, for performing editing to described head encoded data stream, obtains head video file;
Encapsulation unit, for described head video file and described target video file are performed encapsulation, obtains encapsulate video file; And
Release unit, for issuing described encapsulate video file.
9. device according to claim 8, is characterized in that, described encapsulation unit comprises:
First processing module, for described head video file is performed process according to preset format, obtains the head video file of described preset format;
Second processing module, for described target video file is performed process according to described preset format, obtains the target video file of described preset format;
Merge module, for the head video file of described preset format and the target video file of described preset format are performed merging, obtain merging video file; And
Package module, for described merging video file is performed encapsulation, obtains described encapsulate video file.
10. device according to claim 9, is characterized in that, described head video file comprises multiple, and described device also comprises:
Second acquisition unit, for before described head video file and described target video file are performed encapsulation, obtain head parameter, wherein, described head parameter is the parameter for identifying described head video file; And
First determining unit, for according to described head parameter determination target head video file,
Wherein, described encapsulation unit is used for described target head video file and described target video file to perform encapsulation, obtains described encapsulate video file.
11. devices according to claim 9, is characterized in that, the head video file of described preset format comprises multiple head video files of different definition, and described device also comprises:
Second determining unit, for after described head video file is performed process according to described preset format, determines definition parameter, and wherein, described definition parameter is the parameter of the definition of head video file for representing described preset format; And
Selected cell, for selecting the head video file of the described preset format corresponding with described definition parameter from described multiple head video file,
Wherein, described merging module is used for the head video file of preset format corresponding for described definition parameter and the target video file of described preset format to perform merging, obtains described merging video file.
12. devices according to claim 11, is characterized in that, described device also comprises:
3rd acquiring unit, for after performing editing to described head encoded data stream, obtains multiple video parameters of the head video file of preset format corresponding to different definition respectively;
Judging unit, whether consistent for judging described multiple video parameter; And
If adjustment unit judges that described multiple video parameter is inconsistent, described multiple video parameter is adjusted to consistent video parameter.
13. devices according to claim 9, is characterized in that, described first processing module comprises:
Obtain submodule, for obtaining preset task parameter, wherein, described preset task parameter is the parameter for determining described target video file;
Analyzing sub-module, for resolving described preset task parameter, obtains download address, and wherein, server corresponding to described download address is for storing the data of described target video file; And
Obtain submodule, for obtaining the head video file of described preset format according to described download address.
CN201610032848.1A 2016-01-18 2016-01-18 Video file processing method and device Active CN105516736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610032848.1A CN105516736B (en) 2016-01-18 2016-01-18 Video file processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610032848.1A CN105516736B (en) 2016-01-18 2016-01-18 Video file processing method and device

Publications (2)

Publication Number Publication Date
CN105516736A true CN105516736A (en) 2016-04-20
CN105516736B CN105516736B (en) 2020-07-28

Family

ID=55724326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610032848.1A Active CN105516736B (en) 2016-01-18 2016-01-18 Video file processing method and device

Country Status (1)

Country Link
CN (1) CN105516736B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309868A (en) * 2018-08-19 2019-02-05 朱丽萍 Video file Command Line Parsing system
CN109618111A (en) * 2018-12-28 2019-04-12 北京亿幕信息技术有限公司 Cloud cuts dissemination system by all kinds of means
CN109714540A (en) * 2019-02-26 2019-05-03 浪潮软件集团有限公司 A kind of H265 format monitor video merging method, device and system
CN110062278A (en) * 2019-04-12 2019-07-26 北京字节跳动网络技术有限公司 Video data issues method, apparatus, electronic equipment and storage medium
CN110324658A (en) * 2018-03-28 2019-10-11 优酷网络技术(北京)有限公司 Method for processing video frequency and device
CN110995830A (en) * 2019-11-29 2020-04-10 武汉卓讯互动信息科技有限公司 Network resource processing method and device
CN111918113A (en) * 2020-07-29 2020-11-10 深圳市豪恩汽车电子装备股份有限公司 Video memory and storage method, video thumbnail display device and display method
CN113141536A (en) * 2020-01-17 2021-07-20 北京达佳互联信息技术有限公司 Video cover adding method and device, electronic equipment and storage medium
CN115348459A (en) * 2022-08-16 2022-11-15 支付宝(杭州)信息技术有限公司 Short video processing method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102630041A (en) * 2012-04-01 2012-08-08 央视国际网络有限公司 Processing method, device and system for television program data
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN103442252A (en) * 2013-08-21 2013-12-11 宇龙计算机通信科技(深圳)有限公司 Method and device for processing video
CN103716656A (en) * 2013-12-11 2014-04-09 乐视网信息技术(北京)股份有限公司 Video loading method and electronic device
US20140258862A1 (en) * 2013-03-08 2014-09-11 Johannes P. Schmidt Content presentation with enhanced closed caption and/or skip back
CN104639861A (en) * 2015-02-06 2015-05-20 福州新锐同创电子科技有限公司 High-definition recording and playing system
CN104823453A (en) * 2012-10-05 2015-08-05 谷歌公司 Stitching videos into aggregate video
CN104935955A (en) * 2015-05-29 2015-09-23 腾讯科技(北京)有限公司 Live video stream transmission method, device and system
CN104936016A (en) * 2014-03-17 2015-09-23 无锡天脉聚源传媒科技有限公司 Video combination method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102630041A (en) * 2012-04-01 2012-08-08 央视国际网络有限公司 Processing method, device and system for television program data
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN104823453A (en) * 2012-10-05 2015-08-05 谷歌公司 Stitching videos into aggregate video
US20140258862A1 (en) * 2013-03-08 2014-09-11 Johannes P. Schmidt Content presentation with enhanced closed caption and/or skip back
CN103442252A (en) * 2013-08-21 2013-12-11 宇龙计算机通信科技(深圳)有限公司 Method and device for processing video
CN103716656A (en) * 2013-12-11 2014-04-09 乐视网信息技术(北京)股份有限公司 Video loading method and electronic device
CN104936016A (en) * 2014-03-17 2015-09-23 无锡天脉聚源传媒科技有限公司 Video combination method and system
CN104639861A (en) * 2015-02-06 2015-05-20 福州新锐同创电子科技有限公司 High-definition recording and playing system
CN104935955A (en) * 2015-05-29 2015-09-23 腾讯科技(北京)有限公司 Live video stream transmission method, device and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324658A (en) * 2018-03-28 2019-10-11 优酷网络技术(北京)有限公司 Method for processing video frequency and device
CN109309868A (en) * 2018-08-19 2019-02-05 朱丽萍 Video file Command Line Parsing system
CN109618111A (en) * 2018-12-28 2019-04-12 北京亿幕信息技术有限公司 Cloud cuts dissemination system by all kinds of means
CN109618111B (en) * 2018-12-28 2021-04-02 北京亿幕信息技术有限公司 Cloud-shear multi-channel distribution system
CN109714540A (en) * 2019-02-26 2019-05-03 浪潮软件集团有限公司 A kind of H265 format monitor video merging method, device and system
CN110062278A (en) * 2019-04-12 2019-07-26 北京字节跳动网络技术有限公司 Video data issues method, apparatus, electronic equipment and storage medium
CN110995830A (en) * 2019-11-29 2020-04-10 武汉卓讯互动信息科技有限公司 Network resource processing method and device
CN110995830B (en) * 2019-11-29 2023-01-31 武汉卓讯互动信息科技有限公司 Network resource processing method and device
CN113141536A (en) * 2020-01-17 2021-07-20 北京达佳互联信息技术有限公司 Video cover adding method and device, electronic equipment and storage medium
CN111918113A (en) * 2020-07-29 2020-11-10 深圳市豪恩汽车电子装备股份有限公司 Video memory and storage method, video thumbnail display device and display method
CN115348459A (en) * 2022-08-16 2022-11-15 支付宝(杭州)信息技术有限公司 Short video processing method and device

Also Published As

Publication number Publication date
CN105516736B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN105516736A (en) Video file processing method and device
CN108989885B (en) Video file transcoding system, segmentation method, transcoding method and device
US10587907B2 (en) Broadcast management services platform
US20140219634A1 (en) Video preview creation based on environment
CN101889425B (en) Apparatus and method for simulcast over variable bandwidth channel
CN102625150A (en) Media playing system and method
CN107211200B (en) Method and apparatus for transmitting/receiving media data
CN104243998A (en) Data processing method, data processing device and related servers
US10492100B2 (en) Broadcast signal transmission apparatus, broadcast signal receiving apparatus, broadcast signal transmission method, and broadcast signal receiving method
CN103986945A (en) Hybrid network system, channel content replay method and hybrid set top box
EP3244626A1 (en) Reception device, reception method, transmission device, and transmission method
CN111629283B (en) Multi-stream media gateway service system and method
KR20170141677A (en) Receiving device, transmitting device and data processing method
CN103716681A (en) Code stream switching method and electronic equipment
CN115599744A (en) File transcoding method and device, storage medium and electronic device
CN104935952A (en) Video transcoding method and system
KR20170000312A (en) Method and apparatus for digital broadcast services
KR101944601B1 (en) Method for identifying objects across time periods and corresponding device
Aoki et al. New media transport technologies in super hi-vision broadcasting systems
CN104333765A (en) Processing method and device of video live streams
Nguyen et al. CADLAD: Device-aware bitrate ladder construction for HTTP adaptive streaming
US20190227866A1 (en) Information processing device and method
CN107211166A (en) Method for sending data flow using direct Radio Broadcasting Agreements
JP2007123984A (en) Content distribution system, stream transmission apparatus, receiving apparatus, and content distribution method
US9319719B2 (en) Method for processing video and/or audio signals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant