CN102055965B - Media file transcoding system and method - Google Patents
Media file transcoding system and method Download PDFInfo
- Publication number
- CN102055965B CN102055965B CN200910193417.3A CN200910193417A CN102055965B CN 102055965 B CN102055965 B CN 102055965B CN 200910193417 A CN200910193417 A CN 200910193417A CN 102055965 B CN102055965 B CN 102055965B
- Authority
- CN
- China
- Prior art keywords
- module
- file
- transcoding
- video
- parameter
- 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.)
- Active
Links
Abstract
The invention discloses a media file transcoding system, which belongs to the technical field of multimedia. The media file transcoding system comprises a transcoding module, a user parameter setting module and a splitting module, wherein the transcoding module is used for converting the format of a source file; and the splitting module is connected with the transcoding module and the user parameter setting module and is used for processing an output data stream of the transcoding module according to a user parameter so as to obtain a plurality of media files. Moreover, the invention also provides a media file transcoding method. The splitting module is added to the conventional transcoding system and can convert a video file of one format into a plurality of video files of another format, so that a part of finished videos can be watched under the condition that transcoding is not fully completed; moreover, split small files are beneficial to playing in small-volume handheld equipment, so that great convenience is brought to users.
Description
[technical field]
The present invention relates to multimedia technology field, especially relate to a kind of the form of multimedia file is carried out change trans-coding system and code-transferring method.
[background technology]
Multimedia (comprising video, audio frequency, image etc.) has become requisite important component part in people's work and study, in people's work, study and life, play increasing effect.Multimedia has it to apply at numerous areas, and for the different demands of people to multimedia service in routine work, life, some standardization bodies are directed to the multiple audio/video encoding standard that the upper different business demand of society proposes.Such as, for the H.263 standard that visual telephone and video conference business propose; For the Mpeg2 standard that DVB, HDTV and DVD propose; For the mpeg 4 standard of streaming media service exploitation in network; And high video compression performance can be provided, the H.264 standard etc. of network friendliness.
Owing to existing while Multi-encoding standard, and the difference that the target device etc. used compression efficiency, decompress(ion) speed, code stream in multimedia application requires, there is diversified media file, their file formats used each other, video format, compressed format are different.In order to effectively utilize existing multimedia resource, the switch technology between this standard---namely transcoding technology just receives the extensive concern of people, constantly obtains further research and development.
A kind of form video file can only be converted to a video file of another kind of form by traditional transcoding device or system with man-to-man form, general principle due to transcoding is first decoded to video file, then encode by the coded system of the form that will change, need to carry out a large amount of data processing work, thus need to carry out the longer time.For the household machine that cpu performance is general, the time of transcoding and the time difference of video playback, seldom, thus when to larger video file transcoding, the time that wait transcoding completes becomes to be impatient at.And when transcoding does not complete, video file can not be play.
In addition, the size of the video file after transcoding does not generally have larger change yet, and jumbo video file also can have problems as mobile phone or MP4 play to put into the less handheld device of capacity.
[summary of the invention]
Given this, be necessary the problem that with man-to-man form, a kind of form video file can only be converted to a video file of another kind of form for traditional transcoding device or system, a kind of trans-coding system that of an a kind of form video file can be converted to multiple video files of another form is provided.
A kind of method of media file transcoding is provided in addition.
A kind of media file trans-coding system, comprise the transcoding module of format conversion is carried out to source file, customer parameter arranges module and arranges model calling with described transcoding module and customer parameter, carries out the output stream of transcoding module to process the fractionation module obtaining two or more media file according to customer parameter.
Fractionation module is added in traditional trans-coding system, one of an a kind of form video file can be converted to multiple video files of another form, when transcoding need not complete completely, can watch the partial video completed in advance, and the small documents be divided into also is conducive to playing in the handheld device of low capacity.
Preferably, described fractionation module comprises Parameter analysis of electrochemical module, file generating module and subsequent treatment module, the parameter that described Parameter analysis of electrochemical module receives user is arranged also passes to file generating module after resolving, file generating module generates satisfactory media file according to the parameter after parsing, and subsequent treatment module is further processed the media file generated.
Preferably, the process that described Parameter analysis of electrochemical module is carried out comprises segmentation strategy and resolves, and described segmentation strategy comprises the segmentation based on timeslice, the segmentation based on file size and the segmentation based on scene.
Preferably, the process that described subsequent treatment module is carried out comprises file storage, file designation or sets up to play to be pointed to.
Preferably, described transcoding module comprises audio/video flow separation module, video code conversion module, audio frequency transcoding module and audio/video flow synthesis module, audio/video flow separation module is connected with audio frequency transcoding module with video code conversion module, video code conversion module is all connected with audio/video flow synthesis module with audio frequency transcoding module, source file is carried out processing the audio stream and video flowing that obtain being separated by described audio/video flow separation module, video flowing and audio stream are carried out transcoding by described video code conversion module and audio frequency transcoding module respectively, video flowing after transcoding and audio stream carry out synthesizing the output stream obtaining audio frequency and video by described audio/video flow synthesis module.
A code-transferring method for media file, comprises the steps: receive source file and read customer parameter; According to customer parameter, format conversion is carried out to source file; According to customer parameter, segmentation is carried out to the source file after conversion and obtains plural media file.
By a kind of form video file being converted to multiple video files of another form, when transcoding need not complete completely, can watch the partial video completed in advance, and the small documents be divided into also is conducive to playing in the handheld device of low capacity.
Preferably, the step of source file being carried out to format conversion comprises: source file is carried out audio/video flow separating treatment, obtains audio stream and video flowing; Respectively according to the customer parameter arranged, transcoding is carried out to audio stream and video flowing; Audio stream after transcoding and video flowing are synthesized.
Preferably, the step of segmentation comprises: resolve the parameter that user is arranged; Carry out dividing processing according to the customer parameter after parsing and generate multiple media file; Subsequent treatment is carried out to media file.
Preferably, the parameter that user is arranged comprises segmentation strategy, and described segmentation strategy is the segmentation based on timeslice, the segmentation based on file size or the segmentation based on scene.
Preferably, the subsequent treatment of carrying out media file comprises file storage, file designation or sets up to play to be pointed to.
[accompanying drawing explanation]
Fig. 1 is media file trans-coding system structure chart;
Fig. 2 is the cut-away view of media file trans-coding system;
Fig. 3 is for splitting function structure chart;
Fig. 4 is transcoding process chart.
[embodiment]
As shown in Figure 1, be the media file trans-coding system structure chart of the present embodiment.This trans-coding system comprises transcoding module 100, customer parameter arranges module 200 and arrange with transcoding module 100 and customer parameter the fractionation module 300 that module 200 is connected.Transcoding module 100 arranges module 200 parameter request according to customer parameter carries out to source file the output stream that format conversion obtains audio frequency and video, splits module 200 arranges module 200 parameter request according to customer parameter and carries out process to the output stream of audio frequency and video and obtain multiple media file.
As shown in Figure 2, be the cut-away view of media file trans-coding system.
Transcoding module 100 comprises audio/video flow separation module 110, video code conversion module 120, audio frequency transcoding module 130 and audio/video flow synthesis module 140.First source file is carried out processing the audio stream and video flowing that obtain being separated by audio/video flow separation module 110, audio/video flow separation module 110 and video code conversion module 120 are connected with audio frequency transcoding module 130 and video flowing and audio stream are passed to video code conversion module 120 respectively and audio frequency transcoding module 130 carries out video code conversion and audio frequency transcoding.Video code conversion module 120 and audio frequency transcoding module 130 are all connected the video flowing after by transcoding with audio/video flow synthesis module 140 again and audio stream carries out synthesizing the output stream obtaining audio frequency and video.
Customer parameter arranges module 200 and controls the synthesis of video code conversion, audio frequency transcoding and audio/video flow according to the parameter of user's setting in transcoding process.
As shown in Figure 3, for splitting the structure chart of module 300.Split module 300 and comprise the Parameter analysis of electrochemical module 310, file generating module 320 and the subsequent treatment module 330 that connect successively.Parameter analysis of electrochemical module 310 receives the parameter of user's setting and passes to file generating module 320 after resolving, file generating module 320 generates satisfactory media file according to the parameter after parsing to the audio/video flow process after transcoding, and subsequent treatment module 330 is further processed the media file generated.
The process that wherein Parameter analysis of electrochemical module 310 is carried out comprises segmentation strategy and resolves, and which kind of rule is segmentation strategy namely take split by media file.Segmentation strategy comprises the segmentation based on timeslice, the segmentation based on file size and the segmentation based on scene.According to segmentation strategy, Parameter analysis of electrochemical module 310 determines which kind of process is file generating module 320 carry out.
If based on the segmentation of timeslice, it is a file that user is arranged with the video of certain hour length, as 20 minutes, then analysis result is transferred to file generating module 320 by Parameter analysis of electrochemical module 310, file generating module 320 just extracts the key frame in video, if the frame in the moment such as 00:00:00,00:19:59,00:20:00,00:39:59 is as key frame according to the timestamp information in video flowing and audio stream.Then just generate every section of single medium file of 20 minutes (the time possibility of final stage file was less than 20 minutes) with the audio/video flow between 00:00:00 ~ 00:19:59,00:20:00 ~ 00:39:59 when generating video file, thus generate multiple media file.
If based on the segmentation of file size, the video that user arranges a certain size is a file, as 100M, then analysis result is transferred to file generating module 320 by Parameter analysis of electrochemical module 310, the size of file generating module 320 record tone video flowing when generating media file, every 100M generates a media file (the size possibility of last file is less than 100M), thus generates multiple media file.
If based on the segmentation of scene, analysis result is transferred to file generating module 320 by Parameter analysis of electrochemical module 310, and file generating module 320 processes scene detection, when scene switches as the cut-point of file.Because the switching of video scene can be many, the segmentation can carrying out based on scene in conjunction with file size or counter.Such as, be divided into based on scene the segmentation based on scene be limited in by file in 10M in conjunction with file size, when cut-point is fixed on a certain scene, file size is within 10M, and increase a scene again will more than 10M, now the end point of this scene just can be decided to be cut-point; And for example, carry out being divided into every 50 scenes as a file based on scene in conjunction with counter, then scene is that the end point of the scene of the integral multiple of 50 can as cut-point.The switching of scene represents changing greatly of video file content, such as scene is switched to outdoor scene indoor, when scene switches as cut-point, the segmentation of file can not be made to seem lofty, the words being unlikely to a role in video have not been said, file just finishes, and needs to reopen another file and then plays the words that a file role do not said.
Audio/video flow packing is formed media file by the cut-point that file generating module 320 is determined according to aforesaid way.
Subsequent treatment module 330 carries out extra process to each media file generated.Comprise and select media file storage, name, foundation to play the process such as sensing.Storage positions of files can be preset the storage folder of an acquiescence by user, also can inquire that when often generating a media file user is selected voluntarily by user, the multiple media files generated are left in this file by the file that all right generation one is automatically of the same name with source file.Same name can be the naming rule according to acquiescence, as source filename adds the suffix 1,2,3 etc. of order, also can carry out rename when user selects memory location.Set up the information play and point to and refer to and set up in the video file of segmentation and point to the next media file that should play, because video file be divided into multiple after, if play a file, also need another file of manual unlocking will cause using inconvenience, by above-mentioned directional information, can automatically play next media file when player support.
Therefore in the present embodiment, according to above-mentioned media file trans-coding system, process in accordance with the following steps during media file transcoding:
S10: receive source file and customer parameter is set.Namely source file is the file that will carry out transcoding, arranges customer parameter and comprises the parameter for controlling transcoding and the parameter for controlling segmentation, and the parameter controlling transcoding generally comprises the form, video resolution, broadcasting code check etc. of file destination; The parameter controlling segmentation generally comprises segmentation strategy.
S20: source file is carried out audio/video flow separating treatment, obtains audio stream and video flowing.The process carried out due to the transcoding of Audio and Video is completely different, is therefore necessary the audio stream of source file and video flowing to carry out separating treatment.
S30: respectively transcoding is carried out to the parameter that audio stream and video flowing are arranged according to user.
S40: the audio stream after transcoding and video flowing are synthesized.
S50: the parameter that user is arranged is resolved.Here mainly the parameter controlling segmentation is resolved, mainly refer to the parsing to segmentation strategy, if segmentation strategy is the segmentation based on timeslice, the segmentation based on file size or the segmentation based on scene.Therefore for the partitioning parameters that user is arranged, corresponding to carrying out different process.
S60: carry out dividing processing according to the customer parameter after parsing and generate multiple media file.After obtaining process parameter, just can by the audio/video flow after transcoding according to the multiple media file of set strategy generating.
S70: subsequent treatment is carried out to media file.Subsequent treatment generally comprises file and stores, names or set up broadcasting sensing.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (2)
1. a media file trans-coding system, comprise and the transcoding module of format conversion is carried out to source file and customer parameter arranges module, it is characterized in that, also comprise and model calling is set with described transcoding module and customer parameter, carry out the output stream of transcoding module to process the fractionation module obtaining two or more media file according to customer parameter; Described transcoding module comprises audio/video flow separation module, video code conversion module, audio frequency transcoding module and audio/video flow synthesis module, source file is carried out processing the audio stream and video flowing that obtain being separated by described audio/video flow separation module, video flowing and audio stream are carried out transcoding by described video code conversion module and audio frequency transcoding module respectively, and the video flowing after transcoding and audio stream carry out synthesizing the output stream obtaining audio frequency and video by described audio/video flow synthesis module;
Described fractionation module comprises Parameter analysis of electrochemical module, file generating module and subsequent treatment module, the parameter that described Parameter analysis of electrochemical module receives user is arranged also passes to file generating module after resolving, file generating module generates satisfactory media file according to the parameter after parsing, and subsequent treatment module is further processed the media file generated;
The process that described Parameter analysis of electrochemical module is carried out comprises segmentation strategy and resolves, and described segmentation strategy comprises the segmentation carrying out based on scene in conjunction with file size or counter;
The process that described subsequent treatment module is carried out comprises file storage, file designation or sets up to play to be pointed to.
2. a code-transferring method for media file, is characterized in that, comprises the steps:
Receive source file and read customer parameter;
Source file is carried out audio/video flow separating treatment, obtains audio stream and video flowing;
Respectively according to customer parameter, transcoding is carried out to audio stream and video flowing;
Audio stream after transcoding and video flowing are synthesized;
The parameter that user is arranged comprises segmentation strategy, and described segmentation strategy is the segmentation carrying out based on scene in conjunction with file size or counter;
The step of segmentation comprises:
The parameter that user is arranged is resolved;
Dividing processing generation two or more media file is carried out according to the customer parameter after resolving;
Subsequent treatment is carried out to media file;
The subsequent treatment that media file carries out is comprised to file storage, file designation or sets up broadcasting sensing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910193417.3A CN102055965B (en) | 2009-10-28 | 2009-10-28 | Media file transcoding system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910193417.3A CN102055965B (en) | 2009-10-28 | 2009-10-28 | Media file transcoding system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102055965A CN102055965A (en) | 2011-05-11 |
CN102055965B true CN102055965B (en) | 2015-05-20 |
Family
ID=43959834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910193417.3A Active CN102055965B (en) | 2009-10-28 | 2009-10-28 | Media file transcoding system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102055965B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369355A (en) * | 2012-04-10 | 2013-10-23 | 华为技术有限公司 | Online media data conversion method, video playing method and corresponding device |
CN103841451B (en) | 2012-11-28 | 2017-09-29 | 腾讯科技(深圳)有限公司 | Multi-medium play method, device and terminal |
CN103051941B (en) * | 2013-01-28 | 2015-10-28 | 北京暴风科技股份有限公司 | A kind of method and system playing local video on a mobile platform |
CN103686203A (en) * | 2013-12-04 | 2014-03-26 | 深圳市融创天下科技股份有限公司 | Video transcoding method and device |
CN104159127B (en) * | 2014-08-21 | 2019-02-22 | 北京奇艺世纪科技有限公司 | A kind of video transcoding method, apparatus and system |
CN104469396B (en) * | 2014-12-24 | 2018-01-05 | 北京中科大洋信息技术有限公司 | A kind of distributed trans-coding system and method |
CN105898319A (en) * | 2015-12-22 | 2016-08-24 | 乐视云计算有限公司 | Video transcoding method and device |
CN106454180B (en) * | 2016-09-27 | 2022-03-18 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for recording, processing and transmitting video and terminal |
US10853439B2 (en) | 2017-08-08 | 2020-12-01 | Nice Ltd. | Systems and methods for fast play back of recorded data |
US10616616B2 (en) | 2018-01-01 | 2020-04-07 | Nice Ltd | Method and system for streaming a media file during a concurrent transcoding thereof |
CN115134630A (en) * | 2022-06-02 | 2022-09-30 | 江苏网博视界网络科技股份有限公司 | Video automatic synthesis method based on artificial intelligence and application thereof |
CN115589489B (en) * | 2022-10-19 | 2024-04-19 | 抖音视界有限公司 | Video transcoding method, device, equipment, storage medium and video on demand system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1893356A (en) * | 2005-07-01 | 2007-01-10 | 萧学文 | Method and system for accessing computer resource through mobile terminal |
CN101083756A (en) * | 2007-03-14 | 2007-12-05 | 中国科学技术大学 | internet based TV stream data real time transmission and service apparatus and method |
-
2009
- 2009-10-28 CN CN200910193417.3A patent/CN102055965B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1893356A (en) * | 2005-07-01 | 2007-01-10 | 萧学文 | Method and system for accessing computer resource through mobile terminal |
CN101083756A (en) * | 2007-03-14 | 2007-12-05 | 中国科学技术大学 | internet based TV stream data real time transmission and service apparatus and method |
Also Published As
Publication number | Publication date |
---|---|
CN102055965A (en) | 2011-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102055965B (en) | Media file transcoding system and method | |
CN102055966B (en) | Compression method and system for media file | |
CN101098483A (en) | Video cluster transcoding system using image group structure as parallel processing element | |
CN100334880C (en) | Method and its device for transmitting and receiving dynamic image data | |
US20120185610A1 (en) | Method and Device for Transcoding | |
RU2370906C2 (en) | Method and device for editing of video fragments in compressed area | |
CN102595114B (en) | Method and terminal for playing video on low-side embedded product | |
RU2004119840A (en) | DEFINITION OF DISTRIBUTED TOPOLOGY FOR STREAMING DATA | |
JPH11177946A (en) | Coder, coding method, decoder, decoding method and served medium | |
JPWO2015012226A1 (en) | Information processing apparatus and method | |
CN1777284B (en) | Image encoding method, image decoding method, and apparatus thereof | |
JP2000224257A (en) | Transmitter and receiver | |
CN102625150A (en) | Media playing system and method | |
CN1964428A (en) | Method and apparatus for creating alternative audio via closed caption data | |
CN101448152A (en) | Multipath video processing method and system, terminal and medium server thereof | |
CN101569195B (en) | Method and system for scalable bitstream extraction | |
CN109327706A (en) | Programme televised live signal acceptance method and system based on DTMB | |
CN109640162B (en) | Code stream conversion method and system | |
KR100839800B1 (en) | DMB terminal unit and peripheral for the same | |
JPH11205740A (en) | Compressed recording device and its method | |
CN102075817A (en) | Method and system for forwarding audio and video data | |
CN106851331B (en) | Easy broadcast processing method and system | |
KR20110025367A (en) | Method and device for multimedia transcoding client | |
CN101453284A (en) | High resolution video and audio networked editing system and method | |
CN114710629A (en) | Device for realizing ultrahigh-definition video format conversion and image-text superposition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |