CN103618902A - Transcoding method, device and system for video file - Google Patents
Transcoding method, device and system for video file Download PDFInfo
- Publication number
- CN103618902A CN103618902A CN201310565709.1A CN201310565709A CN103618902A CN 103618902 A CN103618902 A CN 103618902A CN 201310565709 A CN201310565709 A CN 201310565709A CN 103618902 A CN103618902 A CN 103618902A
- Authority
- CN
- China
- Prior art keywords
- file
- video
- audio
- gop
- transcoding
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
An embodiment of the invention provides a transcoding method for a video file. The method comprises the steps that a video partition server divides the video streaming of the video file into at least one group of pictures (GOP) and stores each GOP as files; the video partition server divides the audio streaming of the video file into at least one audio package according to fixed frame number and stores each audio package as a file; the video partition server writes source video information parameters and target video coding parameters into each GOP file; the video partition server writes source audio information parameters and target audio coding parameters into each audio package file; the video partition server sends the GOP files and the audio package files to a transcoding server. The embodiment of the invention further provides the corresponding video partition server and a transcoding system for the video file. The method, the device and the system can greatly improve the efficiency of video file transcoding.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of code-transferring method, Apparatus and system of video file.
Background technology
When having multitude of video to carry out format transformation, can adopt the transcoding software of many standalone versions to carry out transcoding; And more efficient way is to design a distributed trans-coding system to carry out transcoding.Video code conversion generally can be divided into four steps to carry out: a, decapsulation, b, video decode coding, c, audio decoder coding, d, encapsulation.In these four steps, video decode this step of encoding will expend time of whole transcoding process 80%-90%.In order to improve transcoding speed, what the whole time of minimizing transcoding was most crucial is the processing time that will reduce video decode coding.
The thought of distributed trans-coding is to utilize multiple servers to walk abreast to process entering GOP (Group of Pictures, picture group) decoding and coding simultaneously, and the server of parallel processing GOP is more, and whole transcoding process is consuming time just fewer.Distributed trans-coding system is typically designed as for this reason: a station server is responsible for decapsulation, and multiple servers is responsible for processing GOP, and a station server is responsible for processing audio bag, and a station server is responsible for encapsulation export target video file.Shown in Fig. 1, be the system schematic of distributed trans-coding.
In current distributed trans-coding system, in GOP and audio pack, there is not any information of relevant transcoding, the server of being responsible for transcoding is like this after receiving GOP and audio pack, must obtain to other place relevant transcoding information could carry out transcoding operation to GOP and audio pack, thereby causes the inefficiency of transcoding.
Summary of the invention
In order to solve the low problem of video file transcoding efficiency in prior art, the embodiment of the present invention proposes a kind of code-transferring method, Apparatus and system of video file.
One aspect of the present invention, provides a kind of code-transferring method of video file, comprising:
Video segmentation server is divided at least one picture group GOP by the video flowing of video file, and described each GOP is saved as to file;
Described Video segmentation server is divided at least one audio pack by the audio stream of described video file according to fixing frame number, and described each audio pack is saved as to file;
Described Video segmentation server is write into described each gop file by source video information parameter and target video coding parameter;
Described Video segmentation server is write into described each audio pack file by source audio-frequency information parameter and target audio coding parameter;
Described Video segmentation server sends to transcoding server by described gop file and described audio pack file.
Another aspect of the present invention, provides a kind of Video segmentation server, comprising:
Video flowing cutting unit, for the video flowing of video file being divided into at least one picture group GOP, and saves as file by described each GOP;
Audio stream cutting unit, for the audio stream of described video file is divided into at least one audio pack according to fixing frame number, and saves as file by described each audio pack;
Video parameter writing unit, for writing into described each gop file by source video information parameter and target video coding parameter;
Audio frequency parameter writing unit, for writing into described each audio pack file by source audio-frequency information parameter and target audio coding parameter;
Transmitting element, for sending to transcoding server by described gop file and described audio pack file.
Another aspect of the present invention, also provides a kind of trans-coding system of video file, comprising:
Video segmentation server, and transcoding server;
Described transcoding server is used for, according to described source video information parameter and target video coding parameter in described gop file, described GOP is carried out to transcoding, according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file, described audio pack is carried out to transcoding, the audio pack after the GOP after described transcoding and described transcoding is packaged into video file.
Use the code-transferring method of the disclosed video file of the embodiment of the present invention, Apparatus and system, in each gop file, carry source video information parameter and target video coding parameter, and in each audio pack, carry source audio-frequency information parameter and target audio coding parameter, like this when transcoding server is received any one gop file or audio pack, just can to this gop file or audio pack, carry out transcoding operation separately, without obtain the relevant information of transcoding to other places, also need not wait for after receiving abundant gop file or audio pack and just can carry out transcoding operation, thereby greatly improved the efficiency of video code conversion.
Accompanying drawing explanation
It shown in Fig. 1, is a kind of system schematic of distributed trans-coding;
It shown in Fig. 2, is the schematic diagram of the code-transferring method of a kind of video file of providing of the embodiment of the present invention;
It shown in Fig. 3, is the structural representation of a kind of Video segmentation server of providing of the embodiment of the present invention;
It shown in Fig. 4, is the structural representation of the another kind of Video segmentation server that provides of the embodiment of the present invention;
It shown in Fig. 5, is the schematic diagram of the trans-coding system of a kind of video file of providing of the embodiment of the present invention.
Embodiment
In embodiments of the present invention, in each gop file, carry source video information parameter and target video coding parameter, and in each audio pack, carry source audio-frequency information parameter and target audio coding parameter, like this when transcoding server is received any one gop file or audio pack, just can to this gop file or audio pack, carry out transcoding operation separately, without obtain the relevant information of transcoding to other places, also need not wait for after receiving abundant gop file or audio pack and just can carry out transcoding operation, thereby greatly improve the efficiency of video code conversion.
Below describe the code-transferring method of the video file that the embodiment of the present invention provides in detail.
Figure 2 shows that the code-transferring method schematic diagram of the video file that one embodiment of the invention provides, according to this figure, each step be described in detail in detail as follows:
Step 201, Video segmentation server are divided at least one picture group GOP by the video flowing of video file, and described each GOP is saved as to file;
Step 202, described Video segmentation server are divided at least one audio pack by the audio stream of described video file according to fixing frame number, and described each audio pack is saved as to file;
Step 203, described Video segmentation server are write into described each gop file by source video information parameter and target video coding parameter;
Step 204, described Video segmentation server are write into described each audio pack file by source audio-frequency information parameter and target audio coding parameter;
Step 205, described Video segmentation server send to transcoding server by described gop file and described audio pack file.
Preceding method also comprises: described Video segmentation server obtains described source video information parameter and target video coding parameter; And
Obtain source audio-frequency information parameter and target audio coding parameter.
Described transcoding server carries out transcoding according to described source video information parameter and target video coding parameter in described gop file to described GOP;
Described transcoding server carries out transcoding according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file to described audio pack;
Described transcoding server is packaged into video file by the audio pack after the GOP after described transcoding and described transcoding.
Wherein, described transcoding server carries out transcoding according to described source video information parameter and target video coding parameter in described gop file to described GOP, comprising:
The source video information parameter that described transcoding server reads in described gop file is decoded to described gop file;
The target video coding parameter that described transcoding server reads in described gop file is encoded to described decoded gop file.
Described transcoding server carries out transcoding according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file to described audio pack, comprising:
The source audio-frequency information parameter that described transcoding server reads in described audio pack file is decoded to described audio pack file;
The target audio coding parameter that described transcoding server reads in described audio pack file is encoded to described decoded audio pack file.
Use the code-transferring method of the disclosed video file of the embodiment of the present invention, in each gop file, carry source video information parameter and target video coding parameter, and in each audio pack, carry source audio-frequency information parameter and target audio coding parameter, like this when transcoding server is received any one gop file or audio pack, just can to this gop file or audio pack, carry out transcoding operation separately, without obtain the relevant information of transcoding to other places, also need not wait for after receiving abundant gop file or audio pack and just can carry out transcoding operation, thereby greatly improved the efficiency of video code conversion.
Below introduce a kind of Video segmentation server, in order to carry out the code-transferring method of disclosed video file in previous embodiment.
Figure 3 shows that the structural representation of a kind of Video segmentation server that the embodiment of the present invention provides.According to this figure, each part is described in detail in detail as follows:
Video flowing cutting unit 301, for the video flowing of video file being divided into at least one picture group GOP, and saves as file by described each GOP;
Audio stream cutting unit 302, for the audio stream of described video file is divided into at least one audio pack according to fixing frame number, and saves as file by described each audio pack;
Video parameter writing unit 303, for writing into described each gop file by source video information parameter and target video coding parameter;
Audio frequency parameter writing unit 304, for writing into described each audio pack file by source audio-frequency information parameter and target audio coding parameter;
Transmitting element 305, for sending to transcoding server by described gop file and described audio pack file.
Figure 4 shows that the structural representation of the another kind of Video segmentation server that one embodiment of the invention provides.By this figure, can be found out, aforementioned Video segmentation server also comprises:
Acquiring unit 306, for obtaining described source video information parameter and target video coding parameter; And obtain source audio-frequency information parameter and target audio coding parameter.
Use the disclosed Video segmentation server of the embodiment of the present invention, in each gop file, carry source video information parameter and target video coding parameter, and in each audio pack, carry source audio-frequency information parameter and target audio coding parameter, like this when transcoding server is received any one gop file or audio pack, just can to this gop file or audio pack, carry out transcoding operation separately, without obtain the relevant information of transcoding to other places, also need not wait for after receiving abundant gop file or audio pack and just can carry out transcoding operation, thereby greatly improved the efficiency of video code conversion.
Figure 5 shows that the schematic diagram of the trans-coding system of a kind of video file that the embodiment of the present invention provides.According to this figure, the trans-coding system of introducing video file is as follows:
The trans-coding system of described video file comprises Video segmentation server 501 and transcoding server 502.
Wherein, structure and the purposes of Video segmentation server 501 disclose in the aforementioned embodiment, repeat no more herein.
Wherein, described transcoding server 502 carries out transcoding according to described source video information parameter and target video coding parameter in described gop file to described GOP, comprising:
The source video information parameter that described transcoding server reads in described gop file is decoded to described gop file;
The target video coding parameter that described transcoding server reads in described gop file is encoded to described decoded gop file.
Described transcoding server 502 carries out transcoding according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file to described audio pack, comprising:
The source audio-frequency information parameter that described transcoding server reads in described audio pack file is decoded to described audio pack file;
The target audio coding parameter that described transcoding server reads in described audio pack file is encoded to described decoded audio pack file.
Use the trans-coding system of the disclosed video file of the embodiment of the present invention, in each gop file, carry source video information parameter and target video coding parameter, and in each audio pack, carry source audio-frequency information parameter and target audio coding parameter, like this when transcoding server is received any one gop file or audio pack, just can to this gop file or audio pack, carry out transcoding operation separately, without obtain the relevant information of transcoding to other places, also need not wait for after receiving abundant gop file or audio pack and just can carry out transcoding operation, thereby greatly improved the efficiency of video code conversion.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc, CD, network node, schedulers.
Finally it should be noted that: these are only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. a code-transferring method for video file, is characterized in that, comprising:
Video segmentation server is divided at least one picture group GOP by the video flowing of video file, and described each GOP is saved as to file;
Described Video segmentation server is divided at least one audio pack by the audio stream of described video file according to fixing frame number, and described each audio pack is saved as to file;
Described Video segmentation server is write into described each gop file by source video information parameter and target video coding parameter;
Described Video segmentation server is write into described each audio pack file by source audio-frequency information parameter and target audio coding parameter;
Described Video segmentation server sends to transcoding server by described gop file and described audio pack file.
2. method according to claim 1, is characterized in that, also comprises:
Described Video segmentation server obtains described source video information parameter and target video coding parameter; And
Obtain source audio-frequency information parameter and target audio coding parameter.
3. method according to claim 1 and 2, is characterized in that, also comprises:
Described transcoding server carries out transcoding according to described source video information parameter and target video coding parameter in described gop file to described GOP;
Described transcoding server carries out transcoding according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file to described audio pack;
Described transcoding server is packaged into video file by the audio pack after the GOP after described transcoding and described transcoding.
4. method according to claim 3, is characterized in that, described transcoding server carries out transcoding according to described source video information parameter and target video coding parameter in described gop file to described GOP, comprising:
The source video information parameter that described transcoding server reads in described gop file is decoded to described gop file;
The target video coding parameter that described transcoding server reads in described gop file is encoded to described decoded gop file.
5. method according to claim 3, is characterized in that, described transcoding server carries out transcoding according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file to described audio pack, comprising:
The source audio-frequency information parameter that described transcoding server reads in described audio pack file is decoded to described audio pack file;
The target audio coding parameter that described transcoding server reads in described audio pack file is encoded to described decoded audio pack file.
6. a Video segmentation server, is characterized in that, comprising:
Video flowing cutting unit, for the video flowing of video file being divided into at least one picture group GOP, and saves as file by described each GOP;
Audio stream cutting unit, for the audio stream of described video file is divided into at least one audio pack according to fixing frame number, and saves as file by described each audio pack;
Video parameter writing unit, for writing into described each gop file by source video information parameter and target video coding parameter;
Audio frequency parameter writing unit, for writing into described each audio pack file by source audio-frequency information parameter and target audio coding parameter;
Transmitting element, for sending to transcoding server by described gop file and described audio pack file.
7. Video segmentation server according to claim 6, is characterized in that, also comprises:
Acquiring unit, for obtaining described source video information parameter and target video coding parameter; And
Obtain source audio-frequency information parameter and target audio coding parameter.
8. a trans-coding system for video file, is characterized in that, comprises the Video segmentation server described in claim 7 or 8, and transcoding server;
Described transcoding server is used for, according to described source video information parameter and target video coding parameter in described gop file, described GOP is carried out to transcoding, according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file, described audio pack is carried out to transcoding, the audio pack after the GOP after described transcoding and described transcoding is packaged into video file.
9. system according to claim 8, is characterized in that, described transcoding server carries out transcoding according to described source video information parameter and target video coding parameter in described gop file to described GOP, comprising:
The source video information parameter that described transcoding server reads in described gop file is decoded to described gop file;
The target video coding parameter that described transcoding server reads in described gop file is encoded to described decoded gop file.
10. system according to claim 8, is characterized in that, described transcoding server carries out transcoding according to described source audio-frequency information parameter and target audio coding parameter in described audio pack file to described audio pack, comprising:
The source audio-frequency information parameter that described transcoding server reads in described audio pack file is decoded to described audio pack file;
The target audio coding parameter that described transcoding server reads in described audio pack file is encoded to described decoded audio pack file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310565709.1A CN103618902B (en) | 2013-11-13 | 2013-11-13 | Transcoding method, device and system for video file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310565709.1A CN103618902B (en) | 2013-11-13 | 2013-11-13 | Transcoding method, device and system for video file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103618902A true CN103618902A (en) | 2014-03-05 |
CN103618902B CN103618902B (en) | 2017-04-12 |
Family
ID=50169606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310565709.1A Expired - Fee Related CN103618902B (en) | 2013-11-13 | 2013-11-13 | Transcoding method, device and system for video file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103618902B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245880A (en) * | 2015-09-21 | 2016-01-13 | 北京暴风科技股份有限公司 | Video file cutting method and distributed transcoding method |
CN105357531A (en) * | 2015-12-15 | 2016-02-24 | 北京网博视界科技股份有限公司 | Rapid cutting packaging method based on video local encoding |
CN111246243A (en) * | 2020-01-15 | 2020-06-05 | 天脉拓道(北京)科技有限公司 | File encoding and decoding method and device, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006078594A1 (en) * | 2005-01-19 | 2006-07-27 | Thomson Licensing | Method and apparatus for real time parallel encoding |
CN101098483A (en) * | 2007-07-19 | 2008-01-02 | 上海交通大学 | Video cluster transcoding system using image group structure as parallel processing element |
CN103152606A (en) * | 2013-03-19 | 2013-06-12 | 华为技术有限公司 | Video file processing method, device and system |
CN103269431A (en) * | 2013-04-15 | 2013-08-28 | 浙江宇视科技有限公司 | Method and device for realizing cloud transcoding |
-
2013
- 2013-11-13 CN CN201310565709.1A patent/CN103618902B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006078594A1 (en) * | 2005-01-19 | 2006-07-27 | Thomson Licensing | Method and apparatus for real time parallel encoding |
CN101098483A (en) * | 2007-07-19 | 2008-01-02 | 上海交通大学 | Video cluster transcoding system using image group structure as parallel processing element |
CN103152606A (en) * | 2013-03-19 | 2013-06-12 | 华为技术有限公司 | Video file processing method, device and system |
CN103269431A (en) * | 2013-04-15 | 2013-08-28 | 浙江宇视科技有限公司 | Method and device for realizing cloud transcoding |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245880A (en) * | 2015-09-21 | 2016-01-13 | 北京暴风科技股份有限公司 | Video file cutting method and distributed transcoding method |
CN105245880B (en) * | 2015-09-21 | 2018-04-13 | 暴风集团股份有限公司 | Video file cutting method and distributed trans-coding method |
CN105357531A (en) * | 2015-12-15 | 2016-02-24 | 北京网博视界科技股份有限公司 | Rapid cutting packaging method based on video local encoding |
CN105357531B (en) * | 2015-12-15 | 2018-07-20 | 北京网博视界科技股份有限公司 | Based on video local code fly-cutting packaging method |
CN111246243A (en) * | 2020-01-15 | 2020-06-05 | 天脉拓道(北京)科技有限公司 | File encoding and decoding method and device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103618902B (en) | 2017-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102301730B (en) | Method, device and system for transmitting and processing multichannel AV | |
JP4481889B2 (en) | Data recording apparatus and method, program, and recording medium | |
US11606576B2 (en) | Method and apparatus for generating media file comprising 3-dimensional video content, and method and apparatus for replaying 3-dimensional video content | |
CN103200425B (en) | A kind of multimedia processing apparatus and method | |
CN102740125B (en) | System and method for playing streaming media | |
CN104754349A (en) | Method and device for hardware decoding of audio/video | |
CN105049920A (en) | Method and device for recording multimedia files | |
CN103051941B (en) | A kind of method and system playing local video on a mobile platform | |
US20110058613A1 (en) | Method and apparatus for generating bitstream based on syntax element | |
CN102802021B (en) | A kind of method of editing multimedia data and device | |
CN102802022A (en) | Coding and decoding system and method | |
CN104811747A (en) | Video transcode method and device | |
CN103618902A (en) | Transcoding method, device and system for video file | |
CN113271467B (en) | Ultra-high-definition video layered coding and decoding method supporting efficient editing | |
CN105681893A (en) | Method and device for decoding stream media video data | |
CN103647984A (en) | Load distribution method and system for video processing servers | |
CN102811382A (en) | Method and device for collecting multimedia signals | |
US9183842B2 (en) | Transcoder with dynamic audio channel changing | |
CN102790906A (en) | Encoding and decoding system and method | |
CN103037211A (en) | Decoding processing method, device and playing equipment of streaming media files | |
CN103905843A (en) | Distributed audio/video processing device and method for continuous frame-I circumvention | |
CN103647970A (en) | Audio and video synchronization method and system for distributed transcoding | |
CN102811383A (en) | Video file playing method and device based on set top box | |
CN103430558A (en) | A method for optimizing a video stream | |
CN102647584A (en) | Video file generation method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A transcoding method, device and system for video files Effective date of registration: 20210104 Granted publication date: 20170412 Pledgee: Inner Mongolia Huipu Energy Co.,Ltd. Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd. Registration number: Y2020990001527 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170412 Termination date: 20211113 |
|
CF01 | Termination of patent right due to non-payment of annual fee |