CN106210884A - The code-transferring method of video file and device - Google Patents

The code-transferring method of video file and device Download PDF

Info

Publication number
CN106210884A
CN106210884A CN201610550922.9A CN201610550922A CN106210884A CN 106210884 A CN106210884 A CN 106210884A CN 201610550922 A CN201610550922 A CN 201610550922A CN 106210884 A CN106210884 A CN 106210884A
Authority
CN
China
Prior art keywords
target
video
transcoding
stream
source
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
CN201610550922.9A
Other languages
Chinese (zh)
Other versions
CN106210884B (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 CN201610550922.9A priority Critical patent/CN106210884B/en
Publication of CN106210884A publication Critical patent/CN106210884A/en
Priority to PCT/CN2017/092615 priority patent/WO2018010662A1/en
Application granted granted Critical
Publication of CN106210884B publication Critical patent/CN106210884B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)

Abstract

The invention discloses code-transferring method and the device of a kind of video file.Wherein, the method includes: obtain source video flowing from the source video file treating transcoding;Source video flowing carrying out pre-transcoding process, obtains target position information, wherein, target position information is for indicating the target location of every IDR frame;According to target position information, source video stream transcoding being become at least two-way target video stream, wherein, in the target video stream of at least two-way target video Liu Zhongmei road, align with target location in the position of every IDR frame.The present invention solves video in correlation technique and switches slack technical problem in playing process.

Description

