CN109889919A - A kind of video transcoding method, device, system and medium - Google Patents

A kind of video transcoding method, device, system and medium Download PDF

Info

Publication number
CN109889919A
CN109889919A CN201910238462.XA CN201910238462A CN109889919A CN 109889919 A CN109889919 A CN 109889919A CN 201910238462 A CN201910238462 A CN 201910238462A CN 109889919 A CN109889919 A CN 109889919A
Authority
CN
China
Prior art keywords
slice
transcoding
redundancy
video
redundant slices
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.)
Pending
Application number
CN201910238462.XA
Other languages
Chinese (zh)
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201910238462.XA priority Critical patent/CN109889919A/en
Publication of CN109889919A publication Critical patent/CN109889919A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of video transcoding method, device, system and media.The step of this method includes: to carry out normal space slice to source video file, generates standard slice, and obtains the timestamp scope of each standard slice;Redundancy interval slice is carried out to source video file, generates redundant slices;The video data in each redundant slices outside corresponding timestamp scope is removed, and each redundant slices are issued to distributed arithmetic node and carry out transcoding.Redundant slices before being issued to distributed arithmetic node and carrying out transcoding by this method, the redundant content of video in redundant slices is first eliminated according to the timestamp scope of standard slice, when redundant slices being therefore issued to distributed arithmetic node progress transcoding, opposite the expense of additional calculation resources and bandwidth resources can be avoided, and then ensure the whole efficiency of video code conversion.In addition, the present invention also provides a kind of video code conversion device, system and medium, beneficial effect are same as above.

Description

