CN102780878B - The method and apparatus obtaining media file - Google Patents

The method and apparatus obtaining media file Download PDF

Info

Publication number
CN102780878B
CN102780878B CN201110118304.4A CN201110118304A CN102780878B CN 102780878 B CN102780878 B CN 102780878B CN 201110118304 A CN201110118304 A CN 201110118304A CN 102780878 B CN102780878 B CN 102780878B
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.)
Active
Application number
CN201110118304.4A
Other languages
Chinese (zh)
Other versions
CN102780878A (en
Inventor
刘俊
王川南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110118304.4A priority Critical patent/CN102780878B/en
Publication of CN102780878A publication Critical patent/CN102780878A/en
Application granted granted Critical
Publication of CN102780878B publication Critical patent/CN102780878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method and apparatus obtaining media file, belong to computer realm.Described method includes: obtain source media file and transcoding parameter;Described source media file is divided into Part I data and Part II data;According to described transcoding parameter, described Part I data are carried out local transcoding, obtain local transcoding file fragment, and, transcoding resource database is downloaded described Part II data, obtains off-line and download file fragment;Described local transcoding file fragment and described off-line are downloaded file fragment merge, obtain the transcoding file that described source media file is corresponding.The method carrying out file transcoding acceleration in the embodiment of the present invention by the way of off-line is downloaded, is divided by task and carries out native format transcoding and off-line simultaneously and download the time that can greatly reduce transcoding, promote transcoding and the experience of audio and video playing of user.

Description

The method and apparatus obtaining media file
Technical field
The present invention relates to computer realm, particularly to a kind of method and apparatus obtaining media file.
Background technology
Along with the development of science and technology, handheld device is popularized, and the kind of handheld device also gets more and more, as mobile phone, MP4 etc..Meanwhile the operational capability of these handheld devices is stronger, and single optimization has been made in particularly all process for graph image such as some high-end handsets, MP4 etc. so that multimedia recreation function is the most perfect.User's video playback demand on a handheld device also gets more and more, but the subject matter that handheld device exists is that audio-visual format is had strict requirements, and the most different handheld device models corresponding may support different audio-visual format.Then for can carry out the broadcasting of video in handheld device, user usually needs to carry out the conversion of audio frequency and video on PC (PersonalComputer, personal computer), is converted into specific form, plays out the most on a handheld device.
In prior art, typically take longer in the conversion of PC enterprising row format, the film of one hour may need just can complete for about 20-40 minute, then up to several hours for high-definition video file, and a CPU (CentralProcessingUnit of PC can be taken under normal circumstances, central processing unit), the response speed making computer is slack-off, has had a strong impact on the experience of user.
Summary of the invention
In order to solve the problem of transcoding overlong time, embodiments provide a kind of method and apparatus obtaining media file.Described technical scheme is as follows:
On the one hand, it is provided that a kind of method obtaining media file, described method includes:
Acquisition source media file and transcoding parameter;
Described source media file is divided into Part I data and Part II data;
According to described transcoding parameter, described Part I data are carried out local transcoding, obtain local transcoding file fragment, meanwhile, transcoding resource database is downloaded described Part II data, obtain off-line and download file fragment;
Described local transcoding file fragment and described off-line are downloaded file fragment merge, obtain the transcoding file that described source media file is corresponding.
Described described source media file is divided into Part I data and Part II data, including:
Whether have, to transcoding resource data library inquiry, the transcoding file that described source media file is corresponding with transcoding parameter according to described source media file;
If described transcoding resource database has a transcoding file that described source media file is corresponding, calculate described in local transcoding the time used by the media file of source the most respectively and download the time used by the transcoding file that described source media file is corresponding from described transcoding resource database;
According to the time used by source media file described in described local transcoding and download the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, described source media file is divided into Part I data and Part II data.
Described according to the time used by source media file described in described local transcoding and download the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, described source media file is divided into Part I data and Part II data, including:
Time used by source media file described in described local transcoding is designated as h1, is designated as h2 by downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, the reproduction time of described source media file is designated as h;
The reproduction time of described source media file is divided into two parts, according toObtain the Part I time, using the data of the source the media file corresponding described Part I time as Part I data;
According toObtain the Part II time, using the data of the source the media file corresponding described Part II time as Part II data.
Described method also includes:
If described transcoding resource database does not has the transcoding file that described source media file is corresponding, then prompt the user whether actively to initiate transcoding task;
Receive described user and select actively to initiate the order of transcoding task, described source media file is carried out local transcoding, obtains the transcoding file that described source media file is corresponding.
Described described source media file is carried out local transcoding, after obtaining the transcoding file that described source media file is corresponding, also includes:
Transcoding file corresponding for described source media file is added in described transcoding resource database, updates described transcoding resource database.
Described transcoding resource database builds in the following manner:
Provide the user program entry, receive the file after the transcoding that described user uploads and source media file corresponding to the file after described transcoding and transcoding configuration information;And/or
Transcoding task is initiated in timing, and described transcoding task, for hot resource carries out actively transcoding, updates described transcoding resource database according to the file after described transcoding.
On the other hand, additionally providing a kind of device obtaining media file, described device includes:
Task allocating module, is used for obtaining source media file and transcoding parameter;Described source media file is divided into Part I data and Part II data;
Described Part I data for according to described transcoding parameter, are carried out local transcoding, obtain local transcoding file fragment by local transcoding module;
Off-line download module, for downloading described Part II data in transcoding resource database, obtains off-line and downloads file fragment;
Complete task merging module, merge for described local transcoding file fragment and described off-line are downloaded file fragment, obtain the transcoding file that described source media file is corresponding.
Described task allocating module, including:
Whether query unit, for having, to transcoding resource data library inquiry, the transcoding file that described source media file is corresponding with transcoding parameter according to described source media file;
Computing unit, if having, for described transcoding resource database, a transcoding file that described source media file is corresponding, calculating described in local transcoding the time used by the media file of source the most respectively and downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database;
Division unit, for according to the time used by source media file described in described local transcoding and downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, described source media file is divided into Part I data and Part II data.
Described division unit, specifically for:
Time used by source media file described in described local transcoding is designated as h1, is designated as h2 by downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, the reproduction time of described source media file is designated as h;
The reproduction time of described source media file is divided into two parts, according toObtain the Part I time, using the data of the source the media file corresponding described Part I time as Part I data;
According toObtain the Part II time, using the data of the source the media file corresponding described Part II time as Part II data.
Described local transcoding module is additionally operable to:
If described transcoding resource database does not has the transcoding file that described source media file is corresponding, then prompt the user whether actively to initiate transcoding task;Receive described user and select actively to initiate the order of transcoding task, described source media file is carried out local transcoding, obtains the transcoding file that described source media file is corresponding.
Described device also includes:
More new module, for described source media file carries out local transcoding, after obtaining the transcoding file that described source media file is corresponding, adds to transcoding file corresponding for described source media file in described transcoding resource database, updates described transcoding resource database.
The technical scheme that the embodiment of the present invention provides, the method carrying out file transcoding acceleration by the way of off-line is downloaded, divided by task and carry out native format transcoding and off-line simultaneously and download the time that can greatly reduce transcoding, promote transcoding and the experience of audio and video playing of user.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of method obtaining media file that the embodiment of the present invention 1 provides;
Fig. 2 is the flow chart of a kind of method obtaining media file that the embodiment of the present invention 2 provides;
Fig. 3 is the schematic diagram of a kind of device obtaining media file that the embodiment of the present invention 3 provides;
Fig. 4 is the schematic diagram of the another kind of device obtaining media file that the embodiment of the present invention 3 provides;
Fig. 5 is the structural representation of a kind of local transcoding module that the embodiment of the present invention 3 provides;
Fig. 6 is the structural representation of a kind of off-line download module that the embodiment of the present invention 3 provides;
Fig. 7 is a kind of structural representation completing task merging module that the embodiment of the present invention 3 provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
See Fig. 1, embodiments provide a kind of method obtaining media file, including:
Step 101: obtain source media file and transcoding parameter;
Step 102: source media file is divided into Part I data and Part II data;
Part I data are carried out local transcoding by step 103: according to transcoding parameter, obtain local transcoding file fragment, and, transcoding resource database is downloaded Part II data, obtains off-line and download file fragment;
Step 104: this locality transcoding file fragment and off-line are downloaded file fragment and merges, obtain the transcoding file that source media file is corresponding.
Wherein, source media file is divided into Part I data and Part II data, including:
According to source media file and transcoding parameter to transcoding file corresponding to the transcoding the most active media file of resource data library inquiry;
If the transcoding file that the active media file of transcoding resource database is corresponding, calculate the time used by the media file of local transcoding source the most respectively and from the time used by transcoding file corresponding to transcoding resource database loading source media file;
According to the time used by the media file of local transcoding source and from the time used by transcoding file corresponding to transcoding resource database loading source media file, source media file is divided into Part I data and Part II data.
Preferably, according to the time used by the media file of local transcoding source and from the time used by transcoding file corresponding to transcoding resource database loading source media file, source media file is divided into Part I data and Part II data, including:
Time used by the media file of local transcoding source is designated as h1, the time used by the transcoding file corresponding from transcoding resource database loading source media file is designated as h2, the reproduction time of source media file is designated as h;
The reproduction time of source media file is divided into two parts, according toObtain the Part I time, using the data of the source media file corresponding the Part I time as Part I data;
According toObtain the Part II time, using the data of the source media file corresponding the Part II time as Part II data.
Alternatively, the method also includes:
If transcoding resource database does not has the transcoding file that source media file is corresponding, then prompt the user whether actively to initiate transcoding task;
Receive user and select actively to initiate the order of transcoding task, source media file is carried out local transcoding, obtains the transcoding file that source media file is corresponding.
Alternatively, source media file is carried out local transcoding, after obtaining the transcoding file that source media file is corresponding, also includes:
Transcoding file corresponding for source media file is added in transcoding resource database, updates transcoding resource database.
The present embodiment transit code resource database builds in the following manner:
Provide the user source media file corresponding to program entry, the file after the transcoding that reception user uploads and the file after transcoding and transcoding configuration information;And/or
Transcoding task is initiated in timing, and transcoding task, for hot resource carries out actively transcoding, updates transcoding resource database according to the file after transcoding.
The method that the embodiment of the present invention provides provides the benefit that: the method carrying out file transcoding acceleration by the way of off-line is downloaded, divided by task and carry out native format transcoding and off-line simultaneously and download the time that can greatly reduce transcoding, promote transcoding and the experience of audio and video playing of user.
Embodiment 2
See Fig. 2, embodiments provide a kind of method obtaining media file, including:
Step 201: the system obtaining media file receives the source media file needing transcoding and the model of handheld device of user's input.
In the present embodiment, illustrate as a example by handheld device, but terminal corresponding to the transcoding parameter of the present embodiment is not limited to handheld device.Wherein, acquisition source media file and the model of handheld device, the model directly inputting source media file and handheld device on medium file system can obtained by user, this can also be not specifically limited at this present embodiment by selecting to need source media file and the model of handheld device of transcoding at the interface obtaining medium file system offer.
Step 202: generate corresponding transcoding parameter according to the model of the handheld device of user's input.
Wherein, the corresponding different transcoding parameter of different handheld device models, acquisition medium file system, for different transcoding parameter, obtains different transcoding files.
Wherein, step 201-202 is the process of acquisition source media file and transcoding parameter.
Step 203: the most existing identical source media file and transcoding parameter in inquiry transcoding resource database, if it is, perform step 204, otherwise, performs step 208.
In the present embodiment, pre-build transcoding resource database at server end so that user can not only obtain transcoding file by local transcoding, it is also possible to obtains transcoding file by downloading from transcoding resource database.Concrete transcoding resource database can be set up in the following manner:
1) user uploads, and after user uses local transcoding mode to convert, if not having this file destination in resources bank, then program provides entrance, allows users to the file after uploading oneself transcoding, uploads source media file and transcoding configuration information simultaneously;
2) user actively initiates, and during transcoding resource data library inquiry, if it find that do not have this file in resources bank, then prompts the user whether to initiate transcoding task, and the information such as the unit type of transcoding are wanted in appointment;
3) backstage is actively initiated, i.e. timing goes to initiate some transcoding tasks, hot resource carries out actively transcoding, with affluent resources storehouse.Such as every day the hot resource of 100 before download is carried out actively transcoding.
Step 204: estimate the time of local transcoding according to the CPU usage of user's machine and hardware configuration relevant information;And estimate the time required for the download of file destination complete off-line according to the idle condition of network and the restriction of bandwidth.
In the present embodiment, the transcoding file of source media file can be obtained by local transcoding, alternatively, if transcoding resource database exists the transcoding file matched with source media file, the most also the transcoding file obtaining source media file can be downloaded by off-line, but by above-mentioned different approach, the time needed is different, in the present embodiment, calculate the time used by the media file of local transcoding source respectively and from the time used by transcoding file corresponding to transcoding resource database loading source media file, thus the time that above two obtains transcoding file is estimated, thus find most suitable Transcoding Scheme, reduce the transcoding time.
Step 205: according to local transcoding time and off-line download time, source media file is divided into two parts.
In the present embodiment, in order to improve the conversion time of source media file, source media file is divided into two parts, i.e. Part I data and Part II data, two parts data are processed by different methods, thus shorten the conversion time of source media file.
Preferably, according to local transcoding time and off-line download time, source media file is divided into two parts, including: the time used by the media file of local transcoding source is designated as h1, time used by the transcoding file corresponding from transcoding resource database loading source media file is designated as h2, the reproduction time of source media file is designated as h;This source media file task is divided into a and 1-a, then when both time is equal, total time is minimum, i.e.
A × h1=(1-a) × h2;
Then draw:
Will press the ratio cut partition of a and 1-a by source media file, last transcoding total time used is minimum, according toObtain the Part I time, using the data of the source media file corresponding the Part I time as Part I data;
According toObtain the Part II time, using the data of the source media file corresponding the Part II time as Part II data.
Wherein, step 203-205 is that described source media file is divided into Part I data and the process of Part II data.
Part I data are carried out local transcoding by step 206: according to transcoding parameter, obtain local transcoding file fragment, meanwhile, download Part II data in transcoding resource database, obtain off-line and download file fragment.
In the present embodiment, after task has divided, it is preferable that Part I data and Part II data are carried out respectively native format conversion (i.e. transcoding) simultaneously and off-line is downloaded, but can not also synchronize by strict implement, be not specifically limited at this present embodiment.Wherein, what native format was changed concretely comprises the following steps:
1) compression video flowing and compression audio stream are isolated;
2) respectively video flowing is become original video stream and raw audio streams with audio stream;
3) apply transcoding parameter and carry out the coding of sound, video flowing respectively, having encoded rear output chip segment file.
Wherein, the step that off-line is downloaded is: first carries out the lookup of file destination, after finding file destination, starts to download Part II data from the start time point of Part II data, complete the download of off-line files fragment.
In the present embodiment, from in step 205, if the video of 120 minutes, local transcoding needs 90 minutes, and off-line is downloaded needs 60 minutes, then α=0.4, obtaining Part I data is 48, and Part II data are 72, i.e. first 48 minutes to video file carry out local transcoding, 72 minutes videos below carry out off-line download, altogether need within 36 minutes, complete.
Further, in the present embodiment, if the time that the time of native format conversion and off-line are downloaded, at a distance of the biggest, the most only uses the mode that native format is changed or off-line is downloaded that the time is few, because the merging of two file fragments is also required to the time.
Step 207: this locality transcoding file fragment and off-line are downloaded file fragment and merges, obtain the transcoding file that source media file is corresponding.
In the present embodiment, obtain local transcoding file fragment and off-line downloads file fragment, respectively two clip file are carried out the separation of sound, video flowing, then two section audio data stream and the merging of video data stream are completed, and audio and video data streams is synthesized the transcoding file that new media file, i.e. source media file are corresponding.
Step 208: prompt the user whether mainly to initiate transcoding task, if user selects to be that then new transcoding task is added on backstage, carries out source media file local transcoding, obtains the transcoding file that source media file is corresponding.
In the present embodiment, if transcoding resource database does not has the transcoding file that source media file is corresponding, then prompt the user whether actively to initiate transcoding task;Receive user and select actively to initiate the order of transcoding task, source media file is carried out local transcoding, obtains the transcoding file that source media file is corresponding.
Alternatively, in the present embodiment, source media file is carried out local transcoding, after obtaining the transcoding file that source media file is corresponding, also includes: transcoding file corresponding for source media file is added in transcoding resource database, update transcoding resource database.Second method in this process correspondence establishment transcoding resource database.
The method that the embodiment of the present invention provides provides the benefit that: the method carrying out file transcoding acceleration by the way of off-line is downloaded, divided by task and carry out native format transcoding and off-line simultaneously and download the time that can greatly reduce transcoding, promote transcoding and the experience of audio and video playing of user.
Embodiment 3
See Fig. 3, embodiments provide a kind of device obtaining media file, including: task allocating module 301, local transcoding module 302, off-line download module 303, complete task merging module 304.
Task allocating module 301, is used for obtaining source media file and transcoding parameter;Source media file is divided into Part I data and Part II data;
Part I data for according to transcoding parameter, are carried out local transcoding, obtain local transcoding file fragment by local transcoding module 302;
Off-line download module 303, for downloading described Part II data in transcoding resource database, obtains off-line and downloads file fragment;
Complete task merging module 304, merge for this locality transcoding file fragment and described off-line are downloaded file fragment, obtain the transcoding file that source media file is corresponding.
Wherein, see Fig. 4, task allocating module 301, including:
Query unit 301a, for according to source media file and transcoding parameter to transcoding file corresponding to the transcoding the most active media file of resource data library inquiry;
Computing unit 301b, if for transcoding file corresponding to the active media file of transcoding resource database, calculates the time used by the media file of local transcoding source and the most respectively from the time used by transcoding file corresponding to transcoding resource database loading source media file;
Division unit 301c, for according to the time used by the media file of local transcoding source and from the time used by transcoding file corresponding to transcoding resource database loading source media file, being divided into Part I data and Part II data by source media file.
Preferably, division unit, specifically for:
Time used by the media file of local transcoding source is designated as h1, the time used by the transcoding file corresponding from transcoding resource database loading source media file is designated as h2, the reproduction time of source media file is designated as h;
The reproduction time of source media file is divided into two parts, according toObtain the Part I time, using the data of the source media file corresponding the Part I time as Part I data;According toObtain the Part II time, using the data of the source media file corresponding the Part II time as Part II data.
Concrete, seeing Fig. 5, local transcoding module includes: transcoding parameter signal 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,
Transcoding parameter signal generating unit, for selecting the model of the handheld device of input to generate relevant transcoding parameter according to user;
Audio/video flow separative element, for realizing parsing and audio stream, the separation of video flowing of audio-video document;
Audio decoding unit, becomes raw audio streams for realization by the compression audio stream of source media file;
Video decoding unit, becomes original video stream for realization by the compression decoding video stream of source media file;
Audio coding unit, is encoded into new compression audio stream by raw audio streams by transcoding parameter for realization;
Video encoding unit, is encoded into new compression video flowing by original video data stream by transcoding parameter for realization;
Audio/video flow synthesis unit, for realizing media file new to compression audio stream and compression video flowing synthesis.
Further, seeing Fig. 6, off-line download module includes: resources bank file matching unit, off-line download unit, wherein,
Resources bank file matching unit, for being identified to inquire about in transcoding resource database the file destination of generation according to the parameter of user's transcoding and input file;
Off-line download unit, for being downloaded existing for server file download to this locality, use off-line be because the data source that server can provide stable by download technology, use the speed downloaded faster.
Wherein, see Fig. 7, complete task merging module and include: audio/video flow separative element, audio decoding unit, video decoding unit, audio/video flow synthesis unit, wherein,
Audio/video flow separative element, for realizing parsing and audio stream, the separation of video flowing of audio-video document;
Audio decoding unit, becomes raw audio streams for realization by the compression audio stream of source media file;
Video decoding unit, becomes original video stream for realization by the compression decoding video stream of source media file;
Audio/video flow synthesis unit, for realizing the voice data stream merging of segmentation, the video database of segmentation merges, and compression audio stream and compression video flowing is synthesized new media file simultaneously.
In the present embodiment, this this locality transcoding module is additionally operable to:
If transcoding resource database does not has the transcoding file that source media file is corresponding, then prompt the user whether actively to initiate transcoding task;Receive user and select actively to initiate the order of transcoding task, source media file is carried out local transcoding, obtains the transcoding file that source media file is corresponding.
Alternatively, seeing Fig. 4, this device also includes:
More new module 305, for source media file carries out local transcoding, after obtaining the transcoding file that source media file is corresponding, adds in transcoding resource database by transcoding file corresponding for source media file, updates transcoding resource database.
The device that the embodiment of the present invention provides provides the benefit that: the method carrying out file transcoding acceleration by the way of off-line is downloaded, divided by task and carry out native format transcoding and off-line simultaneously and download the time that can greatly reduce transcoding, promote transcoding and the experience of audio and video playing of user.
The device that the present embodiment provides, the most permissible, belong to same design with embodiment of the method, it implements process and refers to embodiment of the method, repeats no more here.
Completely or partially can being completed by the hardware that programmed instruction is relevant of the technique scheme that the embodiment of the present invention provides, described program can be stored in the storage medium that can read, and this storage medium includes: the various media that can store program code such as ROM, RAM, magnetic disc or CD.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (9)

1. the method obtaining media file, it is characterised in that described method includes:
Acquisition source media file and transcoding parameter;
Described source media file is divided into Part I data and Part II data;
According to described transcoding parameter, described Part I data are carried out local transcoding, obtain local transcoding file fragment, and, transcoding resource database is downloaded described Part II data, obtains off-line and download file fragment;
Described local transcoding file fragment and described off-line are downloaded file fragment merge, obtain the transcoding file that described source media file is corresponding;
Described described source media file is divided into Part I data and Part II data, including:
Whether have, to transcoding resource data library inquiry, the transcoding file that described source media file is corresponding with transcoding parameter according to described source media file;
If described transcoding resource database has a transcoding file that described source media file is corresponding, calculate described in local transcoding the time used by the media file of source the most respectively and download the time used by the transcoding file that described source media file is corresponding from described transcoding resource database;
According to the time used by source media file described in described local transcoding and download the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, described source media file is divided into Part I data and Part II data.
Method the most according to claim 1, it is characterized in that, described according to the time used by source media file described in described local transcoding and download the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, described source media file is divided into Part I data and Part II data, including:
Time used by source media file described in described local transcoding is designated as h1, is designated as h2 by downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, the reproduction time of described source media file is designated as h;
The reproduction time of described source media file is divided into two parts, according toObtain the Part I time, using the data of the source the media file corresponding described Part I time as Part I data;
According toObtain the Part II time, using the data of the source the media file corresponding described Part II time as Part II data.
Method the most according to claim 1, it is characterised in that described method also includes:
If described transcoding resource database does not has the transcoding file that described source media file is corresponding, then prompt the user whether actively to initiate transcoding task;
Receive described user and select actively to initiate the order of transcoding task, described source media file is carried out local transcoding, obtains the transcoding file that described source media file is corresponding.
Method the most according to claim 3, it is characterised in that described described source media file carries out local transcoding, after obtaining the transcoding file that described source media file is corresponding, also includes:
Transcoding file corresponding for described source media file is added in described transcoding resource database, updates described transcoding resource database.
Method the most according to claim 1, it is characterised in that described transcoding resource database builds in the following manner:
Provide the user program entry, receive the file after the transcoding that described user uploads and source media file corresponding to the file after described transcoding and transcoding configuration information;And/or
Transcoding task is initiated in timing, and described transcoding task, for hot resource carries out actively transcoding, updates described transcoding resource database according to the file after described transcoding.
6. the device obtaining media file, it is characterised in that described device includes:
Task allocating module, is used for obtaining source media file and transcoding parameter;Described source media file is divided into Part I data and Part II data;
Described Part I data for according to described transcoding parameter, are carried out local transcoding, obtain local transcoding file fragment by local transcoding module;
Off-line download module, for downloading described Part II data in transcoding resource database, obtains off-line and downloads file fragment;
Complete task merging module, merge for described local transcoding file fragment and described off-line are downloaded file fragment, obtain the transcoding file that described source media file is corresponding;
Described task allocating module, including:
Whether query unit, for having, to transcoding resource data library inquiry, the transcoding file that described source media file is corresponding with transcoding parameter according to described source media file;
Computing unit, if having, for described transcoding resource database, a transcoding file that described source media file is corresponding, calculating described in local transcoding the time used by the media file of source the most respectively and downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database;
Division unit, for according to the time used by source media file described in described local transcoding and downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, described source media file is divided into Part I data and Part II data.
Device the most according to claim 6, it is characterised in that described division unit, specifically for:
Time used by source media file described in described local transcoding is designated as h1, is designated as h2 by downloading the time used by the transcoding file that described source media file is corresponding from described transcoding resource database, the reproduction time of described source media file is designated as h;
The reproduction time of described source media file is divided into two parts, according toObtain the Part I time, using the data of the source the media file corresponding described Part I time as Part I data;
According toObtain the Part II time, using the data of the source the media file corresponding described Part II time as Part II data.
Device the most according to claim 6, it is characterised in that described local transcoding module, is additionally operable to:
If described transcoding resource database does not has the transcoding file that described source media file is corresponding, then prompt the user whether actively to initiate transcoding task;Receive described user and select actively to initiate the order of transcoding task, described source media file is carried out local transcoding, obtains the transcoding file that described source media file is corresponding.
Device the most according to claim 8, it is characterised in that described device also includes:
More new module, for described source media file carries out local transcoding, after obtaining the transcoding file that described source media file is corresponding, adds to transcoding file corresponding for described source media file in described transcoding resource database, updates described transcoding resource database.
CN201110118304.4A 2011-05-09 2011-05-09 The method and apparatus obtaining media file Active CN102780878B (en)

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 CN102780878A (en) 2012-11-14
CN102780878B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
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 腾讯音乐娱乐科技(深圳)有限公司 Video stream loading method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102780878A (en) 2012-11-14

Similar Documents

Publication Publication Date Title
WO2020244495A1 (en) Screen projection display method and electronic device
CN100517306C (en) Media processor with meida base
CN103002274B (en) A kind of mobile multimedia real-time transcoding Play System and method of downloading based on off-line
CN101272478B (en) Content delivering system and method, server unit and receiving system
EP3680896B1 (en) Method for controlling terminal by voice, terminal, server and storage medium
KR20070091962A (en) Method for offerring naration of data channel dmb using animation and recording media implementing the same
JP2008065546A (en) Data transfer system, data transfer device, file format conversion device and data transfer method
CN104205038A (en) Information processing device, information processing method, information processing program, and terminal device
CN102780878B (en) The method and apparatus obtaining media file
CN101707679A (en) Television, karaoke marking system and method thereof
CN112165647B (en) Audio data processing method, device, equipment and storage medium
CN102065340B (en) System and method for implementing multimedia synchronous interaction
US20100104267A1 (en) System and method for playing media file
CN101674373B (en) MP4 streaming media playing system for mobile communication terminal and application method thereof
CN102655512A (en) Mobile equipment-based downloading method and system
JP5737357B2 (en) Music playback apparatus and music playback program
CN101237258A (en) Content providing method, content playback method, portable wireless terminal, and content playback apparatus
CN1825472A (en) Audio-frequency playing terminal
CN101022535A (en) Method for downloading or playing audio/video file utilizing mobile communication device
US20100106837A1 (en) Information processing apparatus and method for processing data in information processing apparatus
CN113747047B (en) Video playing method and device
US20080242228A1 (en) Radio communication apparatus, wireless headphone and radio communication system
CN104090898B (en) The method that local music mates with music in storehouse and device
CN102077190A (en) Media foundation source reader
KR100994006B1 (en) Rich-media Offering System and Control Method thereof

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