The code-transferring method of video file and device
Technical field
The present invention relates to MultiMedia Field, in particular to code-transferring method and the device of a kind of video file.
Background technology
In video industry in existing society, video playback is experienced critically important for each video website, and video is broadcast The fluency put is that each big video website is pursued a goal.Because the smooth broadcasting without card, is most basic for user Requirement.But, owing to, in society, owing to domestic network foundation environment is poor, therefore, often occurring that network congestion etc. is asked Topic, and then, cause that the online playing process of video occurs the phenomenon such as buffering, card, had a strong impact on Consumer's Experience.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide code-transferring method and the device of a kind of video file, at least to solve correlation technique regards Frequency switches slack technical problem in playing process.
An aspect according to embodiments of the present invention, it is provided that the code-transferring method of a kind of video file, including: from treating transcoding Source video file in obtain source video flowing;Described source video flowing is carried out pre-transcoding process, obtains target position information, its In, described target position information is for indicating the target location of every IDR frame;According to described target position information by described source video flowing It is transcoded at least two-way target video stream, wherein, every IDR frame in the target video stream of described at least two-way target video Liu Zhongmei road Position align with described target location.
Another aspect according to embodiments of the present invention, additionally provides the transcoding device of a kind of video file, including: first obtains Take unit, for obtaining source video flowing from the source video file treating transcoding;Processing unit, for carrying out described source video flowing Pre-transcoding processes, and obtains target position information, and wherein, described target position information is for indicating the target location of every IDR frame;First Transcoding units, for according to described target position information described source video stream transcoding being become at least two-way target video stream, wherein, In the target video stream of described at least two-way target video Liu Zhongmei road, align with described target location in the position of every IDR frame.
In embodiments of the present invention, acquisition source video flowing from the source video file treating transcoding is used;To described source video Stream carries out pre-transcoding process, obtains target position information, and wherein, described target position information is for indicating the target position of every IDR frame Put;According to described target position information, described source video stream transcoding is become at least two-way target video stream, wherein, described at least two The mode that in the target video stream of target video Liu Zhongmei road, road, align with described target location in the position of every IDR frame, first to obtaining The source video flowing of getting carries out pre-transcoding process, according to after processing to target position information determine the target location of every IDR frame, Then, on the basis of getting target position information, source video stream transcoding become at least two-way target of different resolution regard Frequency stream, wherein, at least in two-way target video stream, align with target location in the position of the every IDR frame in each target video stream, because of This, when video is in playing process, can arbitrarily switch in target video stream, does not haves weight when video switches over The phenomenon that replay is put, has reached the purpose taken over seamlessly between the video flowing of different code streams, it is achieved thereby that video playback mistake Journey can carry out the technique effect of smooth switching, and then solve video in correlation technique and switch the most smooth in playing process Technical problem.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of the code-transferring method of video file according to embodiments of the present invention;
Fig. 2 is the flow chart of the code-transferring method of a kind of optional video file according to embodiments of the present invention;
Fig. 3 is the flow chart of the code-transferring method of a kind of optional video file according to embodiments of the present invention;
Fig. 4 is that source video stream transcoding is become at least in two-way target video stream by according to embodiments of the present invention a kind of optional The flow chart of a road target video stream;
Fig. 5 is that another kind according to embodiments of the present invention is optional becomes at least two-way target video stream by source video stream transcoding The flow chart of Zhong mono-road target video stream;
Fig. 6 is a kind of flow process optionally source video flowing and source audio stream being packaged according to embodiments of the present invention Figure;
Fig. 7 is the schematic diagram of the transcoding device of a kind of optional video file according to embodiments of the present invention;And
Fig. 8 is the structured flowchart of a kind of terminal according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, all should belong to the model of present invention protection Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that so use Data can exchange in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or Order beyond those described is implemented.Additionally, term " includes " and " having " and their any deformation, it is intended that cover Cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to Those steps clearly listed or unit, but can include the most clearly listing or for these processes, method, product Or intrinsic other step of equipment or unit.
When user watches video in video web-pages or in video APP, the phenomenons such as card often occur, now, is Whether system can reduce the definition playing video by automatically prompting user, or is automatically switched to by fine definition broadcast state low clearly Clear degree broadcast state.The video play is carried out the processing method that the degradation of definition is play, server can be made to send low code The video flowing of rate, reduces bandwidth occupancy, it is to avoid caches and blocks the generation timed.
Video is carried out by prior art definition demote play process during, it may appear that video switching do not flow Smooth phenomenon.Such as, when the video flowing of 1080P is switched to the video flowing of 720P, also can repeat playing one section and play Video.For the problems referred to above, inventor finds, frame of video when decoding, can reference picture group (Group of Pictures, It is called for short GOP) other frames in unit, due to relation complementary between frame, the moment point of definition switching, it is only possible to occur Finishing of a upper GOP, next GOP opens the when of broadcasting.Owing to every IDR frame data are positioned at the beginning of GOP, because of This, as long as ensureing must to align in the every IDR frame of high code stream and the IDR position of low code stream, it is possible to ensure smoothness during video playback Switching.Picture group GOP includes I frame, P frame and B frame, and wherein, during I frame, when intra-coded frame, P frame, forward predicted frame, B frame are double To interpolation frame.What I frame was a complete picture, P frame and B frame for record is the change relative to I frame, does not has I frame, P frame Cannot decode with B frame.
For the problems referred to above, below in conjunction with specific embodiment, the embodiment of the present invention is specifically introduced.
Embodiment 1
According to embodiments of the present invention, it is provided that the embodiment of the method for the transcoding of a kind of video file.
Alternatively, in the present embodiment, the code-transferring method of above-mentioned video file can apply to as shown in Figure 1 by servicing In the hardware environment that device 102 and terminal 104 are constituted.As it is shown in figure 1, server 102 is carried out even by network and terminal 104 Connecing, above-mentioned network includes but not limited to: wide area network, Metropolitan Area Network (MAN) or LAN, and terminal 104 is not limited to PC, mobile phone, flat board electricity Brain etc..The code-transferring method of the video file of the embodiment of the present invention can be performed by server 102, it is also possible to by terminal 104 Perform, it is also possible to be jointly to be performed by server 102 and terminal 104.Wherein, terminal 104 performs the video of the embodiment of the present invention The code-transferring method of file can also be to be performed by client mounted thereto.
The main operational principle of the hardware environment system shown in Fig. 1 is:
Terminal 104 obtains the source video file treating transcoding from server 102, wherein, in the source video file got Including source audio stream and source video flowing.Source video flowing and source audio stream are separated by terminal 104, and the source after being separated regards Frequency stream and source audio stream.Then, terminal 104 carries out pre-transcoding process according to transcoding parameter to the source video flowing got, and obtains Comprise the status file of the relevant informations such as frame type information, and determine the target position for indicating every IDR frame according to this status file The target position information put.After terminal 104 obtains target position information, it is possible to according to target position information by above-mentioned separation The source video stream transcoding obtained becomes the target video stream that at least two-way resolution differs, wherein, at least two-way target video stream In IDR position in each target video stream align with target location.By above-mentioned alignment IDR position, it is possible at video flowing During switching, it is achieved take over seamlessly.
Fig. 2 is the flow chart of the code-transferring method of a kind of optional video file according to embodiments of the present invention, such as Fig. 2 institute Showing, the method may comprise steps of:
Step S202, obtains source video flowing from the source video file treating transcoding.
In embodiments of the present invention, after terminal obtains the source video file treating transcoding from server, can be by source video Source audio stream and source video in file separate, the source video flowing after being separated and source audio stream.
Step S204, carries out pre-transcoding process, obtains target position information source video flowing, wherein, and target position information For indicating the target location of every IDR frame.
In embodiments of the present invention, terminal can carry out pre-transcoding process according to the transcoding parameter of configuration to source video flowing, Obtaining the target position information of target location for indicating every IDR frame, wherein, every IDR frame is first in any one picture group GOP Individual I frame.It is to say, by source video flowing being carried out pre-transcoding process, first I of any one picture group GOP can be obtained The position of frame.Above-mentioned transcoding parameter includes resolution and the code prosecutor formula of video flowing, and resolution is less than predetermined value.
Step S206, becomes at least two-way target video stream according to target position information by source video stream transcoding, wherein, at least In the target video stream of two-way target video Liu Zhongmei road, align with described target location in the position of every IDR frame.
In embodiments of the present invention, after getting above-mentioned target position information, it is possible to source video stream transcoding is become At least target video stream of two-way, such as, is transcoded into the video flowing that resolution is 1080P, or to be transcoded into resolution be 720P Video flowing.Further, the position of every IDR frame in the video flowing that the resolution obtained is 1080P and video flowing that resolution is 720P Put and align with above-mentioned target location.
By above-mentioned steps S202 to step S206, first the source video flowing of getting is carried out pre-transcoding process, according to place After reason to target position information determine the target location of every IDR frame, then, on the basis getting target position information On, source video stream transcoding is become at least two-way target video stream of different resolution, wherein, at least every in two-way target video stream Aliging with target location in the position of the every IDR frame in individual target video stream, therefore, when video is in playing process, can arbitrarily exist Target video stream switches over, does not haves the phenomenon repeated playing when video switches over, reached regarding of different code streams The purpose taken over seamlessly between frequency stream, it is achieved thereby that video display process can carry out the technique effect of smooth switching, And then solve video in correlation technique in playing process, switch slack technical problem.
By above-mentioned steps S206, in embodiments of the present invention, it is based on target position information to be circulated by source video Code becomes at least two-way target video stream, and wherein, at least two-way target video Liu Zhongmei road video flowing enters the most in the same manner Row transcoding processes.Specifically, when source video flowing being carried out transcoding and obtaining every road target video stream, can first source video be flow to Row decoding, obtains original video data, and wherein, original video data is made up of several frame of video.Original regarding is obtained in decoding The frame position of target location in original video data according to afterwards, is set to every IDR frame by frequency, then, in initial data except Each frame of video outside every IDR frame carries out Video coding, obtains a road target video stream.
It should be noted that in the technical scheme that above-mentioned steps S204 of the present invention provides, terminal gets source video flowing Afterwards, source video can be carried out first time coded treatment according to the transcoding parameter of configuration, preserve in an encoding process, for each The statistical information such as frame generating quantification value, and the judgement information of frame type, and it is saved as a status file;It it is second time Coding provides reference information, and wherein, the transcoding parameter of configuration can be chosen for resolution 270P, code prosecutor formula is the transcoding of crf Parameter.It is to say, recorded the target position information of the target location for indicating every IDR frame in the status file generated. When source video stream transcoding is become at least two-way target video stream according to target position information by step S206, can be according to above-mentioned same The target position information of the target location for indicating every IDR frame recorded in one status file source video flowing is converted into Few two-way target video.
It is all alignment by the every IDR frame of two-path video any at least two-way target video that the method obtains, therefore, Ensure that video fluency in handoff procedure.
For example, certain video website is given tacit consent to definition that two kinds of definitions, i.e. resolution are 1080P (that is, high Clearly), or definition (that is, SD) that resolution is 720P.It is assumed that user A selects, in this video website, high definition is (i.e., 1080P) play entitled: the video file of " xx challenges the first phase ", wherein, at video file before being played, according to upper State step S202 to process to the technical scheme described in step S208, obtain two-way target video stream, i.e. resolution Video flowing and resolution for 1080P are the video flowing of 720P.The video flowing that resolution is 1080P obtained by said method With in the video flowing two-way target video stream that resolution is 720P, the position of every IDR frame is alignment.
If during playing above-mentioned video file, due to network, cause video during playing The phenomenon of card occurs, in order to not affect the progress of broadcasting, the high definition of current setting can be play and manually or automatically adjust Play for SD (that is, 720P).The method the most provided according to the embodiment of the present invention due to the video file play Processing, therefore, in the two-way target video stream after transcoding, the position of every IDR frame is alignment, so, high definition will play When video flowing switches to broadcasting SD video flowing, it is possible to achieve take over seamlessly, do not have to repeat playing and the most broadcast The phenomenon of the video let slip.It is integrally improved the fluency of video playback, improves Consumer's Experience.
It should be noted that above-mentioned source video flowing is silent video stream, therefore, also need to flow to source video flowing with source audio frequency Row encapsulation, just can obtain a complete video file (that is, target video file).
By the description to the technical scheme provided in above-mentioned steps S202, the source video got in step S202 Stream is that the source video flowing in the video file of source and source audio stream carry out isolated, then, source video flowing is performed step S204 is to the technical scheme described in step S206.So, in embodiments of the present invention, source to be obtained audio stream, namely It is to say, when source video file is separated, while the video flowing of the source of acquisition, source to be obtained audio stream.And obtaining After the audio stream of source, the source audio stream got is transcoded at least one tunnel target audio stream, and by least one tunnel target audio File is packaged with at least two-way source video flowing, obtains multiple target video file, wherein, in multiple target video files Each target video file is by being packaged obtaining to a road target audio stream and a road target video stream.
For example, understand in the example above illustrates, source video stream transcoding is obtained the target that resolution is 1080P and regards Frequency stream and the target video stream that resolution is 720P.So, it is also possible to by the source audio stream that gets from the video file of source with Sample carries out transcoding and obtains at least one source, tunnel audio stream.
If obtaining source, a road audio stream, then this road unit audio frequency stream can be regarded with the target that resolution is 1080P respectively Frequency stream and the target video stream that resolution is 720P are packaged, and obtain target video file and resolution that resolution is 1080P Rate is the target video file of 720P.
If obtaining two-way source audio stream, such as, A1 and A2, then can be the target of 1080P with resolution respectively by A1 Video flowing and the target video stream that resolution is 720P are packaged, obtain target video file A11 that resolution is 1080P and Resolution is the target video file A12 of 720P;And by A2 with the target video stream that resolution is 1080P and resolution be respectively The target video stream of 720P is packaged, and obtains target video file A21 that resolution is 1080P and resolution is the mesh of 720P Mark video file A22.It is to say, when obtaining two-way source audio stream, the quantity of the target video file obtained is 4, with Sample ground, when obtaining three source, tunnel audio streams, the quantity of the target video file obtained is 6.
It should be noted that in embodiments of the present invention, the mode that source video flowing and source audio stream are packaged is had very Multiple, for example, it is possible to source video flowing to be put into video track, and source audio stream is put into audio track, obtain target video file.
When playing the target video file got by said method in video web-pages or video terminal, Bu Hui The phenomenon of card occurs during switching target video file, improves the fluency of video switching to a certain extent.
To sum up, in embodiments of the present invention, it is provided that the code-transferring method of a kind of video file, in the method, obtain At least two-way target video stream, wherein, the every IDR frame alignment of any two-path video stream.Therefore so that target video file was play Cheng Zhong, can carry out taking over seamlessly broadcasting between different resolution according to the situation of the network bandwidth, improve the viewing body of user Test.
Fig. 3 is the flow chart of the code-transferring method of a kind of optional video file according to embodiments of the present invention, such as Fig. 3 institute Showing, the method may comprise steps of:
Step S301, separates the source video flowing treating the source video file of transcoding with source audio stream;In the embodiment of the present invention In, after terminal obtains the source video file treating transcoding from server, the source audio stream in the video file of source and source can be regarded Frequency separates, the source video flowing after being separated and source audio stream.
Step S302, configures transcoding parameter, and wherein, transcoding parameter includes resolution and code prosecutor formula, such as, configures one group Low resolution 270P, code prosecutor formula are the transcoding parameter of crf;
Step S303, according to the transcoding parameter of configuration, carries out first time coding to video;
Step S304, obtains including the status file of frame type information according to first time coding, specifically, can be saved in First time cataloged procedure is the statistical information such as each frame generating quantification value, and the judgement information of frame type, and preserved It is a status file, thinks that second time coding provides reference information, wherein, for indicating the target position information of every IDR frame to remember Record in status file,;
Step S305, becomes at least two-way target video stream according to target position information by source video stream transcoding, wherein, at least In the target video stream of two-way target video Liu Zhongmei road, align with target location in the position of every IDR frame;In embodiments of the present invention, After getting above-mentioned target position information, it is possible to source video stream transcoding is become the target video stream of at least two-way, such as, It is transcoded into the video flowing that resolution is 1080P, or is transcoded into the video flowing that resolution is 720P.Further, in the resolution obtained Rate is that in the video flowing of 1080P and video flowing that resolution is 720P, align with above-mentioned target location in the position of every IDR frame;
Step S306, obtains source audio stream from the source video file treating transcoding, by the audio file of isolated, according to Specify specification to carry out transcoding and obtain source audio stream;
Step S307, by the source audio stream obtained and source video flowing, is packaged, and obtains target video file, wherein, turns Code obtains source audio stream and is at least source, a road audio stream.
If obtaining source, a road audio stream, then this road unit audio frequency stream can be regarded with the target that resolution is 1080P respectively Frequency stream and the target video stream that resolution is 720P are packaged, and obtain target video file and resolution that resolution is 1080P Rate is the target video file of 720P.
If obtaining two-way source audio stream, such as, A1 and A2, then can be the target of 1080P with resolution respectively by A1 Video flowing and the target video stream that resolution is 720P are packaged, obtain target video file A11 that resolution is 1080P and Resolution is the target video file A12 of 720P;And by A2 with the target video stream that resolution is 1080P and resolution be respectively The target video stream of 720P is packaged, and obtains target video file A21 that resolution is 1080P and resolution is the mesh of 720P Mark video file A22.It is to say, when obtaining two-way source audio stream, the quantity of the target video file obtained is 4, with Sample ground, when obtaining three source, tunnel audio streams, the quantity of the target video file obtained is 6.
Fig. 4 is that source video stream transcoding is become at least in two-way target video stream by according to embodiments of the present invention a kind of optional The flow chart of a road target video stream, as shown in Figure 4, the method may comprise steps of:
Step S401, the status file generated when reading and analyze pre-transcoding;
Step S402, the target position information for indicating every IDR frame positional information of record in recording status file;
Step S403, in reference state file, the target position information of record, becomes at least two-way mesh by source video stream transcoding Mark video flowing, wherein, above-mentioned every road target video stream, all can be with reference to the use of record in same status file in transcoding process In the target position information of instruction IDR positional information, then, the frame on target location in original video files is appointed as IDR Frame.Owing to every road target video stream is all based on consistent IDR positional information, this allows for the IDR position of every road target video stream all Can alignment.
Fig. 5 is that another kind according to embodiments of the present invention is optional becomes at least two-way target video stream by source video stream transcoding The flow chart of Zhong mono-road target video stream, as it is shown in figure 5, the method may comprise steps of:
Step S501, analyzes status file, obtains target position information, and wherein, target position information is for indicating IDR's Positional information;
Step S502, the transcoding parameter that encoder sets according to positional information and the specification 1 of IDR, transcoding obtains target and regards Frequency stream 1;
Step S503, the transcoding parameter that encoder sets according to positional information and the specification 2 of IDR, transcoding obtains target and regards Frequency stream 2;
Step S504, including step S5041 and step S5042, encoder can be forced to specify target according to the position of IDR The position of the every IDR frame in video flowing 1 and target video stream 2, wherein, the every IDR frame in target video stream 1 and target video stream 2 is equal Align with the every IDR frame target location in status file, thus ensure that the every IDR frame position in target video stream 1 and target video stream 2 Put consistent.
It should be noted that in embodiments of the present invention, the quantity of the target video stream that transcoding generates is at least two-way, In embodiment shown in Fig. 5, only illustrate as a example by two kinds of target video streams (target video stream 1 and target video stream 2).
Fig. 6 is a kind of flow process optionally source video flowing and source audio stream being packaged according to embodiments of the present invention Figure, as shown in Figure 6, the method may comprise steps of:
Step S601, carries out transcoding by audio coder according to the audio frequency transcoding parameter set to source audio stream, and To target audio stream;
Step S602, is packaged target audio stream and target video stream, obtains final target video file.
In embodiments of the present invention, the source audio stream got from the video file of source can be carried out transcoding equally to obtain At least one source, tunnel audio stream.
If obtaining source, a road audio stream, then can by this road unit audio frequency stream respectively with Fig. 5 described in target video stream 1 It is packaged with target video stream 2, obtains target video file 1 and target video file 2.
If obtaining two-way source audio stream, such as, A1 and A2, then A1 can be packaged with target video stream 1 respectively, Obtain target video file A11 and target video file A12;And A2 is packaged with target video stream 2 respectively, obtain target Video file A21 and target video file A22.It is to say, when obtaining two-way source audio stream, the target video file obtained Quantity be 4, similarly, when obtaining three source, tunnel audio streams, the quantity of the target video file obtained is 6.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, 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 limited by described sequence of movement because According to the present invention, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know Knowing, embodiment described in this description belongs to preferred embodiment, involved action and the module not necessarily present invention Necessary.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive according to above-mentioned enforcement The method of example can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot In the case of the former is more preferably embodiment.Based on such understanding, technical scheme is the most in other words to existing The part that technology contributes can embody with the form of software product, and this computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, calculate Machine, server, or the network equipment etc.) perform each embodiment of the present invention method.
Embodiment 2
According to embodiments of the present invention, the video file of a kind of code-transferring method for implementing above-mentioned video file is additionally provided Transcoding device.The transcoding of figure video file is the transcoding device of a kind of optional video file according to embodiments of the present invention Schematic diagram, as it is shown in fig. 7, this device may include that
First acquiring unit 71, for obtaining source video flowing from the source video file treating transcoding;
In embodiments of the present invention, after terminal obtains the source video file treating transcoding from server, can be by source video Source audio stream and source video in file separate, the source video flowing after being separated and source audio stream.
Processing unit 73, for source video flowing is carried out pre-transcoding process, obtains target position information, wherein, and target position Confidence breath is for indicating the target location of every IDR frame;
In embodiments of the present invention, terminal can carry out pre-transcoding process according to the transcoding parameter of configuration to source video flowing, Obtaining the target position information of target location for indicating every IDR frame, wherein, every IDR frame is first in any one picture group GOP Individual I frame.It is to say, by source video flowing being carried out pre-transcoding process, first I of any one picture group GOP can be obtained The position of frame.Above-mentioned transcoding parameter includes resolution and the code prosecutor formula of video flowing, and resolution is less than predetermined value.
First transcoding units 75, for becoming at least two-way target video according to target position information by source video stream transcoding Stream, wherein, in the target video stream of at least two-way target video Liu Zhongmei road, align with target location in the position of every IDR frame.
In embodiments of the present invention, after getting above-mentioned target position information, it is possible to source video stream transcoding is become At least target video stream of two-way, such as, is transcoded into the video flowing that resolution is 1080P, or to be transcoded into resolution be 720P Video flowing.Further, the position of every IDR frame in the video flowing that the resolution obtained is 1080P and video flowing that resolution is 720P Put and align with above-mentioned target location.
In embodiments of the present invention, first the source video flowing of getting is carried out pre-transcoding process, according to arriving after processing Target position information determine the target location of every IDR frame, then, on the basis of getting target position information, by source video Stream is transcoded at least two-way target video stream of different resolution, wherein, at least each target video in two-way target video stream Align with target location in the position of the every IDR frame in stream, therefore, when video is in playing process, and can be arbitrarily at target video stream In switch over, do not have the phenomenon repeated playing when video switches over, reached between the video flowing of different code streams The purpose taken over seamlessly, it is achieved thereby that can carry out the technique effect of smooth switching in video display process, and then solves In correlation technique, video switches slack technical problem in playing process.
It should be noted that the first acquiring unit 71 in this embodiment may be used for performing in the embodiment of the present application 1 Step S202, the processing unit 73 in this embodiment may be used for performing step S204 in the embodiment of the present application 1, this embodiment In the first transcoding units 75 may be used for performing step S206 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with the example that corresponding step is realized and application scenarios, but not It is limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module as the part of device may operate in as In hardware environment shown in Fig. 1, can be realized by software, it is also possible to realized by hardware.
Alternatively, alternatively, source video stream transcoding is become at least two-way mesh according to target position information by the first transcoding units Mark video flowing Zhong mono-road target video stream includes: decoder module, for source decoding video stream is become original video data;Arrange Module, for being set to every IDR frame, and to removing target position in original video data by the frame on target location in original video data Frame outside putting carries out Video coding, obtains a road target video stream.
It should be noted that in embodiments of the present invention, after terminal gets source video flowing, can to source video according to The transcoding parameter of configuration carries out first time coded treatment, preserves in an encoding process, for statistics letters such as each frame generating quantification values Breath, and the judgement information of frame type, and it is saved as a status file;Reference information is provided for second time coding, its In, the transcoding parameter of configuration can be chosen for resolution 270P, code prosecutor formula is the transcoding parameter of crf.It is to say, generating Status file in recorded the target position information of target location for indicating every IDR frame.Then, according to target position information Source video stream transcoding is become at least two-way target video stream time, can be according to being used for of having recorded in above-mentioned same status file Source video flowing is converted at least two-way target video by the target position information of the target location of instruction every IDR frame.
In at least two-way target video obtained by the way, the every IDR frame of any two-path video is all alignment, because of This, it is possible to ensure video fluency in handoff procedure.
For example, certain video website is given tacit consent to definition that two kinds of definitions, i.e. resolution are 1080P (that is, high Clearly), or definition (that is, SD) that resolution is 720P.It is assumed that user A selects, in this video website, high definition is (i.e., 1080P) play entitled: the video file of " xx challenges the first phase ", wherein, at video file before being played, according to upper State step S202 to process to the technical scheme described in step S208, obtain two-way target video stream, i.e. resolution Video flowing and resolution for 1080P are the video flowing of 720P.The video flowing that resolution is 1080P obtained by said method With in the video flowing two-way target video stream that resolution is 720P, the position of every IDR frame is alignment.
If during playing above-mentioned video file, due to network, cause video during playing The phenomenon of card occurs, in order to not affect the progress of broadcasting, the high definition of current setting can be play and manually or automatically adjust Play for SD (that is, 720P).The method the most provided according to the embodiment of the present invention due to the video file play Processing, therefore, in the two-way target video stream after transcoding, the position of every IDR frame is alignment, so, high definition will play When video flowing switches to broadcasting SD video flowing, it is possible to achieve take over seamlessly, do not have to repeat playing and the most broadcast The phenomenon of the video let slip.It is integrally improved the fluency of video playback, improves Consumer's Experience.
Alternatively, target position information record is in status file, and wherein, the first transcoding units includes: transcoding module, uses According to the target position information of record in same status file, in a parallel fashion source video stream transcoding is become at least two-way Target video.
Alternatively, in time obtaining source video flowing in the source video file of transcoding, device also includes: second obtains list Unit, for obtaining source audio stream from the source video file treating transcoding;Source audio frequency is being obtained from the source video file treat transcoding After stream, device also includes: the second transcoding units, for source audio stream is transcoded at least one tunnel target audio stream and near A few road target audio stream is packaged with at least two-way target video stream, obtains multiple target video file, wherein, multiple mesh Each target video file in mark video file is by being packaged a road target audio stream and a road target video stream Obtain.
It should be noted that above-mentioned source video flowing is silent video stream, therefore, also need to flow to source video flowing with source audio frequency Row encapsulation, just can obtain a complete video file (that is, target video file).
By above-described embodiment, the source video flowing got is by the source video flowing in the video file of source and source audio frequency Stream carries out isolated.So, in embodiments of the present invention, source to be obtained audio stream, in other words, to source video When file separates, while the video flowing of the source of acquisition, source to be obtained audio stream.And after the audio stream of the source of acquisition, will The source audio stream got is transcoded at least one tunnel target audio stream, and by least one tunnel target audio file and at least two-way source Video flowing is packaged, and obtains multiple target video file, wherein, each target video file in multiple target video files By being packaged obtaining to a road target audio stream and a road target video stream.
For example, understand in the example above illustrates, source video stream transcoding is obtained the target that resolution is 1080P and regards Frequency stream and the target video stream that resolution is 720P.So, it is also possible to by the source audio stream that gets from the video file of source with Sample carries out transcoding and obtains at least one source, tunnel audio stream.
If obtaining source, a road audio stream, then this road unit audio frequency stream can be regarded with the target that resolution is 1080P respectively Frequency stream and the target video stream that resolution is 720P are packaged, and obtain target video file and resolution that resolution is 1080P Rate is the target video file of 720P.
If obtaining two-way source audio stream, such as, A1 and A2, then can be the target of 1080P with resolution respectively by A1 Video flowing and the target video stream that resolution is 720P are packaged, obtain target video file A11 that resolution is 1080P and Resolution is the target video file A12 of 720P;And by A2 with the target video stream that resolution is 1080P and resolution be respectively The target video stream of 720P is packaged, and obtains target video file A21 that resolution is 1080P and resolution is the mesh of 720P Mark video file A22.It is to say, when obtaining two-way source audio stream, the quantity of the target video file obtained is 4, with Sample ground, when obtaining three source, tunnel audio streams, the quantity of the target video file obtained is 6.
Alternatively, processing unit includes: processing module, for using the transcoding parameter of configuration that source video flowing is carried out prerotation Code processes, and obtains target position information, and wherein, transcoding parameter includes resolution and code prosecutor formula, and resolution is less than predetermined value.
In embodiments of the present invention, terminal can carry out pre-transcoding process according to the transcoding parameter of configuration to source video flowing, Obtaining the target position information of target location for indicating every IDR frame, wherein, every IDR frame is first in any one picture group GOP Individual I frame.It is to say, by source video flowing being carried out pre-transcoding process, first I of any one picture group GOP can be obtained The position of frame.Above-mentioned transcoding parameter includes resolution and the code prosecutor formula of video flowing, and resolution is less than predetermined value.
Herein it should be noted that above-mentioned module is identical with the example that corresponding step is realized and application scenarios, but not It is limited to above-described embodiment 1 disclosure of that.It should be noted that above-mentioned module as the part of device may operate in as In hardware environment shown in Fig. 1, can be realized by software, it is also possible to realized by hardware, wherein, hardware environment includes network Environment.
Embodiment 3
According to embodiments of the present invention, additionally provide a kind of code-transferring method for implementing above-mentioned video file server or Terminal.
Fig. 8 is the structured flowchart of a kind of terminal according to embodiments of the present invention, and as shown in the transcoding of figure video file, this is eventually End may include that one or more (only illustrating one in figure) processor 801, memorizer 803 and transmitting device 805 (as above State the dispensing device in embodiment), as shown in Figure 8, this terminal can also include input-output equipment 807.
Wherein, memorizer 803 can be used for storing software program and module, such as the video file in the embodiment of the present invention Programmed instruction/module that code-transferring method is corresponding with device, the software journey that processor 801 is stored in memorizer 803 by operation Sequence and module, thus perform the application of various function and data process, i.e. realize the code-transferring method of above-mentioned video file.Deposit Reservoir 803 can include high speed random access memory, it is also possible to includes nonvolatile memory, as one or more magnetic storage fills Put, flash memory or other non-volatile solid state memories.In some instances, memorizer 803 can farther include relative to place The memorizer that reason device 801 is remotely located, these remote memories can be connected to terminal by network.The example bag of above-mentioned network Include but be not limited to the Internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 805 is for receiving via a network or sending data, it is also possible to for processor with Data transmission between memorizer.Above-mentioned network instantiation can include cable network and wireless network.In an example, Transmitting device 805 includes a network adapter (Network Interface Controller, NIC), and it can pass through netting twine It is connected with router with other network equipments thus communication can be carried out with the Internet or LAN.In an example, transmission dress Putting 805 is radio frequency (Radio Frequency, RF) module, and it is for wirelessly carrying out communication with the Internet.
Wherein, specifically, memorizer 803 is used for storing application program.
Processor 801 can call the application program of memorizer 803 storage by transmitting device 805, to perform following step Rapid:
Source video flowing is obtained from the source video file treating transcoding;Source video flowing is carried out pre-transcoding process, obtains target Positional information, wherein, target position information is for indicating the target location of every IDR frame;According to target position information by source video flowing It is transcoded at least two-way target video stream, wherein, the position of every IDR frame in the target video stream of at least two-way target video Liu Zhongmei road Put and align with target location.
Processor 801 is additionally operable to perform following step: source decoding video stream is become original video data;By original video number It is set to every IDR frame according to the frame on middle target location, and frame in addition to target location in original video data is carried out video volume Code, obtains a road target video stream.
Processor 801 be additionally operable to perform following step: according in same status file record target position information, with Source video stream transcoding is become at least two-way target video by parallel form.
Processor 801 is additionally operable to perform following step: obtain source audio stream from the source video file treating transcoding;By source sound Frequently stream is transcoded at least one tunnel target audio stream, and at least one tunnel target audio stream is sealed with at least two-way target video stream Dress, obtains multiple target video file, and wherein, each target video file in multiple target video files is by a road Target audio stream and a road target video stream are packaged obtaining.
Processor 801 is additionally operable to perform following step: use the transcoding parameter of configuration to carry out source video flowing at pre-transcoding Reason, obtains target position information, and wherein, transcoding parameter includes resolution and code prosecutor formula, and resolution is less than predetermined value.
Use the embodiment of the present invention, first the source video flowing of getting is carried out pre-transcoding process, according to arriving after processing Target position information determine the target location of every IDR frame, then, on the basis of getting target position information, by source video Stream is transcoded at least two-way target video stream of different resolution, wherein, at least each target video in two-way target video stream Align with target location in the position of the every IDR frame in stream, therefore, when video is in playing process, and can be arbitrarily at target video stream In switch over, do not have the phenomenon repeated playing when video switches over, reached between the video flowing of different code streams The purpose taken over seamlessly, it is achieved thereby that can carry out the technique effect of smooth switching in video display process, and then solves In correlation technique, video switches slack technical problem in playing process.
Alternatively, the concrete example in the present embodiment is referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment does not repeats them here.
It will appreciated by the skilled person that the structure shown in Fig. 8 is only signal, terminal can be smart mobile phone (such as Android phone, iOS mobile phone etc.), panel computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the terminal unit such as PAD.Fig. 8 its structure of above-mentioned electronic installation is not caused restriction.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completing carrying out the device-dependent hardware of command terminal by program, this program can be stored in a computer-readable recording medium In, storage medium may include that flash disk, read only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can Program code for the code-transferring method performing video file.
Alternatively, in the present embodiment, multiple during above-mentioned storage medium may be located at the network shown in above-described embodiment On at least one network equipment in the network equipment.
Alternatively, in the present embodiment, storage medium is arranged to storage for the program code performing following steps:
S1, obtains source video flowing from the source video file treating transcoding;
S2, carries out pre-transcoding process, obtains target position information source video flowing, and wherein, target position information is used for referring to Show the target location of every IDR frame;
S3, becomes at least two-way target video stream, wherein, at least two-way mesh according to target position information by source video stream transcoding In the target video stream of mark video flowing Zhong Mei road, align with target location in the position of every IDR frame.
Alternatively, storage medium is also configured to storage for the program code performing following steps:
Alternatively, the concrete example in the present embodiment is referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment does not repeats them here.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or The various medium that can store program code such as CD.
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 realizes and as independent product using the form of SFU software functional unit When selling or use, can be stored in the storage medium that above computer can read.Based on such understanding, the skill of the present invention Part that prior art is contributed by art scheme the most in other words or this technical scheme completely or partially can be with soft The form of part product embodies, and this computer software product is stored in storage medium, including some instructions with so that one Platform or multiple stage computer equipment (can be for personal computer, server or the network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, can be by other side Formula realizes.Wherein, device embodiment described above is only schematically, the division of the most described unit, and the most only one Kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or It is desirably integrated into another system, or some features can be ignored, or do not perform.Another point, shown or discussed mutual it Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or communication link Connect, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. the code-transferring method of a video file, it is characterised in that including:
Source video flowing is obtained from the source video file treating transcoding;
Described source video flowing being carried out pre-transcoding process, obtains target position information, wherein, described target position information is used for referring to Show the target location of every IDR frame;
According to described target position information described source video stream transcoding become at least two-way target video stream, wherein, described at least In the target video stream of two-way target video Liu Zhongmei road, align with described target location in the position of every IDR frame.
Method the most according to claim 1, it is characterised in that described source video is circulated according to described target position information Code becomes at least two-way target video stream Zhong mono-road target video stream to include:
Described source decoding video stream is become original video data;
Frame on target location described in described original video data is set to every IDR frame, and in described original video data Frame in addition to described target location carries out Video coding, obtains a described road target video stream.
Method the most according to claim 1, it is characterised in that described target position information record in status file, its In, become at least two-way target video stream to include described source video stream transcoding according to described target position information:
According to the described target position information of record in same described status file, in a parallel fashion by described source video flowing It is transcoded at least two-way target video.
Method the most according to claim 1, it is characterised in that
From described in the source video file of transcoding, obtain described source video flowing time, described method also includes: from described wait turn The source video file of code obtains source audio stream;
After obtaining source audio stream from the described source video file treating transcoding, described method also includes: by described source audio frequency Stream is transcoded at least one tunnel target audio stream, and by described at least one tunnel target audio stream and described at least two-way target video stream Being packaged, obtain multiple target video file, wherein, each target video file in the plurality of target video file is By be packaged obtaining to target video stream described in target audio stream described in a road and a road.
Method the most according to claim 1, it is characterised in that described described source video flowing is carried out pre-transcoding process, Include to target position information:
The transcoding parameter using configuration carries out pre-transcoding process to described source video flowing, obtains described target position information, wherein, Described transcoding parameter includes resolution and code prosecutor formula, and described resolution is less than predetermined value.
6. the transcoding device of a video file, it is characterised in that including:
First acquiring unit, for obtaining source video flowing from the source video file treating transcoding;
Processing unit, for described source video flowing is carried out pre-transcoding process, obtains target position information, wherein, and described target Positional information is for indicating the target location of every IDR frame;
First transcoding units, for becoming at least two-way target video according to described target position information by described source video stream transcoding Stream, wherein, the position of every IDR frame and described target location pair in the target video stream of described at least two-way target video Liu Zhongmei road Together.
Device the most according to claim 6, it is characterised in that described first transcoding units is according to described target position information Described source video stream transcoding becomes at least two-way target video stream Zhong mono-road target video stream include:
Decoder module, for becoming original video data by described source decoding video stream;
Module is set, for the frame on target location described in described original video data is set to every IDR frame, and to described former In beginning video data, the frame in addition to described target location carries out Video coding, obtains a described road target video stream.
Device the most according to claim 6, it is characterised in that described target position information record in status file, its In, described first transcoding units includes:
Transcoding module, is used for according to the described target position information of record in same described status file, in a parallel fashion Described source video stream transcoding is become at least two-way target video.
Device the most according to claim 6, it is characterised in that
From described in the source video file of transcoding, obtain described source video flowing time, described device also includes: second obtain single Unit, for obtaining source audio stream from the described source video file treating transcoding;
After obtaining source audio stream from the described source video file treating transcoding, described device also includes: the second transcoding units, For described source audio stream being transcoded at least one tunnel target audio stream, and by described at least one tunnel target audio stream with described extremely Few two-way target video stream is packaged, and obtains multiple target video file, wherein, and every in the plurality of target video file Individual target video file is by being packaged obtaining to target video stream described in target audio stream described in a road and a road.
Device the most according to claim 6, it is characterised in that described processing unit includes:
Processing module, for using the transcoding parameter of configuration that described source video flowing is carried out pre-transcoding process, obtains described target Positional information, wherein, described transcoding parameter includes resolution and code prosecutor formula, and described resolution is less than predetermined value.
CN201610550922.9A 2016-07-13 2016-07-13 The code-transferring method and device of video file Active CN106210884B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610550922.9A CN106210884B (en) 2016-07-13 2016-07-13 The code-transferring method and device of video file
PCT/CN2017/092615 WO2018010662A1 (en) 2016-07-13 2017-07-12 Video file transcoding method and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610550922.9A CN106210884B (en) 2016-07-13 2016-07-13 The code-transferring method and device of video file

Publications (2)

Publication Number Publication Date
CN106210884A true CN106210884A (en) 2016-12-07
CN106210884B CN106210884B (en) 2019-02-26

Family

ID=57478120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610550922.9A Active CN106210884B (en) 2016-07-13 2016-07-13 The code-transferring method and device of video file

Country Status (2)

Country Link
CN (1) CN106210884B (en)
WO (1) WO2018010662A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107343218A (en) * 2017-05-24 2017-11-10 广东小天才科技有限公司 Video coding method and device
WO2018010662A1 (en) * 2016-07-13 2018-01-18 腾讯科技(深圳)有限公司 Video file transcoding method and device, and storage medium
CN108737380A (en) * 2017-04-21 2018-11-02 阿尔卡特朗讯西班牙股份有限公司 The multimedia content of delay with reduction transmits
CN109640114A (en) * 2018-12-12 2019-04-16 深圳市网心科技有限公司 Video compiles transcoding compression method, device, equipment and computer readable storage medium
CN110213617A (en) * 2019-04-01 2019-09-06 腾讯科技(深圳)有限公司 Video stream transcoding moving method, device and system
CN110213615A (en) * 2018-04-04 2019-09-06 腾讯科技(深圳)有限公司 Video transcoding method, device, server and storage medium
CN111246215A (en) * 2018-11-28 2020-06-05 深圳市炜博科技有限公司 Video format conversion method and terminal
CN112672163A (en) * 2019-10-16 2021-04-16 迪士尼企业公司 Transcoder adaptation for segment mobility
CN114979713A (en) * 2022-06-06 2022-08-30 北京奇艺世纪科技有限公司 Frame alignment method, device, computer equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111818338B (en) * 2020-07-23 2022-10-11 腾讯音乐娱乐科技(深圳)有限公司 Abnormal display detection method, device, equipment and medium
CN111901631B (en) * 2020-07-30 2023-02-17 有半岛(北京)信息科技有限公司 Transcoding method, device, server and storage medium for live video
CN111949825B (en) * 2020-08-21 2024-05-28 上海连尚网络科技有限公司 Method for adding and displaying article information in video, electronic device and storage medium
CN114466246A (en) * 2022-02-14 2022-05-10 维沃移动通信有限公司 Video processing method and device
CN115022670B (en) * 2022-05-31 2023-09-05 咪咕文化科技有限公司 Video file storage method, video file restoration device, video file storage equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0812112A3 (en) * 1996-06-05 2002-01-02 Sun Microsystems, Inc. System and method for indexing between trick play and normal play video streams in a video delivery system
CN102263941A (en) * 2010-05-31 2011-11-30 苏州闻道网络科技有限公司 Transcoding method and device for video file
CN102938848A (en) * 2011-08-15 2013-02-20 Rgb网络有限公司 Instantaneous decoder refresh frame aligned multi-bitrate transcoder output
CN104754366A (en) * 2015-03-03 2015-07-01 腾讯科技(深圳)有限公司 Audio and video file live broadcasting method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2301252A1 (en) * 2008-07-16 2011-03-30 Thomson Licensing A scalable video coding method for fast channel change to increase coding efficiency
CN104780389B (en) * 2015-04-21 2018-01-05 无锡天脉聚源传媒科技有限公司 A kind of method for processing video frequency and device
CN106210884B (en) * 2016-07-13 2019-02-26 腾讯科技(深圳)有限公司 The code-transferring method and device of video file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0812112A3 (en) * 1996-06-05 2002-01-02 Sun Microsystems, Inc. System and method for indexing between trick play and normal play video streams in a video delivery system
CN102263941A (en) * 2010-05-31 2011-11-30 苏州闻道网络科技有限公司 Transcoding method and device for video file
CN102938848A (en) * 2011-08-15 2013-02-20 Rgb网络有限公司 Instantaneous decoder refresh frame aligned multi-bitrate transcoder output
CN104754366A (en) * 2015-03-03 2015-07-01 腾讯科技(深圳)有限公司 Audio and video file live broadcasting method, device and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018010662A1 (en) * 2016-07-13 2018-01-18 腾讯科技(深圳)有限公司 Video file transcoding method and device, and storage medium
CN108737380A (en) * 2017-04-21 2018-11-02 阿尔卡特朗讯西班牙股份有限公司 The multimedia content of delay with reduction transmits
US11924522B2 (en) 2017-04-21 2024-03-05 Nokia Solutions And Networks Oy Multimedia content delivery with reduced delay
US11968431B2 (en) 2017-04-21 2024-04-23 Nokia Solutions And Networks Oy Multimedia content delivery with reduced delay
CN107343218A (en) * 2017-05-24 2017-11-10 广东小天才科技有限公司 Video coding method and device
CN110213615A (en) * 2018-04-04 2019-09-06 腾讯科技(深圳)有限公司 Video transcoding method, device, server and storage medium
CN110213615B (en) * 2018-04-04 2021-11-02 腾讯科技(深圳)有限公司 Video transcoding method, device, server and storage medium
CN111246215A (en) * 2018-11-28 2020-06-05 深圳市炜博科技有限公司 Video format conversion method and terminal
CN109640114A (en) * 2018-12-12 2019-04-16 深圳市网心科技有限公司 Video compiles transcoding compression method, device, equipment and computer readable storage medium
CN110213617A (en) * 2019-04-01 2019-09-06 腾讯科技(深圳)有限公司 Video stream transcoding moving method, device and system
CN112672163A (en) * 2019-10-16 2021-04-16 迪士尼企业公司 Transcoder adaptation for segment mobility
CN114979713A (en) * 2022-06-06 2022-08-30 北京奇艺世纪科技有限公司 Frame alignment method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2018010662A1 (en) 2018-01-18
CN106210884B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN106210884A (en) The code-transferring method of video file and device
CN113315973B (en) Encoding method, image encoder, and image transmission system
CN106484349A (en) The treating method and apparatus of live information
CN105264892B (en) Video compress is adjusted for high frame per second and variable frame rate capture
CN110636346B (en) Code rate self-adaptive switching method and device, electronic equipment and storage medium
CN104604203B (en) Adjusting of the coding in image after scene change and emission parameter
CN103038783B (en) Adaptive video decoding circuit and method thereof
CN106888169A (en) Video broadcasting method and device
CN105744342A (en) Data transmission method and device for mobile terminal
CN110139113B (en) Transmission parameter distribution method and device for video resources
CN109819272B (en) Video sending method, video sending device, computer readable storage medium and electronic equipment
CN106169998B (en) The treating method and apparatus of media file
CN109889895A (en) Video broadcasting method, device, storage medium and electronic device
CN108650510A (en) The coding method of video and device, storage medium, electronic device
CN109587570A (en) The playing method and device of video
CN103260052A (en) Self-adapting display flows
CN106412676A (en) Video code stream switching method and device, and electronic device
CN109996080A (en) Prediction technique, device and the codec of image
CN106385627A (en) Video coding method and device
CN108200470A (en) A kind of video code rate method of adjustment and equipment
CN110572673A (en) Video encoding and decoding method and device, storage medium and electronic device
US8768140B2 (en) Data processing unit and data encoding device
CN112351278A (en) Video encoding method and device and video decoding method and device
CN110572672B (en) Video encoding and decoding method and device, storage medium and electronic device
CN104427383A (en) Information processing method and electronic equipment

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