CN105227968A - Based on the video code conversion accelerated method of section - Google Patents
Based on the video code conversion accelerated method of section Download PDFInfo
- Publication number
- CN105227968A CN105227968A CN201410306902.8A CN201410306902A CN105227968A CN 105227968 A CN105227968 A CN 105227968A CN 201410306902 A CN201410306902 A CN 201410306902A CN 105227968 A CN105227968 A CN 105227968A
- Authority
- CN
- China
- Prior art keywords
- transcoding
- video
- section
- video segment
- starting position
- 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
Links
Abstract
The invention provides a kind of video code conversion accelerated method based on section, obtain some video segments by after the video information section in video file; According to the form preset, transcoding is carried out to described some video segments simultaneously, obtains the section of some transcoded video; According to time started of each video segment, end time, starting position, end position by transcoded video slice-merging, obtain the information of transcoded video merged; Finally by merge the information of transcoded video and merge through the audio-frequency information of transcoding, obtain the video file of transcoding.Because present invention employs distributed section transcoding, parallel transcoding simultaneously, remerge after transcoding completes, transcoding speed obviously promotes.
Description
Technical field
The present invention relates to computer graphic image process field, particularly relate to a kind of video code conversion accelerated method based on section.
Background technology
Along with the development of computer networking technology, multimedia technology, Shuo word obtains depending on Pin Ya Shrink technology and applies widely.Usual video file, according to after different standard compression coding, needing to propagate in different surrounding mediums, and displays the play in different terminals, now carrying out transcoding process with regard to needing to the video flowing of these compressed codings.Video code conversion refers to that the video code flow by original, uncompressed video code stream or compressed encoding converts the video code flow of another kind of form to, to adapt to the different network bandwidths, different terminal processing capacity and different user's requests.Transcoding is one in essence and first decodes, the process of re-encoding, and the code stream before and after therefore changing may follow identical video encoding standard, also may not follow identical video encoding standard.The realization of current transcoding technology adopts separate unit transcoding server to carry out transcoding process to each video file usually, because separate unit transcoding server transcoding is limited to the access bottleneck of processor, internal memory, hard disk, the speed of transcoding is quick not.
Summary of the invention
Technical problem to be solved by this invention is, provides a kind of video code conversion accelerated method based on section, and the method is by processing video file section thus improve transcoding speed simultaneously.
In order to solve the problems of the technologies described above, the invention provides a kind of video code conversion accelerated method based on section, comprising the following steps:
S101, by the video information section in video file, thus obtain some video segments;
S102, supper-fast parsing is carried out to each video segment in described some video segments, obtain the time started of each video segment, end time, starting position, end position;
S103, the audio-frequency information in video file is carried out transcoding according to the form preset, obtain transcoding audio-frequency information;
S104, according to the form preset, transcoding is carried out to described some video segment simultaneously, obtain the section of some transcoded video;
S105, time started according to described each video segment, end time, starting position, end position, by the described slice-merging of transcoded video, obtain the information of transcoded video merged;
S106, the information of transcoded video of described merging and the described audio-frequency information of transcoding to be merged, obtain the video file of transcoding.
Concrete described step S104 specifically comprises the following steps:
The starting position of each video segment is classified as the content of current video section to front portion and end position to rear portion by S1041, the starting position of each video segment obtained according to step S102, end position, obtains the video segment that some borders are expanded;
Each video segment in S1042, the video segment that expanded on described some borders carries out transcoding according to the form preset simultaneously, obtains the section of some transcoded video.
Present invention also offers another based on the video code conversion accelerated method of cutting into slices, employing multiple stage transcoding server and the transcoding controller be connected with described multiple stage transcoding server realize, and comprise the following steps:
The information parameter of the video file needing transcoding is sent to one of them idle transcoding server by S201, transcoding controller, the described video file of transcoding that needs is cut into slices according to described information parameter by described idle transcoding server, thus obtains some video segments; .
S202, supper-fast parsing is carried out to each video segment in described some video segments, obtain the time started of each video segment, end time, starting position, end position, and be back to described transcoding controller;
Audio-frequency information in video file is sent to one of them idle transcoding server, and carries out transcoding according to the form preset by S203, described transcoding controller, obtains transcoding audio-frequency information, and is back to described transcoding controller;
S204, described control transcoder by the time started of each video segment, end time, starting position, end position is man-to-man is sent to idle server;
S205, each idle server according to the starting position of the video segment received, end position download need the video file of transcoding from starting position to front portion and end position to the content of latter part of video, and the content of download is carried out transcoding according to the form preset simultaneously, the video segment of transcoding is back to described transcoding controller;
The video segment of the transcoding of the time started of each video segment, end time, starting position, end position and correspondence and the described audio-frequency information of transcoding are sent to an idle server by S206, transcoding controller;
The video segment of the transcoding of correspondence and the described audio-frequency information of transcoding merge according to time started of each video segment, end time, starting position, end position by S207, described idle server, obtain the video file of transcoding.
Implement the present invention, there is following beneficial effect:
The invention provides a kind of video code conversion accelerated method based on section, obtain some video segments by after the video information section in video file; According to the form preset, transcoding is carried out to described some video segments simultaneously, obtains the section of some transcoded video; According to time started of each video segment, end time, starting position, end position by transcoded video slice-merging, obtain the information of transcoded video merged; Finally by merge the information of transcoded video and merge through the audio-frequency information of transcoding, obtain the video file of transcoding.Because present invention employs distributed section transcoding, parallel transcoding simultaneously, remerge after transcoding completes, transcoding speed obviously promotes.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the video code conversion accelerated method based on section that the embodiment of the present invention 1 provides;
Fig. 2 is the schematic flow sheet of step S104 in Fig. 1;
Fig. 3 is the schematic flow sheet of the video code conversion accelerated method based on section that the embodiment of the present invention 2 provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
Embodiments provide a kind of video code conversion accelerated method based on section, as shown in Figure 1, comprise the following steps:
S101, by the video information section in video file, thus obtain some video segments;
S102, supper-fast parsing is carried out to each video segment in described some video segments, obtain the time started of each video segment, end time, starting position, end position;
S103, the audio-frequency information in video file is carried out transcoding according to the form preset, obtain transcoding audio-frequency information;
S104, according to the form preset, transcoding is carried out to described some video segment simultaneously, obtain the section of some transcoded video;
S105, time started according to described each video segment, end time, starting position, end position, by the described slice-merging of transcoded video, obtain the information of transcoded video merged;
S106, the information of transcoded video of described merging and the described audio-frequency information of transcoding to be merged, obtain the video file of transcoding.
Further, as shown in Figure 2, described step S104 specifically comprises the following steps:
S1041, according to the starting position of each video segment obtained in step S102, end position, the starting position of each video segment is classified as the content of current video section to front portion and end position to rear portion, obtains the video segment that some borders are expanded;
This step by the sub-fraction forward of each video segment and backward sub-fraction be classified as current video section content, expand the boundary member of each video segment, the boundary member that adjacent video is cut into slices produces and overlaps, the beginning of video segment and latter end can be made like this to produce mosaic, ensure the integrality of transcoding.Also seamless link can be realized when later stage merges simultaneously.
Each video segment in S1042, the video segment that expanded on described some borders carries out transcoding according to the form preset simultaneously, obtains the section of some transcoded video.Wherein, the transcoding of multiple video segment carries out simultaneously, effectively can accelerate transcoding.
Preferably, described step S102 and described step S103 carries out simultaneously.The video segment of the video information in video file is resolved by step S102, following execution step S104 transcoding, step S102 is by the audio-frequency information transcoding in video file, step S102 and described step S103 carries out simultaneously, when can ensure that video segment transcoding completes, audio-frequency information also can complete transcoding very soon, thus merges video information and the audio-frequency information of transcoding, further pick up speed.
Embodiments provide a kind of video code conversion accelerated method based on section, obtain some video segments by after the video information section in video file; According to the form preset, transcoding is carried out to described some video segments simultaneously, obtains the section of some transcoded video; According to time started of each video segment, end time, starting position, end position by transcoded video slice-merging, obtain the information of transcoded video merged; Finally by merge the information of transcoded video and merge through the audio-frequency information of transcoding, obtain the video file of transcoding.Because present invention employs distributed section transcoding, parallel transcoding simultaneously, remerge after transcoding completes, transcoding speed obviously promotes.
Embodiment 2
Embodiments provide a kind of video code conversion accelerated method based on section, concrete employing multiple stage transcoding server and the transcoding controller be connected with described multiple stage transcoding server realize the present embodiment, as shown in Figure 2, comprise the following steps:
The information parameter of the video file needing transcoding is sent to one of them idle transcoding server by S201, transcoding controller, the described video file of transcoding that needs is cut into slices according to described information parameter by described idle transcoding server, thus obtains some video segments.
Concrete, the information parameter of the video file needing transcoding is sent to one of them idle transcoding server by transcoding controller, the information parameter of video file is (need the path of the video file of transcoding, need the number of section), concrete form can be: Input_file=" " (path), split_count=" " (needing the number of section).The described video file of transcoding that needs is cut into slices according to described information parameter by idle transcoding server, thus obtains some video segments.
S202, supper-fast parsing is carried out to each video segment in described some video segments, obtain the time started of each video segment, end time, starting position, end position, and be back to described transcoding controller.
Concrete, the information format returned can be: split_id=" 1 " (slice number), start_pos=" " (starting position), start_sec=" " (time started), stop_sec=" " (end time), stop_pos=" " (end position).
Audio-frequency information in video file is sent to one of them idle transcoding server, and carries out transcoding according to the form preset by S203, described transcoding controller, obtains transcoding audio-frequency information, and is back to described transcoding controller.
Usually, audio-frequency information adopts section to be encoded to 0, i.e. split_id=" 0 ", for the merging in later stage.
S204, described control transcoder by the time started of each video segment, end time, starting position, end position is man-to-man is sent to idle server.
S205, each idle server according to the starting position of the video segment received, end position download need the video file of transcoding from starting position to front portion and end position to the content of latter part of video, and the content of download is carried out transcoding according to the form preset simultaneously, the video segment of transcoding is back to described transcoding controller.
This step by the sub-fraction forward of each video segment and backward sub-fraction be classified as current video section content, expand the boundary member of each video segment, the boundary member that adjacent video is cut into slices produces and overlaps, the beginning of video segment and latter end can be made like this to produce mosaic, ensure the integrality of transcoding.Later stage also can realize seamless link when merging.And adopt a transcoding server transcoding for a video segment, the transcoding of multiple video segment carries out, and effectively can accelerate transcoding simultaneously.
The video segment of the transcoding of the time started of each video segment, end time, starting position, end position and correspondence and the described audio-frequency information of transcoding are sent to an idle server by S206, transcoding controller.
The video segment of the transcoding of correspondence and the described audio-frequency information of transcoding merge according to time started of each video segment, end time, starting position, end position by S207, described idle server, obtain the video file of transcoding.
Preferably, described step S202 and described step S203 carries out simultaneously.The video segment of the video information in video file is resolved by step S202, following execution step S204 transcoding, step S202 is by the audio-frequency information transcoding in video file, step S202 and described step S203 carries out simultaneously, when can ensure that video segment transcoding completes, audio-frequency information also can complete transcoding very soon, thus merges video information and the audio-frequency information of transcoding, further pick up speed.
Embodiments provide a kind of video code conversion accelerated method based on section, obtain some video segments by after the video information section in video file; According to the form preset, transcoding is carried out to described some video segments simultaneously, obtains the section of some transcoded video; According to time started of each video segment, end time, starting position, end position, the video segment of the transcoding of correspondence and the described audio-frequency information of transcoding are merged, obtain the video file of transcoding.Because present invention employs distributed section transcoding, adopt multiple transcoding server to walk abreast transcoding, remerge after transcoding completes, transcoding speed obviously promotes simultaneously.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (5)
1., based on a video code conversion accelerated method for section, it is characterized in that, comprise the following steps:
S101, by the video information section in video file, thus obtain some video segments;
S102, supper-fast parsing is carried out to each video segment in described some video segments, obtain the time started of each video segment, end time, starting position, end position;
S103, the audio-frequency information in video file is carried out transcoding according to the form preset, obtain transcoding audio-frequency information;
S104, according to the form preset, transcoding is carried out to described some video segment simultaneously, obtain the section of some transcoded video;
S105, time started according to described each video segment, end time, starting position, end position, by the described slice-merging of transcoded video, obtain the information of transcoded video merged;
S106, the information of transcoded video of described merging and the described audio-frequency information of transcoding to be merged, obtain the video file of transcoding.
2., as claimed in claim 1 based on the video code conversion accelerated method of section, it is characterized in that, described step S104 specifically comprises the following steps:
The starting position of each video segment is classified as the content of current video section to front portion and end position to rear portion by S1041, the starting position of each video segment obtained according to step S102, end position, obtains the video segment that some borders are expanded;
Each video segment in S1042, the video segment that expanded on described some borders carries out transcoding according to the form preset simultaneously, obtains the section of some transcoded video.
3., as claimed in claim 1 based on the video code conversion accelerated method of section, it is characterized in that, described step S102 preferably carries out with described step S103 simultaneously.
4. based on a video code conversion accelerated method for section, it is characterized in that, employing multiple stage transcoding server and the transcoding controller be connected with described multiple stage transcoding server realize, and comprise the following steps:
The information parameter of the video file needing transcoding is sent to one of them idle transcoding server by S201, transcoding controller, the described video file of transcoding that needs is cut into slices according to described information parameter by described idle transcoding server, thus obtains some video segments;
S202, supper-fast parsing is carried out to each video segment in described some video segments, obtain the time started of each video segment, end time, starting position, end position, and be back to described transcoding controller;
Audio-frequency information in video file is sent to one of them idle transcoding server, and carries out transcoding according to the form preset by S203, described transcoding controller, obtains transcoding audio-frequency information, and is back to described transcoding controller;
S204, described control transcoder by the time started of each video segment, end time, starting position, end position is man-to-man is sent to idle server;
S205, each idle server according to the starting position of the video segment received, end position download need the video file of transcoding from starting position to front portion and end position to the content of latter part of video, and the content of download is carried out transcoding according to the form preset simultaneously, the video segment of transcoding is back to described transcoding controller;
The video segment of the transcoding of the time started of each video segment, end time, starting position, end position and correspondence and the described audio-frequency information of transcoding are sent to an idle server by S206, transcoding controller;
The video segment of the transcoding of correspondence and the described audio-frequency information of transcoding merge according to time started of each video segment, end time, starting position, end position by S207, described idle server, obtain the video file of transcoding.
5., as claimed in claim 4 based on the video code conversion accelerated method of section, it is characterized in that, described step S202 preferably carries out with described step S203 simultaneously.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410306902.8A CN105227968A (en) | 2014-06-30 | 2014-06-30 | Based on the video code conversion accelerated method of section |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410306902.8A CN105227968A (en) | 2014-06-30 | 2014-06-30 | Based on the video code conversion accelerated method of section |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105227968A true CN105227968A (en) | 2016-01-06 |
Family
ID=54996605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410306902.8A Pending CN105227968A (en) | 2014-06-30 | 2014-06-30 | Based on the video code conversion accelerated method of section |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105227968A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104823073A (en) * | 2012-11-08 | 2015-08-05 | A·伊尔蒂斯 | System and method for detecting gamma radiation, such as gamma camera |
CN106973306A (en) * | 2017-02-14 | 2017-07-21 | 北京时间股份有限公司 | Distributed trans-coding method, apparatus and system |
CN108419123A (en) * | 2018-03-28 | 2018-08-17 | 广州市创新互联网教育研究院 | A kind of virtual sliced sheet method of instructional video |
CN109547864A (en) * | 2017-09-21 | 2019-03-29 | 腾讯科技(深圳)有限公司 | Media data processing method and device |
CN109640115A (en) * | 2018-12-17 | 2019-04-16 | 视联动力信息技术股份有限公司 | A kind of files in stream media code-transferring method and device |
CN109889919A (en) * | 2019-03-27 | 2019-06-14 | 深圳市网心科技有限公司 | A kind of video transcoding method, device, system and medium |
CN110213615A (en) * | 2018-04-04 | 2019-09-06 | 腾讯科技(深圳)有限公司 | Video transcoding method, device, server and storage medium |
CN110830805A (en) * | 2019-10-24 | 2020-02-21 | 上海网达软件股份有限公司 | Multi-resolution output distributed file transcoding method and device |
CN111866542A (en) * | 2019-04-30 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Audio signal processing method, multimedia information processing device and electronic equipment |
CN115174578A (en) * | 2022-07-25 | 2022-10-11 | 上海网达软件股份有限公司 | Kubernetes-based on-demand parallel transcoding method and device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459848A (en) * | 2008-12-26 | 2009-06-17 | 西安交通大学 | Distributed multi-format digital video transcoding construction design method |
CN101964894A (en) * | 2010-08-24 | 2011-02-02 | 中国科学院深圳先进技术研究院 | Method and system for parallel trans-coding of video slicing |
CN102780918A (en) * | 2012-08-15 | 2012-11-14 | 华数传媒网络有限公司 | Video distributed coding format converting method |
CN103731678A (en) * | 2013-12-30 | 2014-04-16 | 世纪龙信息网络有限责任公司 | Video file parallel transcoding method and system |
-
2014
- 2014-06-30 CN CN201410306902.8A patent/CN105227968A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459848A (en) * | 2008-12-26 | 2009-06-17 | 西安交通大学 | Distributed multi-format digital video transcoding construction design method |
CN101964894A (en) * | 2010-08-24 | 2011-02-02 | 中国科学院深圳先进技术研究院 | Method and system for parallel trans-coding of video slicing |
CN102780918A (en) * | 2012-08-15 | 2012-11-14 | 华数传媒网络有限公司 | Video distributed coding format converting method |
CN103731678A (en) * | 2013-12-30 | 2014-04-16 | 世纪龙信息网络有限责任公司 | Video file parallel transcoding method and system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104823073A (en) * | 2012-11-08 | 2015-08-05 | A·伊尔蒂斯 | System and method for detecting gamma radiation, such as gamma camera |
CN106973306A (en) * | 2017-02-14 | 2017-07-21 | 北京时间股份有限公司 | Distributed trans-coding method, apparatus and system |
CN109547864A (en) * | 2017-09-21 | 2019-03-29 | 腾讯科技(深圳)有限公司 | Media data processing method and device |
CN109547864B (en) * | 2017-09-21 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Media data processing method and device |
CN108419123A (en) * | 2018-03-28 | 2018-08-17 | 广州市创新互联网教育研究院 | A kind of virtual sliced sheet method of instructional video |
CN108419123B (en) * | 2018-03-28 | 2020-09-04 | 广州市创新互联网教育研究院 | Virtual slicing method for teaching video |
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 |
CN109640115A (en) * | 2018-12-17 | 2019-04-16 | 视联动力信息技术股份有限公司 | A kind of files in stream media code-transferring method and device |
CN109889919A (en) * | 2019-03-27 | 2019-06-14 | 深圳市网心科技有限公司 | A kind of video transcoding method, device, system and medium |
CN111866542A (en) * | 2019-04-30 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Audio signal processing method, multimedia information processing device and electronic equipment |
CN110830805A (en) * | 2019-10-24 | 2020-02-21 | 上海网达软件股份有限公司 | Multi-resolution output distributed file transcoding method and device |
CN115174578A (en) * | 2022-07-25 | 2022-10-11 | 上海网达软件股份有限公司 | Kubernetes-based on-demand parallel transcoding method and device and storage medium |
CN115174578B (en) * | 2022-07-25 | 2023-10-20 | 上海网达软件股份有限公司 | Kubernetes-based on-demand parallel transcoding method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105227968A (en) | Based on the video code conversion accelerated method of section | |
CN102790925B (en) | Method and VOD (Video On Demand) terminal for playing online streaming media | |
US9479728B2 (en) | Video SMS message sending and receiving methods and apparatuses thereof, and handheld electronic device | |
CN104679570A (en) | Image loading display method, equipment and system | |
CN104683884A (en) | Live method and system for stream medium | |
US20140173674A1 (en) | Server gpu assistance for mobile gpu applications | |
CN105516736B (en) | Video file processing method and device | |
CN104768063A (en) | Video coding method and device | |
CN103531218B (en) | A kind of online multimedia file editing method and system | |
US9832493B2 (en) | Method and apparatus for processing audio/video file | |
JP7177285B2 (en) | Method, apparatus and program for receiving media data | |
CN104244023A (en) | Video cloud editing system and method | |
WO2008014501A3 (en) | Method and system for transitioning streamed digital video content between stream servers in a digital video network | |
CN104244028A (en) | Content distribution method, device and system based on code stream self-adaptation technology | |
WO2019228207A1 (en) | Image encoding and decoding method , related device and storage medium | |
CN112954457A (en) | Video playing and displaying method, device and system | |
CN104837033A (en) | Information processing method and server | |
CN105898392A (en) | Online live video player and method | |
CN105282124A (en) | Transmission method and presentation method of progressive picture based on XMPP | |
CN103747296A (en) | Video playing method and system | |
CN105635835A (en) | Micro-class making, storing and playing method | |
CN106899894A (en) | The adaptive stream media method of dynamic optimization, device and server | |
CN102404632A (en) | Information pushing method of intelligent television and application thereof | |
CN110213615A (en) | Video transcoding method, device, server and storage medium | |
CN108243345A (en) | A kind of video stream pushing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160106 |
|
RJ01 | Rejection of invention patent application after publication |