A kind of video transcoding method, device, system and medium
Technical field
The present invention relates to MultiMedia Fields, more particularly to a kind of video transcoding method, device, system and medium.
Background technique
It is varied currently for the approach of propagation and the broadcasting of video, in order to ensure the broadcasting of video can adapt to accordingly Characteristic possessed by scene needs to carry out corresponding transcoding operation to source video file according to the actual situation, and the present invention only discusses Be that there is the corresponding source video file played of audio and audio & video.
Source video file biggish for whole playout length, when carrying out transcoding to source video file by single equipment It will lead to equipment integral operation heavy load, thus distributed transcoding mode is come into being, distributed transcoding refers to will be former This carries out the audio-frequency unit of the source video file of transcoding on one device and corresponding be divided into of video section multiple does not weigh mutually The slice (being sliced comprising corresponding video segment and audio) of conjunction, after be distributed on multiple host or embedded device and turned Code operation, and then operation is being obtained into a kind of transcoding of the result slice according to original fractionation sequential concatenation for transcoded video file Mode, but above method the problem is that, audio is sliced in transcoding process, and the frame at the place of being divided often loses, This results in the transcoded video file generated by being sliced (general designation of transcoding audio slice and transcoded video slice) splicing after transcoding When broadcasting to adjacent transcoding audio is sliced stitching portion the case where Caton.
To solve the above-mentioned problems, the mode for currently generalling use redundant slices as shown in Figure 1, to source video file into Row is split, existing redundancy (audio and video) data between the dash area characterization contiguous slices in Fig. 1, thus is being got When being sliced and spliced after transcoding, the loss of frame between adjacent transcoding audio slice is avoided, but by currently being regarded to source Between the contiguous slices that the division methods of frequency file mark off, there is also redundancies for video data, therefore slice is distributed to more When carrying out transcoding operation on host or embedded device, the expense of additional calculation resources and bandwidth resources can be generated, it is difficult to Ensure the whole efficiency of video code conversion.
It can be seen that provide a kind of video transcoding method, avoided with opposite to the additional of calculation resources and bandwidth resources Expense, it is ensured that the whole efficiency of video code conversion is those skilled in the art's problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of video transcoding method, device, system and media, avoid providing operation with opposite The overhead of source and bandwidth resources, it is ensured that the whole efficiency of video code conversion.
In order to solve the above technical problems, the present invention provides a kind of video transcoding method, it is applied to central node, method packet It includes:
Normal space slice is carried out to source video file, generates standard slice, and obtains the timestamp model of each standard slice It encloses;Wherein, the continuous and irredundant data content of data content between adjacent standard slice;
Redundancy interval slice is carried out to source video file, generates redundant slices;Wherein, exist between adjacent redundant slices The data content of redundancy, and include the data content of respective standard slice in each redundant slices;
The video data in each redundant slices outside corresponding timestamp scope is removed, and each redundant slices are issued to distribution Formula operation node carries out transcoding.
Preferably, after each redundant slices to be issued to distributed arithmetic node and carry out transcoding, method further include:
De-redundancy after receiving the transcoding being passed to by distributed arithmetic node is sliced, and each de-redundancy slice is spliced into and is turned Code video file.
Preferably, after each redundant slices to be issued to distributed arithmetic node and carry out transcoding, method further include:
De-redundancy after receiving the transcoding being passed to by distributed arithmetic node is sliced, and the M3U8 format based on HLS is to flow Each de-redundancy slice of media mode played in order.
Preferably, normal space slice is carried out to source video file, generation standard slice includes:
Normal space slice is carried out to source video file according to preset GOP information, generates standard slice;
Redundancy interval slice is carried out to source video file, generating redundant slices includes:
Redundancy interval slice is carried out to source video file according to GOP information, generates redundant slices.
Preferably, obtaining the timestamp scope that each standard is sliced includes:
Obtain the Presentation Time Stamp range of each standard slice.
Preferably, each redundant slices are issued to distributed arithmetic node progress transcoding includes:
Each redundant slices are issued to distributed arithmetic node, video segment is turned with H264 video compression format Code carries out transcoding to the audio slice in redundant slices with ACC audio compression format.
In addition, being applied to distributed arithmetic node the present invention also provides a kind of video transcoding method, method includes:
The redundant slices being passed to by central node are received, and redundant slices cut after transcoding generates corresponding transcoding Piece;
The redundancy after adjacent transcoding between slice transit code audio slice is removed, de-redundancy slice is generated.
Preferably, the redundancy after removing adjacent transcoding between slice transit code audio slice, generates de-redundancy slice, should Method further include:
By de-redundancy slice transmission to central node.
In addition, device includes memory, processor and bus, memory the present invention also provides a kind of video code conversion device On be stored with can be by bus transfer to processor, and the video code conversion program run on a processor, video code conversion program are located It manages when device executes and realizes such as above-mentioned video transcoding method.
Preferably, device is the node for forming CDN network or block chain network.
In addition, the present invention also provides a kind of video code conversion system, system includes:
Standard is sliced module, for carrying out normal space slice to source video file, generates standard slice, and obtain each mark The timestamp scope of quasi- slice;Wherein, the continuous and irredundant data content of data content between adjacent standard slice;
Redundant slices module generates redundant slices for carrying out redundancy interval slice to source video file;Wherein, adjacent Redundant slices between there are the data contents of redundancy, and in each redundant slices include respective standard slice data in Hold;
Transcoding module, for removing the video data in each redundant slices outside corresponding timestamp scope, and by each redundancy Slice is issued to distributed arithmetic node and carries out transcoding.
In addition, the present invention also provides a kind of video code conversion system, system includes:
Transcoding module is received, for receiving the redundant slices being passed to by central node, and it is raw to carry out transcoding to redundant slices At being sliced after corresponding transcoding;
Redundancy removal module generates de-redundant for removing the redundancy after adjacent transcoding between slice transit code audio slice Cotangent piece and by de-redundancy slice transmission to central node.
In addition, being stored with view on computer readable storage medium the present invention also provides a kind of computer readable storage medium Frequency transcoding program, video code conversion program can be executed by one or more processor, to realize such as above-mentioned video transcoding method.
In addition, the present invention also provides a kind of computer program product, including computer instruction, when it runs on computers When, computer is executed such as above-mentioned video transcoding method.
Video transcoding method provided by the present invention carries out normal space slice to source video file first, generates standard Slice, and obtain the timestamp scope of each standard slice, wherein data content is continuously and without phase between adjacent standard slice The data of mutual redundancy;In addition, carrying out normal space slice to source video file, redundant slices are generated, wherein adjacent redundancy is cut There are the data contents of redundancy between piece;And then retain timestamp scope as the data content of video segment in redundant slices Range removes the video data in each redundant slices outside corresponding timestamp scope, redundant slices are finally issued to distribution Formula operation node carries out transcoding.This method compared with the prior art for, redundant slices are being issued to distributed arithmetic node Before carrying out transcoding, the redundant content of video in redundant slices is first eliminated according to the timestamp scope of standard slice, therefore will be superfluous When cotangent piece is issued to distributed arithmetic node progress transcoding, additional calculation resources and bandwidth resources opposite can be avoided Expense, and then ensure the whole efficiency of video code conversion.In addition, the present invention also provides a kind of video code conversion device, system and Jie Matter, beneficial effect are same as above.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram that redundant slices are carried out to source video file;
Fig. 2 is a kind of flow chart of the video transcoding method applied to central node provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram for carrying out dividing generation standard slice to source video file;
Fig. 4 is to carry out dividing the schematic diagram for generating redundant slices to source video file;
Fig. 5 is the flow chart of another video transcoding method for being applied to central node provided in an embodiment of the present invention;
Fig. 6 is the flow chart of another video transcoding method for being applied to central node provided in an embodiment of the present invention;
Fig. 7 is a kind of process of the video transcoding method applied to distributed arithmetic node provided in an embodiment of the present invention Figure;
Fig. 8 is a kind of structure chart of video code conversion device provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
Core of the invention is to provide a kind of video transcoding method, is avoided with opposite to calculation resources and bandwidth resources Overhead, it is ensured that the whole efficiency of video code conversion.Another core of the invention be to provide a kind of video code conversion device, system and Medium.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Embodiment one
Fig. 2 is a kind of flow chart of the video transcoding method applied to central node provided in an embodiment of the present invention.It please join Fig. 2 is examined, the specific steps of video transcoding method include:
Step S10: carrying out normal space slice to source video file, generates standard slice, and obtains each standard slice Timestamp scope.
Wherein, the continuous and irredundant data content of data content between adjacent standard slice.
It should be noted that the source video file in this step refers to the original video for needing to carry out transcoding operation text Part, it is emphasized that, source video file includes video file and audio file simultaneously, therefore is being broadcast in source video file Video can play simultaneously with audio when putting.This step carries out normal space slice to source video file, generates standard slice, adjacent Standard slice between the continuous and irredundant data content of data content, source video file divide generate mark Referring to FIG. 3, as shown in Figure 3, the data content between adjacent standard slice is continuous, and does not have for the schematic diagram of quasi- slice The data content of mutual redundancy.Based on the standard slice that standard slice obtains, this step further obtain each standard slice when Between stab range, signified timestamp scope may include PTS (Presentation Time Stamp) or DTS (decoded time stamp) etc. in this step, What it is for characterization is frame in slice specific location locating in entire slice.
Step S11: redundancy interval slice is carried out to source video file, generates redundant slices.
Wherein, there are the data contents of redundancy between adjacent redundant slices, and include corresponding in each redundant slices The data content of standard slice.
Redundancy interval slice is carried out to source video file in this step, generates redundant slices, it is emphasized that, it is adjacent There is mutual duplicate data content between redundant slices, and includes the number of respective standard slice in each redundant slices According to content, that is to say, that redundant slices are that adjacent modular slice is generated based on redundancy section data mutual at division.To source Video file carries out dividing the schematic diagram for generating redundant slices referring to FIG. 4, slice 1 in Fig. 4, slice 2, slice 3 and cutting Slice 1, slice 2, slice 3 and slice 4 in piece 4 and Fig. 3 respectively correspond, on this basis, in original each slice and phase Neighbour's slice junction, equal redundancy have the data content (dash area) of part contiguous slices.
Step S12: the video data in each redundant slices outside corresponding timestamp scope is removed, and will be under each redundant slices It is sent to distributed arithmetic node and carries out transcoding.
Standard is sliced as video segment redundant content in removal redundant slices it should be noted that this step is equivalent to Standard, be sliced the position in source video file since timestamp scope can characterize each standard, this step being capable of root The data content for exceeding position range in video segment is removed according to timestamp scope, that is, is removed in each redundant slices when corresponding Between stab video data outside range, ensured between video segment with this there is no duplicate data content, and then each redundancy is cut Piece is issued to distributed arithmetic node and carries out transcoding.
Video transcoding method provided by the present invention carries out normal space slice to source video file first, generates standard Slice, and obtain the timestamp scope of each standard slice, wherein data content is continuously and without phase between adjacent standard slice The data of mutual redundancy;In addition, carrying out normal space slice to source video file, redundant slices are generated, wherein adjacent redundancy is cut There are the data contents of redundancy between piece;And then retain timestamp scope as the data content of video segment in redundant slices Range removes the video data in each redundant slices outside corresponding timestamp scope, redundant slices are finally issued to distribution Formula operation node carries out transcoding.This method compared with the prior art for, redundant slices are being issued to distributed arithmetic node Before carrying out transcoding, the redundant content of video in redundant slices is first eliminated according to the timestamp scope of standard slice, therefore will be superfluous When cotangent piece is issued to distributed arithmetic node progress transcoding, additional calculation resources and bandwidth resources opposite can be avoided Expense, and then ensure the whole efficiency of video code conversion.
Embodiment two
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
Fig. 5 is the flow chart of another video transcoding method for being applied to central node provided in an embodiment of the present invention.Fig. 5 Middle step S10 is identical as Fig. 2 to step S12, and details are not described herein.
As shown in figure 5, as a preferred embodiment, by each redundant slices be issued to distributed arithmetic node into After row transcoding, method further include:
Step S20: the de-redundancy after receiving the transcoding being passed to by distributed arithmetic node is sliced, and each de-redundancy is sliced It is spliced into transcoded video file.
It should be noted that present embodiment allows in actual application scenarios, source video file is divided into The form of slice and the purpose for being issued to progress transcoding in distributed arithmetic node are to utilize a fairly large number of distributed fortune Operator node shares the integral operation expense that transcoding is carried out to source video file, therefore distributed arithmetic node carries out transcoding to slice A part of segment after obtained transcoding in slice only complete transcoded video file afterwards, therefore in order to ensure user can obtain It gets by transcoding and complete transcoded video file, each redundant slices are being issued to distributed arithmetic node by present embodiment After carrying out transcoding, by the redundancy being sliced after the adjacent transcoding of distributed arithmetic knot-removal between transit code audio slice, generate De-redundancy slice is simultaneously sent to central node by de-redundancy slice, and central node receives the transcoding being passed to by distributed arithmetic node De-redundancy slice afterwards, and each de-redundancy slice is spliced into transcoded video file, ensure that user can get in contrast Complete transcoded video file, and then convenient for the independent play-out to transcoded video file.
Fig. 6 is the flow chart of another video transcoding method for being applied to central node provided in an embodiment of the present invention.Fig. 6 Middle step S10 is identical as Fig. 2 to step S12, and details are not described herein.
As shown in fig. 6, as a preferred embodiment, by each redundant slices be issued to distributed arithmetic node into After row transcoding, method further include:
Step S30: the de-redundancy after receiving the transcoding being passed to by distributed arithmetic node is sliced, and the M3U8 based on HLS Format is with each de-redundancy slice of stream media mode played in order.
It should be noted that due to consideration that carrying out the purpose of transcoding to source video file in current application scenarios It is that can be played in real time in a manner of being more in line with playing environment, therefore present embodiment is issued to by each redundant slices After distributed arithmetic node carries out transcoding, it is sliced by being sliced transit code audio after the adjacent transcoding of distributed arithmetic knot-removal Between redundancy, generate de-redundancy slice and de-redundancy slice be simultaneously sent to central node, central node is received by distributed arithmetic The incoming each de-redundancy slice of node removes the redundancy between adjacent de-redundancy slice transit code audio slice, and then is based on HLS M3U8 format with stream media mode played in order each de-redundancy slice, HLS is the stream based on HTTP for mobile device exploitation Media solutions, principle are video or stream to be cut into small pieces (TS), and establish index (M3U8) and then pass through index Mode is transferred corresponding TS in real time and is played out, and present embodiment realizes the stream media mode broadcasting to video with this, it is ensured that The real-time of video playing.
In addition, as a preferred embodiment, carrying out normal space slice, generation standard slice to source video file Include:
Normal space slice is carried out to source video file according to preset GOP information, generates standard slice;
Redundancy interval slice is carried out to source video file, generating redundant slices includes:
Redundancy interval slice is carried out to source video file according to GOP information, generates redundant slices.
It should be noted that GOP refers to the period of key frame, that is, two every IDR frames in audio-video transcoding field The distance between, the maximum frame number of a frame group, it is however generally that, each second video is at least needed using 1 key frame.Increase and closes Key frame number can improve quality, therefore being divided based on GOP information to source video file can be with respect to ensuring each standard Including at least in slice or redundant slices has a key frame, guarantees the total quality of each slice with this, further ensures that Slice is capable of providing more stable audio-video and effect is presented.
In addition, as a preferred embodiment, the timestamp scope for obtaining each standard slice includes:
Obtain the Presentation Time Stamp range of each standard slice.
It should be noted that the Presentation Time Stamp in present embodiment, i.e. PTS, for inform player when Show the data of present frame, therefore Presentation Time Stamp can more enough position of the accurate reflecting video frame in whole source video file It sets, and then can more accurately be removed the redundant content in video segment according to PTS range, further ensure video and turn The reliability of code process.
On the basis of a series of above-mentioned embodiments, as a preferred embodiment, each redundant slices are issued Carrying out transcoding to distributed arithmetic node includes:
Each redundant slices are issued to distributed arithmetic node, video segment is turned with H264 video compression format Code carries out transcoding to the audio slice in redundant slices with ACC audio compression format.
It should be noted that the maximum advantage of H264 video compression format is there is very high data compression ratio, Under conditions of same picture quality, the compression ratio of H264 is the 2 times or more of MPEG-2, is 1.5~2 times of MPEG-4, H264 exists Also possess the image of high quality smoothness while with high compression ratio, Just because of this, is compressed by H264 video compression format Video data, the bandwidth of required occupancy is less in network transmission process.In addition, for MP3 audio compression format, After being sliced transcoding to audio by ACC audio compression format, the occupied space of file of the audio slice after transcoding is smaller, into One step reduces occupied bandwidth when transmission.As it can be seen that present embodiment is further reduced to calculation resources and bandwidth money The expense in source further improves the whole efficiency of video code conversion.
Embodiment three
Fig. 7 is a kind of process of the video transcoding method applied to distributed arithmetic node provided in an embodiment of the present invention Figure.Referring to FIG. 7, the specific steps of video transcoding method include:
Step S40: the redundant slices being passed to by central node are received, and transcoding is carried out to redundant slices and generates corresponding turn It is sliced after code.
Step S41: the redundancy after adjacent transcoding between slice transit code audio slice is removed, de-redundancy slice is generated.
It should be noted that distributed arithmetic node is after receiving the redundant slices being passed to by central node, to redundancy Slice carries out transcoding operation, is sliced after generating corresponding transcoding, due to still including the transcoding of redundancy section in slice after transcoding Content afterwards, therefore the redundancy being sliced between transit code audio slice after the adjacent transcoding of distributed arithmetic knot-removal generates de-redundancy Slice.After generating de-redundancy slice, de-redundancy can be sliced and save to its local, for other sections by distributed arithmetic node Point calls.
As a preferred embodiment, the redundancy after removing adjacent transcoding between slice transit code audio slice, After generating de-redundancy slice, further includes:
By de-redundancy slice transmission to central node.
Present embodiment passes through the de-redundancy slice transmission that will be generated to central node, so that central node is spliced into video Or streaming broadcasting, further ensure the integrality from video code conversion to the overall process for using the video after transcoding, it is ensured that in Centre node the video after transcoding can be carried out using.
Example IV
Hereinbefore the embodiment of video transcoding method is described in detail, the present invention also provides one kind and is somebody's turn to do The corresponding video code conversion device of method, since the embodiment of device part is corresponded to each other with the embodiment of method part, depending on The embodiment of frequency transcoding device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 8 is a kind of structure chart of video code conversion device provided in an embodiment of the present invention.
Referring to FIG. 8, a kind of video code conversion device 1 provided in an embodiment of the present invention, device include memory 11, processor 12 and bus 13, the video that can be transmitted to processor 12 by bus 13, and be run on the processor 12 is stored on memory 11 Transcoding program, realized when video code conversion program is executed by processor 12 as it is above-mentioned be applied to distributed arithmetic node and/or in Entreat the video transcoding method of node.
The video code conversion device 1 can be the node of composition CDN network or block chain network.It can be composition CDN net The node of network or block chain network.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 It can be the internal storage unit of device 1, such as the hard disk of the device 1 in some embodiments.Memory 11 is in other realities Apply the plug-in type hard disk being equipped on the External memory equipment for being also possible to device 1 in example, such as device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Into One step, memory 11 can also both internal storage units including device 1 or including External memory equipment.Memory 11 is not only It can be used for storing and be installed on application software and Various types of data, such as the code of video code conversion program of device 1 etc., can also use In temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11 Code or processing data, such as execute video code conversion program etc..
The bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA) Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 8 only with one slightly Line indicates, it is not intended that an only bus or a type of bus.
Video code conversion device provided by the present invention carries out normal space slice to source video file first, generates standard Slice, and obtain the timestamp scope of each standard slice, wherein data content is continuously and without phase between adjacent standard slice The data of mutual redundancy;In addition, carrying out normal space slice to source video file, redundant slices are generated, wherein adjacent redundancy is cut There are the data contents of redundancy between piece;And then retain timestamp scope as the data content of video segment in redundant slices Range removes the video data in each redundant slices outside corresponding timestamp scope, redundant slices are finally issued to distribution Formula operation node carries out transcoding.The present apparatus compared with the prior art for, redundant slices are being issued to distributed arithmetic node Before carrying out transcoding, the redundant content of video in redundant slices is first eliminated according to the timestamp scope of standard slice, therefore will be superfluous When cotangent piece is issued to distributed arithmetic node progress transcoding, additional calculation resources and bandwidth resources opposite can be avoided Expense, and then ensure the whole efficiency of video code conversion.
Example IV
In addition, the present invention also provides a kind of video code conversion system, system includes:
Standard is sliced module, for carrying out normal space slice to source video file, generates standard slice, and obtain each mark The timestamp scope of quasi- slice;Wherein, the continuous and irredundant data content of data content between adjacent standard slice;
Redundant slices module generates redundant slices for carrying out redundancy interval slice to source video file;Wherein, adjacent Redundant slices between there are the data contents of redundancy, and in each redundant slices include respective standard slice data in Hold;
Transcoding module, for removing the video data in each redundant slices outside corresponding timestamp scope, and by each redundancy Slice is issued to distributed arithmetic node and carries out transcoding.
Video code conversion system provided by the present invention carries out normal space slice to source video file first, generates standard Slice, and obtain the timestamp scope of each standard slice, wherein data content is continuously and without phase between adjacent standard slice The data of mutual redundancy;In addition, carrying out normal space slice to source video file, redundant slices are generated, wherein adjacent redundancy is cut There are the data contents of redundancy between piece;And then retain timestamp scope as the data content of video segment in redundant slices Range removes the video data in each redundant slices outside corresponding timestamp scope, redundant slices are finally issued to distribution Formula operation node carries out transcoding.This system compared with the prior art for, redundant slices are being issued to distributed arithmetic node Before carrying out transcoding, the redundant content of video in redundant slices is first eliminated according to the timestamp scope of standard slice, therefore will be superfluous When cotangent piece is issued to distributed arithmetic node progress transcoding, additional calculation resources and bandwidth resources opposite can be avoided Expense, and then ensure the whole efficiency of video code conversion.
In addition, being stored with view on computer readable storage medium the present invention also provides a kind of computer readable storage medium Frequency transcoding program, video code conversion program can be executed by one or more processor, to realize that above-mentioned such as is applied to distribution The video transcoding method of operation node and/or central node.
Computer readable storage medium provided by the present invention carries out normal space slice to source video file first, raw It is sliced at standard, and obtains the timestamp scope of each standard slice, wherein data content is continuously simultaneously between adjacent standard slice And the data without mutual redundancy;In addition, carrying out normal space slice to source video file, redundant slices are generated, wherein adjacent There are the data contents of redundancy between redundant slices;And then using timestamp scope as in the data of video segment in redundant slices Hold reserved-range, that is, removes the video data in each redundant slices outside corresponding timestamp scope, finally issue redundant slices Transcoding is carried out to distributed arithmetic node.This computer readable storage medium compared with the prior art for, by redundant slices Before being issued to distributed arithmetic node progress transcoding, video in redundant slices first is eliminated according to the timestamp scope of standard slice Redundant content, therefore when redundant slices being issued to distributed arithmetic node carrying out transcoding, opposite can avoid additional fortune The expense of resource and bandwidth resources is calculated, and then ensures the whole efficiency of video code conversion.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (13)

