CN102780878A - Method and system for acquiring media files - Google Patents
Method and system for acquiring media files Download PDFInfo
- Publication number
- CN102780878A CN102780878A CN2011101183044A CN201110118304A CN102780878A CN 102780878 A CN102780878 A CN 102780878A CN 2011101183044 A CN2011101183044 A CN 2011101183044A CN 201110118304 A CN201110118304 A CN 201110118304A CN 102780878 A CN102780878 A CN 102780878A
- Authority
- CN
- China
- Prior art keywords
- transcoding
- file
- media file
- source media
- data
- 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
- 238000000034 method Methods 0.000 title claims abstract description 38
- 239000012634 fragment Substances 0.000 claims abstract description 36
- 238000006243 chemical reaction Methods 0.000 description 6
- 230000015572 biosynthetic process Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000003786 synthesis reaction Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- 238000012797 qualification Methods 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000036632 reaction speed Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a method and a system for acquiring media files, which belong to the field of computers. The method includes the following steps: a source media file and transcoding parameters are acquired; the source media file is divided into a first part of data and a second part of data; according to the transcoding parameters, the first part of data are locally transcoded, so that local transcoded file fragments are obtained, and moreover, the second part of data are downloaded from a transcoded resource database, so that off-line downloaded file fragments are obtained; and the local transcoded file fragments and the off-line downloaded file fragments are merged, so that a transcoded file corresponding to the source media file is obtained. In the embodiment of the invention, the method which accelerates file transcoding by way of off-line downloading can greatly shorten the time of transcoding by dividing a task and carrying out local format transcoding and off-line downloading at the same time, thus improving the experience of users in transcoding and audio/video playing.
Description
Technical field
The present invention relates to computer realm, particularly a kind of method and apparatus that obtains media file.
Background technology
Along with science and technology development, handheld device is popularized, and the kind of handheld device is also more and more, as mobile phone, MP4 etc.Meanwhile the operational capability of these handheld devices is also more and more stronger, and particularly independent optimization has been done in the processing that all is directed against graph image such as some high-end mobile phones, MP4, makes the multimedia recreation function perfect gradually.The video playback demand of user on handheld device is also more and more, but the subject matter that handheld device exists is that audio-visual form is had strict requirement, and promptly different handheld device models possibly correspondingly supported different audio-visual forms.So in order to carry out the broadcast of video in handheld device, the user usually need carry out the conversion of audio frequency and video on PC (Personal Computer, personal computer), convert specific form to, and then on handheld device, play.
In the prior art; Generally take longlyer in the conversion of the enterprising row format of PC, one hour film possibly need could accomplish about 20-40 minute, for the HD video file, then reaches several hrs; And generally can take a CPU (the Central Processing Unit of PC; Central processing unit), makes the reaction speed of computer slack-off, had a strong impact on user's experience.
Summary of the invention
In order to solve the problem of transcoding overlong time, the embodiment of the invention provides a kind of method and apparatus that obtains media file.Said technical scheme is following:
On the one hand, a kind of method of obtaining media file is provided, said method comprises:
Obtain source media file and transcoding parameter;
Said source media file is divided into first's data and second portion data;
According to said transcoding parameter, said first data are carried out local transcoding, obtain local transcoding file fragment, simultaneously, in the transcoding resource database, download said second portion data, obtain off-line file in download fragment;
Said local transcoding file fragment and said off-line file in download fragment are merged, obtain the corresponding transcoding file of said source media file.
Said said source media file is divided into first's data and second portion data, comprises:
To transcoding resource data library inquiry whether media file corresponding transcoding file in said source is arranged according to said source media file and transcoding parameter;
If said transcoding resource database has the corresponding transcoding file of said source media file, then calculate the used time of the said source of local transcoding media file respectively and download the corresponding used time of transcoding file of said source media file from said transcoding resource database;
Download the corresponding used time of transcoding file of said source media file according to used time of the said source of said local transcoding media file and from said transcoding resource database, said source media file is divided into first's data and second portion data.
Said reaching from said transcoding resource database according to the used time of the said source of said local transcoding media file downloaded the corresponding used time of transcoding file of said source media file; Said source media file is divided into first's data and second portion data, comprises:
The said source of the said local transcoding used time of media file is designated as h1, will downloads the corresponding used time of transcoding file of said source media file from said transcoding resource database and be designated as h2, the reproduction time of said source media file is designated as h;
Reproduction time separated into two parts with said source media file; Obtain first's time according to
, the data of the source media file that the said first time is corresponding are as first's data;
Obtain the second portion time according to
, the data of the source media file that the said second portion time is corresponding are as the second portion data.
Said method also comprises:
If said transcoding resource database does not have the corresponding transcoding file of said source media file, then point out the user whether initiatively to initiate the transcoding task;
Receive the order that said user selects initiatively to initiate the transcoding task, said source media file is carried out local transcoding, obtain the corresponding transcoding file of said source media file.
Said said source media file is carried out local transcoding, obtains also comprising after the corresponding transcoding file of said source media file:
The transcoding file that said source media file is corresponding adds in the said transcoding resource database, upgrades said transcoding resource database.
Said transcoding resource database makes up in the following manner:
For the user provides program entry, receive file and corresponding source media file and the transcoding configuration information of the file behind the said transcoding behind the transcoding that said user uploads; And/or
Regularly initiate the transcoding task, said transcoding task is used for hot resource is carried out the active transcoding, upgrades said transcoding resource database according to the file behind the said transcoding.
On the other hand, a kind of device that obtains media file is provided also, said device comprises:
The Task Distribution module is used to obtain source media file and transcoding parameter; Said source media file is divided into first's data and second portion data;
Local transcoding module is used for according to said transcoding parameter said first data being carried out local transcoding, obtains local transcoding file fragment;
The off-line download module is used for downloading said second portion data at the transcoding resource database, obtains off-line file in download fragment;
The merging module of finishing the work is used for said local transcoding file fragment and said off-line file in download fragment are merged, and obtains the corresponding transcoding file of said source media file.
Said Task Distribution module comprises:
Query unit is used for to transcoding resource data library inquiry whether media file corresponding transcoding file in said source being arranged according to said source media file and transcoding parameter;
Computing unit; If be used for said transcoding resource database media file corresponding transcoding file in said source is arranged, then calculate the used time of the said source of local transcoding media file respectively and download the corresponding used time of transcoding file of said source media file from said transcoding resource database;
Division unit; Be used for reaching the used time of transcoding file of downloading said source media file correspondence from said transcoding resource database, said source media file is divided into first's data and second portion data according to the used time of the said source of said local transcoding media file.
Said division unit specifically is used for:
The said source of the said local transcoding used time of media file is designated as h1, will downloads the corresponding used time of transcoding file of said source media file from said transcoding resource database and be designated as h2, the reproduction time of said source media file is designated as h;
Reproduction time separated into two parts with said source media file; Obtain first's time according to
, the data of the source media file that the said first time is corresponding are as first's data;
Obtain the second portion time according to
, the data of the source media file that the said second portion time is corresponding are as the second portion data.
Said local transcoding module also is used for:
If said transcoding resource database does not have the corresponding transcoding file of said source media file, then point out the user whether initiatively to initiate the transcoding task; Receive the order that said user selects initiatively to initiate the transcoding task, said source media file is carried out local transcoding, obtain the corresponding transcoding file of said source media file.
Said device also comprises:
Update module; Be used for said source media file is carried out local transcoding; Obtain after the corresponding transcoding file of said source media file, the transcoding file that said source media file is corresponding adds in the said transcoding resource database, upgrades said transcoding resource database.
The technical scheme that the embodiment of the invention provides; Mode through off-line is downloaded is carried out the method that the file transcoding quickens; Carry out native format transcoding and off-line simultaneously through task division and download the time that can significantly reduce transcoding, promote user's transcoding and the experience that audio frequency and video are play.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of flow chart that obtains the method for media file that the embodiment of the invention 1 provides;
Fig. 2 is a kind of flow chart that obtains the method for media file that the embodiment of the invention 2 provides;
Fig. 3 is a kind of schematic representation of apparatus of obtaining media file that the embodiment of the invention 3 provides;
Fig. 4 is the schematic representation of apparatus that another kind that the embodiment of the invention 3 provides obtains media file;
Fig. 5 is the structural representation of a kind of local transcoding module that provides of the embodiment of the invention 3;
Fig. 6 is the structural representation of a kind of off-line download module of providing of the embodiment of the invention 3;
Fig. 7 is that a kind of the finishing the work that the embodiment of the invention 3 provides merges the structural representation of module.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
Referring to Fig. 1, the embodiment of the invention provides a kind of method of obtaining media file, comprising:
Step 101: obtain source media file and transcoding parameter;
Step 102: the source media file is divided into first's data and second portion data;
Step 103: according to the transcoding parameter, first's data are carried out local transcoding, obtain local transcoding file fragment, and, in the transcoding resource database, download the second portion data, obtain off-line file in download fragment;
Step 104: local transcoding file fragment and off-line file in download fragment are merged, obtain the corresponding transcoding file of source media file.
Wherein, the source media file is divided into first's data and second portion data, comprises:
According to source media file and transcoding parameter to the transcoding resource data library inquiry corresponding transcoding file of active media file whether;
If the transcoding file that the active media file of transcoding resource database is corresponding then calculates the used time of local transcoding source media file respectively and from the corresponding used time of transcoding file of transcoding resource database loading source media file;
The time used according to local transcoding source media file reached from the used time of transcoding file of transcoding resource database loading source media file correspondence, and the source media file is divided into first's data and second portion data.
Preferably, the time used according to local transcoding source media file reached from the used time of transcoding file of transcoding resource database loading source media file correspondence, and the source media file is divided into first's data and second portion data, comprising:
The local transcoding source used time of media file is designated as h1, will be designated as h2, the reproduction time of source media file is designated as h from the corresponding used time of transcoding file of transcoding resource database loading source media file;
Reproduction time separated into two parts with the source media file; Obtain first's time according to
, the data of the source media file that first's time is corresponding are as first's data;
Obtain the second portion time according to
, the data of the source media file that the second portion time is corresponding are as the second portion data.
Alternatively, this method also comprises:
If the transcoding resource database does not have the corresponding transcoding file of source media file, then point out the user whether initiatively to initiate the transcoding task;
Receive the order that the user selects initiatively to initiate the transcoding task, the source media file is carried out local transcoding, obtain the corresponding transcoding file of source media file.
Alternatively, the source media file is carried out local transcoding, obtains also comprising after the corresponding transcoding file of source media file:
The transcoding file that the source media file is corresponding adds in the transcoding resource database, upgrades the transcoding resource database.
Present embodiment transit code resource database makes up in the following manner:
For the user provides program entry, source media file and transcoding configuration information that file behind the transcoding that the reception user uploads and the file behind the transcoding are corresponding; And/or
Regularly initiate the transcoding task, the transcoding task is used for hot resource is carried out the active transcoding, upgrades the transcoding resource database according to the file behind the transcoding.
The beneficial effect of the method that the embodiment of the invention provides is: the mode through off-line is downloaded is carried out the method that the file transcoding quickens; Carry out native format transcoding and off-line simultaneously through task division and download the time that can significantly reduce transcoding, promote user's transcoding and the experience that audio frequency and video are play.
Embodiment 2
Referring to Fig. 2, the embodiment of the invention provides a kind of method of obtaining media file, comprising:
Step 201: the system that obtains media file receives the source media file that needs transcoding of user's input and the model of handheld device.
In the present embodiment, be that example describes, but the corresponding terminal of the transcoding parameter of present embodiment is not limited to handheld device with the handheld device.Wherein, Obtain the model of source media file and handheld device; Can obtain on the medium file system the directly model of input source media file and handheld device through the user; Can this not done concrete qualification at this present embodiment through needing the source media file of transcoding and the model of handheld device in the interface selection of obtaining medium file system and providing yet.
Step 202: the model according to the handheld device of user input generates corresponding transcoding parameter.
Wherein, the transcoding parameter that different handheld device models is corresponding different is obtained medium file system to different transcoding parameters, obtains different transcoding files.
Wherein, step 201-202 is a process of obtaining source media file and transcoding parameter.
Step 203: whether have identical source media file and transcoding parameter in the inquiry transcoding resource database, if then execution in step 204, otherwise, execution in step 208.
In the present embodiment, set up the transcoding resource database in advance, make the user to obtain the transcoding file, also can obtain the transcoding file through downloading from the transcoding resource database through local transcoding at server end.Concrete transcoding resource database can be set up in the following manner:
1) user uploads, and after the user used local transcoding mode to convert, if there is not this file destination in the resources bank, then program provided access, and made the file after the user can upload own transcoding, uploaded source media file and transcoding configuration information simultaneously;
2) user initiatively initiates, and in the process of transcoding resource data library inquiry, if find do not have this file in the resources bank, then points out the user whether to initiate the transcoding task, and specifies the information such as unit type of wanting transcoding;
3) initiatively initiate on the backstage, promptly regularly goes to initiate some transcoding tasks, hot resource is carried out the active transcoding, with the affluent resources storehouse.Such as every day to download before 100 hot resource carry out the active transcoding.
Step 204: the time of estimating local transcoding according to the CPU usage and the Hardware configuration relevant information of subscriber set; And come the complete off-line of estimating target file to download the needed time according to the idle condition of network and the restriction of bandwidth.
In the present embodiment, can obtain the transcoding file of source media file through local transcoding, alternatively; If there is the transcoding file that is complementary with the source media file in the transcoding resource database, then also can download the transcoding file that obtains the source media file through off-line, but through above-mentioned different approach; The time that needs is different; In the present embodiment, calculate the used time of local transcoding source media file respectively and, thereby above-mentioned two kinds of times that obtain the transcoding file are assessed from the corresponding used time of transcoding file of transcoding resource database loading source media file; Thereby find only Transcoding Scheme, reduce the transcoding time.
Step 205:, the source media file is divided into two parts according to local transcoding time and off-line download time.
In the present embodiment, in order to improve the change-over time of source media file, the source media file is divided into two parts, promptly first's data and second portion data are handled by diverse ways two parts data, thereby shorten the change-over time of source media file.
Preferably; According to local transcoding time and off-line download time; The source media file is divided into two parts; Comprise: the local transcoding source used time of media file is designated as h1, will be designated as h2, the reproduction time of source media file is designated as h from the corresponding used time of transcoding file of transcoding resource database loading source media file; To this source media file task division is a and 1-a, when then both time equates total time minimum, promptly
a×h1=(1-a)×h2;
So draw:
Being about to the source media file divides in the ratio of a and 1-a; Last used transcoding total time is minimum; Obtain first's time according to
, the data of the source media file that first's time is corresponding are as first's data;
Obtain the second portion time according to
, the data of the source media file that the second portion time is corresponding are as the second portion data.
Wherein, step 203-205 is for being divided into said source media file the process of first's data and second portion data.
Step 206: according to the transcoding parameter, first's data are carried out local transcoding, obtain local transcoding file fragment, simultaneously, in the transcoding resource database, download the second portion data, obtain off-line file in download fragment.
In the present embodiment, after task division is accomplished, preferably, simultaneously first's data and second portion data are carried out native format conversion (being transcoding) and off-line download respectively, but also can not strict execution synchronous, do not do concrete qualification at this present embodiment.Wherein, the concrete steps of native format conversion are:
1) isolates compressing video frequency flow and compressed audio stream;
2) respectively video flowing and audio stream are decoded into original video stream and raw audio streams;
3) use the coding that the transcoding parameter is also carried out sound, video flowing respectively, output chip segment file after coding is accomplished.
Wherein, the step that off-line is downloaded is: carry out searching of file destination earlier, find file destination after, begin to download the second portion data from the start time point of second portion data, accomplish the download of off-line files fragment.
In the present embodiment, by knowing on the step 205, if a video of 120 minutes; Local transcoding needs 90 minutes, and the off-line download needs 60 minutes, then α=0.4; Obtaining first's data is 48, and the second portion data are 72, promptly local transcoding is carried out in preceding 48 minutes of video file; 72 minutes videos of back carry out off-line to be downloaded, and needs accomplish altogether in 36 minutes.
Further, in the present embodiment, if the time that the time of native format conversion and off-line are downloaded is very big apart, the mode that native format conversion that then only service time is few or off-line are downloaded is because the merging of two file fragments also needs the time.
Step 207: local transcoding file fragment and off-line file in download fragment are merged, obtain the corresponding transcoding file of source media file.
In the present embodiment; Obtain local transcoding file fragment and off-line file in download fragment; Respectively two clip file are carried out the separation of sound, video flowing; Accomplish the merging of two section audio data flow and video data stream then, and with the synthetic new media file of audio and video data streams, the i.e. corresponding transcoding file of source media file.
Step 208: whether the prompting user mainly initiates the transcoding task, if user's selection is that then new transcoding task is added on the backstage, and the source media file is carried out local transcoding, obtains the corresponding transcoding file of source media file.
In the present embodiment,, then point out the user whether initiatively to initiate the transcoding task if the transcoding resource database does not have the corresponding transcoding file of source media file; Receive the order that the user selects initiatively to initiate the transcoding task, the source media file is carried out local transcoding, obtain the corresponding transcoding file of source media file.
Alternatively, in the present embodiment, the source media file is carried out local transcoding, obtain also comprising after the corresponding transcoding file of source media file: the transcoding file that the source media file is corresponding adds in the transcoding resource database, upgrades the transcoding resource database.This process correspondence is set up the second method in the transcoding resource database.
The beneficial effect of the method that the embodiment of the invention provides is: the mode through off-line is downloaded is carried out the method that the file transcoding quickens; Carry out native format transcoding and off-line simultaneously through task division and download the time that can significantly reduce transcoding, promote user's transcoding and the experience that audio frequency and video are play.
Embodiment 3
Referring to Fig. 3, the embodiment of the invention provides a kind of device that obtains media file, comprising: Task Distribution module 301, local transcoding module 302, off-line download module 303, the merging module 304 of finishing the work.
Off-line download module 303 is used for downloading said second portion data at the transcoding resource database, obtains off-line file in download fragment;
Finishing the work merges module 304, is used for local transcoding file fragment and said off-line file in download fragment are merged, and obtains the corresponding transcoding file of source media file.
Wherein, referring to Fig. 4, Task Distribution module 301 comprises:
Preferably, division unit specifically is used for:
The local transcoding source used time of media file is designated as h1, will be designated as h2, the reproduction time of source media file is designated as h from the corresponding used time of transcoding file of transcoding resource database loading source media file;
Reproduction time separated into two parts with the source media file; Obtain first's time according to
, the data of the source media file that first's time is corresponding are as first's data; Obtain the second portion time according to
, the data of the source media file that the second portion time is corresponding are as the second portion data.
Concrete, referring to Fig. 5, local transcoding module comprises: transcoding parameter generating unit, audio/video flow separative element, audio decoding unit, video decoding unit, audio coding unit, video encoding unit, audio/video flow synthesis unit, wherein,
The transcoding parameter generating unit, the model of the handheld device that is used for selecting to import according to the user generates relevant transcoding parameter;
The audio/video flow separative element is used to realize parsing and the audio stream of audio-video document, the separation of video flowing;
Audio decoding unit is used to realize that the compressed audio stream with the source media file is decoded into raw audio streams;
Video decoding unit is used to realize that the compressing video frequency flow with the source media file is decoded into original video stream;
Audio coding unit is used to realize with the compressed audio stream of raw audio streams by transcoding parameter coding Cheng Xin;
Video encoding unit is used to realize with the compressing video frequency flow of original video data stream by transcoding parameter coding Cheng Xin;
The audio/video flow synthesis unit is used to realize with compressed audio stream and the synthetic new media file of compressing video frequency flow.
Further, referring to Fig. 6, the off-line download module comprises: resources bank file matching unit, off-line download unit, wherein,
Resources bank file matching unit is used for the file destination whether inquiry of transcoding resource database has had generation that is identified to according to the parameter of user's transcoding and input file;
The off-line download unit is used for through download technology the existing file of server being downloaded to this locality, uses off-line to download and is because server can provide the stable data source, uses the speed of downloading faster.
Wherein, referring to Fig. 7, the merging module of finishing the work comprises: audio/video flow separative element, audio decoding unit, video decoding unit, audio/video flow synthesis unit, wherein,
The audio/video flow separative element is used to realize parsing and the audio stream of audio-video document, the separation of video flowing;
Audio decoding unit is used to realize that the compressed audio stream with the source media file is decoded into raw audio streams;
Video decoding unit is used to realize that the compressing video frequency flow with the source media file is decoded into original video stream;
The audio/video flow synthesis unit is used to realize that the audio data stream with segmentation merges, and the video database of segmentation merges, simultaneously with compressed audio stream and the synthetic new media file of compressing video frequency flow.
In the present embodiment, this this locality transcoding module also is used for:
If the transcoding resource database does not have the corresponding transcoding file of source media file, then point out the user whether initiatively to initiate the transcoding task; Receive the order that the user selects initiatively to initiate the transcoding task, the source media file is carried out local transcoding, obtain the corresponding transcoding file of source media file.
Alternatively, referring to Fig. 4, this device also comprises:
The beneficial effect of the device that the embodiment of the invention provides is: the mode through off-line is downloaded is carried out the method that the file transcoding quickens; Carry out native format transcoding and off-line simultaneously through task division and download the time that can significantly reduce transcoding, promote user's transcoding and the experience that audio frequency and video are play.
The device that present embodiment provides, specifically can, belong to same design with method embodiment, its concrete implementation procedure sees method embodiment for details, repeats no more here.
The all or part of of the technique scheme that the embodiment of the invention provides can be accomplished through the relevant hardware of program command; Said program can be stored in the storage medium that can read, and this storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. a method of obtaining media file is characterized in that, said method comprises:
Obtain source media file and transcoding parameter;
Said source media file is divided into first's data and second portion data;
According to said transcoding parameter, said first data are carried out local transcoding, obtain local transcoding file fragment, and, in the transcoding resource database, download said second portion data, obtain off-line file in download fragment;
Said local transcoding file fragment and said off-line file in download fragment are merged, obtain the corresponding transcoding file of said source media file.
2. method according to claim 1 is characterized in that, said said source media file is divided into first's data and second portion data, comprising:
To transcoding resource data library inquiry whether media file corresponding transcoding file in said source is arranged according to said source media file and transcoding parameter;
If said transcoding resource database has the corresponding transcoding file of said source media file, then calculate the used time of the said source of local transcoding media file respectively and download the corresponding used time of transcoding file of said source media file from said transcoding resource database;
Download the corresponding used time of transcoding file of said source media file according to used time of the said source of said local transcoding media file and from said transcoding resource database, said source media file is divided into first's data and second portion data.
3. method according to claim 2; It is characterized in that; Said reaching from said transcoding resource database according to the used time of the said source of said local transcoding media file downloaded the corresponding used time of transcoding file of said source media file; Said source media file is divided into first's data and second portion data, comprises:
The said source of the said local transcoding used time of media file is designated as h1, will downloads the corresponding used time of transcoding file of said source media file from said transcoding resource database and be designated as h2, the reproduction time of said source media file is designated as h;
Reproduction time separated into two parts with said source media file; Obtain first's time according to
, the data of the source media file that the said first time is corresponding are as first's data;
4. method according to claim 1 is characterized in that, said method also comprises:
If said transcoding resource database does not have the corresponding transcoding file of said source media file, then point out the user whether initiatively to initiate the transcoding task;
Receive the order that said user selects initiatively to initiate the transcoding task, said source media file is carried out local transcoding, obtain the corresponding transcoding file of said source media file.
5. method according to claim 4 is characterized in that, said said source media file is carried out local transcoding, obtains also comprising after the corresponding transcoding file of said source media file:
The transcoding file that said source media file is corresponding adds in the said transcoding resource database, upgrades said transcoding resource database.
6. method according to claim 1 is characterized in that, said transcoding resource database makes up in the following manner:
For the user provides program entry, receive file and corresponding source media file and the transcoding configuration information of the file behind the said transcoding behind the transcoding that said user uploads; And/or
Regularly initiate the transcoding task, said transcoding task is used for hot resource is carried out the active transcoding, upgrades said transcoding resource database according to the file behind the said transcoding.
7. a device that obtains media file is characterized in that, said device comprises:
The Task Distribution module is used to obtain source media file and transcoding parameter; Said source media file is divided into first's data and second portion data;
Local transcoding module is used for according to said transcoding parameter said first data being carried out local transcoding, obtains local transcoding file fragment;
The off-line download module is used for downloading said second portion data at the transcoding resource database, obtains off-line file in download fragment;
The merging module of finishing the work is used for said local transcoding file fragment and said off-line file in download fragment are merged, and obtains the corresponding transcoding file of said source media file.
8. device according to claim 7 is characterized in that, said Task Distribution module comprises:
Query unit is used for to transcoding resource data library inquiry whether media file corresponding transcoding file in said source being arranged according to said source media file and transcoding parameter;
Computing unit; If be used for said transcoding resource database media file corresponding transcoding file in said source is arranged, then calculate the used time of the said source of local transcoding media file respectively and download the corresponding used time of transcoding file of said source media file from said transcoding resource database;
Division unit; Be used for reaching the used time of transcoding file of downloading said source media file correspondence from said transcoding resource database, said source media file is divided into first's data and second portion data according to the used time of the said source of said local transcoding media file.
9. device according to claim 8 is characterized in that, said division unit specifically is used for:
The said source of the said local transcoding used time of media file is designated as h1, will downloads the corresponding used time of transcoding file of said source media file from said transcoding resource database and be designated as h2, the reproduction time of said source media file is designated as h;
Reproduction time separated into two parts with said source media file; Obtain first's time according to
, the data of the source media file that the said first time is corresponding are as first's data;
10. device according to claim 7 is characterized in that, said local transcoding module also is used for:
If said transcoding resource database does not have the corresponding transcoding file of said source media file, then point out the user whether initiatively to initiate the transcoding task; Receive the order that said user selects initiatively to initiate the transcoding task, said source media file is carried out local transcoding, obtain the corresponding transcoding file of said source media file.
11. device according to claim 10 is characterized in that, said device also comprises:
Update module; Be used for said source media file is carried out local transcoding; Obtain after the corresponding transcoding file of said source media file, the transcoding file that said source media file is corresponding adds in the said transcoding resource database, upgrades said transcoding resource database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110118304.4A CN102780878B (en) | 2011-05-09 | 2011-05-09 | The method and apparatus obtaining media file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110118304.4A CN102780878B (en) | 2011-05-09 | 2011-05-09 | The method and apparatus obtaining media file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102780878A true CN102780878A (en) | 2012-11-14 |
CN102780878B CN102780878B (en) | 2016-08-03 |
Family
ID=47125623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110118304.4A Active CN102780878B (en) | 2011-05-09 | 2011-05-09 | The method and apparatus obtaining media file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102780878B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024605A (en) * | 2012-12-31 | 2013-04-03 | 传聚互动(北京)科技有限公司 | Cloud transcoding method and system for video files |
CN104573475A (en) * | 2014-12-31 | 2015-04-29 | 乐视网信息技术(北京)股份有限公司 | Method and system for authenticating transcoding service program |
CN104822087A (en) * | 2015-04-30 | 2015-08-05 | 无锡天脉聚源传媒科技有限公司 | Processing method and apparatus of video segment |
CN114339308A (en) * | 2022-01-04 | 2022-04-12 | 腾讯音乐娱乐科技(深圳)有限公司 | A video stream loading method, electronic device and storage medium |
Citations (3)
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 |
CN101459848A (en) * | 2008-12-26 | 2009-06-17 | 西安交通大学 | Distributed multi-format digital video transcoding construction design method |
CN101977218A (en) * | 2010-10-20 | 2011-02-16 | 深圳市融创天下科技发展有限公司 | Internet playing file transcoding method and system |
-
2011
- 2011-05-09 CN CN201110118304.4A patent/CN102780878B/en active Active
Patent Citations (3)
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 |
CN101459848A (en) * | 2008-12-26 | 2009-06-17 | 西安交通大学 | Distributed multi-format digital video transcoding construction design method |
CN101977218A (en) * | 2010-10-20 | 2011-02-16 | 深圳市融创天下科技发展有限公司 | Internet playing file transcoding method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024605A (en) * | 2012-12-31 | 2013-04-03 | 传聚互动(北京)科技有限公司 | Cloud transcoding method and system for video files |
CN104573475A (en) * | 2014-12-31 | 2015-04-29 | 乐视网信息技术(北京)股份有限公司 | Method and system for authenticating transcoding service program |
CN104822087A (en) * | 2015-04-30 | 2015-08-05 | 无锡天脉聚源传媒科技有限公司 | Processing method and apparatus of video segment |
CN104822087B (en) * | 2015-04-30 | 2017-11-28 | 无锡天脉聚源传媒科技有限公司 | A kind of processing method and processing device of video-frequency band |
CN114339308A (en) * | 2022-01-04 | 2022-04-12 | 腾讯音乐娱乐科技(深圳)有限公司 | A video stream loading method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102780878B (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101635854B (en) | Method and device for realizing transcoding merging | |
CN106471574B (en) | Information processing apparatus, information processing method, and computer program | |
CA2841377C (en) | Video transcoding services provided by searching for currently transcoded versions of a requested file before performing transcoding | |
CN100591104C (en) | System and implementation method of one-way network webpage on-demand multimedia application | |
CN102045553B (en) | Multimedia transcoding device and method and multimedia player | |
WO2013037241A1 (en) | Mobile multimedia real-time transcoding playing system, device, storage medium and method | |
JP2018513583A (en) | Audio video file live streaming method, system and server | |
CN1879411A (en) | Method and apparatus for recording and editing digital broadcast content | |
CN1577330A (en) | Multimedia processor | |
JP2014525190A (en) | Transmission of reconstructed data in a layered signal quality hierarchy | |
CN103096128A (en) | Method capable of achieving video interaction, server, terminal and system | |
CN101501775A (en) | Media timeline processing infrastructure | |
CN102163201A (en) | Multimedia file segmentation method, device thereof and code converter | |
EP3148200B1 (en) | Information processing device and method selecting content files based on encoding parallelism type | |
CN101014099A (en) | Digital multimedia reproducing apparatus and method of providing digital multimedia broadcasting in the digital multimedia reproducing apparatus | |
CN102780728A (en) | Media file transcoding and downloading method and client | |
CN101389020A (en) | Method for extending decoding capability of stream media playing device | |
CN103024289A (en) | Method and device for editing live stream on basis of M3U8 listing protocol | |
US20240022481A1 (en) | System and method for optimizing deployment of a processing function in a media production workflow | |
CN102630059A (en) | Method and device for realizing FLV video play | |
CN102780878A (en) | Method and system for acquiring media files | |
CN101110750A (en) | Processing method for implementing resource sharing of built-in equipment based on p2p technology | |
CN102811235A (en) | Media file off-line downloading method and device and off-line downloading server | |
CN202135269U (en) | System for realizing mobile phone video playing | |
WO2013152686A1 (en) | Live video stream aggregation distribution method and device |
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 |