1. a kind of video transcoding method is applied to central node, which is characterized in that the described method includes:
Normal space slice is carried out to source video file, generates standard slice, and obtains the timestamp model of each standard slice It encloses;Wherein, the continuous and irredundant data content of data content between adjacent standard slice;
Redundancy interval slice is carried out to source video file, generates redundant slices;Wherein, exist between the adjacent redundant slices The data content of redundancy, and include the data content of the corresponding standard slice in each redundant slices;
The video data in each redundant slices outside the corresponding timestamp scope is removed, and will be under each redundant slices It is sent to distributed arithmetic node and carries out transcoding.
2. the method according to claim 1, wherein each redundant slices are issued to distributed fortune described After operator node carries out transcoding, the method also includes:
De-redundancy after receiving the transcoding being passed to by the distributed arithmetic node is sliced, and each de-redundancy slice is spliced For transcoded video file.
3. the method according to claim 1, wherein each redundant slices are issued to distributed fortune described After operator node carries out transcoding, the method also includes:
De-redundancy after receiving the transcoding being passed to by the distributed arithmetic node is sliced, and the M3U8 format based on HLS is to flow Each de-redundancy slice of media mode played in order.
4. the method according to claim 1, wherein described carry out normal space slice, life to source video file Include: at standard slice
The normal space slice is carried out to the source video file according to preset GOP information, generates the standard slice;
Described to carry out redundancy interval slice to source video file, generating redundant slices includes:
The redundancy interval is carried out to the source video file according to the GOP information to be sliced, and generates the redundant slices.
5. the method according to claim 1, wherein the timestamp scope packet for obtaining each standard slice It includes:
Obtain the Presentation Time Stamp range of each standard slice.
6. according to claim 1 to method described in 5 any one, which is characterized in that described to issue each redundant slices Carrying out transcoding to distributed arithmetic node includes:
Each redundant slices are issued to distributed arithmetic node, the video segment is carried out with H264 video compression format Transcoding carries out transcoding to the audio slice in the redundant slices with ACC audio compression format.
7. a kind of video transcoding method is applied to distributed arithmetic node, which is characterized in that the described method includes:
The redundant slices being passed to by central node are received, and the redundant slices cut after transcoding generates corresponding transcoding Piece;
The redundancy after the adjacent transcoding between slice transit code audio slice is removed, de-redundancy slice is generated.
8. the method according to the description of claim 7 is characterized in that being sliced transit code sound after the adjacent transcoding of the removal Redundancy between frequency slice, after generating de-redundancy slice, this method further include:
By the de-redundancy slice transmission to the central node.
9. a kind of video code conversion device, which is characterized in that described device includes memory, processor and bus, the memory On be stored with can be by the bus transfer to the processor, and the video code conversion program run on the processor is described Such as any one of claim 1 to 6 and/or as claimed in claim 7 is realized when video code conversion program is executed by the processor Video transcoding method.
10. device according to claim 8, which is characterized in that described device is composition CDN network or block chain network Node.
11. a kind of video code conversion system, which is characterized in that the system comprises:
Standard is sliced module, for carrying out normal space slice to source video file, generates standard slice, and obtain each mark The timestamp scope of quasi- slice;Wherein, between adjacent standard slice in the continuous and irredundant data of data content Hold;
Redundant slices module generates redundant slices for carrying out redundancy interval slice to source video file;Wherein, adjacent institute The data content between redundant slices there are redundancy is stated, and includes that the corresponding standard is sliced in each redundant slices Data content;
Transcoding module, for removing the video data in each redundant slices outside the corresponding timestamp scope, and will be each The redundant slices are issued to distributed arithmetic node and carry out transcoding.
12. a kind of video code conversion system, which is characterized in that the system comprises:
Transcoding module is received, for receiving the redundant slices being passed to by central node, and it is raw to carry out transcoding to the redundant slices At being sliced after corresponding transcoding;
Redundancy removal module generates de-redundant for removing the redundancy after the adjacent transcoding between slice transit code audio slice Cotangent piece and by the de-redundancy slice transmission to the central node.
13. a kind of computer readable storage medium, which is characterized in that be stored with video on the computer readable storage medium and turn Coded program, the video code conversion program can be executed by one or more processor, to realize as any in claim 1 to 6 Item and/or video transcoding method as claimed in claim 7.
CN201910238462.XA 2019-03-27 2019-03-27 A kind of video transcoding method, device, system and medium Pending CN109889919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910238462.XA CN109889919A (en) 2019-03-27 2019-03-27 A kind of video transcoding method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910238462.XA CN109889919A (en) 2019-03-27 2019-03-27 A kind of video transcoding method, device, system and medium

Publications (1)

Publication Number Publication Date
CN109889919A true CN109889919A (en) 2019-06-14

Family

ID=66934761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910238462.XA Pending CN109889919A (en) 2019-03-27 2019-03-27 A kind of video transcoding method, device, system and medium

Country Status (1)

Country Link
CN (1) CN109889919A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611841A (en) * 2019-09-06 2019-12-24 Oppo广东移动通信有限公司 Integration method, terminal and readable storage medium
CN110995830A (en) * 2019-11-29 2020-04-10 武汉卓讯互动信息科技有限公司 Network resource processing method and device
CN112584256A (en) * 2020-12-10 2021-03-30 杭州当虹科技股份有限公司 Method for directly writing TS file after transcoding based on NAS storage fragment
CN113709412A (en) * 2020-05-21 2021-11-26 中国电信股份有限公司 Live stream processing method, device and system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951504A (en) * 2010-09-07 2011-01-19 中国科学院深圳先进技术研究院 Method and system for transcoding multimedia slices based on overlapping boundaries
US20150381677A1 (en) * 2012-07-18 2015-12-31 Opera Software Ireland Limited Just-in-Time Distributed Video Cache
CN105227968A (en) * 2014-06-30 2016-01-06 惠州市伟乐科技股份有限公司 Based on the video code conversion accelerated method of section
CN105828105A (en) * 2015-12-10 2016-08-03 广东亿迅科技有限公司 Distributed environment-based video transcoding system and video transcoding method
CN109151505A (en) * 2018-11-07 2019-01-04 深圳市网心科技有限公司 A kind of video transcoding method, system, device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951504A (en) * 2010-09-07 2011-01-19 中国科学院深圳先进技术研究院 Method and system for transcoding multimedia slices based on overlapping boundaries
US20150381677A1 (en) * 2012-07-18 2015-12-31 Opera Software Ireland Limited Just-in-Time Distributed Video Cache
CN105227968A (en) * 2014-06-30 2016-01-06 惠州市伟乐科技股份有限公司 Based on the video code conversion accelerated method of section
CN105828105A (en) * 2015-12-10 2016-08-03 广东亿迅科技有限公司 Distributed environment-based video transcoding system and video transcoding method
CN109151505A (en) * 2018-11-07 2019-01-04 深圳市网心科技有限公司 A kind of video transcoding method, system, device and computer readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611841A (en) * 2019-09-06 2019-12-24 Oppo广东移动通信有限公司 Integration method, terminal and readable storage medium
CN110611841B (en) * 2019-09-06 2021-07-30 Oppo广东移动通信有限公司 Integration method, terminal and readable 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
CN113709412A (en) * 2020-05-21 2021-11-26 中国电信股份有限公司 Live stream processing method, device and system and computer readable storage medium
CN113709412B (en) * 2020-05-21 2023-05-19 中国电信股份有限公司 Live stream processing method, device and system and computer readable storage medium
CN112584256A (en) * 2020-12-10 2021-03-30 杭州当虹科技股份有限公司 Method for directly writing TS file after transcoding based on NAS storage fragment

Similar Documents

Publication Publication Date Title
CN109889919A (en) A kind of video transcoding method, device, system and medium
CN105612753B (en) Switching method and apparatus during media flow transmission between adaptation is gathered
CN108989885B (en) Video file transcoding system, segmentation method, transcoding method and device
EP1387579B1 (en) Methods and systems for processing digital data rate and playback direction changes
CN105814900B (en) System and method for managing adjacent channel in adaptive streaming environment
EP3096526B1 (en) Communication apparatus, communication data generation method, and communication data processing method
US20120198089A1 (en) System and method for custom segmentation for streaming video
CN107005729A (en) The coffret transmitted for multimedia and file
CN102771134B (en) For supporting method and the device of play content
US11284135B2 (en) Communication apparatus, communication data generation method, and communication data processing method
CN109348309A (en) A kind of distributed video transcoding method suitable for frame rate up-conversion
CN103024517A (en) Method for synchronously playing streaming media audios and videos based on parallel processing
CN109218745A (en) A kind of live broadcasting method, server, client and readable storage medium storing program for executing
CN115767131A (en) Cloud director method, device, equipment and computer storage medium
Ellerton et al. Prospects for software defined networking and network function virtualization in media and broadcast
CN104506920A (en) Method and device for playing omnimedia data information
CN108737355A (en) Streaming media playing based on user bandwidth
US20100076944A1 (en) Multiprocessor systems for processing multimedia data and methods thereof
WO2021065277A1 (en) Information processing device, reproduction processing device, and information processing method
EP3972260A1 (en) Information processing device, information processing method, reproduction processing device, and reproduction processing method
US20220124419A1 (en) Information processing device, information processing method, and information processing program
CN107426611B (en) multi-path output method and system based on video transcoding
KR102153554B1 (en) MMT apparatus and method for processing media data
US11967153B2 (en) Information processing apparatus, reproduction processing apparatus, and information processing method
CN108335706A (en) A kind of seamless play method, terminal device and the storage medium of multimedia file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614